__('A widget that displays all authors based on the recent posts ', 'default') ); $control_ops = array(); $this->WP_Widget( 'abrp_blog_authors', __('Authors Based on Recent Posts', 'default'), $widget_ops, $control_ops ); // add plugin style wp_enqueue_style('abrp_PluginStylesheet', plugins_url('abrp_style.css', __FILE__) ); // additional fields hooks add_action( 'show_user_profile', array($this,'abrp_show_extra_profile_fields')); add_action( 'edit_user_profile', array($this,'abrp_show_extra_profile_fields')); // additional fields hooks add_action( 'personal_options_update', array($this,'abrp_save_extra_profile_fields')); add_action( 'edit_user_profile_update', array($this,'abrp_save_extra_profile_fields')); } // end of __construct function widget( $args, $instance ) { extract( $args ); //Our variables from the widget settings. $title = apply_filters('widget_title', $instance['title'] ); // add style sheet // end before widget echo $before_widget; // Display the widget title echo ' ' ; echo'
'; if ($title): echo $before_title . $title . $after_title; endif; echo '

'.$after_widget; } // end of widgets function abrp_posts_groupby($groupby) { global $wpdb; $groupby = "{$wpdb->posts}.post_author"; return $groupby; } // end of abrp_posts_groupby function //Update the widget function begain function update( $new_instance, $old_instance ) { $instance = $old_instance; //Strip tags from title and name to remove HTML $instance['title'] = strip_tags( $new_instance['title'] ); // Strip tags from role and role to remove HTML $instance['role'] = strip_tags( $new_instance['role'] ); // Strip tags from role and role to remove HTML $instance['profile_style'] = strip_tags( $new_instance['profile_style'] ); return $instance; } // end of function update function form( $instance ) { //Set up some default widget settings. // $instance['profile_style'] = array(); $defaults = array( 'title' => __('Blog Authors', 'default')); $instance = wp_parse_args( (array) $instance, $defaults ); // Widget Title: Text Input. ?>

Additional profile information


Please enter your Designation.

Please enter your Company Name.