layout.phtml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html lang="<?php echo $this->conf->language (); ?>" xml:lang="<?php echo $this->conf->language (); ?>">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="initial-scale=1.0" />
  6. <?php echo self::headTitle (); ?>
  7. <?php echo self::headStyle (); ?>
  8. <?php echo self::headScript (); ?>
  9. <script>//<![CDATA[
  10. <?php $this->renderHelper ('javascript_vars'); ?>
  11. //]]></script>
  12. <?php
  13. $next = isset($this->entryPaginator) ? $this->entryPaginator->next() : '';
  14. if (!empty($next)) {
  15. $params = Request::params ();
  16. $params['next'] = $next;
  17. ?>
  18. <link id="prefetch" rel="next prefetch" href="<?php echo Url::display (array ('c' => Request::controllerName (), 'a' => Request::actionName (), 'params' => $params)); ?>" />
  19. <?php } ?>
  20. <link rel="icon" href="<?php echo Url::display ('/favicon.ico'); ?>" />
  21. <?php if (isset ($this->rss_url)) { ?>
  22. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Url::display ($this->rss_url); ?>" />
  23. <?php } ?>
  24. <meta name="robots" content="noindex,nofollow" />
  25. </head>
  26. <body>
  27. <?php $this->partial ('header'); ?>
  28. <div id="global">
  29. <?php $this->render (); ?>
  30. </div>
  31. <?php
  32. if (isset ($this->notification)) {
  33. touch(DATA_PATH . '/touch.txt', time() + 1);
  34. ?>
  35. <div class="notification <?php echo $this->notification['type']; ?>">
  36. <?php echo $this->notification['content']; ?>
  37. <a class="close" href=""><?php echo icon('close'); ?></a>
  38. </div>
  39. <?php } ?>
  40. </body>
  41. </html>