Changeset 10587 for trunk/src/bp-friends/bp-friends-template.php
- Timestamp:
- 02/13/2016 07:32:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-template.php
r10424 r10587 219 219 /** 220 220 * Output the friend count for the current member in the loop. 221 * 222 * @since 1.2.0 221 223 */ 222 224 function bp_member_total_friend_count() { … … 227 229 * 228 230 * Return value is a string of the form "x friends". 231 * 232 * @since 1.2.0 229 233 * 230 234 * @return string A string of the form "x friends". … … 254 258 * Output the ID of the current user in the friend request loop. 255 259 * 260 * @since 1.2.6 261 * 256 262 * @see bp_get_potential_friend_id() for a description of arguments. 257 263 * … … 263 269 /** 264 270 * Return the ID of current user in the friend request loop. 271 * 272 * @since 1.2.6 265 273 * 266 274 * @global object $friends_template … … 293 301 * Returns - 'is_friend', 'not_friends', 'pending'. 294 302 * 303 * @since 1.2.6 304 * 295 305 * @param int $user_id ID of the potential friend. Default: the value of 296 306 * {@link bp_get_potential_friend_id()}. … … 321 331 * Output the Add Friend button. 322 332 * 333 * @since 1.0.0 334 * 323 335 * @see bp_get_add_friend_button() for information on arguments. 324 336 * … … 331 343 /** 332 344 * Create the Add Friend button. 345 * 346 * @since 1.1.0 333 347 * 334 348 * @param int $potential_friend_id ID of the user to whom the button … … 430 444 * Get a comma-separated list of IDs of a user's friends. 431 445 * 446 * @since 1.2.0 447 * 432 448 * @param int $user_id Optional. Default: the displayed user's ID, or the 433 449 * logged-in user's ID. … … 454 470 * because of the structure of the $include parameter in bp_has_members(). 455 471 * 472 * @since 1.2.0 473 * 456 474 * @param int $user_id ID of the user whose requests are being retrieved. 457 475 * Defaults to displayed user. … … 487 505 /** 488 506 * Output the ID of the friendship between the logged-in user and the current user in the loop. 507 * 508 * @since 1.2.0 489 509 */ 490 510 function bp_friend_friendship_id() { … … 493 513 /** 494 514 * Return the ID of the friendship between the logged-in user and the current user in the loop. 515 * 516 * @since 1.2.0 495 517 * 496 518 * @return int ID of the friendship. … … 516 538 /** 517 539 * Output the URL for accepting the current friendship request in the loop. 540 * 541 * @since 1.0.0 518 542 */ 519 543 function bp_friend_accept_request_link() { … … 522 546 /** 523 547 * Return the URL for accepting the current friendship request in the loop. 548 * 549 * @since 1.0.0 524 550 * 525 551 * @return string accept-friendship URL. … … 545 571 /** 546 572 * Output the URL for rejecting the current friendship request in the loop. 573 * 574 * @since 1.0.0 547 575 */ 548 576 function bp_friend_reject_request_link() { … … 551 579 /** 552 580 * Return the URL for rejecting the current friendship request in the loop. 581 * 582 * @since 1.0.0 553 583 * 554 584 * @return string reject-friendship URL. … … 575 605 * Output the total friend count for a given user. 576 606 * 607 * @since 1.2.0 608 * 577 609 * @param int $user_id See {@link friends_get_total_friend_count()}. 578 610 */ … … 583 615 * Return the total friend count for a given user. 584 616 * 617 * @since 1.2.0 618 * 585 619 * @param int $user_id See {@link friends_get_total_friend_count()}. 586 620 * @return int Total friend count. … … 602 636 * Output the total friendship request count for a given user. 603 637 * 638 * @since 1.2.0 639 * 604 640 * @see bp_friend_get_total_requests_count() for description of arguments. 605 641 * … … 611 647 /** 612 648 * Return the total friendship request count for a given user. 649 * 650 * @since 1.2.0 613 651 * 614 652 * @param int $user_id ID of the user whose requests are being counted.
Note: See TracChangeset
for help on using the changeset viewer.