add_group_control( Group_Control_Border::get_type(), [ 'name' => 'item_border', 'label' => __( 'Border', 'wts-eae' ), 'fields_options' => [ 'border' => [ 'default' => '' ], 'width' => [ 'default' => [ 'top' => 0, 'right' => 0, 'bottom' => 0, 'left' => 0, ], ], 'color' => [ 'default' => '#6ec1e4' ], ], 'selector' => '{{WRAPPER}} .eae-info-circle:before', ] ); } function extra_controls_update(){ $this->update_control( 'global_icon', [ 'default' => 'fa fa-flash' ] ); $this->update_control( 'item_icon_icon_padding', [ 'default' => [ 'size' => 15, ], ] ); $this->update_control( 'item_icon_icon_size', [ 'default' => [ 'size' => 30, ], ] ); $this->update_control( 'item_icon_icon_primary_color', [ 'default' => '#fff' ] ); $this->update_control( 'item_icon_icon_secondary_color', [ 'default' => '#53a4ad' ] ); $this->update_control( 'item_icon_icon_focus_primary_color', [ 'default' => '#fff' ] ); $this->update_control( 'item_icon_icon_focus_secondary_color', [ 'default' => '#5a5dbc' ] ); $this->update_control( 'item_icon_border_width', [ 'default' => [ 'top' => 12, 'right' => 12, 'bottom' => 12, 'left' => 12, ], ] ); } public function register_common_controls( Widget_Base $widget ) { $this->parent = $widget; //$this->bpel_infocircle_content_section( $widget ); } public function register_style_controls(){ $this->eae_infocircle_style_section(); } public function render() { $this->common_render(); } }