1<?php
2/**
3 * DokuWiki Clean Template
4 *
5 * @link     FIXME
6 * @author   FIXME
7 * @license  FIXME
8 */
9
10// error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE); ini_set('display_errors', '1');  // Switch on for error reporting
11
12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
13@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
14?>
15<!DOCTYPE html>
16<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
17<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
18<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
19<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
20<!--[if IE 9]>    <html class="no-js ie9" lang="en"> <![endif]-->
21<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
22<!--[if gt IE 9]><!--> <html class="no-js" lang="en" itemscope="" itemtype="http://schema.org/Product"> <!--<![endif]-->
23<html
24    xmlns="http://www.w3.org/1999/xhtml"
25    xml:lang="<?php echo $conf['lang']?>"
26    lang="<?php echo $conf['lang']?>"
27    dir="<?php echo $lang['direction']?>">
28    <head>
29        <title><?php tpl_pagetitle()?> - <?php echo hsc($conf['title'])?></title>
30        <meta charset="utf-8">
31
32        <!-- Use the .htaccess and remove these lines to avoid edge case issues.
33                         More info: h5bp.com/b/378 -->
34        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
35
36        <meta name="description" content="">
37        <meta name="keywords" content="">
38        <meta name="author" content="humans.txt">
39
40        <link rel="shortcut icon" href="favicon.png" type="image/x-icon">
41
42        <!-- Facebook Metadata /-->
43        <meta property="fb:page_id" content="">
44        <meta property="og:image" content="">
45        <meta property="og:description" content="">
46        <meta property="og:title" content="">
47
48        <!-- Google+ Metadata /-->
49        <meta itemprop="name" content="">
50        <meta itemprop="description" content="">
51        <meta itemprop="image" content="">
52
53        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
54
55        <?php tpl_metaheaders()?>
56
57        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/modernizr-2.6.2.min.js"></script>
58    </head>
59    <body>
60        <div class="dokuwiki">
61            <div class="navcontain">
62                <nav class="navbar" gumby-fixed="top" id="wiki__nav">
63                    <a class="toggle" gumby-trigger="#wiki__nav > .row > ul" href="#"><i class="icon-menu"></i></a>
64                    <div class="row">
65                        <h3 class="five columns logo" id="nav__logo">
66                            <a href=<?php echo wl()?>><?php echo hsc($conf['title'])?></a>
67                        </h3>
68                        <ul class="seven columns" id="nav__menu">
69                            <li><a href="#">Wikitools</a>
70                                <div class="dropdown">
71                                    <ul>
72                                        <li><?php tpl_actionlink('recent')?></li>
73                                        <li><?php tpl_actionlink('profile')?></li>
74                                        <li><?php tpl_actionlink('login')?></li>
75                                        <li><?php tpl_actionlink('admin')?></li>
76                                        <li><?php tpl_actionlink('index')?></li>
77                                    </ul>
78                                </div>
79                            </li>
80                            <li><a href="#">Pagetools</a>
81                                <div class="dropdown">
82                                    <ul>
83                                        <li><?php tpl_actionlink('edit')?></li>
84                                        <li><?php tpl_actionlink('history')?></li>
85                                        <li><?php tpl_link(wl($ID,'do=backlink'),"Backlinks")?></li>
86                                        <li><?php tpl_actionlink('subscribe')?></li>
87                                    </ul>
88                                </div>
89                            </li>
90                            <li class="field">
91                                <?php _tpl_draw_searchform()?>
92                            </li>
93                        </ul>
94                    </div>
95                </nav>
96            </div>
97            <div class="row">
98                <?php html_msgarea()?>
99            </div>
100            <div class="row" id="status__bar">
101                <?php if ($conf['breadcrumbs']) { tpl_breadcrumbs(); } ?>
102                <?php if ($conf['youarehere']) { tpl_youarehere(); } ?>
103            </div>
104            <div class="row">
105<?php
106// render the content into buffer for later use
107ob_start();
108tpl_content(false);
109$buffer = ob_get_clean();
110?>
111
112                <div class="three columns" id="dokuwiki__sidebar">
113                        <div class="row" id="toc__container">
114                            <hr>
115                            <h4 class="toggle" gumby-trigger="#dw__toc" style="cursor:pointer" id="toc__header"><?php echo $lang['toc']?>
116                                <i class="icon-right-open"></i>
117                            </h4>
118                            <?php tpl_toc()?>
119                            <hr>
120                        </div>
121                        <div class="row hide-on-phones" gumby-fixed="top" gumby-top="60" gumby-offset="60" style="text-align: center;">
122                                <a href="#" class="skip" gumby-goto="top" gumby-duration="600"><i class="icon icon-up-open-mini"></i><?php echo $lang['btn_top']?><i class="icon icon-up-open-mini"></i></a>
123                        </div>
124                </div>
125                <div class="nine columns" id="dokuwiki__content">
126                    <?php echo $buffer?>
127                    <div class="row" id="page__info">
128                        <?php tpl_userinfo()?><?php tpl_pageinfo()?>
129                    </div>
130                </div>
131            </div>
132            <?php tpl_indexerWebBug(); ?>
133        </div>
134
135        <!-- Grab Google CDN's jQuery, fall back to local if offline -->
136        <!-- 2.0 for modern browsers, 1.10 for .oldie -->
137<script>
138var oldieCheck = Boolean(document.getElementsByTagName('html')[0].className.match(/\soldie\s/g));
139if(!oldieCheck) {
140    document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"><\/script>');
141} else {
142    document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"><\/script>');
143}
144</script>
145<script>
146if(!window.jQuery) {
147    if(!oldieCheck) {
148        document.write('<script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/jquery-2.0.2.min.js"><\/script>');
149    } else {
150        document.write('<script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/jquery-1.10.1.min.js"><\/script>');
151    }
152}
153</script>
154
155        <!--
156        Include gumby.js followed by UI modules followed by gumby.init.js
157        Or concatenate and minify into a single file -->
158        <script gumby-touch="js/libs" src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/gumby.js"></script>
159        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.retina.js"></script>
160        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.fixed.js"></script>
161        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.skiplink.js"></script>
162        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.toggleswitch.js"></script>
163        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.checkbox.js"></script>
164        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.radiobtn.js"></script>
165        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.tabs.js"></script>
166        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/gumby.navbar.js"></script>
167        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/ui/jquery.validation.js"></script>
168        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/libs/gumby.init.js"></script>
169        <script src="<?php echo tpl_basedir()?>js/gumby.min.js"></script>
170
171        <!--
172        Google's recommended deferred loading of JS
173        gumby.min.js contains gumby.js, all UI modules and gumby.init.js
174
175        Note: If you opt to use this method of defered loading,
176        ensure that any javascript essential to the initial
177        display of the page is included separately in a normal
178        script tag.
179
180<script type="text/javascript">
181function downloadJSAtOnload() {
182    var element = document.createElement("script");
183    element.src = "js/libs/gumby.min.js";
184    document.body.appendChild(element);
185        }
186        if (window.addEventListener)
187            window.addEventListener("load", downloadJSAtOnload, false);
188        else if (window.attachEvent)
189            window.attachEvent("onload", downloadJSAtOnload);
190        else window.onload = downloadJSAtOnload;
191        </script> -->
192
193        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/plugins.js"></script>
194        <script src="<?php echo tpl_basedir()?>bower_components/gumby/js/main.js"></script>
195
196        <!-- Change UA-XXXXX-X to be your site's ID -->
197        <!--<script>
198        window._gaq = [['_setAccount','UAXXXXXXXX1'],['_trackPageview'],['_trackPageLoadTime']];
199Modernizr.load({
200    load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
201        });
202        </script>-->
203
204        <!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.
205           chromium.org/developers/how-tos/chrome-frame-getting-started -->
206        <!--[if lt IE 7 ]>
207        <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js"></script>
208        <script>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
209        <![endif]-->
210    </body>
211</html>
212