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