Skip to:
Content

BuddyPress.org


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

Adds hooks documentation for the forums template files.

See #5948.

File:
1 edited

Legend:

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

    r9604 r9789  
    1212?>
    1313
    14 <?php do_action( 'bp_before_forums_loop' ); ?>
     14<?php
     15
     16/**
     17 * Fires at the start of the forums loop.
     18 *
     19 * @since BuddyPress (1.2.6)
     20 */
     21do_action( 'bp_before_forums_loop' ); ?>
    1522
    1623<?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?>
    … …  
    3239        </div>
    3340
    34         <?php do_action( 'bp_before_directory_forums_list' ); ?>
     41        <?php
     42
     43        /**
     44         * Fires before the display of the forums list.
     45         *
     46         * @since BuddyPress (1.1.0)
     47         */
     48        do_action( 'bp_before_directory_forums_list' ); ?>
    3549
    3650        <table class="forum">
    … …  
    4155                                <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ); ?></th>
    4256
    43                                 <?php do_action( 'bp_directory_forums_extra_cell_head' ); ?>
     57                                <?php
     58
     59                                /**
     60                                 * Fires at the end of <tr> row holding the <th> tags.
     61                                 *
     62                                 * @since BuddyPress (1.2.4)
     63                                 */
     64                                do_action( 'bp_directory_forums_extra_cell_head' ); ?>
    4465
    4566                        </tr>
    … …  
    92113                                </td>
    93114
    94                                 <?php do_action( 'bp_directory_forums_extra_cell' ); ?>
     115                                <?php
     116
     117                                /**
     118                                 * Fires at the end of <tr> row holding the <td> tags.
     119                                 *
     120                                 * @since BuddyPress (1.1.0)
     121                                 */
     122                                do_action( 'bp_directory_forums_extra_cell' ); ?>
    95123
    96124                        </tr>
    97125
    98                         <?php do_action( 'bp_directory_forums_extra_row' ); ?>
     126                        <?php
     127
     128                                /**
     129                                 * Fires after the <tr> for a forum listing display.
     130                                 *
     131                                 * @since BuddyPress (1.1.0)
     132                                 */
     133                                do_action( 'bp_directory_forums_extra_row' ); ?>
    99134
    100135                        <?php endwhile; ?>
    … …  
    103138        </table>
    104139
    105         <?php do_action( 'bp_after_directory_forums_list' ); ?>
     140        <?php
     141
     142        /**
     143         * Fires after the display of the forums list.
     144         *
     145         * @since BuddyPress (1.1.0)
     146         */
     147        do_action( 'bp_after_directory_forums_list' ); ?>
    106148
    107149        <div id="pag-bottom" class="pagination">
    … …  
    125167<?php endif; ?>
    126168
    127 <?php do_action( 'bp_after_forums_loop' ); ?>
     169<?php
     170
     171/**
     172 * Fires at the end of the forums loop.
     173 *
     174 * @since BuddyPress (1.2.6)
     175 */
     176do_action( 'bp_after_forums_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.