1<?php 2/** 3 * DokuWiki Starter Template 4 * 5 * @link http://dokuwiki.org/template:ipari 6 * @author Kwangyoung Lee <ipari@leaflette.com> 7 * @author Leonard Heyman <lenehey@gmail.com> 8 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) 9 */ 10 11if (!defined('DOKU_INC')) die(); 12@require_once(dirname(__FILE__).'/tpl_functions.php'); 13header('X-UA-Compatible: IE=edge,chrome=1'); 14$showSidebar = page_findnearest($conf['sidebar']); 15?> 16<!DOCTYPE html> 17<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" 18 lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> 19<head> 20 <meta charset="UTF-8" /> 21 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 22 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 23 <?php tpl_metaheaders() ?> 24 <meta name="viewport" content="width=device-width,initial-scale=1" /> 25 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 26 <?php tpl_includeFile('meta.html') ?> 27</head> 28 29<body id="dokuwiki__top"> 30 <div id="dokuwiki__site" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 31 <?php html_msgarea() ?> 32 <?php tpl_includeFile('header.html') ?> 33 34 <!-- ********** HEADER ********** --> 35 <div id="dokuwiki__header"> 36 <div class="group"> 37 <h1><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 38 <div class="left"> 39 <?php if ($showSidebar): ?> 40 <button class="btn_left" accesskey="s", title="[S]">Nav</button> 41 <?php endif; ?> 42 </div> 43 <div class="right"> 44 <button class="btn_search">Search</button> 45 <button class="btn_right" accesskey="m", title="[M]">Edit</button> 46 </div> 47 </div> 48 <div class="search"> 49 <?php tpl_searchform(); ?> 50 </div> 51 </div><!-- /header --> 52 53 <!-- ********** sidebar ********** --> 54 <div id="sidebar_wrapper"> 55 <!-- ********** ASIDE ********** --> 56 <?php if ($showSidebar): ?> 57 <div id="dokuwiki__aside" class="sidebar"> 58 <?php tpl_includeFile('sidebarheader.html') ?> 59 <?php tpl_include_page($conf['sidebar'], 1, 1) ?> 60 <?php tpl_includeFile('sidebarfooter.html') ?> 61 </div><!-- /dokuwiki__aside --> 62 <?php endif; ?> 63 64 <div id="dokuwiki__tools" class="sidebar left"> 65 <?php /* SHOW SITE AND PAGE TOOLS ONLY FOR REGISTERED USERS */?> 66 <?php if (!empty($_SERVER['REMOTE_USER'])): ?> 67 <!-- PAGE TOOLS --> 68 <div id="dokuwiki__pagetools"> 69 <h3><?php echo $lang['page_tools'] ?></h3> 70 <ul> 71 <?php whiteresume_toolsevent('pagetools', array( 72 'edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), 73 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), 74 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), 75 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), 76 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), 77 )); ?> 78 </ul> 79 </div><!-- /dokuwiki__pagetools --> 80 81 <!-- SITE TOOLS --> 82 <div id="dokuwiki__sitetools"> 83 <h3><?php echo $lang['site_tools'] ?></h3> 84 <ul> 85 <?php whiteresume_toolsevent('sitetools', array( 86 'recent' => tpl_action('recent', 1, 'li', 1, '<span>', '</span>'), 87 'media' => tpl_action('media', 1, 'li', 1, '<span>', '</span>'), 88 'index' => tpl_action('index', 1, 'li', 1, '<span>', '</span>'), 89 )); ?> 90 </ul> 91 </div><!-- /dokuwiki__sitetools --> 92 <?php endif; /* END SHOWING SITE AND PAGE TOOLS ONLY FOR REGISTERED USERS */ ?> 93 <!-- USER TOOLS --> 94 <?php if ($conf['useacl']): ?> 95 <div id="dokuwiki__usertools"> 96 <h3><?php echo $lang['user_tools'] ?></h3> 97 <ul> 98 <?php 99 whiteresume_toolsevent('usertools', array( 100 101 'login' => tpl_action('login', 1, 'li', 1, '<span>', '</span>'), 102 'register' => tpl_action('register', 1, 'li', 1, '<span>', '</span>'), 103 )); 104 // Show additional tools only if user is logged in 105 if (!empty($_SERVER['REMOTE_USER'])) { 106 whiteresume_toolsevent('usertools', array( 107 'admin' => tpl_action('admin', 1, 'li', 1, '<span>', '</span>'), 108 'profile' => tpl_action('profile', 1, 'li', 1, '<span>', '</span>'), 109 110 'login' => tpl_action('login', 1, 'li', 1, '<span>', '</span>'), 111 )); 112 } 113 ?> 114 </ul> 115 <?php 116 if (!empty($_SERVER['REMOTE_USER'])) { 117 echo '<div class="user">'; 118 tpl_userinfo(); 119 echo '</div>'; 120 } 121 ?> 122 </div><!-- /dokuwiki__usertools --> 123 <?php endif ?> 124 </div><!-- /dokuwiki__tools --> 125 126 <div id="sidebar_bg"> 127 </div> 128 129 <div id="to_top"> 130 <?php tpl_action('top') ?> 131 </div> 132 </div><!-- /sidebar_wrapper --> 133 134 <div class="wrapper group"> 135 <!-- ********** CONTENT ********** --> 136 <div id="dokuwiki__content"><div class="group"> 137 <?php tpl_flush() ?> 138 <?php tpl_includeFile('pageheader.html') ?> 139 140 <!-- BREADCRUMBS --> 141 <?php if($conf['breadcrumbs']){ ?> 142 <div class="breadcrumbs"><?php tpl_breadcrumbs($ret='›') ?></div> 143 <?php } ?> 144 <?php if($conf['youarehere']){ ?> 145 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 146 <?php } ?> 147 148 <div class="page group 149 <?php if(tpl_getConf('numberedHeading')): ?> numbered_heading<?php endif ?> 150 <?php if(tpl_getConf('tocPosition')): ?> toc_<?php echo tpl_getConf('tocPosition') ?><?php endif ?> 151 "> 152 <!-- wikipage start --> 153 <?php tpl_content() ?> 154 <!-- wikipage stop --> 155 </div> 156 157 <?php tpl_flush() ?> 158 <?php tpl_includeFile('pagefooter.html') ?> 159 </div></div><!-- /content --> 160 161 <!-- ********** FOOTER ********** --> 162 <div id="dokuwiki__footer"> 163 <?php if($INFO['exists']): ?> 164 <div class="doc"><?php whiteresume_pageinfo() ?></div> 165 <?php endif ?> 166 <?php tpl_includeFile('sidebarfooter.html') ?> 167 <?php tpl_license('badge', false, false) ?> 168 <div class="footer"> 169 <?php tpl_include_page(tpl_getConf('footer'), 1, 1) ?> 170 </div> 171 </div><!-- /footer --> 172 173 <?php tpl_includeFile('footer.html') ?> 174 </div><!-- /wrapper --> 175 176 </div><!-- /site --> 177 178 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 179</body> 180</html> 181