1<?php 2/** 3 * Official Weltis Dokuwiki Template 2024 4 * 5 * @link https://github.com/xkokko/weltisdokuwiki 6 * @author Cosmo Cocconcelli <c.wiki@drw.ng> 7 * @license MIT License (https://github.com/xkokko/weltisdokuwiki/blob/main/LICENSE) 8 */ 9 10/* must be run from within DokuWiki */ 11if (!defined('DOKU_INC')) die(); 12header('X-UA-Compatible: IE=edge,chrome=1'); 13 14$hasSidebar = page_findnearest($conf['sidebar']); 15$showSidebar = $hasSidebar && ($ACT=='show'); 16?> 17 18<!DOCTYPE html> 19 20<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 21 22<head> 23 <meta charset="utf-8" /> 24 25 <title> <?php echo strip_tags($conf['title']) ?> — <?php tpl_pagetitle() ?> </title> 26 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 27 <?php tpl_metaheaders() ?> 28 <meta name="viewport" content="width=device-width, initial-scale=1" /> 29 30 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 31 <?php tpl_includeFile('meta.html') ?> 32</head> 33 34<body class="weltis"> 35 <div id="weltis__site"><div id="dokuwiki__top"> 36 <?php include('tpl_header.php') ?> 37 38 <!-- MAIN --> 39 <div id="weltis__main"><div class="wrapper group"> 40 <!-- ASIDE --> 41 <?php if($showSidebar): ?> 42 <div id="weltis__aside"><div class="aside"> 43 <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3> 44 <div class="content"><div class="group"> 45 <?php tpl_flush() ?> 46 <?php tpl_includeFile('sidebarheader.html') ?> 47 <?php tpl_include_page($conf['sidebar'], true, true) ?> 48 <?php tpl_includeFile('sidebarfooter.html') ?> 49 </div></div> 50 </div></div> 51 <?php endif; ?> 52 53 <!-- CONTENT --> 54 <div id="weltis__content"><div class="content"> 55 <?php html_msgarea() ?> 56 57 <div class="pageId"><span><?php echo hsc($ID) ?></span></div> 58 59 <div class="page group"> 60 <?php tpl_flush() ?> 61 <?php tpl_includeFile('pageheader.html') ?> 62 <!-- wikipage start --> 63 <?php tpl_content() ?> 64 <!-- wikipage stop --> 65 <?php tpl_includeFile('pagefooter.html') ?> 66 </div> 67 68 <div class="docInfo"><?php tpl_pageinfo() ?></div> 69 70 <?php tpl_flush() ?> 71 </div></div> 72 73 <!-- ACTION TOP --> 74 <div id="action__top"> 75 <?php 76 $actionIcon = tpl_getMediaFile(array('images/goup.png'), false); 77 78 tpl_action('top', true, false, false, '<img src="'.$actionIcon.'" width="32" height="32"/><span>','</span>'); 79 ?> 80 </div> 81 </div></div> 82 83 <?php include('tpl_footer.php') ?> 84 </div></div> 85 86 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 87 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 88</body> 89 90</html> 91