esc_html__('A widget that displays an About widget', 'aster'),) // Args ); } /** * How to display the widget on the screen. */ public function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title'] ); $image = $instance['image']; $description = $instance['description']; /* Before widget (defined by themes). */ echo $before_widget; /* Display the widget title if one was input (before and after defined by themes). */ if ( $title ) echo $before_title . $title . $after_title; ?>
esc_html__('About Me', 'aster'), 'image' => '', 'description' => ''); $instance = wp_parse_args( (array) $instance, $defaults ); ?>