added option to disable the autocollapsing of the sidebar
This commit is contained in:
parent
049cbbfef7
commit
3e1e2a1f18
6 changed files with 22 additions and 1 deletions
15
Template.php
15
Template.php
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue