'widget_social_icons', 'description' => esc_html__( 'Enter the url only the icon will be displayed as per the links.', 'bloghill' ), ); parent::__construct( 'bloghill_social_link', esc_html__('TP : Social Link','bloghill'), $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 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 ); $open_link = ! empty( $instance['open_link'] ) ? true : false; $target = ( empty( $open_link ) ) ? '' : 'target="_blank"'; echo $args['before_widget']; if ( ! empty( $title ) ) { ?>
/>