summaryrefslogtreecommitdiff
path: root/lib/tpl/dokuwiki/main.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-04-20 17:20:17 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-04-20 17:20:17 +0200
commitc8388e443bcd0c09a0b142b31819d48abd559aa0 (patch)
tree3ee1a17a29bfd980257750215dcda68d824d9441 /lib/tpl/dokuwiki/main.php
parent3d2fd76a6a87ddf4a45c05091799c09500265307 (diff)
downloadrpg-c8388e443bcd0c09a0b142b31819d48abd559aa0.tar.gz
rpg-c8388e443bcd0c09a0b142b31819d48abd559aa0.tar.bz2
made TOC togling script more generic
Instead of a dedicated function to toggle the TOC we now have a function that allows to use this functionality everywhere. This will be used to toggle the sidebar in the mobile view (in an upcoming patch). Note, this required some changes to the CSS (to make it more generic). The CSS is still located in the TOC sections but should probably be moved into its own section instead.
Diffstat (limited to 'lib/tpl/dokuwiki/main.php')
-rw-r--r--lib/tpl/dokuwiki/main.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/tpl/dokuwiki/main.php b/lib/tpl/dokuwiki/main.php
index 57c94f174..5e8eb7517 100644
--- a/lib/tpl/dokuwiki/main.php
+++ b/lib/tpl/dokuwiki/main.php
@@ -37,10 +37,13 @@ $showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show
<?php if($showSidebar): ?>
<!-- ********** ASIDE ********** -->
<div id="dokuwiki__aside"><div class="pad include group">
- <?php tpl_flush() ?>
- <?php tpl_includeFile('sidebarheader.html') ?>
- <?php tpl_include_page($conf['sidebar']) ?>
- <?php tpl_includeFile('sidebarfooter.html') ?>
+ <div class="a11y toggle"><?php echo hsc(ucfirst($conf['sidebar'])) ?></div>
+ <div class="aside group">
+ <?php tpl_flush() ?>
+ <?php tpl_includeFile('sidebarheader.html') ?>
+ <?php tpl_include_page($conf['sidebar']) ?>
+ <?php tpl_includeFile('sidebarfooter.html') ?>
+ </div>
</div></div><!-- /aside -->
<?php endif; ?>