1<?php 2/** 3 * DokuWiki Pinboard Template 4 * Based on the starter template and a wordpress theme of the same name 5 * 6 * @link http://dokuwiki.org/template:mywiki 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 <link rel="preconnect" href="https://fonts.gstatic.com"> 29 <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,700;1,800&family=Oswald:wght@200;300;400;500;600;700&display=swap" rel="stylesheet"> 30</head> 31 32<?php if ($showSidebar){ 33 $contentclass = "twothirdcol"; 34} else { 35 $contentclass = "onecol"; 36} 37?> 38 39 40<body class="site <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> 41 <?php /* with these Conditional Comments you can better address IE issues in CSS files, 42 precede CSS rules by #IE8 for IE8 (div closes at the bottom) */ ?> 43 <!--[if lte IE 8 ]><div id="IE8"><![endif]--> 44 45 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 46 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 47 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 48 49 <!-- <div id="dokuwiki__site"> --><div id="wrapper"><div id="dokuwiki__top"> 50 <?php tpl_includeFile('header.html') ?> 51 52 <header id="header"> 53 <div id="site-title"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></div> 54 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 55 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 56 tpl_link(wl(),'<img src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 57 <?php if ($conf['tagline']): ?> 58 <div id="site-description"><?php echo $conf['tagline'] ?></div> 59 <?php endif ?> 60 61 <?php tpl_searchform() ?> 62 63 <ul class="a11y skip"> 64 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 65 </ul> 66 67 <div class="clear"></div> 68 69 <nav id="access"> 70 <a class="nav-show" href="#access">Show Navigation</a> 71 <a class="nav-hide" href="#nogo">Hide Navigation</a> 72 <div class="menu"><ul> 73 <!-- USER TOOLS --> 74 <?php tpl_toolsevent('usertools', array( 75 'admin' => tpl_action('admin', 1, 'li', 1), 76 'userpage' => _tpl_action('userpage', 1, 'li', 1), 77 'profile' => tpl_action('profile', 1, 'li', 1), 78 'register' => tpl_action('register', 1, 'li', 1), 79 'login' => tpl_action('login', 1, 'li', 1), 80 )); ?> 81 </ul></div> 82 <div class="menu"><ul> 83 84 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 85 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 86 ?> 87 88 89 <!-- SITE TOOLS --> 90 <?php tpl_toolsevent('sitetools', array( 91 'recent' => tpl_action('recent', 1, 'li', 1), 92 'media' => tpl_action('media', 1, 'li', 1), 93 'index' => tpl_action('index', 1, 'li', 1), 94 )); ?> 95 96 <!-- PAGE ACTIONS --> 97 <?php if ($showTools): ?> 98 <!-- <div id="dokuwiki__pagetools"> --> 99 <!-- <h3 class="a11y"><?php //echo $lang['page_tools'] ?></h3> --> 100 <!-- <ul> --> 101 <?php tpl_toolsevent('pagetools', array( 102 'edit' => tpl_action('edit', 1, 'li', 1), 103 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 104 'revisions' => tpl_action('revisions', 1, 'li', 1), 105 'backlink' => tpl_action('backlink', 1, 'li', 1), 106 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 107 'revert' => tpl_action('revert', 1, 'li', 1), 108 //'top' => tpl_action('top', 1, 'li', 1), 109 )); ?> 110 <!-- </ul> --> 111 <!-- </div> --> 112 <?php endif; ?> 113 </ul></div> 114 <div class="clear"></div> 115 </nav> 116 117 <div class="tools"> 118 <?php if ($conf['useacl'] && $showTools): ?> 119 <!-- <div id="dokuwiki__usertools"> --><div class="breadcrumbs"> 120 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 121 <ul class="resetlist"> 122 <?php 123 if (!empty($_SERVER['REMOTE_USER'])) { 124 echo '<li class="user">'; 125 tpl_userinfo(); /* 'Logged in as ...' */ 126 echo '</li>'; 127 } 128 ?> 129 </ul> 130 </div><!-- </div> --> 131 <?php endif ?> 132 133 <div id="dokuwiki__sitetools"> 134 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 135 </div> 136 137 <div class="clearer"></div> 138 139 <!-- BREADCRUMBS --> 140 <?php if($conf['breadcrumbs']){ ?> 141 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 142 <?php } ?> 143 <?php if($conf['youarehere']){ ?> 144 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 145 <?php } ?> 146 147 <div class="clearer"></div> 148 <hr class="a11y" /> 149 150 </div> 151 </header> 152 153 <div id="container"> 154 155 <section id="content" class="column <?=$contentclass;?>"><article id="post-9" class="post-9 post type-post status-publish format-standard has-post-thumbnail hentry category-uncategorized column onecol"><?php html_msgarea() /* occasional error and info messages on top of the page */ ?><div class="entry"> 156 157 158 159 <!-- ********** CONTENT ********** --> 160 <div id="dokuwiki__content"> 161 <?php tpl_flush() /* flush the output buffer */ ?> 162 <?php tpl_includeFile('pageheader.html') ?> 163 164 <div class="page"> 165 <!-- wikipage start --> 166 <?php tpl_content() /* the main content */ ?> 167 <!-- wikipage stop --> 168 <div class="clearer"></div> 169 </div> 170 171 <?php tpl_flush() ?> 172 <?php tpl_includeFile('pagefooter.html') ?> 173 </div><!-- /content --> 174 175 <div class="clearer"></div> 176 <hr class="a11y" /> 177 178 179 </div></article></section> 180 181 <div id="sidebar" class="column threecol"> 182 <div class="column twocol"> 183 <div id="sidebar-right" class="widget-area" role="complementary"> 184 <div class="column onecol"> 185 <!-- <aside id="categories-13" class="widget"><h3 class="widget-title">Categories</h3> <ul> 186 <li class="cat-item"><a href="http://localhost/wordpress/category/uncategorized/">Uncategorized</a></li> 187 </ul> 188 </aside> --> 189 190 <aside id="writtensidebar" class="widget"><!-- <h3 class="widget-title">Pages</h3> --> 191 <?php tpl_includeFile('sidebarheader.html') ?> 192 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 193 <?php tpl_includeFile('sidebarfooter.html') ?> 194 <div class="clearer"></div> 195 </aside><!-- .widget --> 196 </div> 197 </div><!-- #sidebar-right --> 198 </div><!-- .twocol --> 199 </div> 200 201 202 <div id="footer"> 203 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 204 <div id="copyright"> 205 <p> </p> 206 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 207 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 208 </div> 209 <!-- ********** FOOTER ********** --> 210 211 <?php tpl_includeFile('footer.html') ?> 212 <!--[if lte IE 8 ]></div><![endif]--> 213 </div> 214 215</div><!-- end header --> 216 217 218 219 220 </div></div> 221 222</body> 223</html> 224