prefix = Easy_get_prefix(); /* Set the widget textdomain. */ $this->textdomain = Easy_get_textdomain(); /* Set up the widget options. */ $widget_options = array( 'classname' => 'authors', 'description' => esc_html__( 'An advanced widget that gives you total control over the output of your author lists.', $this->textdomain ) ); /* Set up the widget control options. */ $control_options = array( 'width' => 525, 'height' => 350, 'id_base' => "{$this->prefix}-authors" ); /* Create the widget. */ $this->WP_Widget( "{$this->prefix}-authors", esc_attr__( 'Authors', $this->textdomain ), $widget_options, $control_options ); } /** * Outputs the widget based on the arguments input through the widget controls. * @since 0.6.0 */ function widget( $args, $instance ) { extract( $args, EXTR_SKIP ); /* Set up the arguments for wp_list_authors(). */ $args = array( 'order' => $instance['order'], 'orderby' => $instance['orderby'], 'number' => !empty( $instance['number'] ) ? intval( $instance['number'] ) : '', 'style' => $instance['style'], 'feed' => $instance['feed'], 'feed_image' => $instance['feed_image'], 'optioncount' => !empty( $instance['optioncount'] ) ? true : false, 'exclude_admin' => !empty( $instance['exclude_admin'] ) ? true : false, 'show_fullname' => !empty( $instance['show_fullname'] ) ? true : false, 'hide_empty' => !empty( $instance['hide_empty'] ) ? true : false, 'html' => !empty( $instance['html'] ) ? true : false, 'echo' => false ); /* Output the theme's $before_widget wrapper. */ echo $before_widget; /* If a title was input by the user, display it. */ if ( !empty( $instance['title'] ) ) echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title; /* Get the authors list. */ $authors = str_replace( array( "\r", "\n", "\t" ), '', wp_list_authors( $args ) ); /* If 'list' is the style and the output should be HTML, wrap the authors in a