start_controls_section( 'mep_event_speaker_list_settings', [ 'label' => __( 'Event Speaker List Settings', 'mage-eventpress' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'mep_event_list', [ 'label' => __( 'Select Event', 'mage-eventpress' ), 'type' => Controls_Manager::SELECT, 'default' => '0', 'options' => mep_elementor_get_events('Show All'), ] ); $this->end_controls_section(); $this->start_controls_section( 'mep_event_speaker_style_settings', [ 'label' => __( 'Event Speaker Style Settings', 'mage-eventpress' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); $this->add_control( 'mep_event_speaker_title_color', [ 'label' => __( 'Title Color', 'mage-eventpress' ), 'type' => Controls_Manager::COLOR, 'selectors' => [ '{{WRAPPER}} .mep-elementor-event-speaker-list-widget .mep-default-sidebar-speaker-list ul li h6' => 'color: {{VALUE}};', ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); $mep_event_list = $settings['mep_event_list'] > 0 ? esc_attr($settings['mep_event_list']) : ''; ?>