1<?php 2 3/** 4 * WikiPraktik Template 5 * 6 * @author Petr Kajzar <petr.kajzar@centrum.cz> 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 */ 9 10 // must be run from within DokuWiki 11if (!defined('DOKU_INC')) die(); 12 13$hasSidebar = page_findnearest($conf['sidebar']); 14$showSidebar = $hasSidebar && ($ACT=='show'); 15?><!DOCTYPE html> 16<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 17<head> 18<meta charset="utf-8"> 19<meta name="viewport" content="width=device-width"> 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<?php echo tpl_favicon(array('favicon')) ?> 24<?php tpl_includeFile('meta.html') ?> 25</head> 26 27<body id="dokuwiki__top"> 28 29<!-- ********** HEADER ********** --> 30<header id="dokuwiki__header"> 31<div id="dokuwiki__header__left"> 32 <?php tpl_link(wl(),$conf['title'] . ($conf['tagline'] ? '<span class="claim">' . $conf['tagline'] . '</span>' : ''),'accesskey="h" title="[H]"') ?> 33</div> 34<div id="dokuwiki__header__right"> 35 <?php tpl_searchform() ?> 36</div> 37</header> 38<?php tpl_includeFile('header.html') ?><!-- /header --> 39 40<!-- ********** SITE ********** --> 41<div id="dokuwiki__site" class="site <?php echo tpl_classes(); ?><?php 42 echo ($showSidebar) ? ' showSidebar' : ''; ?><?php echo ($hasSidebar) ? ' hasSidebar' : ''; ?>"> 43 44<!-- ********** WRAPPER ********** --> 45<div id="site_wrapper" class="wrapper group"> 46<?php html_msgarea() ?> 47 48<!-- ********** ASIDE ********** --> 49<?php if ($showSidebar): ?> 50<nav id="dokuwiki__aside" aria-label="<?php echo $lang['sidebar'] ?>"> 51 <?php tpl_includeFile('sidebarheader.html') ?> 52 <?php tpl_include_page($conf['sidebar'], 1, 1) ?> 53 <?php tpl_includeFile('sidebarfooter.html') ?> 54</nav><!-- /aside --> 55<?php endif; ?> 56 57<!-- ********** BREADCRUMBS ********** --> 58<?php if($conf['breadcrumbs']){ ?> 59 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 60<?php } ?> 61<?php if($conf['youarehere']){ ?> 62 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 63<?php } ?> 64 65<!-- ********** CONTENT ********** --> 66<main id="dokuwiki__content"> 67 <?php tpl_flush() ?> 68 69 <div class="page group"> 70 <!-- wikipage start --> 71 <?php tpl_includeFile('pageheader.html') ?> 72 <?php tpl_content() ?> 73 <?php tpl_includeFile('pagefooter.html') ?> 74 <!-- wikipage stop --> 75 </div> 76 77 <?php tpl_flush() ?> 78</main><!-- /content --> 79 80</div><!-- /wrapper --> 81 82<!-- ********** FOOTER ********** --> 83<footer id="dokuwiki__footer"> 84 <div id="dw_menu"> 85 <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools'], 'OK'); ?> 86 </div> 87 <?php if (strlen(tpl_getConf('footer')) > 0) : ?> 88 <div><?php echo tpl_getConf('footer') ?></div> 89 <?php endif; ?> 90 <?php if (tpl_getConf('wiki')): ?> 91 <?php echo (strlen(tpl_pageinfo(true)) > 0 ? '<div>' . tpl_pageinfo(true) . '</div>' : ''); ?> 92 <?php endif; ?> 93 <?php if (isset($USERINFO)): ?> 94 <div><?php tpl_userinfo(); ?> <ul><?php echo (new \dokuwiki\Menu\UserMenu())->getListItems(); ?></ul></div> 95 <?php endif; ?> 96 <?php tpl_includeFile('footer.html'); ?> 97</footer><!-- /footer --> 98 99</div><!-- /site --> 100 101<div class="license"> 102 <a href="https://www.dokuwiki.org/" title="DokuWiki" target="_blank"><img 103 src="<?php echo tpl_basedir(); ?>../dokuwiki/images/button-dw.png" width="80" height="15" 104 alt="DokuWiki"></a> 105 <?php tpl_license($img = 'button', $imgOnly = true, $return = false, $wrap = false) ?> 106</div> 107<div class="no"><?php tpl_indexerWebBug() ?></div> 108 109</body> 110</html> 111