1<?php
2/**
3 * DokuWiki Default Template 2012
4 *
5 * @link     http://dokuwiki.org/template
6 * @author   Anika Henke <anika@selfthinker.org>
7 * @author   Clarence Lee <clarencedglee@gmail.com>
8 * @license  GPL 2 (http://www.gnu.org/licenses/gpl.html)
9 */
10
11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
12header('X-UA-Compatible: IE=edge,chrome=1');
13
14$hasSidebar = page_findnearest($conf['sidebar']);
15$showSidebar = $hasSidebar && ($ACT=='show');
16?><!DOCTYPE html>
17<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
18<head>
19    <meta charset="utf-8" />
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    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
30    <div id="dokuwiki__site"><div id="dokuwiki__top"
31        class="dokuwiki site mode_<?php echo $ACT ?> <?php echo ($showSidebar) ? 'showSidebar' : '';
32        ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
33
34        <?php include('tpl_header.php') ?>
35
36        <div class="wrapper group">
37
38            <?php if($showSidebar): ?>
39                <!-- ********** ASIDE ********** -->
40                <div id="dokuwiki__aside"><div class="pad include group">
41                    <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
42                    <div class="content">
43                        <?php tpl_flush() ?>
44                        <?php tpl_includeFile('sidebarheader.html') ?>
45                        <?php tpl_include_page($conf['sidebar'], 1, 1) ?>
46                        <?php tpl_includeFile('sidebarfooter.html') ?>
47                    </div>
48                </div></div><!-- /aside -->
49            <?php endif; ?>
50
51            <!-- ********** CONTENT ********** -->
52            <div id="dokuwiki__content"><div class="pad group">
53
54                <div class="pageId"><span><?php echo hsc($ID) ?></span></div>
55
56                <div class="page group">
57                    <?php tpl_flush() ?>
58                    <?php tpl_includeFile('pageheader.html') ?>
59                    <!-- wikipage start -->
60                    <?php tpl_content() ?>
61                    <!-- wikipage stop -->
62                    <?php tpl_includeFile('pagefooter.html') ?>
63                </div>
64
65                <div class="docInfo"><?php tpl_pageinfo() ?></div>
66
67                <?php tpl_flush() ?>
68            </div></div><!-- /content -->
69
70            <hr class="a11y" />
71
72            <!-- PAGE ACTIONS -->
73            <div id="dokuwiki__pagetools">
74                <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
75                <div class="tools">
76                    <ul>
77                        <?php
78                            tpl_action('edit',      1, 'li', 0, '<span>', '</span>');
79                            tpl_action('revert',    1, 'li', 0, '<span>', '</span>');
80                            tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
81                            tpl_action('backlink',  1, 'li', 0, '<span>', '</span>');
82                            tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
83                            tpl_action('top',       1, 'li', 0, '<span>', '</span>');
84                        ?>
85                    </ul>
86                </div>
87            </div>
88        </div><!-- /wrapper -->
89
90        <?php include('tpl_footer.php') ?>
91    </div></div><!-- /site -->
92
93    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
94    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
95    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
96</body>
97</html>
98