simple.phtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. <img class="logo" src="<?= _i('FreshRSS-logo', true) ?>" alt="" />
  33. </a>
  34. </div>
  35. <div class="item"></div>
  36. <div class="item">
  37. <?php if (FreshRSS_Auth::accessNeedsAction()) { ?>
  38. <a class="signout" href="<?= _url('auth', 'logout') ?>">
  39. <?= _i('logout') . _t('gen.auth.logout') ?>
  40. (<?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8') ?>)
  41. </a>
  42. <?php } ?>
  43. </div>
  44. </div>
  45. <?php $this->render(); ?>
  46. </div>
  47. <?php
  48. $msg = '';
  49. $status = 'closed';
  50. if (isset($this->notification)) {
  51. $msg = $this->notification['content'];
  52. $status = $this->notification['type'];
  53. invalidateHttpCache();
  54. }
  55. ?>
  56. <div id="notification" class="notification <?= $status ?>">
  57. <span class="msg"><?= $msg ?></span>
  58. <a class="close" href=""><?= _i('close') ?></a>
  59. </div>
  60. </body>
  61. </html>