layout.phtml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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="apple-touch-icon" href="<?php echo 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="<?php echo FreshRSS_Context::$system_conf->title; ?>">
  18. <meta name="msapplication-TileColor" content="#FFF" />
  19. <?php if (!FreshRSS_Context::$system_conf->allow_referrer) { ?>
  20. <meta name="referrer" content="never" />
  21. <?php
  22. }
  23. flush();
  24. if (isset($this->callbackBeforeContent)) {
  25. call_user_func($this->callbackBeforeContent, $this);
  26. }
  27. ?>
  28. <?php echo self::headTitle(); ?>
  29. <?php
  30. $url_base = Minz_Request::currentRequest();
  31. if (isset($this->rss_title)) {
  32. $url_rss = $url_base;
  33. $url_rss['a'] = 'rss';
  34. if (FreshRSS_Context::$user_conf->since_hours_posts_per_rss) {
  35. $url_rss['params']['hours'] = FreshRSS_Context::$user_conf->since_hours_posts_per_rss;
  36. }
  37. ?>
  38. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display($url_rss); ?>" />
  39. <?php } if (FreshRSS_Context::$system_conf->allow_robots) { ?>
  40. <meta name="description" content="<?php echo htmlspecialchars(FreshRSS_Context::$name . ' | ' . FreshRSS_Context::$description, ENT_COMPAT, 'UTF-8'); ?>" />
  41. <?php } else { ?>
  42. <meta name="robots" content="noindex,nofollow" />
  43. <?php } ?>
  44. </head>
  45. <body class="<?php echo Minz_Request::actionName(); ?>">
  46. <?php $this->partial('header'); ?>
  47. <div id="global">
  48. <?php $this->render(); ?>
  49. </div>
  50. <?php
  51. $msg = '';
  52. $status = 'closed';
  53. if (isset($this->notification)) {
  54. $msg = $this->notification['content'];
  55. $status = $this->notification['type'];
  56. invalidateHttpCache();
  57. }
  58. ?>
  59. <div id="notification" class="notification <?php echo $status; ?>">
  60. <span class="msg"><?php echo $msg; ?></span>
  61. <a class="close" href=""><?php echo _i('close'); ?></a>
  62. </div>
  63. </body>
  64. </html>