Emulating position:fixed for the main menu
[kohana-userguide.git] / views / userguide / template.php
blob2ab8c24a9ae246b27a43897ee8697e40f485579c
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $l = substr(I18n::$lang, 0, 2) ?>" lang="<?php echo $l ?>">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6 <title><?php echo $title ?> | Kohana <?php echo __('User Guide'); ?></title>
8 <?php foreach ($styles as $style => $media) echo HTML::style($style, array('media' => $media), TRUE), "\n" ?>
10 <?php foreach ($scripts as $script) echo HTML::script($script, NULL, TRUE), "\n" ?>
12 <!--[if lt IE 9]>
13 <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
14 <![endif]-->
15 </head>
16 <body>
18 <div id="header">
19 <div class="container">
20 <a href="<?php echo Route::url('docs/guide') ?>" id="logo">
21 <img src="<?php echo Route::url('docs/media', array('file' => 'img/kohana.png')) ?>" />
22 </a>
23 <div id="menu">
24 <ul>
25 <li class="guide first">
26 <a href="<?php echo Route::url('docs/guide') ?>"><?php echo __('User Guide') ?></a>
27 </li>
28 <li class="api">
29 <a href="<?php echo Route::url('docs/api') ?>"><?php echo __('API Browser') ?></a>
30 </li>
31 </ul>
32 </div>
33 </div>
34 </div>
36 <div id="content">
37 <div class="wrapper">
38 <div class="container">
39 <div class="span-22 prefix-1 suffix-1">
40 <ul id="breadcrumb">
41 <?php foreach ($breadcrumb as $link => $title): ?>
42 <?php if (is_string($link)): ?>
43 <li><?php echo HTML::anchor($link, $title) ?></li>
44 <?php else: ?>
45 <li class="last"><?php echo $title ?></li>
46 <?php endif ?>
47 <?php endforeach ?>
48 </ul>
49 </div>
50 <div class="span-6 prefix-1">
51 <div id="topics">
52 <?php echo $menu ?>
53 </div>
54 </div>
55 <div id="body" class="span-16 suffix-1 last">
56 <?php echo $content ?>
58 <?php if (Kohana::$environment === Kohana::PRODUCTION AND empty($hide_disqus)): ?>
59 <div id="disqus_thread" class="clear"></div>
60 <script type="text/javascript">
61 var disqus_identifier = '<?php echo HTML::chars(Request::instance()->uri) ?>';
62 (function() {
63 var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
64 dsq.src = 'http://kohana.disqus.com/embed.js';
65 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
66 })();
67 </script>
68 <noscript><?php echo __('Please enable JavaScript to view the :anchor_open comments powered by Disqus.:anchor_close', array(':anchor_open' => '<a href="http://disqus.com/?ref_noscript=kohana">', ':anchor_close' => '</a>')); ?></noscript>
69 <a href="http://disqus.com" class="dsq-brlink">Documentation comments powered by <span class="logo-disqus">Disqus</span></a>
70 <?php endif ?>
71 </div>
72 </div>
73 </div>
74 </div>
76 <div id="footer">
77 <div class="container">
78 <div class="span-12">
79 <?php if (isset($copyright)): ?>
80 <p><?php echo $copyright ?></p>
81 <?php else: ?>
82 &nbsp;
83 <?php endif ?>
84 </div>
85 <div class="span-12 last right">
86 <p>Powered by <?php echo HTML::anchor('http://kohanaframework.org/', 'Kohana') ?> v<?php echo Kohana::VERSION ?></p>
87 </div>
88 </div>
89 </div>
91 <?php if (Kohana::$environment === Kohana::PRODUCTION): ?>
92 <script type="text/javascript">
93 //<![CDATA[
94 (function() {
95 var links = document.getElementsByTagName('a');
96 var query = '?';
97 for(var i = 0; i < links.length; i++) {
98 if(links[i].href.indexOf('#disqus_thread') >= 0) {
99 query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
102 document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/kohana/get_num_replies.js' + query + '"></' + 'script>');
103 })();
104 //]]>
105 </script>
106 <?php endif ?>
107 </body>
108 </html>