__( 'Shows a list of your starred friends and subscriptions.', 'friends' ), ) ); } /** * Render the widget. * * @param array $args Sidebar arguments. * @param array $instance Widget instance settings. */ public function widget( $args, $instance ) { $friends = User_Query::starred_friends_subscriptions(); if ( ! $friends->get_total() ) { return; } $instance = wp_parse_args( $instance, $this->defaults() ); echo $args['before_widget']; $this->list_friends( $args, _x( 'Starred', 'Starred Friends', 'friends' ), $friends ); do_action( 'friends_widget_starred_friend_list_after', $this, $args ); echo $args['after_widget']; } }