1<?php 2/** 3 * DokuWiki Trend Classic Template 4 * Based on the starter template 5 * 6 * @link http://dokuwiki.org/template:trendclassic 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 id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 31 32 <div id="navcontainer"> 33 <ul id="navlist"> 34 <!-- SITE TOOLS --> 35 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 36 <?php tpl_toolsevent('sitetools', array( 37 'recent' => tpl_action('recent', 1, 'li', 1), 38 'media' => tpl_action('media', 1, 'li', 1), 39 'index' => tpl_action('index', 1, 'li', 1), 40 )); ?> 41 </ul> 42 </div> 43 44 <div class="container"> 45 <?php tpl_includeFile('header.html') ?> 46 <div class="pagename"> 47 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 48 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 49 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 50 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 51 52 <?php if ($conf['tagline']): ?> 53 <p class="claim"><?php echo $conf['tagline'] ?></p> 54 <?php endif ?> 55 </div> 56 57 58 <ul class="a11y skip"> 59 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 60 </ul> 61 62 <div class="notice"><?php html_msgarea() /* occasional error and info messages on top of the page */ ?></div> 63 64 <div id="navcontainer2"> 65 <ul id="navlist"> 66 <!-- PAGE ACTIONS --> 67 <?php if ($showTools): ?> 68 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 69 <?php tpl_toolsevent('pagetools', array( 70 'edit' => tpl_action('edit', 1, 'li', 1), 71 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 72 'revisions' => tpl_action('revisions', 1, 'li', 1), 73 'backlink' => tpl_action('backlink', 1, 'li', 1), 74 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 75 'revert' => tpl_action('revert', 1, 'li', 1), 76 //'top' => tpl_action('top', 1, 'li', 1), 77 )); ?> 78 <?php endif; ?> 79 </ul> 80 </div> 81 82 <div class="row makehigh flex" style="width: auto; /* background-color: red; */"> 83 <div class="column contentbox sparewidth" style="/*width: calc(100% - 300px);*/ /* background-color: yellow; */"> 84 85 <div class="showbreak"> 86 <!-- BREADCRUMBS --> 87 <?php if($conf['breadcrumbs']){ ?> 88 <div class="xbreadcrumbs"><?php tpl_breadcrumbs() ?></div> 89 <?php } ?> 90 <?php if($conf['youarehere']){ ?> 91 <div class="xbreadcrumbs"><?php tpl_youarehere() ?></div> 92 <?php } ?> 93 </div> 94 95 <!-- ********** CONTENT ********** --> 96 <div id="dokuwiki__content"><div class="pad"> 97 <?php tpl_flush() /* flush the output buffer */ ?> 98 <?php tpl_includeFile('pageheader.html') ?> 99 100 <div class="page"> 101 <!-- wikipage start --> 102 <?php tpl_content() /* the main content */ ?> 103 <!-- wikipage stop --> 104 <div class="clearer"></div> 105 </div> 106 107 <?php tpl_flush() ?> 108 <?php tpl_includeFile('pagefooter.html') ?> 109 </div></div><!-- /content --> 110 111 <hr> 112 <div class="showbreak"> 113 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 114 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 115 </div> 116 </div> 117 118 <div class="column contentbox" style="width: 290px; /* background-color: green; */"> 119 120 <?php tpl_searchform() ?> 121 122 <!-- ********** ASIDE ********** --> 123 <?php if ($showSidebar): ?> 124 <div id="writtensidebar"> 125 <?php tpl_includeFile('sidebarheader.html') ?> 126 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 127 <?php tpl_includeFile('sidebarfooter.html') ?> 128 <div class="clearer"></div> 129 </div><!-- /aside --> 130 <?php endif; ?> 131 132 133 <div id="ddblueblockmenu"> 134 <!-- <div class="menutitle">Categories</div> 135 <ul> 136 <li><a href="">Category 1</a></li> 137 <li><a href="">Category 2</a></li> 138 </ul> --> 139 140 <!-- USER TOOLS --> 141 <?php if ($conf['useacl'] && $showTools): ?> 142 <div class="menutitle">User Tools</div> 143 <ul> 144 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 145 <?php 146 if (!empty($_SERVER['REMOTE_USER'])) { 147 echo '<li class="user">'; 148 tpl_userinfo(); /* 'Logged in as ...' */ 149 echo '</li>'; 150 } 151 ?> 152 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 153 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 154 ?> 155 <?php tpl_toolsevent('usertools', array( 156 'admin' => tpl_action('admin', 1, 'li', 1), 157 'userpage' => _tpl_action('userpage', 1, 'li', 1), 158 'profile' => tpl_action('profile', 1, 'li', 1), 159 'register' => tpl_action('register', 1, 'li', 1), 160 'login' => tpl_action('login', 1, 'li', 1), 161 )); ?> 162 <?php endif ?> 163 </ul> 164 </div> 165 <br><br> 166 <!-- right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br>right<br> --> 167 </div> 168 </div> 169 <?php tpl_includeFile('footer.html') ?> 170 <div class="no"><?php //tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 171 </div> 172 173 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 174 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 175 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 176 177 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 178 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 179 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 180 181 182 <!--[if lte IE 8 ]></div><![endif]--> 183</body> 184</html> 185