4
0

layout.phtml 2.9 KB

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