1<?php 2if (!defined('DOKU_INC')) die(); 3@require_once(dirname(__FILE__).'/tpl_functions.php'); 4header('X-UA-Compatible: IE=edge'); 5 6$versionarr = getVersionData(); 7$version = substr($versionarr['date'], 0, 10); 8 9 10$showSidebar = false; 11if ($ID != $conf['sidebar']): 12 $showSidebar = page_findnearest($conf['sidebar']) && ($ACT == 'show'); 13endif; 14?> 15<!DOCTYPE html> 16<html lang="<?php echo $conf['lang']; ?>" class="no-js"> 17<head> 18 <meta charset="UTF-8" /> 19 <title><?php tpl_pagetitle(); ?> [<?php echo strip_tags($conf['title']); ?>]</title> 20 <script> 21 (function(H){ 22 H.className = H.className.replace(/\bno-js\b/, 'js'); 23 })(document.documentElement); 24 </script> 25 <?php 26 tpl_metaheaders(); 27 echo '<meta name="viewport" content="width=device-width,initial-scale=1" />'; 28 echo _tpl_favicon(); 29 tpl_includeFile('meta.html'); 30 if (file_exists(DOKU_PLUGIN.'displaywikipage/code.php')) { 31 include_once(DOKU_PLUGIN.'displaywikipage/code.php'); 32 } 33 ?> 34</head> 35<body> 36<!--[if lte IE 8 ]><div id="IE8"><![endif]--> 37 38<div id="dokuwiki__site"> 39 <div id="dokuwiki__top" 40 class="site dokuwiki <?php echo tpl_classes(); ?><?php if ($showSidebar) echo ' hasSidebar'; ?>"> 41 <?php html_msgarea(); ?> 42 43 <!-- MAIN FLEX CONTAINER --> 44 <div id="layout-container"><!-- 2-column layout wrapper --> 45 46 <!-- SIDEBAR COLUMN --> 47 <div id="layout-sidebar"> 48 <div id="dokuwiki__aside"> 49 <div class="sidebar-logo"> 50 <a href="<?php echo wl(); ?>" title="<?php echo $conf['title']; ?>"> 51 <img src="<?php echo ml('wiki:logo.png'); ?>" width="130" alt="Home logo" /> 52 </a> 53 </div> 54 <?php 55 tpl_includeFile('sidebarheader.html'); 56 tpl_include_page($conf['sidebar'], 1, 1); 57 tpl_includeFile('sidebarfooter.html'); 58 ?> 59 </div><!-- /dokuwiki__aside --> 60 </div><!-- /layout-sidebar --> 61 62 <!-- MAIN COLUMN (HEADER + CONTENT + PAGE TOOLS + FOOTER) --> 63 <div id="layout-maincolumn"> 64 <!-- HEADER BAR --> 65 <div id="dokuwiki__header"> 66 <div class="breadcrumbs"> 67 <?php 68 if ($conf['breadcrumbs']) { 69 tpl_breadcrumbs(); 70 } elseif ($conf['youarehere']) { 71 tpl_youarehere(); 72 } 73 ?> 74 </div> 75 <?php if ($ACT != 'denied'): ?> 76 <div id="dokuwiki__sitetools"> 77 <?php tpl_searchform(); ?> 78 </div> 79 <?php endif; ?> 80 </div><!-- /dokuwiki__header --> 81 82 <!-- CONTENT --> 83 <div id="dokuwiki__content"> 84 <div class="pad"> 85 <?php 86 tpl_flush(); 87 tpl_includeFile('pageheader.html'); 88 ?> 89 <div class="page"> 90 <!-- wikipage start --> 91 <?php tpl_content(); ?> 92 <!-- wikipage stop --> 93 <div class="clearer"></div> 94 </div> 95 <?php 96 tpl_flush(); 97 tpl_includeFile('pagefooter.html'); 98 ?> 99 </div> 100 </div><!-- /dokuwiki__content --> 101 102 <!-- PAGE TOOLS --> 103 <?php if ($ACT != 'denied'): ?> 104 <div id="dokuwiki__pagetools"> 105 <?php if (isset($conf['useacl']) && $conf['useacl']): ?> 106 <h3 class="a11y"><?php echo $lang['user_tools']; ?></h3> 107 <ul> 108 <?php echo (new \dokuwiki\Menu\UserMenu())->getListItems(); ?> 109 </ul> 110 <?php endif; ?> 111 112 <?php if (auth_quickaclcheck($ID) > AUTH_READ): ?> 113 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 114 <ul class="pagetools"><?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?></ul> 115 <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> 116 <ul class="sitetools"><?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems(); ?></ul> 117 <?php endif; ?> 118 </div> 119 <?php endif; ?> 120 121 122 <?php $tpl_config = parse_ini_file(__DIR__ . '/style.ini', true)['replacements']; ?> 123 124 <?php if (!$tpl_config['hide__footer']): ?> 125 <!-- FOOTER --> 126 <div id="dokuwiki__footer"> 127 <div class="pad footer-flex"> 128 129 <div class="footer-left"> 130 <?php 131 $parts = []; 132 if ($tpl_config['show__file_name']) { 133 $parts[] = basename($INFO['filepath']); 134 } 135 if ($tpl_config['show__last_modified']) { 136 $parts[] = $lang['lastmod'] . ': ' . dformat($INFO['lastmod']); 137 } 138 echo implode('; ', $parts); 139 ?> 140 </div> 141 142 <?php if ($tpl_config['show__user_info'] && !empty($_SERVER['REMOTE_USER'])): ?> 143 <div class="footer-user"> 144 <?php tpl_userinfo(); ?> 145 </div> 146 <?php endif; ?> 147 </div> 148 149 <!-- License button (optional) --> 150 <div class="pad license-block"> 151 <?php tpl_license('button'); ?> 152 </div> 153 </div><!-- /dokuwiki__footer --> 154 <?php endif; ?> 155 156 <?php 157 tpl_includeFile('footer.html'); 158 if (function_exists('dwp_display_wiki_page')) { 159 dwp_display_wiki_page(":wiki:copyright"); 160 } 161 ?> 162 </div><!-- /layout-maincolumn --> 163 164 </div><!-- /layout-container --> 165 166 </div><!-- /dokuwiki__top --> 167</div><!-- /dokuwiki__site --> 168 169<div class="no"><?php tpl_indexerWebBug(); ?></div> 170<!--[if lte IE 8 ]></div><![endif]--> 171</body> 172</html> 173 174