xref: /template/retro/main.php (revision 94d4f70f671837aff2653bd6db1af72f31a0bc94)
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    <meta name="viewport" content="width=device-width,initial-scale=1" />
22    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
23    <?php _tpl_include('meta.html') ?>
24</head>
25
26<body>
27    <?php /* with these Conditional Comments you can better address IE issues in CSS files,
28             precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?>
29    <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
30
31    <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
32         see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
33    <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
34    <div id="dokuwiki__site"><div class="dokuwiki site mode_<?php echo $ACT ?>">
35        <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
36        <?php _tpl_include('header.html') ?>
37
38        <!-- ********** HEADER ********** -->
39        <div id="dokuwiki__header"><div class="pad">
40
41            <div class="headings">
42                <h1><?php tpl_link(wl(),$conf['title'],'id="dokuwiki__top" accesskey="h" title="[H]"') ?></h1>
43                <?php /* how to insert logo instead (if no CSS image replacement technique is used):
44                        upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
45                        tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
46                <?php if (tpl_getConf('tagline')): ?>
47                    <p class="claim"><?php echo tpl_getConf('tagline') ?></p>
48                <?php endif ?>
49
50                <ul class="a11y">
51                    <li><a href="#dokuwiki__content"><?php echo tpl_getLang('skip_to_content') ?></a></li>
52                </ul>
53                <div class="clearer"></div>
54            </div>
55
56            <div class="tools">
57                <!-- USER TOOLS -->
58                <?php if ($conf['useacl'] && $showTools): ?>
59                    <div id="dokuwiki__usertools">
60                        <h3 class="a11y"><?php echo tpl_getLang('user_tools') ?></h3>
61                        <ul>
62                            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
63                                     e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
64                                if ($_SERVER['REMOTE_USER']) {
65                                    echo '<li class="user">';
66                                    tpl_userinfo(); /* 'Logged in as ...' */
67                                    echo '</li>';
68                                }
69                                tpl_action('admin', 1, 'li');
70                                _tpl_action('userpage', 1, 'li');
71                                tpl_action('profile', 1, 'li');
72                                _tpl_action('register', 1, 'li'); /* DW versions > 2011-02-20 can use the core function tpl_action('register', 1, 'li') */
73                                tpl_action('login', 1, 'li');
74                            ?>
75                        </ul>
76                    </div>
77                <?php endif ?>
78
79                <!-- SITE TOOLS -->
80                <div id="dokuwiki__sitetools">
81                    <h3 class="a11y"><?php echo tpl_getLang('site_tools') ?></h3>
82                    <?php tpl_searchform() ?>
83                    <ul>
84                        <?php
85                            tpl_action('recent', 1, 'li');
86                            tpl_action('media', 1, 'li');
87                            tpl_action('index', 1, 'li');
88                        ?>
89                    </ul>
90                </div>
91
92            </div>
93            <div class="clearer"></div>
94
95            <!-- BREADCRUMBS -->
96            <?php if($conf['breadcrumbs']){ ?>
97                <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
98            <?php } ?>
99            <?php if($conf['youarehere']){ ?>
100                <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
101            <?php } ?>
102
103            <div class="clearer"></div>
104            <hr class="a11y" />
105        </div></div><!-- /header -->
106
107
108        <div class="wrapper">
109
110            <!-- ********** ASIDE ********** -->
111            <div id="dokuwiki__aside"><div class="pad include">
112                <?php tpl_include_page(tpl_getConf('sidebarID')) /* includes the given wiki page */ ?>
113                <div class="clearer"></div>
114            </div></div><!-- /aside -->
115
116            <!-- ********** CONTENT ********** -->
117            <div id="dokuwiki__content"><div class="pad">
118                <?php tpl_flush() /* flush the output buffer */ ?>
119                <?php _tpl_include('pageheader.html') ?>
120
121                <div class="page">
122                    <!-- wikipage start -->
123                    <?php tpl_content() /* the main content */ ?>
124                    <!-- wikipage stop -->
125                    <div class="clearer"></div>
126                </div>
127
128                <?php tpl_flush() ?>
129                <?php _tpl_include('pagefooter.html') ?>
130            </div></div><!-- /content -->
131
132            <div class="clearer"></div>
133            <hr class="a11y" />
134
135            <!-- PAGE ACTIONS -->
136            <?php if ($showTools): ?>
137                <div id="dokuwiki__pagetools">
138                    <h3 class="a11y"><?php echo tpl_getLang('page_tools') ?></h3>
139                    <ul>
140                        <?php
141                            tpl_action('edit', 1, 'li');
142                            _tpl_action('discussion', 1, 'li');
143                            tpl_action('history', 1, 'li');
144                            tpl_action('backlink', 1, 'li');
145                            tpl_action('subscribe', 1, 'li');
146                            tpl_action('revert', 1, 'li');
147                            tpl_action('top', 1, 'li');
148                        ?>
149                    </ul>
150                </div>
151            <?php endif; ?>
152        </div><!-- /wrapper -->
153
154        <!-- ********** FOOTER ********** -->
155        <div id="dokuwiki__footer"><div class="pad">
156            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
157            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
158        </div></div><!-- /footer -->
159
160        <?php _tpl_include('footer.html') ?>
161    </div></div><!-- /site -->
162
163    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
164    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
165</body>
166</html>
167