start_controls_section( 'section_audio', [ 'label' => esc_html__( 'Audio settings', 'elementor' ), ] ); $this->add_control( 'choice_audio', [ 'label' => esc_html__( 'Choice audio', 'elementor-addon' ), 'type' => Controls_Manager::MEDIA, 'default' => [], 'dynamic' => [ 'active' => true, ], 'media_types' => ['audio', 'video'], ] ); $this->end_controls_section(); $this->start_controls_section( 'section_icon', [ 'label' => esc_html__( 'Icon settings', 'elementor' ), ] ); $this->add_control( 'active_icon', [ 'label' => esc_html__( 'Active icon', 'elementor' ), 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'default' => [ 'value' => 'fas fa-star', 'library' => 'fa-solid', ], ] ); $this->add_control( 'inactive_icon', [ 'label' => esc_html__( 'Inactive', 'elementor' ), 'type' => Controls_Manager::ICONS, 'fa4compatibility' => 'icon', 'default' => [ 'value' => 'fas fa-star', 'library' => 'fa-solid', ], ] ); $this->end_controls_section(); } protected function render() { $settings = $this->get_settings_for_display(); $active_icon = ! empty( $settings['active_icon']['value'] ); $inactive_icon = ! empty( $settings['inactive_icon']['value'] ); ?>
'true' ] ); ?> 'true' ] ); ?>