layout.phtml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php FreshRSS::preLayout(); ?>
  2. <!DOCTYPE html>
  3. <html lang="<?= FreshRSS_Context::$user_conf->language ?>" xml:lang="<?= FreshRSS_Context::$user_conf->language ?>">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="initial-scale=1.0" />
  7. <?= self::headStyle() ?>
  8. <script id="jsonVars" type="application/json">
  9. <?php $this->renderHelper('javascript_vars'); ?>
  10. </script>
  11. <?= self::headScript() ?>
  12. <link rel="shortcut icon" id="favicon" type="image/x-icon" sizes="16x16 64x64" href="<?= Minz_Url::display('/favicon.ico') ?>" />
  13. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?= Minz_Url::display('/themes/icons/favicon-256.png') ?>" />
  14. <link rel="apple-touch-icon" href="<?= Minz_Url::display('/themes/icons/apple-touch-icon.png') ?>" />
  15. <meta name="apple-mobile-web-app-capable" content="yes" />
  16. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  17. <meta name="apple-mobile-web-app-title" content="<?= FreshRSS_Context::$system_conf->title ?>">
  18. <meta name="msapplication-TileColor" content="#FFF" />
  19. <?php if (!FreshRSS_Context::$system_conf->allow_referrer) { ?>
  20. <meta name="referrer" content="never" />
  21. <?php } ?>
  22. <?= self::headTitle() ?>
  23. <?php
  24. $url_base = Minz_Request::currentRequest();
  25. if (isset($this->rss_title)) {
  26. $url_rss = $url_base;
  27. $url_rss['a'] = 'rss';
  28. if (FreshRSS_Context::$user_conf->since_hours_posts_per_rss) {
  29. $url_rss['params']['hours'] = FreshRSS_Context::$user_conf->since_hours_posts_per_rss;
  30. }
  31. ?>
  32. <link rel="alternate" type="application/rss+xml" title="<?= $this->rss_title ?>" href="<?= Minz_Url::display($url_rss) ?>" />
  33. <?php } if (FreshRSS_Context::$system_conf->allow_robots) { ?>
  34. <meta name="description" content="<?= htmlspecialchars(FreshRSS_Context::$name . ' | ' . FreshRSS_Context::$description, ENT_COMPAT, 'UTF-8') ?>" />
  35. <?php } else { ?>
  36. <meta name="robots" content="noindex,nofollow" />
  37. <?php } ?>
  38. </head>
  39. <body class="<?= Minz_Request::actionName() ?>">
  40. <?php
  41. flush();
  42. $this->partial('header');
  43. ?>
  44. <div id="global">
  45. <?php
  46. flush();
  47. if (isset($this->callbackBeforeFeeds)) {
  48. call_user_func($this->callbackBeforeFeeds, $this);
  49. }
  50. $this->render();
  51. ?>
  52. </div>
  53. <?php
  54. $msg = '';
  55. $status = 'closed';
  56. if (isset($this->notification)) {
  57. $msg = $this->notification['content'];
  58. $status = $this->notification['type'];
  59. invalidateHttpCache();
  60. }
  61. ?>
  62. <div id="notification" class="notification <?= $status ?>">
  63. <span class="msg"><?= $msg ?></span>
  64. <a class="close" href=""><?= _i('close') ?></a>
  65. </div>
  66. </body>
  67. </html>