layout.phtml 2.6 KB

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