simple.phtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /** @var FreshRSS_View $this */
  3. FreshRSS::preLayout();
  4. ?>
  5. <!DOCTYPE html>
  6. <html lang="<?= FreshRSS_Context::$user_conf->language ?>" xml:lang="<?= FreshRSS_Context::$user_conf->language ?>">
  7. <head>
  8. <meta charset="UTF-8" />
  9. <meta name="viewport" content="initial-scale=1.0" />
  10. <?= FreshRSS_View::headStyle() ?>
  11. <script id="jsonVars" type="application/json">
  12. <?php $this->renderHelper('javascript_vars'); ?>
  13. </script>
  14. <?= FreshRSS_View::headScript() ?>
  15. <link rel="shortcut icon" id="favicon" type="image/x-icon" sizes="16x16 64x64" href="<?= Minz_Url::display('/favicon.ico') ?>" />
  16. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?= Minz_Url::display('/themes/icons/favicon-256.png') ?>" />
  17. <link rel="apple-touch-icon" href="<?= Minz_Url::display('/themes/icons/apple-touch-icon.png') ?>" />
  18. <meta name="apple-mobile-web-app-capable" content="yes" />
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  20. <meta name="apple-mobile-web-app-title" content="<?= FreshRSS_Context::$system_conf->title ?>">
  21. <meta name="msapplication-TileColor" content="#FFF" />
  22. <meta name="referrer" content="never" />
  23. <meta name="robots" content="noindex,nofollow" />
  24. <?= FreshRSS_View::headTitle() ?>
  25. </head>
  26. <body>
  27. <?php flush(); ?>
  28. <div class="app-layout app-layout-simple">
  29. <div class="header">
  30. <div class="item title">
  31. <a href="<?= _url('index', 'index') ?>">
  32. <?php if (FreshRSS_Context::$system_conf->logo_html == '') { ?>
  33. <img class="logo" src="<?= _i('FreshRSS-logo', true) ?>" alt="FreshRSS" />
  34. <?php
  35. } else {
  36. echo FreshRSS_Context::$system_conf->logo_html;
  37. }
  38. ?>
  39. </a>
  40. </div>
  41. <div class="item"></div>
  42. <div class="item">
  43. <?php if (FreshRSS_Auth::accessNeedsAction()) { ?>
  44. <a class="signout" href="<?= _url('auth', 'logout') ?>">
  45. <?= _i('logout') . _t('gen.auth.logout') ?>
  46. (<?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?>)
  47. </a>
  48. <?php } ?>
  49. </div>
  50. </div>
  51. <?php $this->render(); ?>
  52. </div>
  53. <?php
  54. $msg = '';
  55. $status = 'closed';
  56. if (!empty($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>