start_controls_section( 'section_icon', [ 'label' => esc_html__( 'Icon Box', 'elementor' ), ] ); $this->add_control( 'selected_icon', [ 'label' => esc_html__( 'Icon', '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(); $has_icon = ! empty( $settings['selected_icon']['value'] ); ?>
'true' ] ); ?>