1<?php 2/** 3 * DokuWiki Basical Template 4 * Based on the starter template 5 * 6 * @link http://dokuwiki.org/template:basical 7 * @author desbest <afaninthehouse@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 */ 12@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 13header('X-UA-Compatible: IE=edge,chrome=1'); 14 15$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); 16$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 17?><!DOCTYPE html> 18<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 19 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 20<head> 21 <meta charset="UTF-8" /> 22 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 23 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 24 <?php tpl_metaheaders() ?> 25 <meta name="viewport" content="width=device-width,initial-scale=1" /> 26 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 27 <?php tpl_includeFile('meta.html') ?> 28</head> 29 30<body class="site <?php 31 echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 32 33 <div class="bodyback1"></div> 34 <div class="bodyback2"></div> 35 <div class="container" id="dokuwiki__top"> 36 <?php tpl_includeFile('header.html') ?> 37 <div class="websiteheader"> 38 <div class="logohere padding1"> 39 <?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?> 40 </div> 41 42 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 43 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 44 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 45 </div> 46 <div class="photoshopbrushes"> 47 </div> 48 <div class="menuhere"> 49 <div class="bordertop"></div> 50 <ul class="a11y skip"> 51 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 52 </ul> 53 <ul class="topmenu"> 54 <li class="menu_starter"></li> 55 <!-- <li><a href="#" class="active">Home</a></li> 56 <li><a href="">Domains</a></li> 57 <li class="menu_divide"></li> --> 58 <!-- SITE TOOLS --> 59 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 60 61 <?php tpl_toolsevent('sitetools', array( 62 'recent' => tpl_action('recent', 1, 'li', 1), 63 'media' => tpl_action('media', 1, 'li', 1), 64 'index' => tpl_action('index', 1, 'li', 1), 65 )); ?> 66 <li class="menu_starter" style="float: right;"></li> 67 </ul> 68 <div class="borderbottom"></div> 69 </div> 70 71 72 73 <div class="menuhere forbread"> 74 <div class="bordertop"></div> 75 <div class="menu_starter"></div> 76 <!-- BREADCRUMBS --> 77 <?php if($conf['breadcrumbs']){ ?> 78 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 79 <?php } ?> 80 <?php if($conf['youarehere']){ ?> 81 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 82 <?php } ?> 83 <div class="menu_starter" style="float: right;"></div> 84 </div> 85 <div class="borderbottom"></div> 86 87 88 <!-- <div class="border15"></div> --> 89 90 <div class="row makehigh "> 91 <div class="column leftcol" style="background-color: #f8f8f8;"> <!-- see dokuwiki.css for column width --> 92 93 94 <?php //tpl_searchform() ?> 95 96 <!-- ********** ASIDE ********** --> 97 <?php if ($showSidebar): ?> 98 <div id="writtensidebar"> 99 <?php tpl_includeFile('sidebarheader.html') ?> 100 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 101 <?php tpl_includeFile('sidebarfooter.html') ?> 102 <div class="clearer"></div> 103 </div><!-- /aside --> 104 <?php endif; ?> 105 106 107 <div id="ddblueblockmenu"> 108 <div class="menutitle">Categories</div> 109 <ul> 110 <!-- USER TOOLS --> 111 <?php if ($conf['useacl'] && $showTools): ?> 112 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 113 <?php 114 if (!empty($_SERVER['REMOTE_USER'])) { 115 echo '<li class="user">'; 116 tpl_userinfo(); /* 'Logged in as ...' */ 117 echo '</li>'; 118 } 119 ?> 120 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 121 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 122 ?> 123 <?php tpl_toolsevent('usertools', array( 124 'admin' => tpl_action('admin', 1, 'li', 1), 125 'userpage' => _tpl_action('userpage', 1, 'li', 1), 126 'profile' => tpl_action('profile', 1, 'li', 1), 127 'register' => tpl_action('register', 1, 'li', 1), 128 'login' => tpl_action('login', 1, 'li', 1), 129 )); ?> 130 <?php endif ?> 131 </ul> 132 <div class="menutitle">Page Tools</div> 133 <ul> 134 <!-- PAGE ACTIONS --> 135 <?php if ($showTools): ?> 136 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 137 <?php tpl_toolsevent('pagetools', array( 138 'edit' => tpl_action('edit', 1, 'li', 1), 139 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 140 'revisions' => tpl_action('revisions', 1, 'li', 1), 141 'backlink' => tpl_action('backlink', 1, 'li', 1), 142 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 143 'revert' => tpl_action('revert', 1, 'li', 1), 144 'top' => tpl_action('top', 1, 'li', 1), 145 )); ?> 146 <?php endif; ?> 147 </ul> 148 </div> 149 <!-- <p>Sidebar content goes here</p> --> 150 </div> 151 <div class="column midcol <?php echo tpl_classes(); ?>"> 152 <!-- <div class="pageheader">Basical theme</div> --> 153 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 154 155 <!-- ********** CONTENT ********** --> 156 <div id="dokuwiki__content"> 157 <?php tpl_flush() /* flush the output buffer */ ?> 158 <?php tpl_includeFile('pageheader.html') ?> 159 160 <div class="page"> 161 <!-- wikipage start --> 162 <?php tpl_content() /* the main content */ ?> 163 <!-- wikipage stop --> 164 <div class="clearer"></div> 165 </div> 166 167 <?php tpl_flush() ?> 168 <?php tpl_includeFile('pagefooter.html') ?> 169 </div><!-- /content --> 170 171 172 </div> 173 <div class="column rightcol" style="background-color: #f8f8f8;"> <!-- see dokuwiki.css for column width --> 174 <!-- <p>Sidebar content goes here</p> --> 175 </div> 176 </div> 177 <div class="row"> 178 <div class="footer"><div class="footergradient"> 179 180 <div class="footercontent"> 181 182 <?php if ($conf['tagline']): ?> 183 <p class="claim"><?php echo $conf['tagline'] ?></p> 184 <?php endif ?> 185 186 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 187 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 188 189 <!-- <div class="block first"> 190 <h2>Pages</h2> 191 <ul class="footermenu"> 192 <li class="page_item"><a href="">About</a></li> 193 <li class="page_item"><a href="">Feedback</a></li> 194 </ul> 195 </div> 196 197 <div class="block"> 198 <h2>Recently</h2> 199 <ul class="footermenu"> 200 <li><a href=""><span class="date">January 2020</span> Item One </a></li> 201 <li><a href=""><span class="date">February 2020</span> Item Two </a></li> 202 <li><a href=""><span class="date">March 2020</span> Item Three </a></li> 203 <li><a href=""><span class="date">April 2020</span> Item Four</a></li> 204 205 </ul> 206 </div> 207 208 <div class="block"> 209 <h2>Categories</h2> 210 <ul class="footermenu"> 211 <li class="cat-item"><a href="">Bulletin</a></li> 212 <li class="cat-item"><a href="">Collaboration</a></li> 213 <li class="cat-item"><a href="">Comprehension</a></li> 214 <li class="cat-item"><a href="">Data</a></li> 215 </ul> 216 </div> --> 217 218 <div class="clear"></div> 219 <!--</div> --> 220 <!-- </div> --> 221 222 <p><a href="http://desbest.com" target="_blank">Basical theme by desbest</a></p> 223 224 </div> 225 <?php tpl_includeFile('footer.html') ?> 226 227 </div> 228 229 </div> 230 231 </div> 232 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 233 234 235 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 236 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 237 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 238 239 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 240 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 241 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 242 243 244 245 246 <!--[if lte IE 8 ]></div><![endif]--> 247</body> 248</html> 249