pj6U^6U`6U9pvP>jmU 0V>jmUjxuEF posix_getcwdl6U]6Ua6U9pw0?jmUD0FjmU[܃EF posix_mkfifod6U Y6Ub6U9xp&8jmU @0VjmUL:~v posix_mknodA*6Uk6Uc6U9@za6U k @ ٦٦@0fjmUKgEF posix_accesse6Ua6UPe6U9|pjmU @ ٦0jmU posix_eaccesso6Ud6Uf6U9~pjmU @ ٦pj6U_6Ug6U90PjmU@pj6U k`h6U9`PjmU>pj6U k@i6U:PP jmUģ@pj6U k j6U :PjmU0jmUHrYxposix_getrlimitn6U_6U0k6U:PfjmUأ0 jmUT.xposix_setrlimit! c6U6U@l6U:pj6U k أ @ZjmUsqposix_get_last_errorm6Ua6Um6U!:e0jmU0 jmU=ſ9~v posix_errno6Ul6Un6U):e0 jmU06 jmU:uFposix_strerrorq6Upj6Uo6U1:0P jmU@ͣ@6 jmUposix_initgroups r6Ue6U14.2 Added the "Enabled" setting, and updated the Reset button tooltip. * * @return array The structured settings array for Category Colors. */ public function generate_settings(): array { /** @var Manager $manager */ $manager = tribe( Manager::class ); $category_color_title = new Div( new Element_Classes( [ 'tec-settings-form__header-block', 'tec-settings-form__header-block--horizontal' ] ) ); $category_color_title->add_child( new H3( _x( 'Category Colors', 'Category Colors section header', 'the-events-calendar' ), new Element_Classes( 'tec-settings-form__section-header' ) ) ); $category_color_title->add_child( ( new Paragraph( new Element_Classes( 'tec-settings-form__section-description' ) ) )->add_children( [ new Plain_Text( __( 'Category colors helps your users relate events to a specific category on the event listing pages. To assign colors to event categories see Event Categories page.', 'the-events-calendar' ) ), ] ) ); $category_color = [ 'tec-events-category-colors' => $category_color_title, ]; $category_colors_section = [ 'category-color-header' => ( new Div( new Element_Classes( [ 'tec-settings-form__header-block' ] ) ) )->add_children( [ new H3( _x( 'Category Legend', 'Category Legend settings section header', 'the-events-calendar' ), new Element_Classes( [ 'tec-settings-form__section-header' ] ) ), ( new Plain_Text( esc_html__( 'The category legend provides labels for the colors that appear on your events on event listing pages.', 'the-events-calendar' ) ) ), ] ), 'category-color-enable-frontend' => [ 'type' => 'checkbox_bool', 'label' => esc_html__( 'Enable', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Enable the frontend functionality for Category Colors.', 'the-events-calendar' ), 'default' => true, 'validation_type' => 'boolean', ], 'category-color-legend-show' => [ 'type' => 'checkbox_list', 'label' => __( 'Show Category Legend in these Event Views', 'the-events-calendar' ), 'default' => array_keys( $manager->get_publicly_visible_views() ), 'validation_type' => 'options_multi', 'options' => array_map( static function ( $view ) use ( $manager ) { return $manager->get_view_label_by_class( $view ); }, $manager->get_publicly_visible_views( false ) ), ], 'category-color-legend-superpowers' => [ 'type' => 'checkbox_bool', 'label' => esc_html__( 'Legend Superpowers', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Enable', 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ], 'category-color-show-hidden-categories' => [ 'type' => 'checkbox_bool', 'label' => esc_html__( 'Show hidden categories in legend', 'the-events-calendar' ), 'tooltip' => esc_html__( "Display categories in the legend even if they aren't currently shown on the calendar.", 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ], 'category-color-custom-css' => [ 'type' => 'checkbox_bool', 'label' => esc_html__( 'Custom CSS', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Use your own CSS for category legend', 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ], 'category-color-reset-button' => [ 'type' => 'checkbox_bool', 'label' => esc_html__( 'Reset Button', 'the-events-calendar' ), 'tooltip' => esc_html__( 'Only appears if Legend Superpowers are active. Helps users clear their category selections.', 'the-events-calendar' ), 'default' => false, 'validation_type' => 'boolean', ], ]; $category_colors_section = tribe( 'settings' )->wrap_section_content( 'tec-events-settings-calendar-template', $category_colors_section ); return array_merge( $category_color, $category_colors_section ); } }