1<?php
2/**
3 * DokuWiki Starter Template
4 *
5 * @link   http://dokuwiki.org/template:starter
6 * @author Anika Henke <anika@selfthinker.org>
7 */
8
9if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
10@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
11
12$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] );
13?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
14  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
15<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
16  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
17<head>
18    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
19    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
20    <?php tpl_metaheaders() ?>
21    <link rel="shortcut icon" href="<?php echo _tpl_getFavicon() /* DW versions > 2010-11-12 can use the core function tpl_getFavicon() */ ?>" />
22    <?php _tpl_include('meta.html') ?>
23</head>
24
25<body>
26    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
27             precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?>
28    <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
29
30    <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
31         see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
32    <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
33    <div id="dokuwiki__site"><div class="dokuwiki site mode_<?php echo $ACT ?>">
34        <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
35        <?php _tpl_include('header.html') ?>
36
37        <!-- ********** HEADER ********** -->
38        <div id="dokuwiki__header"><div class="pad">
39
40            <div class="headings">
41                <h1><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" accesskey="h" title="[H]"') ?></h1>
42                <?php /* how to insert logo instead (if no CSS image replacement technique is used):
43                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
44                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
45                <?php if (tpl_getConf('tagline')): ?>
46                    <p class="claim"><?php echo tpl_getConf('tagline') ?></p>
47                <?php endif ?>
48
49                <ul class="a11y">
50                    <li><a href="#dokuwiki__content"><?php echo tpl_getLang('skip_to_content') ?></a></li>
51                </ul>
52                <div class="clearer"></div>
53            </div>
54
55            <div class="tools">
56                <!-- USER TOOLS -->
57                <?php if ($conf['useacl'] && $showTools): ?>
58                    <div id="dokuwiki__usertools">
59                        <h3 class="a11y"><?php echo tpl_getLang('user_tools') ?></h3>
60                        <ul>
61                            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
62                                     e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
63                                if ($_SERVER['REMOTE_USER']) {
64                                    echo '<li class="user">';
65                                    tpl_userinfo(); /* 'Logged in as ...' */
66                                    echo '</li>';
67                                }
68                                tpl_action('admin', 1, 'li');
69                                _tpl_action('userpage', 1, 'li');
70                                tpl_action('profile', 1, 'li');
71                                _tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */
72                                tpl_action('login', 1, 'li');
73                            ?>
74                        </ul>
75                    </div>
76                <?php endif ?>
77
78                <!-- SITE TOOLS -->
79                <div id="dokuwiki__sitetools">
80                    <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3>
81                    <?php tpl_searchform() ?>
82                </div>
83
84            </div>
85            <div class="clearer"></div>
86
87            <!-- BREADCRUMBS -->
88
89            <div class="clearer"></div>
90            <hr class="a11y" />
91        </div></div><!-- /header -->
92
93
94        <div class="wrapper">
95
96            <!-- ********** ASIDE ********** -->
97            <div id="dokuwiki__aside"><div class="pad include">
98                <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
99                <div class="clearer"></div>
100            </div></div><!-- /aside -->
101
102            <!-- ********** CONTENT ********** -->
103            <div id="dokuwiki__content"><div class="pad">
104                <?php tpl_flush() /* flush the output buffer */ ?>
105                <?php _tpl_include('pageheader.html') ?>
106
107                <div class="page">
108                    <!-- wikipage start -->
109                    <?php tpl_content() /* the main content */ ?>
110                    <!-- wikipage stop -->
111                    <div class="clearer"></div>
112                </div>
113
114                <?php tpl_flush() ?>
115                <?php _tpl_include('pagefooter.html') ?>
116            </div></div><!-- /content -->
117
118            <div class="clearer"></div>
119            <hr class="a11y" />
120
121            <!-- PAGE ACTIONS -->
122            <?php if ($showTools): ?>
123                <div id="dokuwiki__pagetools">
124                    <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3>
125                    <ul>
126                        <?php
127                            tpl_action('edit', 1, 'li');
128                            _tpl_action('discussion', 1, 'li');
129                            tpl_action('history', 1, 'li');
130                            tpl_action('backlink', 1, 'li');
131                            tpl_action('subscribe', 1, 'li');
132                            tpl_action('revert', 1, 'li');
133                            tpl_action('top', 1, 'li');
134                            tpl_action('recent', 1, 'li');
135                            tpl_action('index', 1, 'li');
136                        ?>
137                    </ul>
138                </div>
139            <?php endif; ?>
140        </div><!-- /wrapper -->
141
142        <!-- ********** FOOTER ********** -->
143            <?php if($conf['breadcrumbs']){ ?>
144                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
145            <?php } ?>
146            <?php if($conf['youarehere']){ ?>
147                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
148            <?php } ?>
149
150<br>
151
152        <div id="dokuwiki__footer"><div class="pad">
153            <a href="http://www.hazmeunweb.com/" title="Dokuwiki Template designed by HazmeUnWeb.com"><img src="lib/tpl/writers/images/small-link-button.png" width="80" height="15" alt="Dokuwiki Template designed by HazmeUnWeb.com" /></a>
154            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
155        </div></div><!-- /footer -->
156
157        <?php _tpl_include('footer.html') ?>
158    </div></div><!-- /site -->
159
160    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
161    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
162</body>
163</html>
164