false, 'text' => ''.html_print_image( 'images/event.svg', true, [ 'title' => __('Event list'), 'class' => 'invert_filter main_menu_icon', ] ).'', 'operation' => true, ]; $buttons['filter'] = [ 'active' => false, 'text' => ''.html_print_image( 'images/filters@svg.svg', true, [ 'title' => __('Filter list'), 'class' => 'invert_filter main_menu_icon', ] ).'', ]; } if (check_acl($config['id_user'], 0, 'PM')) { $buttons['responses'] = [ 'active' => false, 'text' => ''.html_print_image( 'images/responses.svg', true, [ 'title' => __('Event responses'), 'class' => 'invert_filter main_menu_icon', ] ).'', ]; $buttons['fields'] = [ 'active' => false, 'text' => ''.html_print_image( 'images/edit_columns@svg.svg', true, [ 'title' => __('Custom columns'), 'class' => 'invert_filter main_menu_icon', ] ).'', ]; } switch ($section) { case 'filter': $buttons['filter']['active'] = true; $subpage = __('Filters'); break; case 'fields': $buttons['fields']['active'] = true; $subpage = __('Custom columns'); break; case 'responses': $buttons['responses']['active'] = true; $subpage = __('Responses'); break; case 'view': $buttons['view']['active'] = true; break; default: $buttons['filter']['active'] = true; $subpage = __('Filters'); break; } ui_print_standard_header( $subpage, 'images/gm_events.png', false, '', true, (array) $buttons, [ [ 'link' => '', 'label' => __('Configuration'), ], [ 'link' => '', 'label' => __('Events'), ], ] ); require_once $config['homedir'].'/include/functions_events.php'; switch ($section) { case 'edit_filter': include_once $config['homedir'].'/godmode/events/event_edit_filter.php'; break; case 'filter': include_once $config['homedir'].'/godmode/events/event_filter.php'; break; case 'fields': include_once $config['homedir'].'/godmode/events/custom_events.php'; break; case 'responses': include_once $config['homedir'].'/godmode/events/event_responses.php'; break; }