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

@ -160,6 +160,9 @@ $config->custom->commands['script'] = array(
/* Hide the warnings for invalid objectClasses/attributes in templates. */
// $config->custom->appearance['hide_template_warning'] = false;
/* Set to true if you would like to hide header and footer parts. */
// $config->custom->appearance['minimalMode'] = false;
/* Configure what objects are shown in left hand tree */
// $config->custom->appearance['tree_filter'] = '(objectclass=*)';

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);