Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/23/2015 05:08:50 AM (11 years ago)
Author:
tw2113
Message:

Adds hooks documentation for the groups template files.

See #5948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    r9604 r9786  
    1212?>
    1313
    14 <?php do_action( 'bp_before_groups_loop' ); ?>
     14<?php
     15
     16/**
     17 * Fires before the display of groups from the groups loop.
     18 *
     19 * @since BuddyPress (1.2.0)
     20 */
     21do_action( 'bp_before_groups_loop' ); ?>
    1522
    1623<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
     
    3239        </div>
    3340
    34         <?php do_action( 'bp_before_directory_groups_list' ); ?>
     41        <?php
     42
     43        /**
     44         * Fires before the listing of the groups list.
     45         *
     46         * @since BuddyPress (1.1.0)
     47         */
     48        do_action( 'bp_before_directory_groups_list' ); ?>
    3549
    3650        <ul id="groups-list" class="item-list" role="main">
     
    4963                                <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
    5064
    51                                 <?php do_action( 'bp_directory_groups_item' ); ?>
     65                                <?php
     66
     67                                /**
     68                                 * Fires inside the listing of an individual group listing item.
     69                                 *
     70                                 * @since BuddyPress (1.1.0)
     71                                 */
     72                                do_action( 'bp_directory_groups_item' ); ?>
    5273
    5374                        </div>
     
    5576                        <div class="action">
    5677
    57                                 <?php do_action( 'bp_directory_groups_actions' ); ?>
     78                                <?php
     79
     80                                /**
     81                                 * Fires inside the action section of an individual group listing item.
     82                                 *
     83                                 * @since BuddyPress (1.1.0)
     84                                 */
     85                                do_action( 'bp_directory_groups_actions' ); ?>
    5886
    5987                                <div class="meta">
     
    72100        </ul>
    73101
    74         <?php do_action( 'bp_after_directory_groups_list' ); ?>
     102        <?php
     103
     104        /**
     105         * Fires after the listing of the groups list.
     106         *
     107         * @since BuddyPress (1.1.0)
     108         */
     109        do_action( 'bp_after_directory_groups_list' ); ?>
    75110
    76111        <div id="pag-bottom" class="pagination">
     
    98133<?php endif; ?>
    99134
    100 <?php do_action( 'bp_after_groups_loop' ); ?>
     135<?php
     136
     137/**
     138 * Fires after the display of groups from the groups loop.
     139 *
     140 * @since BuddyPress (1.2.0)
     141 */
     142do_action( 'bp_after_groups_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.