'adore_business_social_link', 'description' => esc_html__( 'Enter the url only the icon will be displayed as per the links.', 'adore-business' ), ); parent::__construct( 'adore_business_social_link', esc_html__('AT : Add Social Links','adore-business'), $social_links_widget ); } /** * Front-end display of widget. */ public function widget( $args, $instance ) { 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 ) ) { echo $args['before_title'] . esc_html( $title ) . $args['after_title']; } $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 3; ?>
/>