Make sidebar toggle elements configurable
Current options are h1, h1 and h2, h1-h5, top-level list items SPR-754
This commit is contained in:
parent
26a5535e70
commit
cb7cc643bf
7 changed files with 31 additions and 30 deletions
6
main.php
6
main.php
|
@ -14,6 +14,12 @@ use dokuwiki\template\sprintdoc\Template;
|
|||
if (!defined('DOKU_INC')) die(); /* must be run from within DokuWiki */
|
||||
header('X-UA-Compatible: IE=edge,chrome=1');
|
||||
|
||||
global $JSINFO;
|
||||
if (empty($JSINFO['template'])) {
|
||||
$JSINFO['template'] = array();
|
||||
}
|
||||
$JSINFO['template']['sprintdoc'] = array('sidebar_toggle_elements' => tpl_getConf('sidebar_sections'));
|
||||
|
||||
$showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && !empty($_SERVER['REMOTE_USER']) );
|
||||
$showSidebar = true; /* */
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue