function testExistingSidebars() { global $ID; saveWikiText('sidebar', 'topsidebar-test', ''); $ID = 'foo:bar:baz:test'; $sidebar = tpl_include_page('sidebar', false, true); $this->assertTrue(strpos($sidebar, 'topsidebar-test') > 0); $ID = 'foo'; $sidebar = tpl_include_page('sidebar', false, true); $this->assertTrue(strpos($sidebar, 'topsidebar-test') > 0); saveWikiText('foo:bar:sidebar', 'bottomsidebar-test', ''); $ID = 'foo:bar:baz:test'; $sidebar = tpl_include_page('sidebar', false, true); $this->assertTrue(strpos($sidebar, 'bottomsidebar-test') > 0); $ID = 'foo:bar:test'; $sidebar = tpl_include_page('sidebar', false, true); $this->assertTrue(strpos($sidebar, 'bottomsidebar-test') > 0); $ID = 'foo'; $sidebar = tpl_include_page('sidebar', false, true); $this->assertTrue(strpos($sidebar, 'topsidebar-test') > 0); }
/** * DokuWiki Bootstrap3 Template: Cookie Law Banner * * @link http://dokuwiki.org/template:bootstrap3 * @author Giuseppe Di Terlizzi <*****@*****.**> * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ if ($showCookieLawBanner && !(get_doku_pref('cookieNoticeAccepted', null) || get_doku_pref('cookieNoticeAccepted', ''))) { ?> <div id="cookieNotice" class="navbar <?php echo $inverseNavbar ? 'navbar-inverse' : 'navbar-default'; ?> navbar-fixed-bottom"> <div class="container"> <?php tpl_include_page($cookieLawBannerPage); ?> <div class="navbar-right"> <button class="btn btn-primary btn-xs navbar-btn" id="cookieDismiss">OK</button> <?php tpl_link(wl($cookieLawPolicyPage), 'Policy', 'class="btn btn-default btn-xs navbar-btn" id="cookiePolicy"'); ?> </div> </div> </div> <script type="text/javascript"> jQuery('#cookieDismiss').click(function(){ jQuery('#cookieNotice').hide(); DokuCookie.setValue('cookieNoticeAccepted', true); }); jQuery(document).ready(function(){
if ($toc) { echo '<div class="dw-page-row row">'; } echo '<div class="dw-content' . ($toc ? ' dw-content-with-toc col-sm-9' . (bootstrap3_conf('tocPosition') == 'left' ? ' col-md-push-3' : '') : '') . '">'; echo $content; echo '</div>'; // Include the TOC layout if ($toc) { echo '<div class="dw-toc hidden-print col-sm-3' . (bootstrap3_conf('tocPosition') == 'left' ? ' col-sm-pull-9' : '') . '">' . $toc . '</div></div>'; } tpl_flush(); // Page-Footer hook tpl_includeFile('pagefooter.html'); // Page-Footer DokuWiki page if ($ACT == 'show') { tpl_include_page('pagefooter', 1, 1, bootstrap3_conf('useACL')); } ?> </div> </div> </article> <?php bootstrap3_sidebar_include('right'); ?> </main> <div class="small text-right">
tpl_action('media', 1, 'li'); } tpl_action('index', 1, 'li'); ?> </ul> </div> </div> <!-- TOPBAR - @tpl_mtb_schotland_2016-template@ --> <div class="topbar"> <?php if (tpl_getConf("tpl_mtb_schotland_2016:htmltopbar")) { tpl_includeFile('topbar.php'); } else { tpl_include_page(tpl_getConf("tpl_mtb_schotland_2016:pagetopbar"), 1, 1); } ?> </div> <!-- BREADCRUMBS --> <?php if ($conf['breadcrumbs'] || $conf['youarehere']) { ?> <div class="breadcrumbs"> <?php if ($conf['youarehere']) { ?> <div class="youarehere"><?php tpl_youarehere(); ?>
<!-- ********** ASIDE ********** --> <aside id="<?php echo $sidebar_id; ?> " class="dw__sidebar <?php echo $sidebar_class; ?> hidden-print"> <div class="content"> <div class="toogle hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php echo $sidebar_id; ?> .collapse"> <i class="glyphicon glyphicon-th-list"></i> <?php echo $lang['sidebar']; ?> </div> <div class="collapse in"> <?php tpl_includeFile($sidebar_header); ?> <?php bootstrap_sidebar(tpl_include_page($sidebar_page, 0, 1)); ?> <?php tpl_includeFile($sidebar_footer); ?> </div> </div> </aside>
$toc = bootstrap3_toc(tpl_toc(true), true); $content = '<div class="dw-content">' . $content . '</div>'; // Include Page Tools require_once 'tpl_page_tools.php'; // Include the TOC layout if ($toc) { require_once 'tpl_toc.php'; } else { echo $content; } tpl_flush(); // Page-Footer hook tpl_includeFile('pagefooter.html'); // Page-Footer DokuWiki page if ($ACT == 'show') { tpl_include_page('pagefooter', 1, 1); } ?> </div> </div> </article> <?php bootstrap3_sidebar_include('right'); ?> </main> <footer id="dokuwiki__footer" class="small">
<?php $ssbar = dirname(__FILE__) . '/sidebar.html'; if (file_exists($ssbar)) { @(include $ssbar); } else { $ssbar = dirname(__FILE__) . '/sidebar.php'; if (file_exists($ssbar)) { @(include $ssbar); } } ?> <div id="personal_ssb"> <?php global $INFO; $pageid = "sidebar:" . $INFO['client']; tpl_include_page($pageid); ?> </div> </div> <!-- end left_sidebar--> <div class="page"> <div class="right_page <?php echo $current_class; ?> " id="right_page"> <!-- wikipage start --> <?php tpl_content(); ?> <!-- wikipage stop -->
<!-- ********** ASIDE ********** --> <aside id="<?php echo $sidebar_id; ?> " class="dw__sidebar <?php echo $sidebar_class; ?> hidden-print small"> <div class="dw-sidebar-content"> <div class="dw-sidebar-title hidden-lg hidden-md hidden-sm" data-toggle="collapse" data-target="#<?php echo $sidebar_id; ?> .dw-sidebar-body"> <i class="fa fa-fw fa-th-list"></i> <?php echo $lang['sidebar']; ?> </div> <div class="dw-sidebar-body collapse in"> <?php tpl_includeFile($sidebar_header); ?> <?php bootstrap3_sidebar(tpl_include_page($sidebar_page, 0, 1, bootstrap3_conf('useACL'))); ?> <?php tpl_includeFile($sidebar_footer); ?> </div> </div> </aside>
if (!$print) { return $html; } echo $html; return $html; } //Sidebar with replace CONSTANTS $search = array("_USERNAME_", "_CLIENTNAME_", "_PAGEID_"); $replace = array($INFO["userinfo"]["name"], $_SERVER['REMOTE_USER'], $ID); if ($_SERVER['REMOTE_USER'] && page_exists('user:'******'REMOTE_USER'] . ':sidebar')) { $sidebar = template_tpl_include_page('user:'******'REMOTE_USER'] . ':sidebar', 0, 0, template_getLastModOfGivenPageId('user:'******'REMOTE_USER'] . ':sidebar')); } else { if ($_SERVER['REMOTE_USER'] && page_exists('user:sidebar')) { $sidebar = template_tpl_include_page('user:sidebar', 0, 0, template_getLastModOfGivenPageId('user:sidebar')); } else { $sidebar = tpl_include_page('sidebar', 0, 0, ''); } } $sidebar = str_ireplace($search, $replace, $sidebar); $hasSidebar = $sidebar ? true : false; $showSidebar = $hasSidebar && $ACT == 'show'; ?> <!DOCTYPE html> <html lang="<?php echo $conf['lang']; ?> " dir="<?php echo $lang['direction']; ?> " class="no-js"> <head>
$_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-recentchanges\"><a href=\"" . wl("", array("do" => "recent")) . "\" rel=\"nofollow\">" . hsc($lang["btn_recent"]) . "</a></li>\n"; //language comes from DokuWiki core } $_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-upload\"><a href=\"" . DOKU_BASE . "lib/exe/mediamanager.php?ns=" . getNS(getID()) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolbxdef_upload"]) . "</a></li>\n"; if (actionOK("index")) { //check if action is disabled $_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-special\"><a href=\"" . wl("", array("do" => "index")) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolbxdef_siteindex"]) . "</a></li>\n"; } $_vector_boxes["p-tb"]["xhtml"] .= " <li id=\"t-permanent\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev)) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolboxdef_permanent"]) . "</a></li>\n" . " <li id=\"t-cite\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev, "vecdo" => "cite")) . "\" rel=\"nofollow\">" . hsc($lang["vector_toolboxdef_cite"]) . "</a></li>\n" . " </ul>"; } else { //we have to use a custom toolbox if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("vector_toolbox_location"))) >= AUTH_READ) { //current user got access? //get the rendered content of the defined wiki article to use as //custom toolbox $interim = tpl_include_page(tpl_getConf("vector_toolbox_location"), false); if ($interim === "" || $interim === false) { //add creation/edit link if the defined page got no content $_vector_boxes["p-tb"]["xhtml"] = "<li>[ " . html_wikilink(tpl_getConf("vector_toolbox_location"), hsc($lang["vector_fillplaceholder"] . " (" . tpl_getConf("vector_toolbox_location") . ")"), null) . " ]<br /></li>"; } else { //add the rendered page content $_vector_boxes["p-tb"]["xhtml"] = $interim; } } else { //we are not allowed to show the content of the defined wiki //article to use as custom sitenotice. //$_vector_boxes["p-tb"]["xhtml"] = hsc($lang["vector_accessdenied"])." (".tpl_getConf("vector_toolbox_location").")"; } } } } else {
<p>Who am I? I answer to Piete or Pieter and I try to be more than just my job title.</p> <p>Browse my <?php tpl_pagelink(':blog'); ?> , read <?php tpl_pagelink(':about', 'about me'); ?> , or listen to my <?php tpl_pagelink(':music'); ?> .</p> </section> <nav id="tags"> <?php tpl_include_page("sidebar"); ?> </nav> <?php /* <?php if (tpl_getConf('lookingforme')) { ?> <nav id="calendar"> <?php tpl_include_page("calendar_sidebar") ?> </nav> <?php } ?> */ ?> </section>
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ if (!defined('DOKU_INC')) { die; } /* must be run from within DokuWiki */ @(require_once dirname(__FILE__) . '/tpl_functions.php'); /* include hook for template functions */ header('X-UA-Compatible: IE=edge,chrome=1'); _mixture_init(); $showTools = !tpl_getConf('hideTools') || tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']); $showSidebar = page_findnearest($conf['sidebar']) && $ACT == 'show'; // Retrieve number of last changes to show $showLastChanges = intval(end(explode(',', tpl_getConf('lastchanges')))); // Get topbar links from current Namespace or any parent (if corresponding namespacedFiles setting is on) or from wiki root $topbar = tpl_include_page('topbar', false, strpos(tpl_getConf('namespacedFiles'), 'topbar_links') !== false ? true : false); //$contribs = tpl_include_page('contribs', false, true); //dbg($contribs); // Get Web Fonts names from style.ini file to load them with WebFont.load global $styleIni; $webFonts = array(); $webFonts['main'] = $styleIni['replacements']['__font_main__']; $webFonts['headings'] = $styleIni['replacements']['__font_headings__']; $webFonts['condensed'] = $styleIni['replacements']['__font_condensed__']; $webFonts['mono'] = $styleIni['replacements']['__font_mono__']; ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']; ?> "
</a> </div> </div> </div> <div id="tm-offcanvas" class="uk-offcanvas"> <div class="uk-offcanvas-bar uk-offcanvas-bar-show"> <ul class="uk-nav uk-nav-offcanvas"> <?php $nav = explode(':', tpl_pagetitle(NULL, true)); array_pop($nav); $nav = count($nav) > 0 ? implode(':', $nav) . ':navigation' : 'navigation'; echo strip_tags(tpl_include_page($nav, 0, 0), '<li><a>'); if ($nav) { echo ''; } ?> </ul> </div> </div> <div class="uk-tooltip"></div> <form action="#"> <input class="fixjs" type="hidden" name="title" value="<?php
if (empty($transplugin_langs) || empty($transplugin_langcur) || !is_array($transplugin_langs) || !in_array($transplugin_langcur, $transplugin_langs)) { //current page is no translation or something is wrong, load default copyright notice $copyright_location = tpl_getConf("monobook_copyright_location"); } else { //load language specific copyright notice $copyright_location = tpl_getConf("monobook_copyright_location") . "_" . $transplugin_langcur; } } else { //default copyright notice, no translation $copyright_location = tpl_getConf("monobook_copyright_location"); } if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID($copyright_location)) >= AUTH_READ) { //current user got access? echo "<li id=\"copyright\">\n "; //get the rendered content of the defined wiki article to use as custom notice $interim = tpl_include_page($copyright_location, false); if ($interim === "" || $interim === false) { //show creation/edit link if the defined page got no content echo "[ "; tpl_pagelink($copyright_location, hsc($lang["monobook_fillplaceholder"] . " (" . hsc($copyright_location) . ")")); echo " ]<br />"; } else { //show the rendered page content echo "<div class=\"dokuwiki\">\n" . $interim . "\n " . "</div>"; } echo "\n </li>\n"; } } } ?> <li id="usermod">
<?php //copyright notice if (tpl_getConf("vector_copyright")) { //show dokuwiki's default notice? if (tpl_getConf("vector_copyright_default")) { echo "<li id=\"footer-info-copyright\">\n <div class=\"dokuwiki\">"; //dokuwiki CSS class needed cause we have to show DokuWiki content tpl_license(false); echo "</div>\n </li>\n"; //show custom notice. } else { if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("vector_copyright_location"))) >= AUTH_READ) { //current user got access? echo "<li id=\"footer-info-copyright\">\n "; //get the rendered content of the defined wiki article to use as custom notice $interim = tpl_include_page(tpl_getConf("vector_copyright_location"), false); if ($interim === "" || $interim === false) { //show creation/edit link if the defined page got no content echo "[ "; tpl_pagelink(tpl_getConf("vector_copyright_location"), hsc($lang["vector_fillplaceholder"] . " (" . tpl_getConf("vector_copyright_location") . ")")); echo " ]<br />"; } else { //show the rendered page content echo "<div class=\"dokuwiki\">\n" . $interim . "\n " . "</div>"; } echo "\n </li>\n"; } } } ?> </ul>
* DokuWiki Bootstrap3 Template: Footer page * * @link http://dokuwiki.org/template:bootstrap3 * @author Giuseppe Di Terlizzi <*****@*****.**> * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) */ // must be run from within DokuWiki if (!defined('DOKU_INC')) { die; } $footer_page = 'footer'; resolve_pageid('', $footer_page, $footer_page_exists); if ($footer_page_exists) { ?> <div id="dw__footer" class="navbar <?php echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default'; ?> navbar-fixed-bottom"> <div class="container<?php echo $fluidContainer ? '-fluid' : ''; ?> "> <div class="navbar-text"> <?php tpl_include_page($footer_page, 1, 1); ?> </div> </div> </div> <?php }
tpl_action('login', 1, 'li'); ?> </ul> </div> <?php } ?> </div> <!-- BREADCRUMBS --> <?php if ($conf['breadcrumbs'] || $conf['youarehere']) { ?> <div class="breadcrumbs"> <div class="trace"> <?php tpl_include_page('nav', 1, 1); ?> </div> </div> <?php } ?> <?php html_msgarea(); ?> <hr class="a11y" /> </div></div><!-- /header -->
if (!defined('DOKU_INC')) { die; } if (bootstrap3_conf('showCookieLawBanner') && !(get_doku_pref('cookieNoticeAccepted', null) || get_doku_pref('cookieNoticeAccepted', ''))) { $cookie_policy_page_id = bootstrap3_conf('cookieLawPolicyPage'); $cookie_banner_page_id = bootstrap3_conf('cookieLawBannerPage'); resolve_pageid('', $cookie_policy_page_id, $cookie_policy_page_exists); ?> <div id="cookieNotice" class="navbar <?php echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default'; ?> navbar-fixed-bottom"> <div class="container"> <div class="navbar-text navbar-left"> <?php $cookie_banner_page = tpl_include_page($cookie_banner_page_id, 0); $cookie_banner_page = preg_replace('/<p>\\n(.*?)\\n<\\/p>/', '<i class="fa fa-info-circle text-primary"></i> $1', $cookie_banner_page); echo $cookie_banner_page; ?> </div> <div class="navbar-right"> <button class="btn btn-primary btn-xs navbar-btn" id="cookieDismiss">OK</button> <?php if ($cookie_policy_page_exists) { tpl_link(wl($cookie_policy_page_id), 'Policy', 'class="btn btn-default btn-xs navbar-btn" id="cookiePolicy"'); } ?> </div> </div> </div> <?php
/** * Return a drop-down page * * @author Giuseppe Di Terlizzi <*****@*****.**> * * @param string $page name * @return string */ function bootstrap3_dropdown_page($page) { $page = page_findnearest($page); if (!$page) { return; } $output = bootstrap3_nav(tpl_include_page($page, 0, 1), 'pills', true); $dropdown = '<ul class="nav navbar-nav dw__dropdown_page">' . '<li class="dropdown dropdown-large">' . '<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="">' . p_get_first_heading($page) . ' <span class="caret"></span></a>' . '<ul class="dropdown-menu dropdown-menu-large" role="menu">' . '<li><div class="container">' . $output . '</div></li></ul></li></ul>'; return $dropdown; }
} } } ?> </div><?php //copyright notice if (tpl_getConf("prsnl10_copyright")) { echo "\n <div id=\"licenseinfo\">\n "; if (tpl_getConf("prsnl10_copyright_default")) { tpl_license(false); } else { if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("prsnl10_copyright_location")))) { //current user got access? //get the rendered content of the defined wiki article to use as custom notice $interim = tpl_include_page(tpl_getConf("prsnl10_copyright_location"), false); if ($interim === "" || $interim === false) { //show creation/edit link if the defined page got no content echo "[ "; tpl_pagelink(tpl_getConf("prsnl10_copyright_location"), hsc($lang["prsnl10_fillplaceholder"] . " (" . tpl_getConf("prsnl10_copyright_location") . ")")); echo " ]<br />"; } else { //show the rendered page content echo $interim; } } } echo "\n </div>"; } ?>
?> <!-- ********** ASIDE ********** --> <div id="dokuwiki__aside"><div class="pad aside include group"> <h3 class="toggle"><?php echo $lang['sidebar']; ?> </h3> <div class="content"><div class="group"> <?php tpl_flush(); ?> <?php tpl_includeFile('sidebarheader.html'); ?> <?php tpl_include_page($conf['sidebar'], true, true); ?> <?php tpl_includeFile('sidebarfooter.html'); ?> </div></div> </div></div><!-- /aside --> <?php } ?> <!-- ********** CONTENT ********** --> <div id="dokuwiki__content"><div class="pad group"> <?php html_msgarea(); ?>
//add link to a printable version? this is not needed in every case (and //therefore configurable) cause the print stylesheets are used automatically //by common browsers if the user wants to print. but often users are //searching for a print version instead of using the browser's printing //preview... if (tpl_getConf("monobook_toolbox_default_print")) { $_monobook_boxes["p-tb"]["xhtml"] .= " <li id=\"tb-print\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev, "mddo" => "print")) . "\" rel=\"nofollow\">" . hsc($lang["monobook_toolbxdef_print"]) . "</a></li>\n"; } $_monobook_boxes["p-tb"]["xhtml"] .= " <li id=\"tb-permanent\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev)) . "\" rel=\"nofollow\">" . hsc($lang["monobook_toolboxdef_permanent"]) . "</a></li>\n" . " <li id=\"tb-cite\"><a href=\"" . wl(cleanID(getId()), array("rev" => (int) $rev, "mddo" => "cite")) . "\" rel=\"nofollow\">" . hsc($lang["monobook_toolboxdef_cite"]) . "</a></li>\n" . " </ul>"; } else { //we have to use a custom toolbox if (empty($conf["useacl"]) || auth_quickaclcheck(cleanID(tpl_getConf("monobook_toolbox_location"))) >= AUTH_READ) { //current user got access? //get the rendered content of the defined wiki article to use as //custom toolbox $interim = tpl_include_page(tpl_getConf("monobook_toolbox_location"), false); if ($interim === "" || $interim === false) { //add creation/edit link if the defined page got no content $_monobook_boxes["p-tb"]["xhtml"] = "<li>[ " . html_wikilink(tpl_getConf("monobook_toolbox_location"), hsc($lang["monobook_fillplaceholder"] . " (" . tpl_getConf("monobook_toolbox_location") . ")"), null) . " ]<br /></li>"; } else { //add the rendered page content $_monobook_boxes["p-tb"]["xhtml"] = $interim . "\n"; } } else { //we are not allowed to show the content of the defined wiki //article to use as custom sitenotice. //$_monobook_boxes["p-tb"]["xhtml"] = hsc($lang["monobook_accessdenied"])." (".tpl_getConf("monobook_toolbox_location").")"; } } } //Languages/translations provided by Andreas Gohr's translation plugin,
tpl_action('recent', 1, 'li'); tpl_action('media', 1, 'li'); tpl_action('index', 1, 'li'); ?> </ul> </div> </div> <!-- TOPBAR - @20cones-template@ --> <div class="topbar"> <?php if (tpl_getConf("20cones_htmltopbar")) { tpl_includeFile('topbar.html'); } else { tpl_include_page(tpl_getConf("20cones_pagetopbar"), 1, 1); } ?> </div> <!-- BREADCRUMBS --> <?php if ($conf['breadcrumbs'] || $conf['youarehere']) { ?> <div class="breadcrumbs"> <?php if ($conf['youarehere']) { ?> <div class="youarehere"><?php tpl_youarehere(); ?>
?> <div class="m1-sidebox m1-side-register"> <ul> <?php _tpl_toolsevent('usertools', array('admin' => tpl_action('admin', 1, 'li', 1), 'profile' => tpl_action('profile', 1, 'li', 1), 'register' => tpl_action('register', 1, 'li', 1), 'login' => tpl_action('login', 1, 'li', 1))); ?> </ul> </div> <!--Uncomment this to include a wiki page in your sidebar <div class="m1-sidebox"> <h3>Sidebar Title</h3> <?php tpl_include_page("wiki:somepage", 1, 1); ?> </div> --> <div class="m1-sidebox"> <h3>Sidebar Title</h3> <p>Content here...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce augue augue, tristique a leo sit amet, laoreet malesuada purus. Etiam est dui, adipiscing at ultricies vel, gravida sit amet turpis. Duis erat metus, bibendum ut molestie quis, tempor quis ligula. Phasellus mollis auctor tellus, et imperdiet sem tincidunt eu. In quis odio nec nulla vestibulum semper a sed ipsum. Interdum et malesuada fames ac ante ipsum primis in faucibus. Integer et turpis augue. Pellentesque mattis, tortor sed consectetur fringilla, sapien velit sagittis libero, auctor mollis quam eros id lectus. Nulla id aliquam dolor.</p> </div> <div class="m1-sidebox m1-side-tools"> <h3>Tools</h3> <ul> <?php _tpl_toolsevent('pagetools', array('edit' => tpl_action('edit', 1, 'li', 1), 'revisions' => tpl_action('revisions', 1, 'li', 1), 'revert' => tpl_action('revert', 1, 'li', 1)));
/** * Include the sidebar, will check current namespaces first */ function tpl_sidebar($print = true) { global $conf; $sidebar = page_findnearest($conf['sidebar']); if ($sidebar) { return tpl_include_page($sidebar, $print); } return ''; }
</div> </div> <div id="wiki_toc" style="display:none" class="dokuwiki"> <h5 style="text-align:center;margin:0;border:none;">Table of Contents</h5> <?php tpl_toc(); ?> </div> <div id="wiki_nav" style="display:none" class="dokuwiki" > <h5 style="text-align:center;margin:0;border:none;">Navigation</h5> <?php tpl_include_page(":wiki:navigation_mobile"); ?> </div> <script> jQuery('#toggle_nav').click(function() { jQuery('#wiki_nav').toggle(); jQuery('#wiki_toc').hide(); jQuery('#wiki_admin').hide(); }); jQuery('#toggle_toc').click(function() { jQuery('#wiki_toc').toggle();
?> <ul> <?php tpl_action('recent', 1, 'li'); tpl_action('index', 1, 'li'); ?> </ul> </div> </div> <div class="clearer"></div> <!-- ********** tabs ********** --> <div id="dokuwiki__tabs"> <?php tpl_include_page(tpl_getConf('sidebarID')); ?> </div><!-- /tabs --> <div class="clearer"></div> <!-- BREADCRUMBS --> <?php if ($conf['breadcrumbs']) { ?> <div class="breadcrumbs"><?php tpl_breadcrumbs(); ?> </div> <?php } ?>
<?php tpl_flush(); ?> <?php tpl_includeFile('pagefooter.html'); ?> </div><!-- /content --> <!-- ********** SIDEBAR ********** --> <div id="dokuwiki__aside"> <?php tpl_includeFile('sidebarheader.html'); ?> <?php tpl_include_page(tpl_getConf('sidebar1'), 1, 1); ?> <?php tpl_includeFile('m1-sidebar-one.php'); ?> <?php tpl_includeFile('sidebarfooter.html'); ?> <div class="clearer"></div> </div><!-- /aside --> </div> <!-- /m1-pagewrapper --> <!-- ********** FOOTER ********** --> <?php include 'm1-footer.php';
<hr class="a11y" /> </div><!-- /.pad --> <div class="module content"> <!--<div class="wrapper">--> <!-- ********** ASIDE ********** --> <?php if ($showSidebar) { ?> <aside id="dokuwiki__aside"> <div class="pad aside include group"> <?php tpl_includeFile('sidebarheader.html'); ?> <?php tpl_include_page($conf['sidebar'], 1, 1); ?> <?php tpl_includeFile('sidebarfooter.html'); ?> <!--<div class="clearer"></div>--> </div> </aside><!-- /#dokuwiki__aside --> <?php } ?> <!-- ********** CONTENT ********** --> <div id="dokuwiki__content"> <div class="pad"> <?php tpl_flush();
if (!defined('DOKU_INC')) { die; } if (bootstrap3_conf('showCookieLawBanner') && !(get_doku_pref('cookieNoticeAccepted', null) || get_doku_pref('cookieNoticeAccepted', ''))) { $cookie_policy_page_id = bootstrap3_conf('cookieLawPolicyPage'); $cookie_banner_page_id = bootstrap3_conf('cookieLawBannerPage'); resolve_pageid('', $cookie_policy_page_id, $cookie_policy_page_exists); ?> <div id="cookieNotice" class="navbar <?php echo bootstrap3_conf('inverseNavbar') ? 'navbar-inverse' : 'navbar-default'; ?> navbar-fixed-bottom"> <div class="container"> <div class="navbar-text navbar-left"> <?php $cookie_banner_page = tpl_include_page($cookie_banner_page_id, 0, 1, bootstrap3_conf('useACL')); $cookie_banner_page = preg_replace('/<p>\\n(.*?)\\n<\\/p>/', '<i class="fa fa-info-circle text-primary"></i> $1', $cookie_banner_page); echo $cookie_banner_page; ?> </div> <div class="navbar-right"> <button class="btn btn-primary btn-xs navbar-btn" id="cookieDismiss">OK</button> <?php if ($cookie_policy_page_exists) { tpl_link(wl($cookie_policy_page_id), 'Policy', 'class="btn btn-default btn-xs navbar-btn" id="cookiePolicy"'); } ?> </div> </div> </div> <script type="text/javascript">