layout.phtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="<?php echo FreshRSS_Context::$conf->language; ?>" xml:lang="<?php echo FreshRSS_Context::$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. $url_base = Minz_Request::currentRequest();
  14. if (FreshRSS_Context::$next_id !== '') {
  15. $url_next = $url_base;
  16. $url_next['params']['next'] = FreshRSS_Context::$next_id;
  17. $url_next['params']['ajax'] = 1;
  18. ?>
  19. <link id="prefetch" rel="next prefetch" href="<?php echo Minz_Url::display($url_next); ?>" />
  20. <?php } ?>
  21. <link rel="shortcut icon" id="favicon" type="image/x-icon" sizes="16x16 64x64" href="<?php echo Minz_Url::display('/favicon.ico'); ?>" />
  22. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?php echo Minz_Url::display('/themes/icons/favicon-256.png'); ?>" />
  23. <?php
  24. if (isset($this->rss_title)) {
  25. $url_rss = $url_base;
  26. $url_rss['a'] = 'rss';
  27. ?>
  28. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display($url_rss); ?>" />
  29. <?php } ?>
  30. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('starred', true); ?>">
  31. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('non-starred', true); ?>">
  32. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('read', true); ?>">
  33. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('unread', true); ?>">
  34. <link rel="apple-touch-icon" href="<?php echo Minz_Url::display('/themes/icons/apple-touch-icon.png'); ?>">
  35. <meta name="apple-mobile-web-app-capable" content="yes" />
  36. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  37. <meta name="apple-mobile-web-app-title" content="<?php echo Minz_Configuration::title(); ?>">
  38. <meta name="msapplication-TileColor" content="#FFF" />
  39. <meta name="robots" content="noindex,nofollow" />
  40. </head>
  41. <body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
  42. <?php $this->partial('header'); ?>
  43. <div id="global">
  44. <?php $this->render(); ?>
  45. </div>
  46. <?php
  47. $msg = '';
  48. $status = 'closed';
  49. if (isset($this->notification)) {
  50. $msg = $this->notification['content'];
  51. $status = $this->notification['type'];
  52. invalidateHttpCache();
  53. }
  54. ?>
  55. <div id="notification" class="notification <?php echo $status; ?>">
  56. <span class="msg"><?php echo $msg; ?></span>
  57. <a class="close" href=""><?php echo _i('close'); ?></a>
  58. </div>
  59. </body>
  60. </html>