1<?php 2/** 3 * DokuWiki Tripillar Template 4 * Based on the starter template 5 * 6 * @link http://dokuwiki.org/template:tripillar 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> 31 32<div id="dokuwiki__top" class='divider' style='float: left; position: relative; top: 0px;'></div> 33 <?php tpl_includeFile('header.html') ?> 34 <div class='headerpane header'> 35 <div class='padfurther'> 36 <div class='titlewrapper'> 37 <h1 class='title'><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 38 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 39 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 40 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 41 </div> 42 <div class='divider'></div> 43 <div class='descriptionwrapper header'> 44 <?php if ($conf['tagline']): ?> 45 <p class="description"><span><?php echo $conf['tagline'] ?></span></p> 46 <?php endif ?> 47 </div> 48 49 <ul class="a11y skip"> 50 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 51 </ul> 52 </div> 53 </div> 54 55 <div class='contentarea'> 56 57 <div class='statrow maincontentrow' style='height: 100%;'> 58 <div class='statcol left' style='width: 20%;'> 59 <?php if ($showSidebar): ?> 60 <div class="ddblueblockmenu"> 61 <ul> 62 <!-- ********** ASIDE ********** --> 63 <div id="writtensidebar"><div class="pad aside include group"> 64 <?php tpl_includeFile('sidebarheader.html') ?> 65 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 66 <?php tpl_includeFile('sidebarfooter.html') ?> 67 <div class="clearer"></div> 68 </div></div><!-- /aside --> 69 </ul> 70 </div> 71 <?php endif; ?> 72 </div> 73 <div class='statcol post-body' style='width: 60%; height: 100%;'> 74 75 <div class="padhere"><?php html_msgarea() /* occasional error and info messages on top of the page */ ?></div> 76 77 <div class='date-header'> 78 <!-- BREADCRUMBS --> 79 <?php if($conf['breadcrumbs']){ ?> 80 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 81 <?php } ?> 82 <?php if($conf['youarehere']){ ?> 83 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 84 <?php } ?> 85 </div> 86 87 <!-- <h3 class='post-title'><a href='#'>Week 6 Still New Strategy</a></h3> --> 88 89 90 <!-- ********** CONTENT ********** --> 91 <div id="dokuwiki__content" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"><div class="pad"> 92 <?php tpl_flush() /* flush the output buffer */ ?> 93 <?php tpl_includeFile('pageheader.html') ?> 94 95 <div class="page"> 96 <!-- wikipage start --> 97 <?php tpl_content() /* the main content */ ?> 98 <!-- wikipage stop --> 99 <div class="clearer"></div> 100 </div> 101 102 <?php tpl_flush() ?> 103 <?php tpl_includeFile('pagefooter.html') ?> 104 </div></div><!-- /content --> 105 106 <div style='clear: both;'></div> 107 <div class='post-footer'> 108 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 109 </div> 110 <div class='blog-pager'> 111 <!-- <a class='footerbutton' href='#'>Older Posts</a> 112 <a class='footerbutton' href='#'>Home</a> --> 113 </div> 114 <div class='clear'></div> 115 </div> 116 <div class='statcol right' style='width: 20%;'> 117 <div class="padhere"><?php tpl_searchform() ?></div> 118 119 <div class="ddblueblockmenu"> 120 <div class="menutitle2">Site Tools</div> 121 <ul> 122 <!-- SITE TOOLS --> 123 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 124 125 <?php tpl_toolsevent('sitetools', array( 126 'recent' => tpl_action('recent', 1, 'li', 1), 127 'media' => tpl_action('media', 1, 'li', 1), 128 'index' => tpl_action('index', 1, 'li', 1), 129 )); ?> 130 </ul> 131 </div> 132 133 <!-- PAGE ACTIONS --> 134 <?php if ($showTools): ?> 135 <div class="ddblueblockmenu"> 136 <div class="menutitle2">Page Tools</div> 137 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 138 <ul> 139 <?php tpl_toolsevent('pagetools', array( 140 'edit' => tpl_action('edit', 1, 'li', 1), 141 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 142 'revisions' => tpl_action('revisions', 1, 'li', 1), 143 'backlink' => tpl_action('backlink', 1, 'li', 1), 144 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 145 'revert' => tpl_action('revert', 1, 'li', 1), 146 'top' => tpl_action('top', 1, 'li', 1), 147 )); ?> 148 </ul> 149 </div> 150 <?php endif; ?> 151 152 <!-- USER TOOLS --> 153 <?php if ($conf['useacl'] && $showTools): ?> 154 <div class="ddblueblockmenu"> 155 <div class="menutitle2">User Tools</div> 156 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 157 <ul> 158 <?php 159 if (!empty($_SERVER['REMOTE_USER'])) { 160 echo '<li class="user">'; 161 tpl_userinfo(); /* 'Logged in as ...' */ 162 echo '</li>'; 163 } 164 ?> 165 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 166 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 167 ?> 168 <?php tpl_toolsevent('usertools', array( 169 'admin' => tpl_action('admin', 1, 'li', 1), 170 'userpage' => _tpl_action('userpage', 1, 'li', 1), 171 'profile' => tpl_action('profile', 1, 'li', 1), 172 'register' => tpl_action('register', 1, 'li', 1), 173 'login' => tpl_action('login', 1, 'li', 1), 174 )); ?> 175 </ul> 176 </div> 177 <?php endif ?> 178 179 <div class='pane purple'> 180 <span class='header'>Test block</span>Dummy text here 181 </div> 182 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 183 </div> 184 </div> <!-- end statrow --> 185 <div class='statrow cbr' style='height: 100%; margin-top: 32px; text-align:center;'> 186 <div class="centerwrapper"> 187 <div class='statcol colourblock gradient1'> 188 <span class='header'>Block 1</span> 189 </div> 190 <div class='statcol colourblock gradient2'> 191 <span class='header'>Block 2</span> 192 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 193 </div> 194 <div class='statcol colourblock gradient3'> 195 <span class='header'>Block 3</span> 196 footer block 3 197 </div> 198 </div> 199 <?php tpl_includeFile('footer.html') ?> 200 201 </div> 202 <!-- end row --> 203 </div> 204 205 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 206 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 207 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 208 209 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 210 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 211 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 212 213</body> 214</html> 215