layout.phtml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="<?php echo FreshRSS_Context::$user_conf->language; ?>" xml:lang="<?php echo FreshRSS_Context::$user_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 FreshRSS_Context::$system_conf->title; ?>">
  38. <meta name="msapplication-TileColor" content="#FFF" />
  39. <?php if (FreshRSS_Context::$system_conf->allow_robots) { ?>
  40. <meta name="description" content="<?php echo htmlspecialchars(FreshRSS_Context::$name . ' | ' . FreshRSS_Context::$description, ENT_NOQUOTES, 'UTF-8'); ?>" />
  41. <?php } else { ?>
  42. <meta name="robots" content="noindex,nofollow" />
  43. <?php } ?>
  44. </head>
  45. <body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
  46. <?php $this->partial('header'); ?>
  47. <div id="global">
  48. <?php $this->render(); ?>
  49. </div>
  50. <?php
  51. $msg = '';
  52. $status = 'closed';
  53. if (isset($this->notification)) {
  54. $msg = $this->notification['content'];
  55. $status = $this->notification['type'];
  56. invalidateHttpCache();
  57. }
  58. ?>
  59. <div id="notification" class="notification <?php echo $status; ?>">
  60. <span class="msg"><?php echo $msg; ?></span>
  61. <a class="close" href=""><?php echo _i('close'); ?></a>
  62. </div>
  63. </body>
  64. </html>