__( 'A widget to show author description and image', 'beka' ), ) ); } public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); $author_description = $instance['author_description']; $author_image = $instance['author_image']; $fb_url = $instance['fb_url']; $twtr_url = $instance['twtr_url']; $gp_url = $instance['gp_url']; $inst_url = $instance['inst_url']; // before and after widget arguments are defined by themes echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . $title . $args['after_title']; } ?>
'; endif; if ( ! empty( $author_description ) ) : echo esc_html( $author_description ); endif; ?>
__( 'About', 'beka' ), 'author_description' => '', 'author_image' => '', 'fb_url' => '', 'twtr_url' => '', 'gp_url' => '', 'inst_url' => '', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>