1<?php 2/** 3 * Ad Hominem Template 4 * 5 * @link https://ad.hominem.info/ 6 * @author Sascha Leib <sascha@leib.be> 7 * @author Anika Henke <anika@selfthinker.org> 8 * @author Clarence Lee <clarencedglee@gmail.com> 9 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 10 */ 11 12if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 13 14require_once('my_template.php'); 15 16$hasSidebar = page_findnearest($conf['sidebar']); 17$showSidebar = $hasSidebar && ($ACT=='show'); 18 19// get the language information: 20$htmlLang = ' lang="' . $conf['lang'] . ( $lang['direction'] != 'ltr' ? '" dir="'. $lang['direction'] : '') . '"'; 21 22?><!DOCTYPE html> 23<html<?php echo $htmlLang ?>> 24<head> 25 <meta charset="UTF-8" /> 26 <title><?php tpl_pagetitle() ?> – <?php echo str_replace(' ', ' ', strip_tags($conf['title'])) ?></title> 27<?php my_metaheaders() ?> 28<?php my_favicons() ?> 29<?php tpl_includeFile('meta.html') ?> 30</head> 31<body class="site <?php echo trim(tpl_classes()); ?>"> 32 <div id="skip-link"> 33 <a href="#main-content"><?php echo $lang['skip_to_content']; ?></a> 34 </div> 35 <div id="header-layout"> 36 <header> 37 <div id="siteLogo"> 38 <?php my_sitelogo(); ?> 39 40 <h2 class="title"><?php tpl_link( wl(), htmlentities($conf['title']), ''); ?></h2> 41 <p class="claim"><?php echo $conf['tagline']; ?></p> 42 </div> 43 <div id="globalTools"> 44 <div id="gUserTools"> 45 <h3 class="sronly"><?php echo $lang['user_tools']; ?></h3> 46 <ul> 47<?php my_userinfo(str_repeat(chr(9),6)); ?> 48 </ul> 49 </div> 50 </div> 51 <div id="phSearch"> 52<?php include('tpl_searchform.php'); ?> 53 </div> 54 <div id="phTools"><!-- placeholder for additional tools --></div> 55 <div id="phInclude"><?php tpl_includeFile('header.html') ?></div> 56 </header> 57 </div> 58 <div id="main-layout"> 59 <div id="sidebar" class="toggle <?php 60 echo ( $showSidebar ? 'auto' : 'hide' ); ?>"> 61 <button class="tg_button" title="<?php echo $lang['sidebar'] ?>"><span><?php echo $lang['sidebar'] ?></span></button> 62 <div class="tg_content"> 63 <nav id="sbNavigation"> 64<!-- - - - - - - - - SIDEBAR CONTENT - - - - - - - --> 65<?php 66 tpl_flush(); 67 tpl_includeFile('sidebarheader.html'); 68 tpl_include_page($conf['sidebar'], true, true); 69 tpl_includeFile('sidebarfooter.html'); 70?> </nav> 71<!-- - - - - - - - - END OF SIDEBAR CONTENT - - - - - - - --> 72 <div id="sbBreadcrumbs"> 73<?php if($conf['breadcrumbs']) { my_breadcrumbs(str_repeat(chr(9),4)); } ?> 74 </div> 75 </div> 76 </div> 77 <main id="dokuwiki__top"> 78 <header> 79<?php my_toc(str_repeat(chr(9),4)); 80 tpl_flush(); 81 tpl_includeFile('pageheader.html'); 82 if($conf['youarehere']) { my_youarehere(str_repeat(chr(9),4)); } 83?> </header> 84 <article id="main-content"> 85<!-- - - - - - - - - ARTICLE CONTENT - - - - - - - --> 86<?php tpl_content(false) ?> 87<!-- - - - - - - - - END OF ARTICLE - - - - - - - --> 88 </article> 89 <footer> 90 <p class="docInfo"> 91<?php my_lastchange(str_repeat(chr(9),5)); 92?> </p> 93<?php tpl_includeFile('pagefooter.html') ?> 94 </footer> 95 </main> 96 </div> 97 <div id="footer-layout"> 98 <footer> 99 <div id="ftPlaceholder" class="ftSection"></div> 100 <div id="ftInclude" class="ftSection"> 101<?php tpl_includeFile('footer.html'); ?> 102 </div> 103 <div id="ftSiteTools" class="ftSection"> 104 <h4><?php echo $lang['site_tools']; ?></h4> 105 <ul> 106 <?php echo (new \dokuwiki\Menu\SiteMenu())->getListItems('action ', false); ?> 107 108 </ul> 109 </div> 110 <div id="ftPageTools" class="ftSection"> 111 <h4><?php echo $lang['page_tools']; ?></h4> 112 <ul> 113 <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems('', false); ?> 114 115 </ul> 116 </div> 117<?php include('tpl_footer.php') ?> 118 </footer> 119 </div> 120 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 121 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 122</body> 123</html>