Show gis icon only if enabled gis
This commit is contained in:
parent
f61ba42dd7
commit
665e9e4c98
|
@ -133,16 +133,18 @@ $buttons['notifications'] = [
|
||||||
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=notifications').'">'.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'</a>',
|
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=notifications').'">'.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'</a>',
|
||||||
];
|
];
|
||||||
|
|
||||||
$buttons['gis'] = [
|
|
||||||
'active' => false,
|
|
||||||
'text' => '<a href="'.ui_get_full_url('index.php?sec=general&sec2=godmode/setup/setup§ion=gis').'">'.html_print_image('images/gis_tab.png', true, ['title' => __('GIS Map connection')]).'</a>',
|
|
||||||
];
|
|
||||||
|
|
||||||
$buttons['websocket_engine'] = [
|
$buttons['websocket_engine'] = [
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=websocket_engine').'">'.html_print_image('images/websocket_small.png', true, ['title' => __('Websocket engine')]).'</a>',
|
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=websocket_engine').'">'.html_print_image('images/websocket_small.png', true, ['title' => __('Websocket engine')]).'</a>',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if ($config['activate_gis']) {
|
||||||
|
$buttons['gis'] = [
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.ui_get_full_url('index.php?sec=general&sec2=godmode/setup/setup§ion=gis').'">'.html_print_image('images/gis_tab.png', true, ['title' => __('GIS Map connection')]).'</a>',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
$help_header = '';
|
$help_header = '';
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
$subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header);
|
$subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header);
|
||||||
|
|
Loading…
Reference in New Issue