'widget_author', 'description' => esc_html__( 'Widget to display author profile.', 'blog-zone' ), ); parent::__construct( 'bz-author', esc_html__( 'BZ: Author Profile', 'blog-zone' ), $opts ); } function widget( $args, $instance ) { $author_page = !empty( $instance['author_page'] ) ? $instance['author_page'] : ''; echo $args['before_widget']; ?>
'', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>$this->get_field_id( 'author_page' ), 'class' => 'widefat', 'name' => $this->get_field_name( 'author_page' ), 'selected' => $instance[ 'author_page' ], 'show_option_none' => esc_html__( '— Select —', 'blog-zone' ), ) ); ?>