SF Patch #3391547 - Option for minmal mode

This commit is contained in:
Roland Gruber
2011-10-06 12:31:12 +11:00
committed by Deon George
parent 56830f1fa4
commit d8ab7fc2f0
3 changed files with 17 additions and 0 deletions

View File

@@ -261,6 +261,11 @@ class Config {
'desc'=>'LDAP search filter for the tree entries',
'default'=>'(objectClass=*)');
# PLA will not display the header and footer parts in minimal mode.
$this->default->appearance['minimalMode'] = array(
'desc'=>'Minimal mode hides header and footer parts',
'default'=>false);
## Caching
$this->default->cache['schema'] = array(
'desc'=>'Cache Schema Activity',

View File

@@ -375,6 +375,15 @@ class page {
'TREE'=>true,
'FOOT'=>true
);
if ($_SESSION[APPCONFIG]->getValue('appearance','minimalMode')) {
$display = array(
'HEAD'=>false,
'CONTROL'=>false,
'TREE'=>true,
'FOOT'=>false
);
}
$display = array_merge($display,$filter);