'pt_magazine_widget_social', 'description' => esc_html__( 'Social Icons Widget', 'pt-magazine' ), ); parent::__construct( 'pt-magazine-social', esc_html__( 'PT: Social', 'pt-magazine' ), $opts ); } /** * Echo the widget content. * * @since 1.0.0 * * @param array $args Display arguments including before_title, after_title, * before_widget, and after_widget. * @param array $instance The settings for the particular instance of the widget. */ function widget( $args, $instance ) { $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . esc_html( $title ). $args['after_title']; } ?>
'social', 'link_before' => '', 'link_after' => '', ) ); } ?>
'', ) ); ?>