layout.phtml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. <link rel="apple-touch-icon" href="<?php echo Minz_Url::display('/themes/icons/apple-touch-icon.png'); ?>" />
  29. <meta name="apple-mobile-web-app-capable" content="yes" />
  30. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  31. <meta name="msapplication-TileColor" content="#FFF" />
  32. <meta name="robots" content="noindex,nofollow" />
  33. </head>
  34. <body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
  35. <?php $this->partial ('header'); ?>
  36. <div id="global">
  37. <?php $this->render (); ?>
  38. </div>
  39. <?php
  40. $msg = '';
  41. $status = 'closed';
  42. if (isset ($this->notification)) {
  43. $msg = $this->notification['content'];
  44. $status = $this->notification['type'];
  45. invalidateHttpCache();
  46. }
  47. ?>
  48. <div id="notification" class="<?php echo $status; ?>">
  49. <span class="msg"><?php echo $msg; ?></span>
  50. <a class="close" href=""><?php echo FreshRSS_Themes::icon('close'); ?></a>
  51. </div>
  52. </body>
  53. </html>