'social_widget', 'description' => esc_html__( "Display social network icon on any sidebar.", 'glob') ); parent::__construct('glob_social', esc_html__('FT Socials', 'glob'), $widget_ops); $this->alt_option_name = 'widget_social'; } /** * @param array $args * @param array $instance */ public function widget( $args, $instance ) { // Get values from the widget settings. echo $args['before_widget']; $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); if ( $title ) echo $args['before_title'] . $title . $args['after_title']; ?>
esc_html__( 'Stay Connected', 'glob' ) ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>