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 12ini_set('display_errors', '1'); 13 14if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 15 16require_once('my_template.php'); 17 18$hasSidebar = page_findnearest($conf['sidebar']); 19$showSidebar = $hasSidebar && ($ACT=='show'); 20 21$htmlLang = ' lang="' . $conf['lang'] . ( $lang['direction'] != 'ltr' ? '" dir="'. $lang['direction'] : '') . '"'; 22 23?><!DOCTYPE html> 24<html<?php echo $htmlLang ?>> 25<head> 26 <meta charset="utf-8" /> 27 <title><?php tpl_pagetitle() ?> – <?php echo str_replace(' ', ' ', strip_tags($conf['title'])) ?></title> 28<?php my_metaheaders() ?> 29 <meta name="viewport" content="width=device-width,initial-scale=1" /> 30<?php tpl_includeFile('meta.html') ?> 31</head> 32<body class="site <?php echo trim(tpl_classes()); ?>"> 33 <div id="skip-link"> 34 <a href="#main-content"><?php echo $lang['skip_to_content']; ?></a> 35 </div> 36 <div id="header-layout"> 37 <header> 38 <h2 id="siteLogo"><? tpl_link( wl(), $conf['title'], 'accesskey="h" title="' . $conf['title'] . ' [H]"'); ?></h2> 39 <div id="globalTools"> 40 <div id="gUserTools"> 41 <h3 class="sronly"><?php echo $lang['user_tools']; ?></h3> 42 <ul> 43<?php my_userinfo(str_repeat(chr(9),6)); ?> 44 </ul> 45 </div> 46 </div> 47 <div id="phSearch"> 48<?php include('tpl_searchform.php'); ?> 49 </div> 50 <div id="phTools"><!-- placeholder for additional tools --></div> 51 <div id="phInclude"><?php tpl_includeFile('header.html') ?></div> 52 </header> 53 </div> 54 <div id="main-layout"<?php echo ($showSidebar && $hasSidebar ? ' class="showSidebar hasSidebar"' : ''); ?>> 55 <div id="sidebar"> 56 <h4 class="sronly"><?php echo $lang['sidebar'] ?></h4> 57 <div class="content"> 58 <nav id="sbNavigation"> 59<!-- - - - - - - - - SIDEBAR CONTENT - - - - - - - --> 60<?php 61 tpl_flush(); 62 tpl_includeFile('sidebarheader.html'); 63 tpl_include_page($conf['sidebar'], true, true); 64 tpl_includeFile('sidebarfooter.html'); 65?> </nav> 66<!-- - - - - - - - - END OF SIDEBAR - - - - - - - --> 67<?php if($conf['breadcrumbs']) { my_breadcrumbs(str_repeat(chr(9),4)); } ?> 68 </div> 69 </div> 70 <main> 71<?php my_toc(str_repeat(chr(9),3)); 72 if($conf['youarehere']) { my_youarehere(str_repeat(chr(9),3)); } 73?> <article id="main-content" itemscope itemtype="https://schema.org/Article"> 74 75<!-- - - - - - - - - ARTICLE CONTENT - - - - - - - --> 76<?php tpl_flush() ?> 77<?php tpl_includeFile('pageheader.html') ?> 78<?php tpl_content(false) ?> 79<?php tpl_includeFile('pagefooter.html') ?> 80<!-- - - - - - - - - END OF ARTICLE - - - - - - - --> 81 82 </article> 83 <footer> 84 <p class="docInfo"> 85<?php my_lastchange(str_repeat(chr(9),5)); 86?> </p> 87 </footer> 88 </main> 89 </div> 90 <div id="docinfo-layout"> 91 </div> 92 93 <div id="footer-layout"> 94 <footer> 95 <div id="gMobileTools" class="ftSection"> 96 <h4><?php echo $lang['site_tools']; ?></h4> 97 <?php echo (new \dokuwiki\Menu\MobileMenu())->getDropdown($lang['tools']); ?> 98 99 </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> 124