1<?php 2/** 3 * DokuWiki Bootstrap3 Template 4 * 5 * @link http://dokuwiki.org/template:bootstrap3 6 * @author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com> 7 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 8 */ 9 10if (!defined('DOKU_INC')) die(); // must be run from within DokuWiki 11 12require_once 'tpl/global.php'; 13require_once 'tpl/functions.php'; 14 15header('X-UA-Compatible: IE=edge,chrome=1'); 16 17?><!DOCTYPE html> 18<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 19<head> 20 <meta charset="UTF-8" /> 21 <title><?php echo $TPL->getBrowserPageTitle() ?></title> 22 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 23 <meta name="viewport" content="width=device-width,initial-scale=1" /> 24 <?php 25 26 if ($TPL->getConf('themeByNamespace')) { 27 echo '<link href="' . tpl_basedir() . 'css.php?id='. $ID .'" rel="stylesheet" />'; 28 } 29 30 echo tpl_favicon(['favicon', 'mobile']); 31 tpl_includeFile('meta.html'); 32 tpl_metaheaders(); 33 34 ?> 35 <!--[if lt IE 9]> 36 <script type="text/javascript" src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> 37 <script type="text/javascript" src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> 38 <![endif]--> 39</head> 40<?php tpl_flush() ?> 41<body class="<?php echo $TPL->getClasses() ?>" data-page-id="<?php echo $ID ?>"><div class="dokuwiki"><?php /* CSS class for Plugins and user styles */ ?> 42 43 <header id="dokuwiki__header" class="dw-container dokuwiki container<?php echo ($TPL->getConf('fluidContainer')) ? '-fluid mx-5' : '' ?>"> 44 <?php 45 46 tpl_includeFile('topheader.html'); 47 48 // Top-Header DokuWiki page 49 if ($ACT == 'show') $TPL->includePage('topheader'); 50 51 require_once('tpl/navbar.php'); 52 53 tpl_includeFile('header.html'); 54 55 // Header DokuWiki page 56 if ($ACT == 'show') $TPL->includePage('header'); 57 58 ?> 59 </header> 60 61 <a name="dokuwiki__top" id="dokuwiki__top"></a> 62 63 <main role="main" class="dw-container pb-5 dokuwiki container<?php echo ($TPL->getConf('fluidContainer')) ? '-fluid mx-5' : '' ?>"> 64 65 <div id="dokuwiki__pageheader"> 66 67 <?php tpl_includeFile('social.html') ?> 68 69 <?php require_once('tpl/breadcrumbs.php'); ?> 70 71 <p class="text-right"> 72 <?php 73 74 if (($ACT == 'show') && $TPL->getConf('tagsOnTop') && $tag = $TPL->getPlugin('tag')) { 75 echo implode('', array_map('trim', explode(',', $tag->td($ID)))); 76 } 77 78 if ($TPL->getConf('showPageId')) { 79 echo '<span class="pageId ml-1 label label-primary">'. hsc($ID) .'</span>'; 80 } 81 82 ?> 83 </p> 84 85 <div id="dw__msgarea" class="small"> 86 <?php $TPL->getMessageArea() ?> 87 </div> 88 89 </div> 90 91 <div class="row"> 92 93 <?php $TPL->includeSidebar('left'); // Left Sidebar ?> 94 95 <article id="dokuwiki__content" class="<?php echo $TPL->getContainerGrid() ?>" itemscope itemtype="http://schema.org/<?php echo $TPL->getConf('schemaOrgType'); ?>" itemref="dw__license"> 96 97 <?php require_once('tpl/page-tools.php'); // Page Tools ?> 98 99 <div class="<?php echo ($TPL->getConf('pageOnPanel') ? 'panel panel-default px-3 py-2' : 'no-panel') ?>" itemprop="articleBody"> 100 <div class="page <?php echo ($TPL->getConf('pageOnPanel') ? 'panel-body' : '') ?>"> 101 102 <?php 103 104 // Page icons (print, email, share link, etc.) 105 require_once('tpl/page-icons.php'); 106 107 // Page-Header DokuWiki page 108 tpl_includeFile('pageheader.html'); 109 110 // Page-Header DokuWiki page 111 if ($ACT == 'show') $TPL->includePage('pageheader'); 112 113 tpl_flush(); /* flush the output buffer */ 114 115 // render the content into buffer for later use 116 ob_start(); 117 tpl_content(false); 118 119 $content = ob_get_clean(); 120 $toc = $TPL->getTOC(true); 121 $content_classes = []; 122 123 if ($TPL->getConf('tocCollapsed')) $content_classes[] = 'dw-toc-closed'; 124 125 echo '<div class="dw-content-page '. implode(' ', $content_classes) .'">'; 126 127 if ($toc) echo $toc; 128 129 echo '<!-- content -->'; 130 echo '<div class="dw-content">'; 131 echo $content; 132 echo '</div>'; 133 echo '<!-- /content -->'; 134 echo '</div>'; 135 136 tpl_flush(); 137 138 if (! $TPL->getConf('tagsOnTop') && $tag = $TPL->getPlugin('tag')) { 139 echo implode('', array_map('trim', explode(',', $tag->td($ID)))); 140 } 141 142 // Page-Footer hook 143 tpl_includeFile('pagefooter.html'); 144 145 // Page-Footer DokuWiki page 146 if ($ACT == 'show') $TPL->includePage('pagefooter'); 147 148 ?> 149 150 </div> 151 </div> 152 153 <div class="small text-right"> 154 155 <?php if ($TPL->getConf('showPageInfo')): ?> 156 <span class="docInfo"> 157 <?php $TPL->getPageInfo() /* 'Last modified' etc */ ?> 158 </span> 159 <?php endif ?> 160 161 <?php if ($TPL->getConf('showLoginOnFooter')): ?> 162 <span class="loginLink hidden-print"> 163 <?php 164 if ($login_item = $TPL->getToolMenuItem('user', 'login')) { 165 echo '<a '. buildAttributes($login_item->getLinkAttributes()) .'>'. inlineSVG($login_item->getSvg()) . ' ' . hsc($login_item->getLabel()) .'</a>'; 166 } 167 ?> 168 </span> 169 <?php endif; ?> 170 171 </div> 172 173 </article> 174 175 <?php $TPL->includeSidebar('right'); // Right Sidebar ?> 176 177 </div> 178 179 </main> 180 181 <footer id="dw__footer" class="dw-container py-5 dokuwiki container<?php echo ($TPL->getConf('fluidContainer')) ? '-fluid' : '' ?>"> 182 <?php 183 // Footer hook 184 tpl_includeFile('footer.html'); 185 186 // Footer DokuWiki page 187 require_once('tpl/footer.php'); 188 189 // Cookie-Law banner 190 require_once('tpl/cookielaw.php'); 191 ?> 192 </footer> 193 194 <a href="#dokuwiki__top" class="back-to-top hidden-print btn btn-default" title="<?php echo $lang['skip_to_content'] ?>" accesskey="t"> 195 <?php echo iconify('mdi:chevron-up'); ?> 196 </a> 197 198 <div id="screen__mode"><?php /* helper to detect CSS media query in script.js */ ?> 199 <span class="visible-xs-block"></span> 200 <span class="visible-sm-block"></span> 201 <span class="visible-md-block"></span> 202 <span class="visible-lg-block"></span> 203 </div> 204 205 <?php 206 // Provide DokuWiki housekeeping, required in all templates 207 tpl_indexerWebBug(); 208 ?> 209 210</div> 211 212</body> 213</html> 214