Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2015 01:52:18 AM (10 years ago)
Author:
tw2113
Message:

Adds hooks documentation for the members template files.

Fixes #5948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends/requests.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_friend_requests_content' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the display of member friend requests content.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
     8do_action( 'bp_before_member_friend_requests_content' ); ?>
    29
    310<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
     
    3239                </div>
    3340
    34                 <?php do_action( 'bp_friend_requests_item' ); ?>
     41                <?php
     42
     43                /**
     44                 * Fires inside the display of a member friend request item.
     45                 *
     46                 * @since BuddyPress (1.1.0)
     47                 */
     48                do_action( 'bp_friend_requests_item' ); ?>
    3549
    3650                <div class="action">
     
    3852                    <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    3953
    40                     <?php do_action( 'bp_friend_requests_item_action' ); ?>
     54                    <?php
     55
     56                    /**
     57                     * Fires inside the member friend request actions markup.
     58                     *
     59                     * @since BuddyPress (1.1.0)
     60                     */
     61                    do_action( 'bp_friend_requests_item_action' ); ?>
    4162                </div>
    4263            </li>
     
    4566    </ul>
    4667
    47     <?php do_action( 'bp_friend_requests_content' ); ?>
     68    <?php
     69
     70    /**
     71     * Fires and displays the member friend requests content.
     72     *
     73     * @since BuddyPress (1.1.0)
     74     */
     75    do_action( 'bp_friend_requests_content' ); ?>
    4876
    4977    <div id="pag-bottom" class="pagination no-ajax">
     
    7199<?php endif;?>
    72100
    73 <?php do_action( 'bp_after_member_friend_requests_content' ); ?>
     101<?php
     102
     103/**
     104 * Fires after the display of member friend requests content.
     105 *
     106 * @since BuddyPress (1.2.0)
     107 */
     108do_action( 'bp_after_member_friend_requests_content' ); ?>
Note: See TracChangeset for help on using the changeset viewer.