added option to disable the autocollapsing of the sidebar

This commit is contained in:
Andreas Gohr 2021-07-06 12:27:06 +02:00
commit 3e1e2a1f18
6 changed files with 22 additions and 1 deletions

View file

@ -148,6 +148,21 @@ class Template {
return $header . $nav;
}
/**
* Default class defining is the sidebar should collapse
*
* @return string
*/
public function fullWidthClass() {
global $ACT;
// no auto collapsing? empty class
if (!tpl_getConf('autocollapse')) return '';
// mode show? empty class
if ($ACT === "show") return '';
// anything else? wide content
return 'wide-content ';
}
/**
* Get all the tabs to display
*