xref: /template/retro/main.php (revision f4d27201048c83c893d9476dd80a89bbce29a1c6)
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 ml('favicon.ico') ?>" />
22    <?php @include(dirname(__FILE__).'/meta.html') /* include hook */ ?>
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    <?php @include(dirname(__FILE__).'/topheader.html') /* include hook */ ?>
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
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                <!--<h2><?php if (!$conf['useheading']) echo '[[' ?><?php tpl_pagetitle($ID) ?><?php if (!$conf['useheading']) echo ']]' ?></h2>-->
49
50                <?php /* TODO: skip links */ ?>
51                <ul class="a11y">
52                    <li><a href="#">skip to nav</a></li>
53                    <li><a href="#">skip to controls</a></li>
54                    <li><a href="#">skip to content</a></li>
55                </ul>
56                <div class="clearer"></div>
57            </div>
58
59            <div class="tools">
60                <!-- AUTH ACTIONS -->
61                <?php if ($conf['useacl'] && $showTools): ?>
62                    <div id="dokuwiki__usertools">
63                        <h3 class="a11y">User Tools</h3> <?php /*TODO: localize*/ ?>
64                        <ul>
65                            <?php /* the optional second parameter of tpl_action() switches between a link and a button,
66                                     e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
67                                 tpl_action('admin', 1, 'li');
68                                 tpl_action('profile', 1, 'li', 0, '', '', $INFO['userinfo']['name'].' ('.$_SERVER['REMOTE_USER'].')');
69                                     // this partly replaces tpl_userinfo()
70                                 tpl_action('login', 1, 'li');
71                            ?>
72                        </ul>
73                        <!-- <div class="user"><?php tpl_userinfo() /* 'Logged in as ...' */ ?></div> -->
74                    </div>
75                <?php endif ?>
76
77                <!-- SITE ACTIONS -->
78                <div id="dokuwiki__sitetools">
79                    <h3 class="a11y">Site Tools</h3> <?php /*TODO: localize*/ ?>
80                    <?php tpl_searchform(); ?>
81                    <ul>
82                        <?php
83                             tpl_action('recent', 1, 'li');
84                             tpl_action('index', 1, 'li');
85                        ?>
86                    </ul>
87                </div>
88
89            </div>
90            <div class="clearer"></div>
91
92            <!-- BREADCRUMBS -->
93            <?php if($conf['breadcrumbs']){ ?>
94              <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
95            <?php } ?>
96            <?php if($conf['youarehere']){ ?>
97              <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
98            <?php } ?>
99
100            <?php @include(dirname(__FILE__).'/header.html') /* include hook */ ?>
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                <!-- PAGE ACTIONS -->
117                <?php if ($showTools): ?>
118                    <div id="dokuwiki__pagetools">
119                        <h3 class="a11y">Page Tools</h3> <?php /*TODO: localize*/ ?>
120                        <ul>
121                            <?php
122                                tpl_action('edit', 1, 'li');
123                                if (tpl_getConf('discussionNS')) {
124                                    echo '<li>';
125                                    _tpl_discussion(tpl_getConf('discussionNS').':',1);
126                                    echo '</li>';
127                                }
128                                tpl_action('history', 1, 'li');
129                                tpl_action('backlink', 1, 'li');
130                                tpl_action('subscribe', 1, 'li');
131                            ?>
132                        </ul>
133                    </div>
134                <?php endif; ?>
135
136                <?php tpl_flush() /* flush the output buffer */ ?>
137                <?php @include(dirname(__FILE__).'/pageheader.html') /* include hook */ ?>
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 @include(dirname(__FILE__).'/pagefooter.html') /* include hook */ ?>
148            </div></div><!-- /content -->
149
150            <div class="clearer"></div>
151            <hr class="a11y" />
152        </div><!-- /wrapper -->
153
154
155        <!-- ********** FOOTER ********** -->
156        <div id="dokuwiki__footer"><div class="pad">
157            <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
158            <?php tpl_action('top',1) /* the second parameter switches between a link and a button */ ?>
159            <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
160        </div></div><!-- /footer -->
161
162
163    </div></div><!-- /site -->
164
165    <?php //@include(dirname(__FILE__).'/footer.html') /* include hook */ ?>
166    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
167    <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
168</body>
169</html>
170