Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/28/2015 01:52:18 AM (9 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/members-loop.php

    r9723 r9814  
    1212?>
    1313
    14 <?php do_action( 'bp_before_members_loop' ); ?>
     14<?php
     15
     16/**
     17 * Fires before the display of the members loop.
     18 *
     19 * @since BuddyPress (1.2.0)
     20 */
     21do_action( 'bp_before_members_loop' ); ?>
    1522
    1623<?php if ( bp_get_current_member_type() ) : ?>
     
    3643    </div>
    3744
    38     <?php do_action( 'bp_before_directory_members_list' ); ?>
     45    <?php
     46
     47    /**
     48     * Fires before the display of the members list.
     49     *
     50     * @since BuddyPress (1.1.0)
     51     */
     52    do_action( 'bp_before_directory_members_list' ); ?>
    3953
    4054    <ul id="members-list" class="item-list" role="main">
     
    6175                <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    6276
    63                 <?php do_action( 'bp_directory_members_item' ); ?>
     77                <?php
     78
     79                /**
     80                 * Fires inside the display of a directory member item.
     81                 *
     82                 * @since BuddyPress (1.1.0)
     83                 */
     84                do_action( 'bp_directory_members_item' ); ?>
    6485
    6586                <?php
     
    7697            <div class="action">
    7798
    78                 <?php do_action( 'bp_directory_members_actions' ); ?>
     99                <?php
     100
     101                /**
     102                 * Fires inside the members action HTML markup to display actions.
     103                 *
     104                 * @since BuddyPress (1.1.0)
     105                 */
     106                do_action( 'bp_directory_members_actions' ); ?>
    79107
    80108            </div>
     
    87115    </ul>
    88116
    89     <?php do_action( 'bp_after_directory_members_list' ); ?>
     117    <?php
     118
     119    /**
     120     * Fires after the display of the members list.
     121     *
     122     * @since BuddyPress (1.1.0)
     123     */
     124    do_action( 'bp_after_directory_members_list' ); ?>
    90125
    91126    <?php bp_member_hidden_fields(); ?>
     
    115150<?php endif; ?>
    116151
    117 <?php do_action( 'bp_after_members_loop' ); ?>
     152<?php
     153
     154/**
     155 * Fires after the display of the members loop.
     156 *
     157 * @since BuddyPress (1.2.0)
     158 */
     159do_action( 'bp_after_members_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.