diff --git a/config/config.php.example b/config/config.php.example index fa06bfa..5b6fdb8 100644 --- a/config/config.php.example +++ b/config/config.php.example @@ -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=*)'; diff --git a/lib/config_default.php b/lib/config_default.php index b963374..b0c05ca 100644 --- a/lib/config_default.php +++ b/lib/config_default.php @@ -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', diff --git a/lib/page.php b/lib/page.php index 8cbc2f4..59927ce 100644 --- a/lib/page.php +++ b/lib/page.php @@ -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);