xref: /dokuwiki/lib/tpl/dokuwiki/main.php (revision 389762f8976d87198af8a6aa178bc7026dde98f0)
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 */
12
13$showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show');
14?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
15  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
17  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
18<head>
19    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
20    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><![endif]-->
21    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
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) ? '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                    <?php tpl_flush() ?>
41                    <?php tpl_includeFile('sidebarheader.html') ?>
42                    <?php tpl_include_page($conf['sidebar']) ?>
43                    <?php tpl_includeFile('sidebarfooter.html') ?>
44                </div></div><!-- /aside -->
45            <?php endif; ?>
46
47            <!-- ********** CONTENT ********** -->
48            <div id="dokuwiki__content"><div class="pad group">
49
50                <div class="pageId"><span><?php echo hsc($ID) ?></span></div>
51
52                <div class="page group">
53                    <?php tpl_flush() ?>
54                    <?php tpl_includeFile('pageheader.html') ?>
55                    <!-- wikipage start -->
56                    <?php tpl_content() ?>
57                    <!-- wikipage stop -->
58                    <?php tpl_includeFile('pagefooter.html') ?>
59                </div>
60
61                <div class="docInfo"><?php tpl_pageinfo() ?></div>
62
63                <?php tpl_flush() ?>
64            </div></div><!-- /content -->
65
66            <hr class="a11y" />
67
68            <!-- PAGE ACTIONS -->
69            <div id="dokuwiki__pagetools">
70                <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
71                <div class="tools">
72                    <ul>
73                        <?php
74                            tpl_action('edit',      1, 'li', 0, '<span>', '</span>');
75                            tpl_action('revert',    1, 'li', 0, '<span>', '</span>');
76                            tpl_action('revisions', 1, 'li', 0, '<span>', '</span>');
77                            tpl_action('backlink',  1, 'li', 0, '<span>', '</span>');
78                            tpl_action('subscribe', 1, 'li', 0, '<span>', '</span>');
79                            tpl_action('top',       1, 'li', 0, '<span>', '</span>');
80                        ?>
81                    </ul>
82                </div>
83            </div>
84        </div><!-- /wrapper -->
85
86        <?php include('tpl_footer.php') ?>
87    </div></div><!-- /site -->
88
89    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
90    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
91</body>
92</html>
93