layout.phtml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="<?php echo $this->conf->language; ?>" xml:lang="<?php echo $this->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 (!empty($this->nextId)) {
  14. $params = Minz_Request::params ();
  15. $params['next'] = $this->nextId;
  16. ?>
  17. <link id="prefetch" rel="next prefetch" href="<?php echo Minz_Url::display (array ('c' => Minz_Request::controllerName (), 'a' => Minz_Request::actionName (), 'params' => $params)); ?>" />
  18. <?php } ?>
  19. <link rel="shortcut icon" type="image/x-icon" sizes="16x16 64x64" href="<?php echo Minz_Url::display('/favicon.ico'); ?>" />
  20. <link rel="icon msapplication-TileImage apple-touch-icon" type="image/png" sizes="256x256" href="<?php echo Minz_Url::display('/themes/icons/favicon-256.png'); ?>" />
  21. <?php
  22. if (isset($this->url)) {
  23. $rss_url = $this->url;
  24. $rss_url['params']['output'] = 'rss';
  25. ?>
  26. <link rel="alternate" type="application/rss+xml" title="<?php echo $this->rss_title; ?>" href="<?php echo Minz_Url::display ($rss_url); ?>" />
  27. <?php } ?>
  28. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('starred', true); ?>">
  29. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('non-starred', true); ?>">
  30. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('read', true); ?>">
  31. <link rel="prefetch" href="<?php echo FreshRSS_Themes::icon('unread', true); ?>">
  32. <meta name="msapplication-TileColor" content="#FFF" />
  33. <meta name="robots" content="noindex,nofollow" />
  34. </head>
  35. <body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
  36. <?php $this->partial ('header'); ?>
  37. <div id="global">
  38. <?php $this->render (); ?>
  39. </div>
  40. <?php
  41. $msg = '';
  42. $status = 'closed';
  43. if (isset ($this->notification)) {
  44. $msg = $this->notification['content'];
  45. $status = $this->notification['type'];
  46. invalidateHttpCache();
  47. }
  48. ?>
  49. <div id="notification" class="<?php echo $status; ?>">
  50. <span class="msg"><?php echo $msg; ?></span>
  51. <a class="close" href=""><?php echo FreshRSS_Themes::icon('close'); ?></a>
  52. </div>
  53. </body>
  54. </html>