qs_sections(); $all_keys = []; foreach ( $sections as $section ) { $all_keys = array_merge( $all_keys, array_keys( $section['items'] ) ); } $any_enabled = array_reduce( $all_keys, fn( $c, $k ) => $c || get_option( $k, '0' ) === '1', false ); $any_disabled = array_reduce( $all_keys, fn( $c, $k ) => $c || get_option( $k, '0' ) !== '1', false ); ?>
$section ) : $section_id = 'ab-qs-section-' . $idx; ?>
card_open_svg( $section['icon'], $section['title'], $section['desc'] ); ?>
$item ) : $val = get_option( $option_key, '0' ); $has_roles = ! empty( $item['roles'] ); ?>
roles; ?>
6; $more_label = esc_attr__( 'Show all roles', 'admin-buddy' ); $less_label = esc_attr__( 'Show less', 'admin-buddy' ); ?>
$role_data ) : ?>
card_close(); ?>