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
27    <!-- high light of code-->
28    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/tomorrow.min.css">
29    <script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js"></script>
30    <script>
31        hljs.initHighlightingOnLoad();
32        jQuery(document).ready(function() {
33          jQuery('pre.code').each(function(i, block) {
34            hljs.highlightBlock(block);
35          });
36        });
37    </script>
38</head>
39
40<body>
41    <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]-->
42    <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php
43        echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>">
44
45        <?php include('tpl_header.php') ?>
46        <div class="wrapper group">
47
48            <?php if($showSidebar): ?>
49                <!-- ********** ASIDE ********** -->
50                <div id="dokuwiki__aside"><div class="pad aside include group">
51                    <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3>
52                    <div class="content">
53                        <?php tpl_flush() ?>
54                        <?php tpl_includeFile('sidebarheader.html') ?>
55                        <?php tpl_include_page($conf['sidebar'], 1, 1) ?>
56                        <?php tpl_includeFile('sidebarfooter.html') ?>
57                    </div>
58                </div></div><!-- /aside -->
59            <?php endif; ?>
60
61            <!-- ********** CONTENT ********** -->
62            <div id="dokuwiki__content"><div class="pad group">
63
64                <div class="pageId"><span><?php tpl_pagetitle() ?></span></div>
65
66                <div class="page group">
67                    <?php tpl_flush() ?>
68                    <?php tpl_includeFile('pageheader.html') ?>
69                    <!-- wikipage start -->
70                    <?php tpl_content() ?>
71                    <!-- wikipage stop -->
72                    <?php tpl_includeFile('pagefooter.html') ?>
73                </div>
74
75                <div class="docInfo"><?php tpl_pageinfo() ?></div>
76
77                <?php tpl_flush() ?>
78            </div></div><!-- /content -->
79
80            <hr class="a11y" />
81
82            <!-- PAGE ACTIONS -->
83            <div id="dokuwiki__pagetools">
84                <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3>
85                <div class="tools">
86                    <ul>
87                        <?php
88                            $data = array(
89                                'view'  => 'main',
90                                'items' => array(
91                                    'edit'      => tpl_action('edit',      1, 'li', 1, '<span>', '</span>'),
92                                    'revert'    => tpl_action('revert',    1, 'li', 1, '<span>', '</span>'),
93                                    'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'),
94                                    'backlink'  => tpl_action('backlink',  1, 'li', 1, '<span>', '</span>'),
95                                    'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'),
96                                    'top'       => tpl_action('top',       1, 'li', 1, '<span>', '</span>')
97                                )
98                            );
99
100                            // the page tools can be amended through a custom plugin hook
101                            $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data);
102                            if($evt->advise_before()){
103                                foreach($evt->data['items'] as $k => $html) echo $html;
104                            }
105                            $evt->advise_after();
106                            unset($data);
107                            unset($evt);
108                        ?>
109                    </ul>
110                </div>
111            </div>
112        </div><!-- /wrapper -->
113
114        <?php include('tpl_footer.php') ?>
115    </div></div><!-- /site -->
116
117    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
118    <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?>
119    <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]-->
120
121    <!-- head auto fit -->
122
123</body>
124
125
126</html>
127