simple.phtml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. declare(strict_types=1);
  3. /** @var FreshRSS_View $this */
  4. FreshRSS::preLayout();
  5. ?>
  6. <!DOCTYPE html>
  7. <html lang="<?= FreshRSS_Context::$user_conf->language ?>" xml:lang="<?= FreshRSS_Context::$user_conf->language ?>">
  8. <head>
  9. <meta charset="UTF-8" />
  10. <meta name="viewport" content="initial-scale=1.0" />
  11. <?= FreshRSS_View::headStyle() ?>
  12. <script id="jsonVars" type="application/json">
  13. <?php $this->renderHelper('javascript_vars'); ?>
  14. </script>
  15. <?= FreshRSS_View::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. <meta name="referrer" content="never" />
  24. <meta name="robots" content="noindex,nofollow" />
  25. <?= FreshRSS_View::headTitle() ?>
  26. </head>
  27. <body>
  28. <?php flush(); ?>
  29. <div class="app-layout app-layout-simple">
  30. <div class="header">
  31. <div class="item title">
  32. <a href="<?= _url('index', 'index') ?>">
  33. <?php if (FreshRSS_Context::$system_conf->logo_html == '') { ?>
  34. <img class="logo" src="<?= _i('FreshRSS-logo', FreshRSS_Themes::ICON_URL) ?>" alt="FreshRSS" loading="lazy" />
  35. <?php
  36. } else {
  37. echo FreshRSS_Context::$system_conf->logo_html;
  38. }
  39. ?>
  40. </a>
  41. </div>
  42. <div class="item"></div>
  43. <div class="item">
  44. <?php if (FreshRSS_Auth::accessNeedsAction()) { ?>
  45. <a class="signout" href="<?= _url('auth', 'logout') ?>">
  46. <?= _i('logout') . _t('gen.auth.logout') ?>
  47. (<?= htmlspecialchars(Minz_User::name() ?? '', ENT_NOQUOTES, 'UTF-8') ?>)
  48. </a>
  49. <?php } ?>
  50. </div>
  51. </div>
  52. <?php $this->render(); ?>
  53. </div>
  54. <?php
  55. $msg = '';
  56. $status = 'closed';
  57. if (!empty($this->notification)) {
  58. $msg = $this->notification['content'];
  59. $status = $this->notification['type'];
  60. invalidateHttpCache();
  61. }
  62. ?>
  63. <div id="notification" class="notification <?= $status ?>">
  64. <span class="msg"><?= $msg ?></span>
  65. <a class="close" href=""><?= _i('close') ?></a>
  66. </div>
  67. </body>
  68. </html>