layout.phtml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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" id="favicon" 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
  22. if (isset($this->url)) {
  23. $rss_url = $this->url;
  24. $rss_url['params']['output'] = 'rss';
  25. ?>
  26. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display($rss_url); ?>" />
  27. <?php } ?>
  28. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('starred', true); ?>">
  29. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('non-starred', true); ?>">
  30. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('read', true); ?>">
  31. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('unread', true); ?>">
  32. <link rel="apple-touch-icon" href="<?php echo Minz_Url::display('/themes/icons/apple-touch-icon.png'); ?>">
  33. <meta name="apple-mobile-web-app-capable" content="yes" />
  34. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  35. <meta name="apple-mobile-web-app-title" content="<?php echo Minz_Configuration::title(); ?>">
  36. <meta name="msapplication-TileColor" content="#FFF" />
  37. <meta name="robots" content="noindex,nofollow" />
  38. </head>
  39. <body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
  40. <?php $this->partial('header'); ?>
  41. <div id="global">
  42. <?php $this->render(); ?>
  43. </div>
  44. <?php
  45. $msg = '';
  46. $status = 'closed';
  47. if (isset($this->notification)) {
  48. $msg = $this->notification['content'];
  49. $status = $this->notification['type'];
  50. invalidateHttpCache();
  51. }
  52. ?>
  53. <div id="notification" class="notification <?php echo $status; ?>">
  54. <span class="msg"><?php echo $msg; ?></span>
  55. <a class="close" href=""><?php echo FreshRSS_Themes::icon('close'); ?></a>
  56. </div>
  57. </body>
  58. </html>