xref: /template/retro/main.php (revision 49dd4a833a88fe4b5045b1081ffb78369be2ff06)
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');
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                    <ul>
83                        <?php
84                            tpl_action('recent', 1, 'li');
85                            tpl_action('index', 1, 'li');
86                        ?>
87                    </ul>
88                </div>
89
90            </div>
91            <div class="clearer"></div>
92
93            <!-- BREADCRUMBS -->
94            <?php if($conf['breadcrumbs']){ ?>
95              <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
96            <?php } ?>
97            <?php if($conf['youarehere']){ ?>
98              <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
99            <?php } ?>
100
101            <div class="clearer"></div>
102            <hr class="a11y" />
103        </div></div><!-- /header -->
104
105
106        <div class="wrapper">
107
108            <!-- ********** ASIDE ********** -->
109            <div id="dokuwiki__aside"><div class="pad include">
110                <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
111                <div class="clearer"></div>
112            </div></div><!-- /aside -->
113
114            <!-- ********** CONTENT ********** -->
115            <div id="dokuwiki__content"><div class="pad">
116                <?php tpl_flush() /* flush the output buffer */ ?>
117                <?php _tpl_include('pageheader.html') ?>
118
119                <div class="page">
120                    <!-- wikipage start -->
121                    <?php tpl_content() /* the main content */ ?>
122                    <!-- wikipage stop -->
123                    <div class="clearer"></div>
124                </div>
125
126                <?php tpl_flush() ?>
127                <?php _tpl_include('pagefooter.html') ?>
128            </div></div><!-- /content -->
129
130            <div class="clearer"></div>
131            <hr class="a11y" />
132
133            <!-- PAGE ACTIONS -->
134            <?php if ($showTools): ?>
135                <div id="dokuwiki__pagetools">
136                    <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3>
137                    <ul>
138                        <?php
139                            tpl_action('edit', 1, 'li');
140                            _tpl_action('discussion', 1, 'li');
141                            tpl_action('history', 1, 'li');
142                            tpl_action('backlink', 1, 'li');
143                            tpl_action('subscribe', 1, 'li');
144                            tpl_action('revert', 1, 'li');
145                            tpl_action('top', 1, 'li');
146                        ?>
147                    </ul>
148                </div>
149            <?php endif; ?>
150        </div><!-- /wrapper -->
151
152        <!-- ********** FOOTER ********** -->
153        <div id="dokuwiki__footer"><div class="pad">
154            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
155            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
156        </div></div><!-- /footer -->
157
158        <?php _tpl_include('footer.html') ?>
159    </div></div><!-- /site -->
160
161    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
162    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
163</body>
164</html>
165