[ 'active' => $_GET['sec2'] === 'operation/users/user_edit', 'text' => "".html_print_image( 'images/user.png', true, [ 'title' => __('User management'), 'class' => 'invert_filter', ] ).'', ], 'notifications' => [ 'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications', 'text' => "".html_print_image( 'images/alerts_template.png', true, [ 'title' => __('User notifications'), 'class' => 'invert_filter', ] ).'', ], ]; $tab_name = 'User Management'; $helpers = ''; if ($_GET['sec2'] === 'operation/users/user_edit_notifications') { $helpers = 'user_edit_notifications'; $tab_name = 'User Notifications'; } // Header. ui_print_standard_header( $headerTitle, 'images/user.png', false, $helpers, false, $buttons, [ [ 'link' => '', 'label' => __('Workspace'), ], [ 'link' => '', 'label' => __('Edit user'), ], ] ); }