'business_press_social_widget', 'description' => esc_attr__( 'Display social profile. Social link will be fetch from customize.', 'business-press' ), ); parent::__construct( 'business_press_social_widget', esc_attr__( 'Business Press Social Profile', 'business-press' ), $widget_ops ); } /** * Outputs the content of the widget * * @param array $args * @param array $instance */ public function widget( $args, $instance ) { // outputs the content of the widget echo $args[ 'before_widget' ]; if( !empty( $instance[ 'title' ] ) ) { echo $args[ 'before_title' ] . esc_attr( $instance[ 'title' ] ) . $args[ 'after_title' ]; } ?>