1<?php
2/**
3 * DokuWiki Taratasy Template
4 *
5 * @link   http://dokuwiki.org/template:taratasy
6 * @author Symon Bent <hendrybadao@gmail.com>
7 *
8 * Based on Starter Template by:
9 *
10 * @link     http://dokuwiki.org/template:starter
11 * @author   Anika Henke <anika@selfthinker.org>
12 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
13 */
14
15if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
16$path = dirname(__FILE__);
17@require_once($path . '/tpl_functions.php'); /* include hook for template functions */
18
19$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] );
20?><!DOCTYPE html>
21<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
22  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
23<head>
24    <meta charset="UTF-8" />
25    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
26    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
27    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
28    <?php tpl_metaheaders() ?>
29
30    <meta name="viewport" content="width=device-width,initial-scale=1" />
31    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
32    <?php tpl_includeFile('meta.html') ?>
33
34    <!-- load any dynamic styles needed for this namespace only, used to set site/sidebar widths via config setting -->
35    <?php _tpl_ns_styles(); ?>
36</head>
37
38<body>
39    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
40             precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?>
41    <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
42
43    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
44    <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
45         see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
46    <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
47    <div id="dokuwiki__site"><div id="dokuwiki__top"
48        class="dokuwiki site mode_<?php echo $ACT ?>">
49        <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
50        <?php tpl_includeFile('header.html') ?>
51
52        <!-- ********** HEADER ********** -->
53        <div id="dokuwiki__header"><div class="pad">
54
55            <div class="row">
56                <div class="headings">
57                    <h1><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" accesskey="h" title="[H]"') ?></h1>
58                    <?php /* tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
59
60                    <ul class="a11y">
61                        <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
62                    </ul>
63                    <div class="clearer"></div>
64                </div>
65
66                <?php tpl_searchform() ?>
67
68
69                <nav class="tools">
70                    <ul>
71                        <!-- SITE TOOLS -->
72                        <li id="dokuwiki__sitetools">
73                            <!--
74                            <a href="#"><?php echo $lang['site_tools']; ?></a>
75                            -->
76                            <a href="#"><img src="<?php echo tpl_basedir();?>/images/menu.png"></a>
77                            <ul>
78                                <?php tpl_action('recent', 1, 'li'); ?>
79                                <?php tpl_action('media', 1, 'li');  ?>
80                                <?php tpl_action('index', 1, 'li');  ?>
81                                <?php tpl_action('login', 1, 'li');  ?>
82                            </ul>
83                        </li>
84
85                        <!-- USER TOOLS -->
86                        <?php if ($conf['useacl'] && $showTools): ?>
87                            <li id="dokuwiki__usertools">
88                                <!--
89                                <a href="#"><?php echo $lang['user_tools']; ?></a>
90                                -->
91                                <a href="#"><img src="<?php echo tpl_basedir();?>/images/user.png"></a>
92                                <ul>
93                                    <?php tpl_action('profile', 1, 'li');   ?>
94                                    <?php _tpl_action('userpage', 1, 'li'); ?>
95                                    <?php _tpl_action('register', 1, 'li'); ?>
96                                    <?php tpl_action('admin', 1, 'li');     ?>
97                                </ul>
98                            </li>
99                        <?php endif; ?>
100
101                        <?php if ($_SERVER['REMOTE_USER']): ?>
102                            <li>
103                                <span class="user"><?php _tpl_userinfo(); ?></span>
104                            </li>
105                        <?php endif; ?>
106                    </ul>
107                </nav>
108            </div>
109            <div class="clearer"></div>
110
111            <!-- BREADCRUMBS -->
112            <?php if($conf['breadcrumbs']){ ?>
113                <div class="breadcrumbs"><?php tpl_breadcrumbs('•') ?></div>
114            <?php } ?>
115            <?php if($conf['youarehere']){ ?>
116                <div class="breadcrumbs"><?php tpl_youarehere('•') ?></div>
117            <?php } ?>
118
119            <div class="clearer"></div>
120            <hr class="a11y" />
121        </div></div><!-- /header -->
122
123
124        <div class="wrapper">
125
126            <!-- ********** ASIDE ********** -->
127            <div id="dokuwiki__aside"><div class="pad include">
128                <?php tpl_includeFile('sidebarheader.html') ?>
129                <?php tpl_include_page(_tpl_sidebar()) /* SB: includes the given wiki page */ ?>
130                <?php tpl_includeFile('sidebarfooter.html') ?>
131                <div class="clearer"></div>
132            </div></div><!-- /aside -->
133
134            <!-- ********** CONTENT ********** -->
135            <div id="dokuwiki__content"><div class="pad">
136                <?php tpl_flush() /* flush the output buffer */ ?>
137                <?php tpl_includeFile('pageheader.html') ?>
138
139                <div class="page">
140                    <!-- wikipage start -->
141                    <?php tpl_content() /* the main content */ ?>
142                    <!-- wikipage stop -->
143                    <div class="clearer"></div>
144                </div>
145
146                <?php tpl_flush() ?>
147                <?php tpl_includeFile('pagefooter.html') ?>
148            </div></div><!-- /content -->
149
150            <div class="clearer"></div>
151            <hr class="a11y" />
152
153            <!-- PAGE ACTIONS -->
154            <?php if ($showTools): ?>
155                <div id="dokuwiki__pagetools">
156                    <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
157                    <ul>
158                        <?php
159                            tpl_action('edit', 1, 'li');
160                            _tpl_action('discussion', 1, 'li');
161                            tpl_action('revisions', 1, 'li');
162                            tpl_action('backlink', 1, 'li');
163                            tpl_action('subscribe', 1, 'li');
164                            tpl_action('revert', 1, 'li');
165                            tpl_action('top', 1, 'li');
166                        ?>
167                    </ul>
168                </div>
169            <?php endif; ?>
170        </div><!-- /wrapper -->
171
172        <!-- ********** FOOTER ********** -->
173        <div id="dokuwiki__footer"><div class="pad">
174            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
175            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
176        </div></div><!-- /footer -->
177
178        <?php tpl_includeFile('footer.html') ?>
179    </div></div><!-- /site -->
180
181    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
182    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
183</body>
184</html>
185