friends = Friends::get_instance(); } /** * Render a friend list. * * @param array $args The widget arguments. * @param string $title The list title. * @param \WP_User_Query $friends The friends to list. */ public function list_friends( $args, $title, \WP_User_Query $friends ) { ?>
array( 'class' => array() ), 'a' => array( 'class' => array(), 'href' => array(), ), ) ); echo $args['after_title']; ?>
friends->frontend->post_format ) { $url = $friend_user->get_local_friends_page_post_format_url( $this->friends->frontend->post_format ); } else { $url = $friend_user->get_local_friends_page_url(); } } else { $url = $friend_user->user_url; } ?> defaults; return $instance; } /** * Return an associative array of default values * * These values are used in new widgets. * * @return array Array of default values for the Widget's options */ public function defaults() { return array( 'title' => '', ); } /** * Register this widget. */ public static function register() { register_widget( get_called_class() ); } }