SF Patch #3391547 - Option for minmal mode
This commit is contained in:
parent
56830f1fa4
commit
d8ab7fc2f0
@ -160,6 +160,9 @@ $config->custom->commands['script'] = array(
|
|||||||
/* Hide the warnings for invalid objectClasses/attributes in templates. */
|
/* Hide the warnings for invalid objectClasses/attributes in templates. */
|
||||||
// $config->custom->appearance['hide_template_warning'] = false;
|
// $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 */
|
/* Configure what objects are shown in left hand tree */
|
||||||
// $config->custom->appearance['tree_filter'] = '(objectclass=*)';
|
// $config->custom->appearance['tree_filter'] = '(objectclass=*)';
|
||||||
|
|
||||||
|
@ -261,6 +261,11 @@ class Config {
|
|||||||
'desc'=>'LDAP search filter for the tree entries',
|
'desc'=>'LDAP search filter for the tree entries',
|
||||||
'default'=>'(objectClass=*)');
|
'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
|
## Caching
|
||||||
$this->default->cache['schema'] = array(
|
$this->default->cache['schema'] = array(
|
||||||
'desc'=>'Cache Schema Activity',
|
'desc'=>'Cache Schema Activity',
|
||||||
|
@ -375,6 +375,15 @@ class page {
|
|||||||
'TREE'=>true,
|
'TREE'=>true,
|
||||||
'FOOT'=>true
|
'FOOT'=>true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($_SESSION[APPCONFIG]->getValue('appearance','minimalMode')) {
|
||||||
|
$display = array(
|
||||||
|
'HEAD'=>false,
|
||||||
|
'CONTROL'=>false,
|
||||||
|
'TREE'=>true,
|
||||||
|
'FOOT'=>false
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$display = array_merge($display,$filter);
|
$display = array_merge($display,$filter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user