simple.phtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php FreshRSS::preLayout(); ?>
  2. <!DOCTYPE html>
  3. <html lang="<?= FreshRSS_Context::$user_conf->language ?>" xml:lang="<?= FreshRSS_Context::$user_conf->language ?>">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="initial-scale=1.0" />
  7. <?= self::headStyle() ?>
  8. <script id="jsonVars" type="application/json">
  9. <?php $this->renderHelper('javascript_vars'); ?>
  10. </script>
  11. <?= self::headScript() ?>
  12. <link rel="shortcut icon" id="favicon" type="image/x-icon" sizes="16x16 64x64" href="<?= Minz_Url::display('/favicon.ico') ?>" />
  13. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?= Minz_Url::display('/themes/icons/favicon-256.png') ?>" />
  14. <link rel="apple-touch-icon" href="<?= Minz_Url::display('/themes/icons/apple-touch-icon.png') ?>" />
  15. <meta name="apple-mobile-web-app-capable" content="yes" />
  16. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  17. <meta name="apple-mobile-web-app-title" content="<?= FreshRSS_Context::$system_conf->title ?>">
  18. <meta name="msapplication-TileColor" content="#FFF" />
  19. <meta name="referrer" content="never" />
  20. <meta name="robots" content="noindex,nofollow" />
  21. <?= self::headTitle() ?>
  22. </head>
  23. <body>
  24. <?php flush(); ?>
  25. <div class="app-layout app-layout-simple">
  26. <div class="header">
  27. <div class="item title">
  28. <h1>
  29. <a href="<?= _url('index', 'index') ?>">
  30. <img class="logo" src="<?= _i('icon', true) ?>" alt="" />
  31. <?= FreshRSS_Context::$system_conf->title ?>
  32. </a>
  33. </h1>
  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>