esc_html__('A widget that displays the selected author information', 'bloomy'), ) ); } /** * Outputs the content for the current Text widget instance. * * @global WP_Post $post * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Text widget instance. */ public function widget( $args, $instance ) { //Our variables from the widget settings. $title = ! empty( $instance['title'] ) ? $instance['title'] : ''; $show_avatar = isset( $instance['show_avatar'] ) ? $instance['show_avatar'] : 1; $show_author_desc = isset( $instance['show_author_desc'] ) ? $instance['show_author_desc'] : 0; $author_list = isset( $instance['author_list'] ) ? $instance['author_list'] : ''; $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); // Before Widget echo $args['before_widget']; // Display the widget title if ( ! empty( $title ) ) { echo $args['before_title'] . $title . $args['after_title']; } ?>

array( 'href' => array(), 'title' => array() ), 'span' => array( 'style' => array(), 'class' => array() ), 'br' => array(), 'em' => array(), 'strong' => array(), ); echo wp_kses( $bloomy_author_description, $bloomy_allowed_html ); ?>
'', 'show_avatar' => 1, 'show_author_desc' => 0, ); $instance = wp_parse_args( (array) $instance, $defaults ); $show_avatar = isset( $instance[ 'show_avatar' ] ) ? esc_attr( $instance[ 'show_avatar' ] ) : 1; $show_author_desc = isset( $instance[ 'show_author_desc' ] ) ? esc_attr( $instance[ 'show_author_desc' ] ) : 1; $author_list = isset( $instance['author_list'] ) ? esc_attr( $instance['author_list'] ) : ''; // Widget Title: Text Input ?>

'display_name', 'order' => 'ASC', 'echo' => 1, 'selected' => $author_list, 'show' => 'display_name', 'name' => $this->get_field_name( 'author_list' ), 'id' => $this->get_field_id( 'author_list' ), ) ); ?>