1 <?php
2 /**
3  * DokuWiki ACH Template
4  *
5  * @link     http://dokuwiki.org/template:ach
6  * @author   Anika Henke <anika@selfthinker.org>
7  * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
8  */
9 
10 if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
11 @require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
12 
13 $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER['REMOTE_USER'] );
14 ?><!DOCTYPE html>
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'] ?>" class="no-js">
17 <head>
18     <meta charset="UTF-8" />
19     <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
20     <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
21     <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
22     <?php tpl_metaheaders() ?>
23     <meta name="viewport" content="width=device-width,initial-scale=1" />
24     <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
25     <?php tpl_includeFile('meta.html') ?>
26 </head>
27 
28 <body>
29     <?php /* with these Conditional Comments you can better address IE issues in CSS files,
30              precede CSS rules by #IE6 for IE6, #IE7 for IE7 and #IE8 for IE8 (div closes at the bottom) */ ?>
31     <!--[if IE 6 ]><div id="IE6"><![endif]--><!--[if IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
32 
33     <?php /* classes mode_<action> are added to make it possible to e.g. style a page differently if it's in edit mode,
34          see http://www.dokuwiki.org/devel:action_modes for a list of action modes */ ?>
35     <?php /* .dokuwiki should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
36     <div id="dokuwiki__site"><div id="dokuwiki__top" class="dokuwiki site mode_<?php echo $ACT ?>">
37         <?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
38         <?php tpl_includeFile('header.html') ?>
39 
40         <!-- ********** HEADER ********** -->
41         <div id="dokuwiki__header"><div class="pad">
42 
43             <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[ALT+H]"')?></h1>
44             <h2>[[<?php echo $ID?>]]</h2>
45 
46             <!-- BREADCRUMBS -->
47             <?php if($conf['breadcrumbs']){ ?>
48                 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
49             <?php } ?>
50             <?php if($conf['youarehere']){ ?>
51                 <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
52             <?php } ?>
53 
54             <ul class="a11y skip">
55                 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
56             </ul>
57             <div class="clearer"></div>
58             <hr class="a11y" />
59         </div></div><!-- /header -->
60 
61         <div class="wrapper">
62 
63             <!-- PAGE ACTIONS -->
64             <?php if ($showTools): ?>
65                 <div id="dokuwiki__pagetools">
66                     <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3>
67                     <ul>
68                         <?php /* the optional second parameter of tpl_action() switches between a link and a button,
69                                  e.g. a button inside a <li> would be: tpl_action('edit',0,'li') */
70                             tpl_action('edit', 0, 'li');
71                             _tpl_action('discussion', 0, 'li');
72                             tpl_action('revisions', 0, 'li');
73                             tpl_action('backlink', 0, 'li');
74                             tpl_action('subscribe', 0, 'li');
75                             tpl_action('revert', 0, 'li');
76                         ?>
77                     </ul>
78                 </div>
79                 <div class="clearer"></div>
80             <?php endif; ?>
81 
82             <!-- ********** ASIDE ********** -->
83             <div id="dokuwiki__aside"><div class="pad include">
84 
85                 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
86 
87                 <!-- SITE TOOLS -->
88                 <div id="dokuwiki__sitetools">
89                     <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3>
90                     <ul>
91                         <?php
92                             tpl_action('recent', 1, 'li');
93                             tpl_action('media', 1, 'li');
94                             tpl_action('index', 1, 'li');
95                         ?>
96                     </ul>
97                     <?php tpl_searchform() ?>
98                 </div>
99 
100                 <!-- USER TOOLS -->
101                 <?php if ($conf['useacl'] && $showTools): ?>
102                     <div id="dokuwiki__usertools">
103                         <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3>
104                         <?php if($_SERVER['REMOTE_USER']){ ?>
105                             <ul>
106                                 <?php
107                                     tpl_action('login', 1, 'li');
108                                     tpl_action('register', 1, 'li');
109                                     tpl_action('profile', 1, 'li');
110                                     tpl_action('admin', 1, 'li');
111                                     _tpl_action('userpage', 1, 'li');
112                                 ?>
113                             </ul>
114                             <div class="user"><?php tpl_userinfo() /* 'Logged in as ...' */ ?></div>
115                         <?php }else{
116                             html_login();
117                         }?>
118                     </div>
119                 <?php endif ?>
120 
121                 <div class="clearer"></div>
122             </div></div><!-- /aside -->
123 
124             <!-- ********** CONTENT ********** -->
125             <div id="dokuwiki__content"><div class="pad">
126                 <?php tpl_flush() /* flush the output buffer */ ?>
127                 <?php tpl_includeFile('pageheader.html') ?>
128 
129                 <div class="page">
130                     <!-- wikipage start -->
131                     <?php tpl_content() /* the main content */ ?>
132                     <!-- wikipage stop -->
133                     <div class="clearer"></div>
134                 </div>
135 
136                 <?php tpl_flush() ?>
137                 <?php tpl_includeFile('pagefooter.html') ?>
138             </div></div><!-- /content -->
139 
140             <div class="clearer"></div>
141             <hr class="a11y" />
142 
143         </div><!-- /wrapper -->
144 
145         <!-- ********** FOOTER ********** -->
146         <div id="dokuwiki__footer"><div class="pad">
147             <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
148             <?php tpl_action('top',1) ?>
149             <div class="clearer"></div>
150         </div></div><!-- /footer -->
151 
152         <div class="license_footer">
153             <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
154         </div>
155         <?php tpl_includeFile('footer.html') ?>
156     </div></div><!-- /site -->
157 
158     <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
159     <!--[if ( IE 6 | IE 7 | IE 8 ) ]></div><![endif]-->
160 </body>
161 </html>
162