1<?php
2/**
3 * DokuWiki Newspaper Template
4 * Based on the starter template and a wordpress theme of the same name
5 *
6 * @link     http://dokuwiki.org/template:starter
7 * @author   Anika Henke <anika@selfthinker.org>
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@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */
13
14$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
15$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
16$sidebarElement = tpl_getConf('sidebarIsNav') ? 'nav' : 'aside';
17?><!DOCTYPE html>
18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>"
19  lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js">
20<head>
21    <meta charset="UTF-8" />
22    <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title>
23    <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
24    <?php tpl_metaheaders() ?>
25    <meta name="viewport" content="width=device-width,initial-scale=1" />
26    <?php echo tpl_favicon(array('favicon', 'mobile')) ?>
27    <?php tpl_includeFile('meta.html') ?>
28    <script type="text/javascript">
29    jQuery(document).ready(function() {
30        // jQuery("#dw__toc").prependTo("#column3");
31        // jQuery("#dw__toc").addClass("tocmovedtocolumn");
32    });
33    </script>
34    <script type="text/javascript">
35        jQuery(window).load(function() { // web page has finished
36
37    function isMobile() {
38    var index = navigator.appVersion.indexOf("Mobile"); // detect chrome for android and ios safari
39    var index2 = navigator.appVersion.indexOf("Android"); // detect firefox for android
40    if (index2) { return (index2 > -1); }
41    return (index > -1);
42    }
43
44    usingmobile = isMobile();
45    if (usingmobile){
46        jQuery('input').filter(function(){
47        return !jQuery(this).attr('size');
48        }).attr('size',''); // change to a number if desired
49        jQuery('textarea').filter(function(){
50        return !jQuery(this).attr('size');
51        }).attr('cols',''); // change to a number if desired
52
53        jQuery("#edit__summary").attr('size', '');
54    }
55
56});
57</script>
58</head>
59
60<body>
61
62
63<div id="wrapper" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>">
64<div id="header">
65<h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1>
66    <?php /* how to insert logo instead (if no CSS image replacement technique is used):
67    upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly:
68    tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?>
69    <ul class="a11y skip">
70        <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li>
71    </ul>
72<?php if ($conf['tagline']): ?>
73    <h2 class="slogan"><?php echo $conf['tagline'] ?></h2>
74<?php endif ?>
75</div>
76
77
78
79<div id="column1">
80<h3 class="time">Site Tools</h3>
81<!-- SITE TOOLS -->
82<nav id="" aria-labelledby="dokuwiki__sitetools_heading">
83    <h3 class="a11y" id="dokuwiki__sitetools_heading"><?php echo $lang['site_tools'] ?></h3>
84
85    <?php
86        // mobile menu (combines all menus in one dropdown)
87        // if (file_exists(DOKU_INC . 'inc/Menu/MobileMenu.php')) {
88        //     echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']);
89        // } else {
90        //   tpl_actiondropdown($lang['tools']);
91        // }
92    ?>
93    <ul>
94        <?php if (file_exists(DOKU_INC . 'inc/Menu/SiteMenu.php')) {
95            echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false);
96        } else {
97            _tpl_sitetools();
98        } ?>
99    </ul>
100</nav>
101
102<!-- USER TOOLS -->
103<?php if ($conf['useacl'] && $showTools): ?>
104    <h3 class="time">User Tools</h3>
105    <nav id="" aria-labelledby="dokuwiki__usertools_heading">
106        <h3 class="a11y" id="dokuwiki__usertools_heading"><?php echo $lang['user_tools'] ?></h3>
107        <ul>
108            <?php if (!empty($_SERVER['REMOTE_USER'])) {
109                echo '<li class="user">';
110                tpl_userinfo(); /* 'Logged in as ...' */
111                echo '</li>';
112            } ?>
113            <?php if (file_exists(DOKU_INC . 'inc/Menu/UserMenu.php')) {
114                /* the first parameter is for an additional class, the second for if SVGs should be added */
115                echo (new \dokuwiki\Menu\UserMenu())->getListItems('action ', false);
116            } else {
117                /* tool menu before Greebo */
118                _tpl_usertools();
119            } ?>
120        </ul>
121    </nav>
122<?php endif ?>
123<!--wiki:$SiteGroup.SideBar $Group.SideBar-->
124<h3 class="sidehead"><a href="$ScriptUrl/$SiteGroup/Search">Search</a></h3>
125<!-- <form  class='wikisearch' action='$PageUrl' method='get'>
126<ul>
127<li>
128    <input type='text' name='q' value='' size='12' />
129    <input type='hidden' name='action' value='search' />
130</li>
131</ul>
132</form> -->
133<?php tpl_searchform() ?>
134</div>
135
136<div id="column2">
137
138 <!-- BREADCRUMBS -->
139<?php if($conf['breadcrumbs']){ ?>
140    <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div>
141<?php } ?>
142<?php if($conf['youarehere']){ ?>
143    <div class="breadcrumbs"><?php tpl_youarehere() ?></div>
144<?php } ?>
145
146<?php html_msgarea() /* occasional error and info messages on top of the page */ ?>
147
148<!-- <h2><a href='$PageUrl'>$Title</a></h2> -->
149<!-- ********** CONTENT ********** -->
150<main id="dokuwiki__content"><!-- <div class="pad"> -->
151    <?php tpl_flush() /* flush the output buffer */ ?>
152    <?php tpl_includeFile('pageheader.html') ?>
153
154    <div class="page">
155        <!-- wikipage start -->
156        <?php tpl_content() /* the main content */ ?>
157        <!-- wikipage stop -->
158        <div class="clearer"></div>
159    </div>
160
161    <?php tpl_flush() ?>
162    <?php tpl_includeFile('pagefooter.html') ?>
163<!-- </div> --></main><!-- /content -->
164<!--PageText-->
165</div>
166
167<div id="column3">
168
169<h3 class="sidehead"><a href="$ScriptUrl/$SiteGroup/PageActions">Page Tools</a></h3>
170<!-- PAGE ACTIONS -->
171<?php if ($showTools): ?>
172    <nav id="" aria-labelledby="dokuwiki__pagetools_heading">
173        <h3 class="a11y" id="dokuwiki__pagetools_heading"><?php echo $lang['page_tools'] ?></h3>
174        <ul>
175            <?php if (file_exists(DOKU_INC . 'inc/Menu/PageMenu.php')) {
176                echo (new \dokuwiki\Menu\PageMenu())->getListItems('action ', false);
177            } else {
178                _tpl_pagetools();
179            } ?>
180        </ul>
181    </nav>
182<?php endif; ?>
183
184<!-- ********** ASIDE ********** -->
185<?php if ($showSidebar): ?>
186    <<?php echo $sidebarElement ?> id="writtensidebar" aria-label="<?php echo $lang['sidebar'] ?>"><!-- <div class="pad aside include group"> -->
187        <?php tpl_includeFile('sidebarheader.html') ?>
188        <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?>
189        <?php tpl_includeFile('sidebarfooter.html') ?>
190        <div class="clearer"></div>
191    </<?php echo $sidebarElement ?>>
192    <!-- </div> --><!-- </div> --><!-- /aside -->
193<?php endif; ?>
194</div>
195
196
197<div id="footer">
198<p>Design by <a href="https://archive.vn/FyW0A">theundersigned</a> | converted by <a href="http://desbest.com">desbest</a></p>
199<div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div>
200<?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?>
201
202<?php tpl_includeFile('footer.html') ?>
203</div>
204
205
206    <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?>
207    <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least
208             should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?>
209    <div id="dokuwiki__top">
210
211
212
213    </div><!-- /site -->
214
215    <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div>
216</body>
217</html>
218