1<!-- 2Design by Free CSS Templates 3http://www.freecsstemplates.org 4http://n33.co 5https://aj.lkn.io/ 6Released for free under a Creative Commons Attribution 2.5 License 7 8Name : Varicolored 9Description: A two-column, fixed-width design with dark color scheme. 10Version : 1.0 11Released : 20130121 12 13Converted to dokuwiki by desbest http://desbest.com 14 15--> 16<?php 17/** 18 * DokuWiki Varicolored Template 19 * Based on the starter template and a theme by Free CSS Templates 20 * 21 * @link http://dokuwiki.org/template:varicolored 22 * @author desbest <afaninthehouse@gmail.com> 23 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 24 */ 25 26if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 27@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ 28header('X-UA-Compatible: IE=edge,chrome=1'); 29 30$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) ); 31$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show'); 32?><!DOCTYPE html> 33<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 34 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 35<head> 36 <meta charset="UTF-8" /> 37 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 38 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 39 <?php tpl_metaheaders() ?> 40 <meta name="viewport" content="width=device-width,initial-scale=1" /> 41 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 42 <?php tpl_includeFile('meta.html') ?> 43 <link href="http://fonts.googleapis.com/css?family=Roboto+Condensed|Open+Sans:400,300,700|Yesteryear" rel="stylesheet" type="text/css" /> 44</head> 45 46<body id="dokuwiki__top"> 47 48 49<div id="menu-wrapper"> 50 <div id="menu"> 51 <ul> 52 <!-- <li class="current_page_item"><a href="#">Homepage</a></li> --> 53 <!-- SITE TOOLS --> 54 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 55 <?php tpl_toolsevent('sitetools', array( 56 'recent' => tpl_action('recent', 1, 'li', 1), 57 'media' => tpl_action('media', 1, 'li', 1), 58 'index' => tpl_action('index', 1, 'li', 1), 59 )); ?> 60 </ul> 61 </div> 62 <!-- end #menu --> 63</div> 64<div id="header-wrapper"> 65 <?php tpl_includeFile('header.html') ?> 66 <div id="header"> 67 <div id="logo"> 68 <!-- <h1><a href="#">Vari<span>colored</span></a></h1> --> 69 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 70 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 71 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 72 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 73 <?php if ($conf['tagline']): ?> 74 <p class="claim"><?php echo $conf['tagline'] ?></p> 75 <?php endif ?> 76 77 <ul class="a11y skip"> 78 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 79 </ul> 80 </div> 81 </div> 82</div> 83<div id="wrapper"> 84 <!-- end #header --> 85 86 <div id="page"> 87 <?php html_msgarea() /* occasional error and info messages on top of the page */ ?> 88 <div id="page-bgtop"> 89 <div id="page-bgbtm"> 90 <div id="content"> 91 <div class="post"> 92 <!-- <h2 class="title"><a href="#">Welcome to Varicolored</a></h2> --> 93 <!-- <p class="meta"><span class="date">January 15, 2013</span><span class="posted">Posted by <a href="#">Someone</a></span></p> --> 94 <!-- BREADCRUMBS --> 95 <?php if($conf['breadcrumbs']){ ?> 96 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 97 <?php } ?> 98 <?php if($conf['youarehere']){ ?> 99 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 100 <?php } ?> 101 <div style="clear: both;"> </div> 102 <div class="entry"> 103 <!-- ********** CONTENT ********** --> 104 <div id="dokuwiki__content" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"><div class="pad"> 105 <?php tpl_flush() /* flush the output buffer */ ?> 106 <?php tpl_includeFile('pageheader.html') ?> 107 108 <div class="page"> 109 <!-- wikipage start --> 110 <?php tpl_content() /* the main content */ ?> 111 <!-- wikipage stop --> 112 <div class="clearer"></div> 113 </div> 114 115 <?php tpl_flush() ?> 116 <?php tpl_includeFile('pagefooter.html') ?> 117 </div></div><!-- /c 118 ontent --> 119 </div> 120 </div> 121 <!-- <div class="post post-alt"> 122 <h2 class="title"><a href="#">Lorem ipsum sed aliquam</a></h2> 123 <p class="meta"><span class="date">January 10, 2013</span><span class="posted">Posted by <a href="#">Someone</a></span></p> 124 <div style="clear: both;"> </div> 125 <div class="entry"> 126 <p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer. Donec ipsum. Proin imperdiet est. Phasellus <a href="#">dapibus semper urna</a>. Pellentesque ornare, orci in consectetuer hendrerit, urna elit eleifend nunc, ut consectetuer nisl felis ac diam. Etiam non felis. Donec ut ante. In id eros. Suspendisse lacus turpis, cursus egestas at sem. Mauris quam enim, molestie in, rhoncus ut, lobortis a, est. Suspendisse lacus turpis, cursus egestas at sem. Sed lacus. Donec lectus. </p> 127 <p class="links"><a href="#" class="button">Read More</a></p> 128 </div> 129 </div> 130 <div class="post"> 131 <h2 class="title"><a href="#">Consecteteur hendrerit </a></h2> 132 <p class="meta"><span class="date">January 08, 2013</span><span class="posted">Posted by <a href="#">Someone</a></span></p> 133 <div style="clear: both;"> </div> 134 <div class="entry"> 135 <p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer. Donec ipsum. Proin imperdiet est. Phasellus <a href="#">dapibus semper urna</a>. Pellentesque ornare, orci in consectetuer hendrerit, urna elit eleifend nunc, ut consectetuer nisl felis ac diam. Etiam non felis. Donec ut ante. In id eros. Suspendisse lacus turpis, cursus egestas at sem. Mauris quam enim, molestie in, rhoncus ut, lobortis a, est. Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. </p> 136 <p class="links"><a href="#" class="button">Read More</a></p> 137 </div> 138 </div> --> 139 <div style="clear: both;"> </div> 140 </div> 141 <!-- end #content --> 142 <div id="sidebarelement"> 143 <ul> 144 <li> 145 <h2>Search Here</h2> 146 <div id="search" > 147 <?php tpl_searchform() ?> 148 <!-- <form method="get" action="#"> 149 <div> 150 <input type="text" name="s" id="search-text" value="" /> 151 <input type="submit" id="search-submit" value="" /> 152 </div> 153 </form> --> 154 </div> 155 <div style="clear: both;"> </div> 156 </li> 157 <li> 158 <!-- ********** ASIDE ********** --> 159 <?php if ($showSidebar): ?> 160 <div id="writtensidebar"><div class="pad aside include group"> 161 <?php tpl_includeFile('sidebarheader.html') ?> 162 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 163 <?php tpl_includeFile('sidebarfooter.html') ?> 164 <div class="clearer"></div> 165 </div></div><!-- /aside --> 166 <?php endif; ?> 167 168 </li> 169 <li> 170 <!-- PAGE ACTIONS --> 171 <?php if ($showTools): ?> 172 <h2>Page Tools</h2> 173 <ul> 174 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 175 <?php tpl_toolsevent('pagetools', array( 176 'edit' => tpl_action('edit', 1, 'li', 1), 177 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 178 'revisions' => tpl_action('revisions', 1, 'li', 1), 179 'backlink' => tpl_action('backlink', 1, 'li', 1), 180 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 181 'revert' => tpl_action('revert', 1, 'li', 1), 182 'top' => tpl_action('top', 1, 'li', 1), 183 )); ?> 184 </ul> 185 <?php endif; ?> 186 </li> 187 188 <li> 189 190 <!-- USER TOOLS --> 191 <?php if ($conf['useacl'] && $showTools): ?> 192 <h2>User Tools</h2> 193 <ul> 194 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 195 <?php 196 if (!empty($_SERVER['REMOTE_USER'])) { 197 echo '<li class="user">'; 198 tpl_userinfo(); /* 'Logged in as ...' */ 199 echo '</li>'; 200 } 201 ?> 202 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 203 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 204 ?> 205 <?php tpl_toolsevent('usertools', array( 206 'admin' => tpl_action('admin', 1, 'li', 1), 207 'userpage' => _tpl_action('userpage', 1, 'li', 1), 208 'profile' => tpl_action('profile', 1, 'li', 1), 209 'register' => tpl_action('register', 1, 'li', 1), 210 'login' => tpl_action('login', 1, 'li', 1), 211 )); ?> 212 </ul> 213 <?php endif ?> 214 </li> 215 </ul> 216 </div> 217 <!-- end #sidebar --> 218 <div style="clear: both;"> </div> 219 </div> 220 </div> 221 </div> 222 <!-- end #page --> 223</div> 224<div id="footer"> 225 <p>© 2013 Sitename.com. | Photos by <a href="http://fotogrph.com/">Fotogrph</a> | Design by <a href="http://dokuwiki.org/template:variclored">FCT and converted by desbest</a>.</p> 226 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 227 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 228 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 229 <?php tpl_includeFile('footer.html') ?> 230</div> 231<!-- end #footer --> 232 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</body> 246</html> 247