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/entry.php

    r9604 r9762  
    1313?>
    1414
    15 <?php do_action( 'bp_before_activity_entry' ); ?>
     15<?php
     16
     17/**
     18 * Fires before the display of an activity entry.
     19 *
     20 * @since BuddyPress (1.2.0)
     21 */
     22do_action( 'bp_before_activity_entry' ); ?>
    1623
    1724<li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>">
     
    4249        <?php endif; ?>
    4350
    44         <?php do_action( 'bp_activity_entry_content' ); ?>
     51        <?php
     52
     53        /**
     54         * Fires after the display of an activity entry content.
     55         *
     56         * @since BuddyPress (1.2.0)
     57         */
     58        do_action( 'bp_activity_entry_content' ); ?>
    4559
    4660        <div class="activity-meta">
     
    7690                <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>
    7791
    78                 <?php do_action( 'bp_activity_entry_meta' ); ?>
     92                <?php
     93
     94                /**
     95                 * Fires at the end of the activity entry meta data area.
     96                 *
     97                 * @since BuddyPress (1.2.0)
     98                 */
     99                do_action( 'bp_activity_entry_meta' ); ?>
    79100
    80101            <?php endif; ?>
     
    84105    </div>
    85106
    86     <?php do_action( 'bp_before_activity_entry_comments' ); ?>
     107    <?php
     108
     109    /**
     110     * Fires before the display of the activity entry comments.
     111     *
     112     * @since BuddyPress (1.2.0)
     113     */
     114    do_action( 'bp_before_activity_entry_comments' ); ?>
    87115
    88116    <?php if ( ( bp_activity_get_comment_count() || bp_activity_can_comment() ) || bp_is_single_activity() ) : ?>
     
    104132                    </div>
    105133
    106                     <?php do_action( 'bp_activity_entry_comments' ); ?>
     134                    <?php
     135
     136                    /**
     137                     * Fires after the activity entry comment form.
     138                     *
     139                     * @since BuddyPress (1.5.0)
     140                     */
     141                    do_action( 'bp_activity_entry_comments' ); ?>
    107142
    108143                    <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
     
    116151    <?php endif; ?>
    117152
    118     <?php do_action( 'bp_after_activity_entry_comments' ); ?>
     153    <?php
     154
     155    /**
     156     * Fires after the display of the activity entry comments.
     157     *
     158     * @since BuddyPress (1.2.0)
     159     */
     160    do_action( 'bp_after_activity_entry_comments' ); ?>
    119161
    120162</li>
    121163
    122 <?php do_action( 'bp_after_activity_entry' ); ?>
     164<?php
     165
     166/**
     167 * Fires after the display of an activity entry.
     168 *
     169 * @since BuddyPress (1.2.0)
     170 */
     171do_action( 'bp_after_activity_entry' ); ?>
Note: See TracChangeset for help on using the changeset viewer.