'agency_ecommerce_widget_contact', 'description' => esc_html__( 'Widget to display contact informations like address, email and phone with icon. Recommended to use in footer or sidebar only', 'agency-ecommerce' ), ); parent::__construct( 'agency-ecommerce-contact', esc_html__( 'AE: Contact', 'agency-ecommerce' ), $opts ); } function widget( $args, $instance ) { $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); $icon_one = !empty( $instance['icon_one'] ) ? $instance['icon_one'] : ''; $text_one = !empty( $instance['text_one'] ) ? $instance['text_one'] : ''; $icon_two = !empty( $instance['icon_two'] ) ? $instance['icon_two'] : ''; $text_two = !empty( $instance['text_two'] ) ? $instance['text_two'] : ''; $icon_three = !empty( $instance['icon_three'] ) ? $instance['icon_three'] : ''; $text_three = !empty( $instance['text_three'] ) ? $instance['text_three'] : ''; $icon_four = !empty( $instance['icon_four'] ) ? $instance['icon_four'] : ''; $text_four = !empty( $instance['text_four'] ) ? $instance['text_four'] : ''; echo $args['before_widget']; ?>
', '' ); ?>
" name="get_field_name( "icon_one" ) ); ?>" type="text" value="" />
" name="get_field_name( "icon_two" ) ); ?>" type="text" value="" />
" name="get_field_name( "icon_three" ) ); ?>" type="text" value="" />
" name="get_field_name( "icon_four" ) ); ?>" type="text" value="" />