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:
Michael Große 2017-04-12 13:35:33 +02:00
commit cb7cc643bf
No known key found for this signature in database
GPG key ID: 7E31028FBFEACC79
7 changed files with 31 additions and 30 deletions

View file

@ -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; /* */
?>