($tab == 'setup') ? true : false, 'text' => ''.html_print_image('images/gm_setup.png', true, ['title' => __('Options'), 'class' => 'invert_filter']).'', ]; $buttons['offline'] = [ 'active' => ($tab == 'offline') ? true : false, 'text' => ''.html_print_image('images/box.png', true, ['title' => __('Offline update manager'), 'class' => 'invert_filter']).'', ]; $buttons['online'] = [ 'active' => ($tab == 'online') ? true : false, 'text' => ''.html_print_image('images/op_gis.png', true, ['title' => __('Online update manager'), 'class' => 'invert_filter']).'', ]; switch ($tab) { case 'setup': $title = __('Update manager » Setup'); break; case 'offline': $title = __('Update manager » Offline'); break; case 'online': default: $title = __('Update manager » Online'); break; } ui_print_page_header( $title, 'images/gm_setup.png', false, '', true, $buttons ); switch ($tab) { case 'setup': include $config['homedir'].'/godmode/update_manager/update_manager.setup.php'; break; case 'offline': $mode = \UpdateManager\UI\Manager::MODE_OFFLINE; include $config['homedir'].'/godmode/um_client/index.php'; break; case 'online': default: $mode = \UpdateManager\UI\Manager::MODE_ONLINE; include $config['homedir'].'/godmode/um_client/index.php'; break; }