'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 $title = empty( $instance['title'] ) ? '' : $instance['title']; echo $args['before_widget']; if( !empty( $title ) ) { echo $args['before_title'] . $title . $args['after_title']; } ?>