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