Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/17/2015 03:31:35 AM (10 years ago)
Author:
tw2113
Message:

Adds hooks documentation for the activity template files.

See #5948.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/post-form.php

    r9604 r9762  
    1212<form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">
    1313
    14     <?php do_action( 'bp_before_activity_post_form' ); ?>
     14    <?php
     15
     16    /**
     17     * Fires before the activity post form.
     18     *
     19     * @since BuddyPress (1.2.0)
     20     */
     21    do_action( 'bp_before_activity_post_form' ); ?>
    1522
    1623    <div id="whats-new-avatar">
     
    2835    <div id="whats-new-content">
    2936        <div id="whats-new-textarea">
    30             <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" 
     37            <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    3138                <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    3239            ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>
     
    6673            <?php endif; ?>
    6774
    68             <?php do_action( 'bp_activity_post_form_options' ); ?>
     75            <?php
     76
     77            /**
     78             * Fires at the end of the activity post form markup.
     79             *
     80             * @since BuddyPress (1.2.0)
     81             */
     82            do_action( 'bp_activity_post_form_options' ); ?>
    6983
    7084        </div><!-- #whats-new-options -->
     
    7286
    7387    <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    74     <?php do_action( 'bp_after_activity_post_form' ); ?>
     88    <?php
     89
     90    /**
     91     * Fires after the activity post form.
     92     *
     93     * @since BuddyPress (1.2.0)
     94     */
     95    do_action( 'bp_after_activity_post_form' ); ?>
    7596
    7697</form><!-- #whats-new-form -->
Note: See TracChangeset for help on using the changeset viewer.