1<?php 2/** 3 * codologic Template 4 * 5 * @link http://dokuwiki.org/template 6 * 7 * Author: Avinash D'Silva <avinash.roshan.dsilva@gmail.com|codologic.com> 8 * 9 * Previous Authors: 10 * @author Anika Henke <anika@selfthinker.org> 11 * @author Clarence Lee <clarencedglee@gmail.com> 12 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 13 */ 14 15// require functions 16require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR .'bootstrap.php'); 17 18if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */ 19header('X-UA-Compatible: IE=edge,chrome=1'); 20 21$hasSidebar = page_findnearest($conf['sidebar']); 22$showSidebar = $hasSidebar && ($ACT=='show'); 23 24?><!DOCTYPE html> 25<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 26<head> 27 <meta charset="utf-8" /> 28 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 29 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 30 <?php tpl_metaheaders() ?> 31 <meta name="viewport" content="width=device-width,initial-scale=1" /> 32 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 33 <?php tpl_includeFile('meta.html') ?> 34 35<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> 36<link href="<?php print DOKU_TPL; ?>css/ui.layout.css?v=2.1" rel="stylesheet"> 37 38<?php echo tpl_js('layout.js'); ?> 39 40<script type="text/javascript"> 41jQuery(function () 42{ 43 jQuery('#container').layout({ 44 maskContents: true, 45 center: { 46 applyDefaultStyles: true 47 }, 48 west: { 49 applyDefaultStyles: true, 50 minSize: 300 51 } 52 }); 53 54 jQuery('.ui-layout-pane').each(function () { 55 var el = jQuery(this); 56 }); 57 58 jQuery(".codo_side_content [href]").each(function () { 59 if (this.href == window.location.href) { 60 jQuery(this).addClass("codo_active"); 61 } 62 }); 63 64 function apply_space(elem, times) { 65 66 jQuery(elem).find(">li>div>a").each(function() 67 { 68 jQuery(this).html(times + jQuery(this).html()) 69 70 }); 71 72 //2017/09/20 Dirk Schnitzler: Apply spaces to the currently active page, too 73 jQuery(elem).find(">li>div>span>a").each(function() 74 { 75 jQuery(this).html(times + jQuery(this).html()) 76 }); 77 78 jQuery(elem).find(">li>ul").each(function() 79 { 80 apply_space(jQuery(this), times + ' '); 81 }); 82 83 } 84 85 apply_space(jQuery('.codo_side_content >ul'), ' '); 86 87}); 88 89</script> 90 91</head> 92 93<body> 94 95 <div id="container" style="height:100vh"> 96 <div class="ui-layout-center"> 97 98 <!--[if lte IE 7 ]><div id="IE7"><![endif]--><!--[if IE 8 ]><div id="IE8"><![endif]--> 99 <div id="dokuwiki__site"><div id="dokuwiki__top" class="site <?php echo tpl_classes(); ?> <?php 100 /*echo ($showSidebar) ? 'showSidebar' : '';*/ ?> <?php /* echo ($hasSidebar) ? 'hasSidebar' : '';*/ ?>"> 101 102 <?php include('tpl_header.php') ?> 103 104 <div class="wrapper group"> 105 106 107 108 <!-- ********** CONTENT ********** --> 109 <div id="dokuwiki__content"><div class="pad group"> 110 111 <!--<div class="pageId"><span><?php echo hsc($ID) ?></span></div>--> 112 113 <div class="page group"> 114 <?php tpl_flush() ?> 115 <?php tpl_includeFile('pageheader.html') ?> 116 <!-- wikipage start --> 117 <?php tpl_content() ?> 118 <!-- wikipage stop --> 119 <?php tpl_includeFile('pagefooter.html') ?> 120 </div> 121 122 <div class="docInfo"><?php //tpl_pageinfo() ?></div> 123 124 <?php tpl_flush() ?> 125 </div></div><!-- /content --> 126 127 <hr class="a11y" /> 128 129 <!-- PAGE ACTIONS --> 130 <div id="dokuwiki__pagetools"> 131 <h3 class="a11y"><?php echo $lang['page_tools']; ?></h3> 132 <div class="tools"> 133 <ul> 134 <?php 135 $data = array( 136 'view' => 'main', 137 'items' => array( 138 'edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 139 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 140 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 141 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 142 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 143 'top' => tpl_action('top', 1, 'li', 1, '<span>', '</span>') 144 ) 145 ); 146 147 // the page tools can be amended through a custom plugin hook 148 $evt = new Doku_Event('TEMPLATE_PAGETOOLS_DISPLAY', $data); 149 if($evt->advise_before()){ 150 foreach($evt->data['items'] as $k => $html) echo $html; 151 } 152 $evt->advise_after(); 153 unset($data); 154 unset($evt); 155 ?> 156 </ul> 157 </div> 158 </div> 159 </div><!-- /wrapper --> 160 161 <?php //include('tpl_footer.php') ?> 162 </div></div><!-- /site --> 163 164 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 165 <div id="screen__mode" class="no"></div><?php /* helper to detect CSS media query in script.js */ ?> 166 <!--[if ( lte IE 7 | IE 8 ) ]></div><![endif]--> 167 168 </div> 169 170 <div class="ui-layout-west codowiki_west"> 171 172 173 <div class='codowiki_west_header'> 174 <div class="headings group"> 175 <ul class="a11y skip"> 176 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content']; ?></a></li> 177 </ul> 178 179 <h1><?php 180 // get logo either out of the template images folder or data/media folder 181 $logoSize = array(); 182 $logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/codo_logo_s.png'), false, $logoSize); 183 184 // display logo and wiki title in a link to the home page 185 tpl_link( 186 wl(), 187 '<img src="'.$logo.'" '.$logoSize[3].' alt="" /> <span>'.$conf['title'].'</span>', 188 'accesskey="h" title="[H]"' 189 ); 190 ?></h1> 191 <?php if ($conf['tagline']): ?> 192 <p class="claim"><?php echo $conf['tagline']; ?></p> 193 <?php endif ?> 194 </div> 195 196 197 198 <div id="dokuwiki__sitetools"> 199 <h3 class="a11y"><?php echo $lang['site_tools']; ?></h3> 200 <?php tpl_searchform(); ?> 201 <!--<div class="mobileTools"> 202 <?php tpl_actiondropdown($lang['tools']); ?> 203 </div>--> 204 <ul id="codowiki_search_ul"> 205 <?php 206 tpl_action('recent', 1, 'li'); 207 tpl_action('media', 1, 'li'); 208 tpl_action('index', 1, 'li'); 209 ?> 210 </ul> 211 </div> 212 213 </div> 214 215 216 217 <?php if($showSidebar): ?> 218 <!-- ********** ASIDE ********** --> 219 <div class="codo_side_content"> 220 <?php tpl_flush() ?> 221 <?php tpl_includeFile('sidebarheader.html') ?> 222 <?php tpl_include_page($conf['sidebar'], 1, 1) ?> 223 <?php tpl_includeFile('sidebarfooter.html') ?> 224 </div> 225 226 <?php endif; ?> 227 228 <!--below div is end WEST pane--> 229 </div> 230 231 232 <!--below div is end content--> 233 </div> 234 235 <?php // include('tpl_footer.php') ?> 236</body> 237</html> 238