1<?php 2/** 3 * DokuWiki Drop Template 4 * Based on the starter template and a wordpress theme of the same name 5 * 6 * @link http://dokuwiki.org/template:drop 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 <link rel='dns-prefetch' href='//fonts.googleapis.com' /> 23 <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> 24 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> 25 <?php tpl_metaheaders() ?> 26 <meta name="viewport" content="width=device-width,initial-scale=1" /> 27 <?php echo tpl_favicon(array('favicon', 'mobile')) ?> 28 <?php tpl_includeFile('meta.html') ?> 29 <link rel="stylesheet" id="ct-drop-google-fonts-css" href="//fonts.googleapis.com/css?family=Montserrat%3A400%2C700%7COpen+Sans%3A400italic%2C400%2C700&ver=5.4.4" type="text/css" media="all"> 30</head> 31 32<body id="drop"> 33 34 <?php /* the "dokuwiki__top" id is needed somewhere at the top, because that's where the "back to top" button/link links to */ ?> 35 <?php /* tpl_classes() provides useful CSS classes; if you choose not to use it, the 'dokuwiki' class at least 36 should always be in one of the surrounding elements (e.g. plugins and templates depend on it) */ ?> 37 38<div class='overflow-container <?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>' id="dokuwiki__top"> 39 <a class="skip-content" href="#main">Skip to content</a> 40<?php tpl_includeFile('header.html') ?> 41<header id="site-header" class="site-header" role="banner"> 42 43 <div itemscope itemtype="http://schema.org/Organization" class="title-info"> 44 <h1 class="site-title" itemprop="name"><?php tpl_link(wl(),$conf['title'],'accesskey="h" title="[H]"') ?></h1> 45 <?php /* how to insert logo instead (if no CSS image replacement technique is used): 46 upload your logo into the data/media folder (root of the media manager) and replace 'logo.png' accordingly: 47 tpl_link(wl(),'<img class="logo" itemprop="logo" src="'.ml('logo.png').'" alt="'.$conf['title'].'" />','id="dokuwiki__top" accesskey="h" title="[H]"') */ ?> 48 </div> 49 50 <?php //get_template_part( 'menu', 'primary' ); // adds the primary menu ?> 51 <button id="toggle-button" class="toggle-button"> 52 <i class="fa fa-bars"></i> 53 </button> 54 55 <div class='menu-slider'> 56 <div class='site-info'> 57 <?php if ($conf['tagline']): ?> 58 <p class="claim"><?php echo $conf['tagline'] ?></p> 59 <?php endif ?> 60 <div class="searchcontainer"><?php tpl_searchform() ?></div> 61 <?php 62 if (!empty($_SERVER['REMOTE_USER'])) { 63 //echo '<li class="user">'; 64 tpl_userinfo(); /* 'Logged in as ...' */ 65 //echo '</li>'; 66 } 67 ?> 68 <!-- <br><br> --> 69 <!-- <hr /> --> 70 </div> 71 72 73 74 <div class="menu-container menu-primary" role="navigation"> 75 <div class="menu-container menu-primary" role="navigation"> 76 77 <!-- ********** ASIDE ********** --> 78 <?php if ($showSidebar): ?> 79 <div id="writtensidebar"> 80 <?php tpl_includeFile('sidebarheader.html') ?> 81 <?php tpl_include_page($conf['sidebar'], 1, 1) /* includes the nearest sidebar page */ ?> 82 <?php tpl_includeFile('sidebarfooter.html') ?> 83 <div class="clearer"></div> 84 <hr> 85 </div> 86 <?php endif; ?> 87 88 <ul id="menu-primary-items" class="menu-primary-items" role="menubar"> 89 <!-- SITE TOOLS --> 90 <h3 class="a11y"><?php echo $lang['site_tools'] ?></h3> 91 92 <?php tpl_toolsevent('sitetools', array( 93 'recent' => tpl_action('recent', 1, 'li class=\'menu-item \'', 1), 94 'media' => tpl_action('media', 1, 'li class=\'menu-item \'', 1), 95 'index' => tpl_action('index', 1, 'li class=\'menu-item \'', 1), 96 )); ?> 97 98 <!-- USER TOOLS --> 99 <?php if ($conf['useacl'] && $showTools): ?> 100 <h3 class="a11y"><?php echo $lang['user_tools'] ?></h3> 101 <!-- <ul> --> 102 103 <?php /* the optional second parameter of tpl_action() switches between a link and a button, 104 e.g. a button inside a <li> would be: tpl_action('edit', 0, 'li') */ 105 ?> 106 <?php tpl_toolsevent('usertools', array( 107 'admin' => tpl_action('admin', 1, 'li', 1), 108 'userpage' => _tpl_action('userpage', 1, 'li', 1), 109 'profile' => tpl_action('profile', 1, 'li', 1), 110 'register' => tpl_action('register', 1, 'li', 1), 111 'login' => tpl_action('login', 1, 'li', 1), 112 )); ?> 113 <!-- </ul> --> 114 <?php endif ?> 115 116 </ul></div> 117 </div><!-- #menu-primary .menu-container --> 118 <?php //ct_drop_social_media_icons(); // adds social media icons ?> 119 </div> 120 121</header> 122<div id="main" class="main" role="main"> 123 124 <div class="entry" itemscope="" itemtype="http://schema.org/BlogPosting"> 125 <!-- <div itemprop="thumbnailUrl" class="featured-image" style="background-image: url('http://localhost/wordpress/wp-content/uploads/2020/02/world-cup-cake-meme.jpg')"></div> --> 126 127 <div class="excerpt-meta"> 128 129 130 <!-- PAGE ACTIONS --> 131 <?php if ($showTools): ?> 132 <h3 class="a11y"><?php echo $lang['page_tools'] ?></h3> 133 <ul class="newmetamenu"> 134 <?php tpl_toolsevent('pagetools', array( 135 'edit' => tpl_action('edit', 1, 'li', 1), 136 'discussion'=> _tpl_action('discussion', 1, 'li', 1), 137 'revisions' => tpl_action('revisions', 1, 'li', 1), 138 'backlink' => tpl_action('backlink', 1, 'li', 1), 139 'subscribe' => tpl_action('subscribe', 1, 'li', 1), 140 'revert' => tpl_action('revert', 1, 'li', 1), 141 'top' => tpl_action('top', 1, 'li', 1), 142 )); ?> 143 </ul> 144 <?php endif; ?> 145 </div> 146 <div class="entry-meta-top"> 147 <!-- BREADCRUMBS --> 148 <?php if($conf['breadcrumbs']){ ?> 149 <div class="breadcrumbs"><?php tpl_breadcrumbs() ?></div> 150 <?php } ?> 151 <?php if($conf['youarehere']){ ?> 152 <div class="breadcrumbs"><?php tpl_youarehere() ?></div> 153 <?php } ?> 154 155 <div class="dokuwikierrorsandnotices"><?php html_msgarea() /* occasional error and info messages on top of the page */ ?></div> 156 </div> 157 <!-- <div class="entry-header"> 158 <h1 class="entry-title" itemprop="headline">Test post</h1> 159 </div> --> 160 <div class="entry-content"> 161 <article itemprop="articleBody"> 162 <?php tpl_flush() /* flush the output buffer */ ?> 163 <?php tpl_includeFile('pageheader.html') ?> 164 165 <div class="page"> 166 <!-- wikipage start --> 167 <?php tpl_content() /* the main content */ ?> 168 <!-- wikipage stop --> 169 <div class="clearer"></div> 170 </div> 171 172 <?php tpl_flush() ?> 173 <?php tpl_includeFile('pagefooter.html') ?> 174 </article> 175 </div> 176 <div class="entry-meta-bottom"> 177 <ul class="a11y skip"> 178 <li><a href="#dokuwiki__content"><?php echo $lang['skip_to_content'] ?></a></li> 179 </ul> 180 181 <!-- <nav class="further-reading"><p class="prev"> 182 <span>Previous Post</span> 183 <a href="http://localhost/wordpress/hello-world/">Hello world!</a> 184 </p><p class="next"> 185 <span>This is the newest post</span> 186 <a href="http://localhost/wordpress">Return to Blog</a> 187 </p></nav> <div class="entry-categories"><p><span>Categories:</span><a href="http://localhost/wordpress/category/uncategorized/" title="View all posts in Uncategorized">Uncategorized</a></p></div> 188 <div class="entry-tags"></div> --> 189 </div> 190 </div> 191 192 <section id="comments" class="comments"> 193 </section> 194 195</div> <!-- .main --> 196 197<footer class="site-footer" role="contentinfo"> 198 <?php //get_sidebar( 'subsidiary' ); ?> 199 <div class="copyright"> 200 <div class="doc"><?php tpl_pageinfo() /* 'Last modified' etc */ ?></div> 201 <?php tpl_license('button') /* content license, parameters: img=*badge|button|0, imgonly=*0|1, return=*0|1 */ ?> 202 <p>Designed by <a href="http://www.competethemes.com">Compete Themes</a></p> 203 <?php tpl_includeFile('footer.html') ?> 204 </div> 205</footer> 206 207 208 209 210 <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> 211 212 <script type="text/javascript" src="<?php echo tpl_basedir();?>/functions.js"></script> 213 <!-- due to the way dokuwiki buffers output, this javascript has to 214 be before the </body> tag and not in the <head> --> 215</body> 216</html> 217