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 ?>">
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" ?
>
13 <script src
="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script
>
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')) ?>" />
25 <li
class="guide first">
26 <a href
="<?php echo Route::url('docs/guide') ?>"><?php
echo __('User Guide') ?
></a
>
29 <a href
="<?php echo Route::url('docs/api') ?>"><?php
echo __('API Browser') ?
></a
>
38 <div
class="container">
39 <div
class="span-22 prefix-1 suffix-1">
41 <?php
foreach ($breadcrumb as $link => $title): ?
>
42 <?php
if (is_string($link)): ?
>
43 <li
><?php
echo HTML
::anchor($link, $title) ?
></li
>
45 <li
class="last"><?php
echo $title ?
></li
>
50 <div
class="span-6 prefix-1">
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) ?>';
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
);
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
>
77 <div
class="container">
79 <?php
if (isset($copyright)): ?
>
80 <p
><?php
echo $copyright ?
></p
>
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
>
91 <?php
if (Kohana
::$environment === Kohana
::PRODUCTION
): ?
>
92 <script type
="text/javascript">
95 var links
= document
.getElementsByTagName('a');
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>');