1<?php 2/** 3 * DokuWiki Default Template 2012 4 * 5 * @link http://dokuwiki.org/template 6 * @author Anika Henke <anika@selfthinker.org> 7 * @author Clarence Lee <clarencedglee@gmail.com> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 */ 10 11if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 12header('X-UA-Compatible: IE=edge,chrome=1'); 13 14$hasSidebar = page_findnearest($conf['sidebar']); 15$showSidebar = $hasSidebar && ($ACT=='show'); 16?><!DOCTYPE html> 17<html 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 27 28 <!--BYU header source --> 29 <script async src="https://cdn.byu.edu/byu-theme-components/1.x.x/byu-theme-components.min.js"></script> 30 <link rel="stylesheet" href="https://cdn.byu.edu/byu-theme-components/1.x.x/byu-theme-components.min.css" /> 31 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 32 33 <!--Styling for Sticky BYU Footer--> 34 <style> 35 html, body { 36 height: 100%; 37 } 38 39 .containing-element { 40 display: flex; 41 flex-direction: column; 42 height: 100%; 43 } 44 45 .page-content { 46 flex-grow: 1; 47 margin-top: 70px; 48 } 49 </style> 50 51 <!--End BYU header source--> 52 53</head> 54 55<body> 56 <div class="containing-element"> 57 <byu-header full-width> 58 <h1 slot="site-title" >ECEn Support Wiki</h1> 59 60 <!--BUTTONS--> 61 <?php 62 /*if (!empty($_SERVER['REMOTE_USER']) && $INFO['isadmin']) { 63 //Admin tools button 64 echo "<a slot=\"actions\" href=\"http://127.0.0.1/dokuwiki/doku.php?do=admin&id=user%3Aadmin%3Astart\" target=\"_self\">Admin</a>"; 65 }*/ 66 if (!empty($_SERVER['REMOTE_USER'])) { 67 //Logout Button 68 echo "<a slot=\"actions\" href=\"javascript:{}\" onclick=\"document.getElementById('log_out').submit(); return false;\">Log Out 69 <form id=\"log_out\" method=\"get\" action=\"/dokuwiki/doku.php\"> 70 <input type=\"hidden\" name=\"do\" value=\"logout\"> 71 <input type=\"hidden\" name=\"sectok\" value=\"756fc1becd1e22260cc6a2f74d2e2715\"> 72 <input type=\"hidden\" name=\"id\" value=\"start\"> 73 </form> 74 </a>"; 75 } 76 if (empty($_SERVER['REMOTE_USER'])) { 77 //Login Button 78 echo "<a slot=\"actions\" href=\"javascript:{}\" onclick=\"document.getElementById('log_in').submit(); return false;\">Log In 79 <form id=\"log_in\" method=\"get\" action=\"/dokuwiki/doku.php\"> 80 <input type=\"hidden\" name=\"do\" value=\"login\"> 81 <input type=\"hidden\" name=\"sectok\" value=\"\"> 82 <input type=\"hidden\" name=\"id\" value=\"start\"> 83 </form> 84 </a>"; 85 } 86 ?> 87 88 <!--font size css seems to be the cause of the disalignment of the search button and search box PLEASE FIX --> 89 <byu-search slot="search" action="navigate" action-target="http://127.0.0.1/dokuwiki/doku.php?do=search&id=start&q=${search}" method="get" placeholder="Search"></byu-search> 90 91 <byu-menu slot="nav" collapsed> 92 <a href="/dokuwiki/doku.php?id=start">Home</a> 93 <a href= "/dokuwiki/doku.php?id=start&do=index">Sitemap</a> 94 <a href="/dokuwiki/doku.php?id=start&do=recent">Recent Changes</a> 95 <a href="http://127.0.0.1/dokuwiki/doku.php?id=start&do=media&ns=">Media Manager</a> 96 <?php //Admin tools link 97 if (!empty($_SERVER['REMOTE_USER']) && $INFO['isadmin']) { 98 echo "<a href=\"http://127.0.0.1/dokuwiki/doku.php?do=admin&id=user%3Aadmin%3Astart\" target=\"_self\">Admin</a>"; 99 } 100 ?> 101 </byu-menu> 102 </byu-header> 103 104 <div class="page-content"> 105 106 <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php 107 echo ($showSidebar) ? 'showSidebar' : ''; ?> <?php echo ($hasSidebar) ? 'hasSidebar' : ''; ?>"> 108 109 <!--REMOVE THIS --> 110 <?php //include('tpl_header.php') ?> 111 112 <div class="wrapper group"> 113 114 <?php if($showSidebar): ?> 115 <!-- ********** ASIDE ********** --> 116 <div id="dokuwiki__aside"><div class="pad aside include group"> 117 <h3 class="toggle"><?php echo $lang['sidebar'] ?></h3> 118 <div class="content"><div class="group"> 119 <?php tpl_flush() ?> 120 <?php tpl_includeFile('sidebarheader.html') ?> 121 <?php tpl_include_page($conf['sidebar'], true, true) ?> 122 <?php tpl_includeFile('sidebarfooter.html') ?> 123 </div></div> 124 </div></div><!-- /aside --> 125 <?php endif; ?> 126 127 <!-- ********** CONTENT ********** --> 128 <div id="dokuwiki__content"><div class="pad group"> 129 <?php html_msgarea() ?> 130 131 <div class="pageId"><span><?php echo hsc($ID) ?></span></div> 132 133 <div class="page group"> 134 <?php tpl_flush() ?> 135 <?php tpl_includeFile('pageheader.html') ?> 136 <!-- wikipage start --> 137 <?php tpl_content() ?> 138 <!-- wikipage stop --> 139 <?php tpl_includeFile('pagefooter.html') ?> 140 </div> 141 142 <div class="docInfo"><?php tpl_pageinfo() ?></div> 143 144 <?php tpl_flush() ?> 145 </div></div><!-- /content --> 146 147 <hr class="a11y" /> 148 149 <!-- PAGE ACTIONS --> 150 <div id="dokuwiki__pagetools"> 151 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 152 <div class="tools"> 153 <ul> 154 <?php echo (new \dokuwiki\Menu\PageMenu())->getListItems(); ?> 155 </ul> 156 </div> 157 </div> 158 </div><!-- /wrapper --> 159 160 <?php //include('tpl_footer.php') ?> 161 </div></div><!-- /site --> 162 163 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 164 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 165 </div> 166 167 <byu-footer></byu-footer> 168 </div> 169</body> 170</html> 171