1<?php 2/** 3 * Typowiki 4 * 5 * @author axlevxa 6 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 7 */ 8 9if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 10@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 11header('X-UA-Compatible: IE=edge,chrome=1'); 12 13$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); 14$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 15?><!DOCTYPE html> 16<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 17 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 18<head> 19 <meta charset="UTF-8" /> 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 <meta name="viewport" content="width=device-width,initial-scale=1" /> 24 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 25 <?php tpl_includeFile('meta.html') ?> 26 <link href="<?php echo tpl_basedir(); ?>assets/fonts/microns/microns.css" rel="stylesheet"> 27</head> 28 29<body> 30 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 31 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 32 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 33 34 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 35 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 36 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 37 <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php 38 echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 39 <?php tpl_includeFile('header.html') ?> 40 41 <!-- ********** HEADER ********** --> 42 <nav> 43 <div class="nav-bar dark"> 44 <div class="container"> 45 <div class="row"> 46 <div class="col-3 col-md-6 col-lg-7 nav-brand"> 47 <?php /* For a custom logo, upload a SQUARE (70x70) logo into the data/media folder (root of the media manager). */ ?> 48 <?php 49 $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png', ':wiki:dokuwiki-128.png')); 50 $logo_img = '<img src="'.$logo.'" alt="" id="wiki-logo" />'; 51 $sitename_html = $logo_img . '<span>' . $conf['title'] . '</span>'; ?> 52 <h2><?php tpl_link(wl(),$sitename_html,'accesskey="h" title="[H]"') ?></h2> 53 </div> 54 <div class="col-9 col-md-6 col-lg-5 nav-actions"> 55 <span id="doku-action-btn"><?php tpl_button('edit')?></span> 56 <button id="menu-toggle" onclick="togglediv('menu_unified')"><?php echo tpl_getLang('uni_menu') ?> <span class="mu mu-menu txt-12" aria-hidden="true"></span></button> 57 </div> 58 59 </div> 60 </div> 61 </div> 62 <ul class="a11y skip"> 63 <a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a> 64 </ul> 65 <div class="nav-expanded dark"> 66 <div id="menu_unified" class="nav-expanded-inner"> 67 <div class="container"> 68 <div class="row"> 69 <div class="col-sm-7 left"> 70 <span class="mu mu-search menu-icon" aria-hidden="true"></span> 71 <?php tpl_searchform() ?> 72 </div> 73 <div class="col-sm-5 right"> 74 <span class="mu mu-user menu-icon" aria-hidden="true"></span><?php 75 if (!empty($_SERVER['REMOTE_USER'])) { 76 echo '<p class="ui-title">'; 77 tpl_userinfo(); /* 'Logged in as ...' */ 78 echo '</p>'; 79 } 80 ?> 81 <ul role="navigation"> 82 <?php $items = (new \dokuwiki\Menu\UserMenu())->getItems(); 83 foreach($items as $item) { 84 echo '<li>' 85 .'<a href="'.$item->getLink().'" title="'.$item->getTitle().'">' 86 .'<span class="icon">'.inlineSVG($item->getSvg()).'</span>' 87 . '<span class="a11y">'.$item->getLabel().'</span>' 88 . $item->getTitle() 89 . '</a></li>'; 90 } ?> 91 </ul> 92 </div> 93 </div> 94 </div> 95 </div> 96 </div> 97 </nav> 98 99 <div class="wrapper"> 100 101 <!-- ********** CONTENT ********** --> 102 <div class="usr-content"> 103 <div id="dokuwiki__content"> 104 <div class="container usr-container"> 105 <?php if($conf['breadcrumbs']){ ?> 106 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 107 <?php } ?> 108 <?php if($conf['youarehere']){ ?> 109 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 110 <?php } ?> 111 <div class="row usr-inner"> 112 <div class="col-md-9 col-main"> 113 <?php tpl_flush() /* flush the output buffer */ ?> 114 <?php tpl_includeFile('pageheader.html') ?> 115 116 <div class="page"> 117 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 118 119 <!-- BREADCRUMBS --> 120 121 <!-- wikipage start --> 122 <?php tpl_content(false) /* the main content */ ?> 123 <!-- wikipage stop --> 124 <div class="clearer"></div> 125 </div> 126 </div> 127 <div class="col-md-3 col-side"> 128 <?php tpl_flush() ?> 129 <div class="nav-side" role="navigation"> 130 <div class="nav-side-inner"> 131 <?php tpl_toc()?> 132 133 <!-- ********** ASIDE ********** --> 134 <?php if ($showSidebar): ?> 135 <div id="dokuwiki__aside"><div class="pad aside include group ul-raw"> 136 <?php tpl_includeFile('sidebarheader.html') ?> 137 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 138 <?php tpl_includeFile('sidebarfooter.html') ?> 139 <div class="clearer"></div> 140 </div></div><!-- /aside --> 141 <?php endif; ?> 142 143 <div class="back-to-top-wrapper"> 144 <a href="#dokuwiki__top" class="back-to-top-link primary"><span class="mu mu-arrow-up"></span> Back to Top</a> 145 </div> 146 </div> 147 </div> 148 <?php tpl_includeFile('pagefooter.html') ?> 149 </div> 150 </div><!-- /row --> 151 </div><!-- /container --> 152 </div><!-- /content --> 153 </div> 154 155 <div class="clearer"></div> 156 <hr class="a11y" /> 157 158 </div><!-- /wrapper --> 159 160 <!-- ********** FOOTER ********** --> 161 <footer id="dokuwiki__footer"> 162 <div class="container"> 163 <div class="row"> 164 <div class="col-sm-6 col-md-8"> 165 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 166 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 167 </div> 168 <div class="col-sm-3 col-md-2"> 169 <!-- PAGE ACTIONS --> 170 <?php if ($showTools): ?> 171 <div id="dokuwiki__pagetools"> 172 <ul class="footer-menu ul-raw"> 173 <?php $items = (new \dokuwiki\Menu\PageMenu())->getItems(); 174 foreach($items as $item) { 175 echo '<li>' 176 .'<a href="'.$item->getLink().'" title="'.$item->getTitle().'">' 177 . $item->getTitle() 178 . '</a></li>'; 179 } ?> 180 </ul> 181 </div> 182 <?php endif; ?> 183 </div> 184 <div class="col-sm-3 col-md-2"> 185 <!-- SITE TOOLS --> 186 <div id="dokuwiki__sitetools"> 187 <ul class="footer-menu ul-raw"> 188 <?php $items = (new \dokuwiki\Menu\SiteMenu())->getItems(); 189 foreach($items as $item) { 190 echo '<li>' 191 .'<a href="'.$item->getLink().'" title="'.$item->getTitle().'">' 192 . $item->getTitle() 193 . '</a></li>'; 194 } ?> 195 </ul> 196 </div> 197 </div> 198 </div> 199 </div> 200 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 201 </footer><!-- /footer --> 202 203 <?php tpl_includeFile('footer.html') ?> 204 </div></div><!-- /site --> 205 206 <script> 207 function togglediv(id) { 208 var div = document.getElementById(id); 209 div.style.display = div.style.display == "block" ? "none" : "block"; 210 } 211 </script> 212</body> 213</html> 214