__( 'Shows a list of your Recent friends and subscriptions.', 'friends' ), ) ); } /** * Render the widget. * * @param array $args Sidebar arguments. * @param array $instance Widget instance settings. */ public function widget( $args, $instance ) { $instance = wp_parse_args( $instance, $this->defaults() ); echo $args['before_widget']; $this->list_friends( $args, __( 'Recent Friends', 'friends' ), User_Query::recent_friends_subscriptions( 5 ) ); do_action( 'friends_widget_lastest_friend_list_after', $this, $args ); echo $args['after_widget']; } }