layout.phtml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. if (!empty($this->nextId)) {
  14. $params = Minz_Request::params ();
  15. $params['next'] = $this->nextId;
  16. ?>
  17. <link id="prefetch" rel="next prefetch" href="<?php echo Minz_Url::display (array ('c' => Minz_Request::controllerName (), 'a' => Minz_Request::actionName (), 'params' => $params)); ?>" />
  18. <?php } ?>
  19. <link rel="shortcut icon" type="image/x-icon" sizes="16x16 64x64" href="<?php echo Minz_Url::display('/favicon.ico'); ?>" />
  20. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?php echo Minz_Url::display('/themes/icons/favicon-256.png'); ?>" />
  21. <?php if (isset ($this->rss_url)) { ?>
  22. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display ($this->rss_url); ?>" />
  23. <?php } ?>
  24. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('starred', true); ?>">
  25. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('non-starred', true); ?>">
  26. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('read', true); ?>">
  27. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('unread', true); ?>">
  28. <meta name="msapplication-TileColor" content="#FFF" />
  29. <meta name="robots" content="noindex,nofollow" />
  30. </head>
  31. <body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
  32. <?php $this->partial ('header'); ?>
  33. <div id="global">
  34. <?php $this->render (); ?>
  35. </div>
  36. <?php
  37. $msg = '';
  38. $status = 'closed';
  39. if (isset ($this->notification)) {
  40. $msg = $this->notification['content'];
  41. $status = $this->notification['type'];
  42. invalidateHttpCache();
  43. }
  44. ?>
  45. <div id="notification" class="<?php echo $status; ?>">
  46. <span class="msg"><?php echo $msg; ?></span>
  47. <a class="close" href=""><?php echo FreshRSS_Themes::icon('close'); ?></a>
  48. </div>
  49. </body>
  50. </html>