'bestblog_author_widget', 'description' => __('Use this widget to display author/user profile info', 'best-blog') ,'customize_selective_refresh' => true); parent::__construct('bestblog_author_widget', __('bestblog Author Bio', 'best-blog'), $widget_ops); //Allow themes or plugins to modify default parameters $defaults = apply_filters('bestblog_author_widget_modify_defaults', array( 'title' => esc_attr__('CEO / Co-Founder', 'best-blog'), 'author' => 0, 'auto_detect' => 0, 'display_avatar' => 1, 'display_desc' => 1, 'display_all_posts' => 1, 'avatar_size' => 120, 'link_text' => esc_attr__('View all posts', 'best-blog'), 'limit_chars' => '', )); $this->defaults = $defaults; } public function widget($args, $instance) { extract($args); $instance = wp_parse_args((array) $instance, $this->defaults); ?>
count_users() <= $this->users_split_at) : ?>