layout.phtml 3.0 KB

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