layout.phtml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php FreshRSS::preLayout(); ?>
  2. <!DOCTYPE html>
  3. <html lang="<?php echo FreshRSS_Context::$user_conf->language; ?>" xml:lang="<?php echo FreshRSS_Context::$user_conf->language; ?>">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <meta name="viewport" content="initial-scale=1.0" />
  7. <?php echo self::headStyle(); ?>
  8. <script id="jsonVars" type="application/json">
  9. <?php $this->renderHelper('javascript_vars'); ?>
  10. </script>
  11. <?php echo self::headScript(); ?>
  12. <link rel="shortcut icon" id="favicon" type="image/x-icon" sizes="16x16 64x64" href="<?php echo Minz_Url::display('/favicon.ico'); ?>" />
  13. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?php echo Minz_Url::display('/themes/icons/favicon-256.png'); ?>" />
  14. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('starred', true); ?>">
  15. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('non-starred', true); ?>">
  16. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('read', true); ?>">
  17. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('unread', true); ?>">
  18. <link rel="apple-touch-icon" href="<?php echo 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="<?php echo FreshRSS_Context::$system_conf->title; ?>">
  22. <meta name="msapplication-TileColor" content="#FFF" />
  23. <?php
  24. flush();
  25. if (isset($this->callbackBeforeContent)) {
  26. call_user_func($this->callbackBeforeContent);
  27. }
  28. ?>
  29. <?php echo self::headTitle(); ?>
  30. <?php
  31. $url_base = Minz_Request::currentRequest();
  32. if (FreshRSS_Context::$next_id !== '') {
  33. $url_next = $url_base;
  34. $url_next['params']['next'] = FreshRSS_Context::$next_id;
  35. $url_next['params']['ajax'] = 1;
  36. ?>
  37. <link id="prefetch" rel="next prefetch" href="<?php echo Minz_Url::display($url_next); ?>" />
  38. <?php
  39. } if (isset($this->rss_title)) {
  40. $url_rss = $url_base;
  41. $url_rss['a'] = 'rss';
  42. ?>
  43. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display($url_rss); ?>" />
  44. <?php } if (FreshRSS_Context::$system_conf->allow_robots) { ?>
  45. <meta name="description" content="<?php echo htmlspecialchars(FreshRSS_Context::$name . ' | ' . FreshRSS_Context::$description, ENT_COMPAT, 'UTF-8'); ?>" />
  46. <?php } else { ?>
  47. <meta name="robots" content="noindex,nofollow" />
  48. <?php } ?>
  49. </head>
  50. <body class="<?php echo Minz_Request::actionName(); ?>">
  51. <?php $this->partial('header'); ?>
  52. <div id="global">
  53. <?php $this->render(); ?>
  54. </div>
  55. <?php
  56. $msg = '';
  57. $status = 'closed';
  58. if (isset($this->notification)) {
  59. $msg = $this->notification['content'];
  60. $status = $this->notification['type'];
  61. invalidateHttpCache();
  62. }
  63. ?>
  64. <div id="notification" class="notification <?php echo $status; ?>">
  65. <span class="msg"><?php echo $msg; ?></span>
  66. <a class="close" href=""><?php echo _i('close'); ?></a>
  67. </div>
  68. </body>
  69. </html>