4
0

layout.phtml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. <link rel="icon" type="image/x-icon" href="<?php echo Url::display ('/favicon.ico'); ?>" />
  7. <link rel="icon" type="image/png" href="<?php echo Url::display ('/favicon.ico'); ?>" />
  8. <?php if (isset ($this->rss_url)) { ?>
  9. <link rel="alternate" type="application/rss+xml" title="<?php echo htmlspecialchars(View::title(), ENT_COMPAT, 'UTF-8'); ?>" href="<?php echo Url::display ($this->rss_url); ?>" />
  10. <?php } ?>
  11. <?php echo self::headTitle (); ?>
  12. <?php echo self::headStyle (); ?>
  13. <?php echo self::headScript (); ?>
  14. <script>//<![CDATA[
  15. <?php $this->renderHelper ('javascript_vars'); ?>
  16. //]]></script>
  17. <?php
  18. $next = isset($this->entryPaginator) ? $this->entryPaginator->next() : '';
  19. if (!empty($next)) {
  20. $params = Request::params ();
  21. $params['next'] = $next;
  22. ?>
  23. <link id="prefetch" rel="next prefetch" href="<?php echo Url::display (array ('c' => Request::controllerName (), 'a' => Request::actionName (), 'params' => $params)); ?>" />
  24. <?php } ?>
  25. </head>
  26. <body>
  27. <?php $this->partial ('header'); ?>
  28. <div id="global">
  29. <?php $this->render (); ?>
  30. </div>
  31. <?php if (isset ($this->notification)) { ?>
  32. <div class="notification <?php echo $this->notification['type']; ?>">
  33. <?php echo $this->notification['content']; ?>
  34. <a class="close" href=""><i class="icon i_close"></i></a>
  35. </div>
  36. <?php } ?>
  37. </body>
  38. </html>