'contact_widget', 'description' => esc_html__( 'Enter the url only the icon will be displayed as per the links. Compatible Area: Sidebar, Footer', 'chives' ), ); parent::__construct( 'chives_contact_widget', esc_html__( 'ST: Contact Widget', 'chives' ), $st_widget_contact ); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { // outputs the content of the widget if ( ! isset( $args['widget_id'] ) ) { $args['widget_id'] = $this->id; } $title = ( ! empty( $instance['title'] ) ) ? ( $instance['title'] ) : ''; $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); $address = isset( $instance['address'] ) ? $instance['address'] : ''; $phone = isset( $instance['phone'] ) ? $instance['phone'] : ''; $email = isset( $instance['email'] ) ? $instance['email'] : ''; echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; } ?>
'location-o' ) ); echo esc_html( $address ); ?>
'phone-o' ) ); ?>
'envelope-o' ) ); ?>