1<?php 2/** 3 * DokuWiki Clean Resurrected Template 4 * Based on the starter template 5 * 6 * @link http://dokuwiki.org/template:cleanresurrected 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 <script defer type="text/javascript" src="<?php echo tpl_basedir();?>/responsive.js"></script> 29</head> 30 31<body> 32 33 34 35 36<div class="padding6"></div><!-- add a space between the body tag and container --> 37 38<div id="dokuwiki__top" class="outercontainer <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 39 40 <!-- <div class="innercontainerback"></div> --> <!-- outdated --> 41 <!-- <div class="innercontainer md7"></div> --> 42 <div class="leftbackbar is100percentmovedown7"></div> 43 <div class="rightbackbar is100percentmovedown7"></div> 44 <!-- makes the left and right side look good --> 45 <div class="innercontainer movedown7 zindex1"><div class="fixheaderborder zindex1"></div></div> 46 <!-- make the border at the top of the .innercontainer .headerpane look better --> 47 48 <div class="innercontainer"> 49 50 <?php tpl_includeFile('header.html') ?> 51 <div class="headerpane"> 52 <div class="padding2"> 53 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 54 55 <?php if ($conf['tagline']): ?> 56 <span class="claim"><?php echo $conf['tagline'] ?></span> 57 <?php endif ?> 58 59 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 60 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 61 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 62 <ul class="a11y skip"> 63 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 64 </ul> 65 </div> 66 </div> 67 </div> 68 69 <div class="innercontainer autoheight"><div class="topmenu"><div class="padding4"> 70 <!-- <px>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam convallis id tellus vitae ultrices. Phasellus elit leo, vulputate et malesuada ac, venenatis vel augue. Mauris maximus ex ac orci blandit auctor. Praesent lectus dolor, pretium vitae ultricies vel, accumsan a ante. Fusce blandit semper suscipit. Vivamus ultricies ipsum et finibus malesuada. Aliquam tempor, tellus in bibendum fringilla, nunc lacus posuere sem, nec elementum enim eros a massa. Maecenas eleifend elementum nisi accumsan luctus. Aenean ac tortor mollis, aliquam magna vel, aliquet sapien. Fusce purus quam, pulvinar quis enim nec, ornare luctus felis. Aliquam consectetur dapibus dictum. Morbi et ex eu risus euismod viverra sit amet sit amet augue. Nam mollis hendrerit tincidunt. Sed posuere suscipit ipsum id sagittis. Mauris quis sapien vitae mi tristique accumsan. Praesent cursus dui vehicula leo viverra venenatis.</px> --> 71 72 <ul class="topmenu"> 73 <!-- <li class="active"><a href="#">Home</a></li> --> 74 <!-- SITE TOOLS --> 75 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 76 77 <?php tpl_toolsevent('sitetools', array( 78 'recent' => tpl_action('recent', 1, 'li', 1), 79 'media' => tpl_action('media', 1, 'li', 1), 80 'index' => tpl_action('index', 1, 'li', 1), 81 )); ?> 82 </ul> 83 </div></div></div> 84 85 <div class="innercontainer padding1 lightgreyback"> 86 87 <div class="row makehigh"> 88 <div class="column nofloat makehigh"><div class="padding3"> 89 90 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 91 92 <!-- BREADCRUMBS --> 93 <?php if($conf['breadcrumbs']){ ?> 94 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 95 <?php } ?> 96 <?php if($conf['youarehere']){ ?> 97 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 98 <?php } ?> 99 100 <!-- ********** CONTENT ********** --> 101 <div id="dokuwiki__content"> 102 <?php tpl_flush() /* flush the output buffer */ ?> 103 <?php tpl_includeFile('pageheader.html') ?> 104 105 <div class="page"> 106 <!-- wikipage start --> 107 <?php tpl_content() /* the main content */ ?> 108 <!-- wikipage stop --> 109 <div class="clearer"></div> 110 </div> 111 112 <?php tpl_flush() ?> 113 <?php tpl_includeFile('pagefooter.html') ?> 114 </div><!-- /content --> 115 116 117 </div><!-- end .padding3 --> 118 119 <div class="footer padding5"> 120 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 121 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 122 <p><a href="http://desbest.com" target="_blank">Clean Resurrected theme by desbest</a></p> 123 </div> 124 <?php tpl_includeFile('footer.html') ?> 125 126 </div><!-- close column --> 127 128 <div class="column nofloat sidebarback padding3 w200"><div class="padding3"> 129 <div class="padnew"><?php tpl_searchform() ?></div> 130 131 <div id="navcontainer"> 132 <!-- ********** ASIDE ********** --> 133 <?php if ($showSidebar): ?> 134 <div id="writtensidebar"> 135 <?php tpl_includeFile('sidebarheader.html') ?> 136 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 137 <?php tpl_includeFile('sidebarfooter.html') ?> 138 <div class="clearer"></div> 139 </div> 140 <?php endif; ?> 141 142 <ul id="navlist"> 143 <!-- PAGE ACTIONS --> 144 <?php if ($showTools): ?> 145 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 146 <?php tpl_toolsevent('pagetools', array( 147 'edit' => tpl_action('edit', 1, 'li', 1), 148 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 149 'revisions' => tpl_action('revisions', 1, 'li', 1), 150 'backlink' => tpl_action('backlink', 1, 'li', 1), 151 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 152 'revert' => tpl_action('revert', 1, 'li', 1), 153 'top' => tpl_action('top', 1, 'li', 1), 154 )); ?> 155 <?php endif; ?> 156 157 <!-- USER TOOLS --> 158 <?php if ($conf['useacl'] && $showTools): ?> 159 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 160 <?php 161 if (!empty($_SERVER['REMOTE_USER'])) { 162 echo '<li><a href="#">'; 163 tpl_userinfo(); /* 'Logged in as ...' */ 164 echo '</a></li>'; 165 } 166 ?> 167 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 168 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 169 ?> 170 <?php tpl_toolsevent('usertools', array( 171 'admin' => tpl_action('admin', 1, 'li', 1), 172 'userpage' => _tpl_action('userpage', 1, 'li', 1), 173 'profile' => tpl_action('profile', 1, 'li', 1), 174 'register' => tpl_action('register', 1, 'li', 1), 175 'login' => tpl_action('login', 1, 'li', 1), 176 )); ?> 177 <?php endif ?> 178 </ul> 179 </div> 180 </div></div> 181 182 </div><!-- close .row --> 183 </div> <!-- close .innercontainer --> 184 185 <div class="innercontainer"><div class="graphicalend"> 186 187 </div></div> 188 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 189 190 191 192 193 </div> <!-- end .outercontainer --> 194 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 195 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 196 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 197 198 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 199 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 200 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 201 202</body> 203</html> 204