1<!DOCTYPE html>
2<?php
3if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
4require_once DOKU_TPLINC.'functions.php';
5require_once DOKU_TPLINC.'components.php';
6global $conf;
7?>
8<html lang="<?php echo $conf['lang'] ?>">
9<head>
10    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
11    <title>
12    <?php tpl_pagetitle()?>
13    [<?php echo strip_tags($conf['title'])?>]
14    </title>
15    <meta name="viewport" content="width=device-width, initial-scale=1.0">
16    <?php tpl_metaheaders(); icke_tplCSS(); echo tpl_favicon(array('favicon', 'mobile')) ?>
17</head>
18<?php
19// render the content into buffer for later use (see doku>devel:templates#tpl_toc
20ob_start();
21tpl_content(false);
22$buffer = ob_get_clean();
23
24icke_header();
25icke_sidebar();
26?>
27            <div id="icke__page">
28                <div id="icke__drophead" class="closed">
29                    <?php
30
31                    /** @var helper_plugin_translation $translation */
32                    $translation = plugin_load('helper','translation');
33                    if ($translation !== null) {
34                        echo $translation->showTranslations();
35                    }
36
37                    /** @var helper_plugin_do $doplugin */
38                    $doplugin = plugin_load('helper','do');
39                    if ($doplugin !== null) {
40                        $doplugin->tpl_pageTasks();
41                    }
42
43                    /** @var helper_plugin_qc $qc */
44                    $qc = plugin_load('helper','qc');
45                    if ($qc !== null) {
46                        $qc->tpl();
47                    }
48
49                    ?>
50                </div>
51                <?php html_msgarea() ?>
52                <div class="content">
53                    <?php if ($ACT === 'show'): ?>
54                        <div class="bc"><?php tpl_youarehere(); ?></div>
55                        <p class="meta">
56
57                            <?php if($INFO['exists']):?>
58
59                                <span class="lastmod">
60                                <?php
61                                    if($INFO['lastmod']){
62                                        // %e is not supported on Windows
63                                        echo ltrim(strftime('%d. %B %Y',$INFO['lastmod']), '0');
64                                    }
65                                ?>
66                                </span> –
67                                <?php if($INFO['sum']): ?>
68                                    <span class="sum"><?php echo hsc($INFO['sum']); ?></span> –
69                                <?php endif ?>
70
71                                <?php if($INFO['user']): ?>
72                                    <a class="author" href="<?php echo wl(tpl_getConf('user_ns').$INFO['user'] . ':')?>"><?php echo editorinfo($INFO['editor'], true)?></a>
73                                <?php else: ?>
74                                    <span class="author"><?php echo hsc($INFO['editor'] ? $INFO['editor'] : tpl_getLang('current version')); ?></span>
75                                <?php endif ?>
76                            <?php endif ?>
77
78                            <?php
79
80
81                                /** @var action_plugin_starred $starred */
82                                $starred = plugin_load('action','starred');
83                                if ($starred !== null) {
84                                    $starred->tpl_starred();
85                                    echo '&nbsp;&nbsp;';
86                                }
87
88                                /** @var helper_plugin_quicksubscribe $quicksubscribe */
89                                $quicksubscribe = plugin_load('helper', 'quicksubscribe');
90                                if ($quicksubscribe !== null) {
91                                    $quicksubscribe->tpl_subscribe();
92                                }
93                            ?>
94                        </p>
95
96                    <?php endif?>
97
98                    <div class="page">
99                        <?php echo $buffer ?>
100                    </div>
101
102                </div>
103                <div id="icke__footer">
104                    <div class="page_toolbar">
105                        <ul class="page-menu">
106                            <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems('dw-menu-item page-menu__item '); ?>
107                        </ul>
108                    </div>
109                    <div class="footer_toolbar">
110                        <p>
111                        </p>
112                        <p class="copy"><a href="http://www.ickewiki.de">ICKE</a></p>
113                    </div>
114                </div><!-- END icke__footer -->
115            </div><!-- END icke__page -->
116        </div><!-- END wrap -->
117    </div><!-- END icke__wrapper -->
118
119<?php tpl_indexerWebBug() ?>
120</body>
121</html>
122
123