1<?php 2/** 3 * Kiwiki Template 4 * 5 * @link http://dokuwiki.org/template:kiwiki 6 * @author Anika Henke <anika@selfthinker.org> 7 * @author Nicolas Prigent 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</head> 29 30 31<body id="kiwiki"> 32 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 33 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 34 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 35 <?php $admin_page = (($ACT == "admin") && (isset($_REQUEST['page']))) ? explode("#",$_REQUEST['page'])[0]: "" ;?> 36 <div id="dokuwiki__site"> 37 <div id="dokuwiki__top" class="site <?php echo tpl_classes() ." " . $admin_page; ?>"> 38 <!-- ********** HEADER ********** --> 39 <?php include('partial/header.php');?> 40 41 <?php include('partial/breadcrumb.php'); ?> 42 43 <?php include('partial/content.php');?> 44 45 </div> 46 <!-- ********** FOOTER ********** --> 47 <?php include('partial/footer.php'); ?> 48 <!-- GO TOP --> 49 <div id="gotop"> 50 <?php 51 52 53 $items = (new \dokuwiki\Menu\KiwikiGoTop())->getItems(); 54 echo '<a href="'.$items[0]->getLink().'" title="'.$items[0]->getTitle().'">' 55 .'<span class="icon">'.inlineSVG($items[0]->getSvg()).'</span>' 56 . '<span class="a11y">'.$items[0]->getLabel().'</span>' 57 . '</a>'; 58 ?> 59 </div> 60 </div><!-- /site --> 61 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 62</body> 63</html> 64