SF Feature #356 - HTMLTree icons formatting
This commit is contained in:
parent
0011184a3f
commit
e45e71fd08
@ -173,6 +173,10 @@ $config->custom->commands['script'] = array(
|
|||||||
// $config->custom->appearance['tree_width'] = null;
|
// $config->custom->appearance['tree_width'] = null;
|
||||||
# $config->custom->appearance['tree_width'] = 250;
|
# $config->custom->appearance['tree_width'] = 250;
|
||||||
|
|
||||||
|
/* Number of tree command icons to show, 0 = show all icons on 1 row. */
|
||||||
|
// $config->custom->appearance['tree_icons'] = 0;
|
||||||
|
# $config->custom->appearance['tree_icons'] = 4;
|
||||||
|
|
||||||
/* Confirm create and update operations, allowing you to review the changes
|
/* Confirm create and update operations, allowing you to review the changes
|
||||||
and optionally skip attributes during the create/update operation. */
|
and optionally skip attributes during the create/update operation. */
|
||||||
// $config->custom->confirm['create'] = true;
|
// $config->custom->confirm['create'] = true;
|
||||||
|
@ -184,10 +184,15 @@ class HTMLTree extends Tree {
|
|||||||
|
|
||||||
$links = '';
|
$links = '';
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
$icons = $_SESSION[APPCONFIG]->getValue('appearance','tree_icons');
|
||||||
if (is_array($_SESSION[APPCONFIG]->getValue('menu','session')))
|
if (is_array($_SESSION[APPCONFIG]->getValue('menu','session')))
|
||||||
foreach ($_SESSION[APPCONFIG]->getValue('menu','session') as $link => $title) {
|
foreach ($_SESSION[APPCONFIG]->getValue('menu','session') as $link => $title) {
|
||||||
if ($this->get_menu_item($link))
|
if ($this->get_menu_item($link))
|
||||||
$links .= sprintf('<td class="server_links">%s</td>',$this->get_menu_item($link));
|
$links .= sprintf('<td class="server_links">%s</td>',$this->get_menu_item($link));
|
||||||
|
|
||||||
|
if ($icons && ++$i%$icons == 0)
|
||||||
|
$links .= '</tr><tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Finally add our logout link.
|
# Finally add our logout link.
|
||||||
|
@ -261,6 +261,10 @@ class Config {
|
|||||||
'desc'=>'LDAP search filter for the tree entries',
|
'desc'=>'LDAP search filter for the tree entries',
|
||||||
'default'=>'(objectClass=*)');
|
'default'=>'(objectClass=*)');
|
||||||
|
|
||||||
|
$this->default->appearance['tree_icons'] = array(
|
||||||
|
'desc'=>'Number of Tree Icons to display on a row',
|
||||||
|
'default'=>0);
|
||||||
|
|
||||||
# PLA will not display the header and footer parts in minimal mode.
|
# PLA will not display the header and footer parts in minimal mode.
|
||||||
$this->default->appearance['minimalMode'] = array(
|
$this->default->appearance['minimalMode'] = array(
|
||||||
'desc'=>'Minimal mode hides header and footer parts',
|
'desc'=>'Minimal mode hides header and footer parts',
|
||||||
|
Loading…
Reference in New Issue
Block a user