layout.phtml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. </head>
  25. <body>
  26. <?php $this->partial ('header'); ?>
  27. <div id="global">
  28. <?php $this->render (); ?>
  29. </div>
  30. <?php
  31. if (isset ($this->notification)) {
  32. touch(PUBLIC_PATH . '/data/touch.txt', time() + 1);
  33. ?>
  34. <div class="notification <?php echo $this->notification['type']; ?>">
  35. <?php echo $this->notification['content']; ?>
  36. <a class="close" href=""><i class="icon i_close"></i></a>
  37. </div>
  38. <?php } ?>
  39. </body>
  40. </html>