layout.phtml 2.9 KB

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