1<?php 2/** 3 * DokuWiki Klean Template 4 * Based on the starter template and a wordpress theme of the same name 5 * 6 * @link http://dokuwiki.org/template:klean 7 * @author desbest <afaninthehouse@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@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 13header('X-UA-Compatible: IE=edge,chrome=1'); 14 15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); 16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 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 <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script> 23 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 24 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 25 <?php tpl_metaheaders() ?> 26 <meta name="viewport" content="width=device-width,initial-scale=1" /> 27 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 28 <?php tpl_includeFile('meta.html') ?> 29 <link rel='stylesheet' id='klean-title-font-css' href='//fonts.googleapis.com/css?family=Source+Sans+Pro%3A100%2C300%2C400%2C700&ver=5.4.4' type='text/css' media='all' /> 30 <link rel='stylesheet' id='klean-body-font-css' href='//fonts.googleapis.com/css?family=Source+Sans+Pro%3A100%2C300%2C400%2C700&ver=5.4.4' type='text/css' media='all' /> 31</head> 32 33<body id="dokuwiki__top" class="site post-template-default single single-post postid-9 single-format-standard logged-in admin-bar customize-support <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 34 35 <?php //get_template_part('modules/navigation/primary', 'menu'); ?> 36 37 <nav id="site-navigation" class="main-navigation" role="navigation"> 38 <button class="menu-toggle" aria-controls="menu" aria-expanded="false">Primary Menu</button> 39 <ul class="menu nav-menu" aria-expanded="false"> 40 <!-- SITE TOOLS --> 41 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 42 <?php tpl_toolsevent('sitetools', array( 43 'recent' => tpl_action('recent', 1, 'li', 1), 44 'media' => tpl_action('media', 1, 'li', 1), 45 'index' => tpl_action('index', 1, 'li', 1), 46 )); ?> 47 <?php if ($showTools): ?> 48 <div class="mobile"> 49 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 50 <?php tpl_toolsevent('pagetools', array( 51 'edit' => tpl_action('edit', 1, 'li', 1), 52 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 53 'revisions' => tpl_action('revisions', 1, 'li', 1), 54 'backlink' => tpl_action('backlink', 1, 'li', 1), 55 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 56 'revert' => tpl_action('revert', 1, 'li', 1), 57 //'top' => tpl_action('top', 1, 'li', 1), 58 )); ?> 59 </div> 60 <?php endif; ?> 61 <!-- USER TOOLS --> 62 <?php if ($conf['useacl'] && $showTools): ?> 63 <div class="mobile"> 64 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 65 <?php 66 if (!empty($_SERVER['REMOTE_USER'])) { 67 echo '<li class="user">'; tpl_userinfo(); /* 'Logged in as ...' */ echo '</li>'; 68 } 69 ?> 70 <?php tpl_toolsevent('usertools', array( 71 'admin' => tpl_action('admin', 1, 'li', 1), 72 'userpage' => _tpl_action('userpage', 1, 'li', 1), 73 'profile' => tpl_action('profile', 1, 'li', 1), 74 'register' => tpl_action('register', 1, 'li', 1), 75 'login' => tpl_action('login', 1, 'li', 1), 76 )); ?> 77 </div> 78 <?php endif; ?> 79 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 80 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 81 ?> 82 </ul> 83 </nav> 84 85 <?php tpl_includeFile('header.html') ?> 86 <div id="header-wrapper"> 87 <header id="masthead" class="site-header" role="banner"> 88 89 <ul class="a11y skip"> 90 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 91 </ul> 92 93 <div class="header-image"> 94 </div><!-- .header-image --> 95 96 <div class="site-branding container"> 97 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 98 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 99 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 100 <div id="text-title-desc"> 101 <h1 class="site-title"><a href="" rel="home"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></a></h1> 102 <?php if ($conf['tagline']): ?><h2 class="site-description"><?php echo $conf['tagline'] ?></h2><?php endif; ?> 103 </div> 104 105 106 <div id="secondary" class="widget-area col-lg-3 desktop" role="complementary"><!-- .left-sidebar or .right-sidebar for #secondary --> 107 108 <aside id="writtensidebar" class="widget"> 109 <!-- <h1 class="widget-title">Page Tools</h1> --> 110 111 <!-- ********** ASIDE ********** --> 112 <?php if ($showSidebar): ?> 113 <div id="dokuwiki__aside"> 114 <?php tpl_includeFile('sidebarheader.html') ?> 115 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 116 <?php tpl_includeFile('sidebarfooter.html') ?> 117 <div class="clearer"></div> 118 </div><!-- /aside --> 119 <?php endif; ?> 120 </aside> 121 122 123 <aside id="pages-3" class="widget"><h1 class="widget-title">Page Tools</h1><ul> 124 <!-- PAGE ACTIONS --> 125 <?php if ($showTools): ?> 126 <!-- <div id="dokuwiki__pagetools"> --> 127 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 128 <?php tpl_toolsevent('pagetools', array( 129 'edit' => tpl_action('edit', 1, 'li', 1), 130 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 131 'revisions' => tpl_action('revisions', 1, 'li', 1), 132 'backlink' => tpl_action('backlink', 1, 'li', 1), 133 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 134 'revert' => tpl_action('revert', 1, 'li', 1), 135 'top' => tpl_action('top', 1, 'li', 1), 136 )); ?> 137 <?php endif; ?> 138 </ul></aside></div> 139 140 <div id="secondary" class="widget-area col-lg-3 desktop" role="complementary"><!-- .left-sidebar or .right-sidebar for #secondary --><aside id="pages-3" class="widget"><h1 class="widget-title">User Tools</h1><ul> 141 <!-- USER TOOLS --> 142 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 143 <?php 144 if (!empty($_SERVER['REMOTE_USER'])) { 145 echo '<li class="user">'; tpl_userinfo(); /* 'Logged in as ...' */ echo '</li>'; 146 } 147 ?> 148 <?php if ($showTools): ?> 149 <!-- <div id="dokuwiki__pagetools"> --> 150 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 151 <?php tpl_toolsevent('usertools', array( 152 'admin' => tpl_action('admin', 1, 'li', 1), 153 'userpage' => _tpl_action('userpage', 1, 'li', 1), 154 'profile' => tpl_action('profile', 1, 'li', 1), 155 'register' => tpl_action('register', 1, 'li', 1), 156 'login' => tpl_action('login', 1, 'li', 1), 157 )); ?> 158 <?php endif; ?> 159 </ul></aside></div> 160 161 162 163 </div><!-- .site-branding --> 164 </header><!-- #masthead --> 165 166 167 168 <div id="search-top"> 169 <?php tpl_searchform() ?> 170 <!-- <form method="get" id="searchform" action="/"> 171 <div><input type="text" size="18" value="" name="s" id="s" /> 172 <button type="submit" class="search-submit"> 173 <img src = "<?php echo tpl_basedir() . '/images/search.png'?>" width="17px" height="17px"> 174 </button> 175 </div> 176 </form> --> 177 </div> 178 <?php //get_template_part('modules/social/social', 'fa'); ?> 179 </div> 180 181<div id="page" class="hfeed site container"> 182 <a class="skip-link screen-reader-text" href="#content">Skip to content</a> 183 184 <div id="content" class="site-content container"> 185 <!-- content begins --> 186 <div id="primary" class="content-area col-lg-8 col-md-8 col-sm-12 col-xs-12"> 187 <main id="main" class="site-main" role="main"> 188 189 <?php 190 //get_template_part( 'modules/content/content', 'single' ); 191 ?> 192 193 <article> 194 <!-- <header class="entry-header"> 195 <h1 class="entry-title"><a href="urlhere" rel="bookmark">post title</a></h1> 196 <div class="entry-meta"> 197 <span class="posted-on"><a href="http://localhost/wordpress/test-post/" rel="bookmark"><time class="updated published" datetime="2020-05-31T16:53:41+00:00">May 31, 2020</time></a></span> 198 </div> 199 </header> --> 200 201 <div class="entry-content"> 202 203 <!-- BREADCRUMBS --> 204 <?php if($conf['breadcrumbs']){ ?> 205 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 206 <?php } ?> 207 <?php if($conf['youarehere']){ ?> 208 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 209 <?php } ?> 210 211 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 212 213 <!-- ********** CONTENT ********** --> 214 <div id="dokuwiki__content"> 215 <?php tpl_flush() /* flush the output buffer */ ?> 216 <?php tpl_includeFile('pageheader.html') ?> 217 218 <div class="page"> 219 <!-- wikipage start --> 220 <?php tpl_content() /* the main content */ ?> 221 <!-- wikipage stop --> 222 <div class="clearer"></div> 223 </div> 224 225 <?php tpl_flush() ?> 226 <?php tpl_includeFile('pagefooter.html') ?> 227 </div><!-- /content --> 228 229 230 231 </div><!-- .entry-content --> 232 233 <footer class="entry-footer"> 234 235 </footer><!-- .entry-footer --> 236 </article><!-- #post-## --> 237 238 <?php 239 // If comments are open or we have at least one comment, load up the comment template 240 // if ( comments_open() || get_comments_number() ) : 241 // comments_template(); 242 // endif; 243 ?> 244 245 <aside id="writtensidebar" class="widget mobile"> 246 <!-- <h1 class="widget-title">Page Tools</h1> --> 247 248 <!-- ********** ASIDE ********** --> 249 <?php if ($showSidebar): ?> 250 <div id="dokuwiki__aside"> 251 <?php tpl_includeFile('sidebarheader.html') ?> 252 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 253 <?php tpl_includeFile('sidebarfooter.html') ?> 254 <div class="clearer"></div> 255 </div><!-- /aside --> 256 <?php endif; ?> 257 </aside> 258 259 </main><!-- #main --> 260 </div><!-- #primary --> 261 <!-- content ends --> 262 </div><!-- #content --> 263 264 <!-- sidebar begins --> 265 266 <!-- sidebar ends --> 267 268 <footer id="colophon" class="site-footer" role="contentinfo"> 269 <div id="footer-sidebar" class="widget-area clear container" role="complementary"> 270 <div class="footer-column col-lg-4 col-md-4 col-sm-12 col-xs-12"> 271 <?php //dynamic_sidebar( 'sidebar-4'); ?> 272 </div> 273 274 <div class="footer-column col-lg-4 col-md-4 col-sm-12 col-xs-12"> 275 <?php //dynamic_sidebar( 'sidebar-5'); ?> 276 </div> 277 </div> 278 <div class="site-info"> 279 <div class="footer-text"> 280 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 281 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 282 283 © <?php echo date("Y"); ?> <?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?>. All Rights Reserved. 284 </div> 285 <div class="powered-by"> 286 <a href="http://dokuwiki.org">Powered by Dokuwiki</a> 287 <span class="sep"> | </span> 288 Klean theme by <a href="https://www.inkhive.com" rel="designer">InkHive</a> and <a href="http://desbest.com">desbest</a> 289 290 <?php tpl_includeFile('footer.html') ?> 291 </div> 292 </div><!-- .site-info --> 293 </footer><!-- #colophon --> 294</div><!-- #page --> 295 296 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 297 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 298 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 299 300 301 302 303 304 305 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 306 307 <!-- slicknav is for the responsive menu on mobile --> 308 <script type="text/javascript" src="<?php echo tpl_basedir();?>/jquery.slicknav.min.js"></script> 309 <script type="text/javascript"> 310 jQuery(document).ready(function() { 311 jQuery('#scroll-arrow').on('click', function( e ) { 312 313 e.preventDefault(); 314 315 jQuery('#scroll-arrow').fadeOut(); 316 317 jQuery('body,html').animate({ 318 scrollTop: '700', 319 }, 500); 320 }); 321 }); 322 323 jQuery(function(){ 324 jQuery('.nav-menu').slicknav({ }); 325 // jQuery('.editpagemenu').slicknav({ }); 326 }); 327 </script> 328 <script type="text/javascript" src="<?php echo tpl_basedir();?>/navigation.js"></script> 329 <!-- due to the way dokuwiki buffers output, this javascript has to 330 be before the </body> tag and not in the <head> --> 331</body> 332</html> 333