Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/23/2015 05:08:50 AM (9 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/single/forum.php

    r9604 r9786  
    11<?php
    22
     3/**
     4 * Fires before the display of a group's forum content.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
    38do_action( 'bp_before_group_forum_content' );
    49
     
    3035            <?php endif; ?>
    3136
    32             <?php do_action( 'bp_forums_directory_group_sub_types' ); ?>
     37            <?php
     38
     39            /** This filter is documented in bp-templates/bp-legacy/buddypress/forums/index.php. */
     40            do_action( 'bp_forums_directory_group_sub_types' ); ?>
    3341
    3442            <li id="forums-order-select" class="last filter">
     
    4048                    <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    4149
    42                     <?php do_action( 'bp_forums_directory_order_options' ); ?>
     50                    <?php
     51
     52                    /** This filter is documented in bp-templates/bp-legacy/buddypress/forums/index.php. */
     53                    do_action( 'bp_forums_directory_order_options' ); ?>
    4354
    4455                </select>
     
    5566<?php endif; ?>
    5667
    57 <?php do_action( 'bp_after_group_forum_content' ); ?>
     68<?php
     69
     70/**
     71 * Fires after the display of a group's forum content.
     72 *
     73 * @since BuddyPress (1.2.0)
     74 */
     75do_action( 'bp_after_group_forum_content' ); ?>
    5876
    5977<?php if ( !bp_is_group_forum_topic_edit() && !bp_is_group_forum_topic() ) : ?>
     
    6482            <div id="new-topic-post">
    6583
    66                 <?php do_action( 'bp_before_group_forum_post_new' ); ?>
     84                <?php
     85
     86                /**
     87                 * Fires before the display of a group forum new post form.
     88                 *
     89                 * @since BuddyPress (1.2.0)
     90                 */
     91                do_action( 'bp_before_group_forum_post_new' ); ?>
    6792
    6893                <?php if ( bp_groups_auto_join() && !bp_group_is_member() ) : ?>
     
    82107                <input type="text" name="topic_tags" id="topic_tags" value="" />
    83108
    84                 <?php do_action( 'bp_after_group_forum_post_new' ); ?>
     109                <?php
     110
     111                /**
     112                 * Fires after the display of a group forum new post form.
     113                 *
     114                 * @since BuddyPress (1.2.0)
     115                 */
     116                do_action( 'bp_after_group_forum_post_new' ); ?>
    85117
    86118                <div class="submit">
Note: See TracChangeset for help on using the changeset viewer.