Skip to:
Content

BuddyPress.org

Changeset 9814


Ignore:
Timestamp:
04/28/2015 01:52:18 AM (11 years ago)
Author:
tw2113
Message:

Adds hooks documentation for the members template files.

Fixes #5948.

Location:
trunk/src/bp-templates/bp-legacy/buddypress/members
Files:
29 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php

    r9604 r9814  
    11<div id="buddypress">
    22
    3         <?php do_action( 'bp_before_activation_page' ); ?>
     3        <?php
     4
     5        /**
     6         * Fires before the display of the member activation page.
     7         *
     8         * @since BuddyPress (1.1.0)
     9         */
     10        do_action( 'bp_before_activation_page' ); ?>
    411
    512        <div class="page" id="activate-page">
    613
    7                 <?php do_action( 'template_notices' ); ?>
     14                <?php
    815
    9                 <?php do_action( 'bp_before_activate_content' ); ?>
     16                /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     17                do_action( 'template_notices' ); ?>
     18
     19                <?php
     20
     21                /**
     22                 * Fires before the display of the member activation page content.
     23                 *
     24                 * @since BuddyPress (1.1.0)
     25                 */
     26                do_action( 'bp_before_activate_content' ); ?>
    1027
    1128                <?php if ( bp_account_was_activated() ) : ?>
    … …  
    3451                <?php endif; ?>
    3552
    36                 <?php do_action( 'bp_after_activate_content' ); ?>
     53                <?php
     54
     55                /**
     56                 * Fires after the display of the member activation page content.
     57                 *
     58                 * @since BuddyPress (1.1.0)
     59                 */
     60                do_action( 'bp_after_activate_content' ); ?>
    3761
    3862        </div><!-- .page -->
    3963
    40         <?php do_action( 'bp_after_activation_page' ); ?>
     64        <?php
     65
     66        /**
     67         * Fires after the display of the member activation page.
     68         *
     69         * @since BuddyPress (1.1.0)
     70         */
     71        do_action( 'bp_after_activation_page' ); ?>
    4172
    4273</div><!-- #buddypress -->
  • trunk/src/bp-templates/bp-legacy/buddypress/members/index.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_directory_members_page' ); ?>
     1<?php
     2
     3/**
     4 * Fires at the top of the members directory template file.
     5 *
     6 * @since BuddyPress (1.5.0)
     7 */
     8do_action( 'bp_before_directory_members_page' ); ?>
    29
    310<div id="buddypress">
    411
    5         <?php do_action( 'bp_before_directory_members' ); ?>
     12        <?php
    613
    7         <?php do_action( 'bp_before_directory_members_content' ); ?>
     14        /**
     15         * Fires before the display of the members.
     16         *
     17         * @since BuddyPress (1.1.0)
     18         */
     19        do_action( 'bp_before_directory_members' ); ?>
     20
     21        <?php
     22
     23        /**
     24         * Fires before the display of the members content.
     25         *
     26         * @since BuddyPress (1.1.0)
     27         */
     28        do_action( 'bp_before_directory_members_content' ); ?>
    829
    930        <div id="members-dir-search" class="dir-search" role="search">
    … …  
    1132        </div><!-- #members-dir-search -->
    1233
    13         <?php do_action( 'bp_before_directory_members_tabs' ); ?>
     34        <?php
     35
     36        /**
     37         * Fires before the display of the members list tabs.
     38         *
     39         * @since BuddyPress (1.8.0)
     40         */
     41        do_action( 'bp_before_directory_members_tabs' ); ?>
    1442
    1543        <form action="" method="post" id="members-directory-form" class="dir-form">
    … …  
    2351                                <?php endif; ?>
    2452
    25                                 <?php do_action( 'bp_members_directory_member_types' ); ?>
     53                                <?php
     54
     55                                /**
     56                                 * Fires inside the members directory member types.
     57                                 *
     58                                 * @since BuddyPress (1.2.0)
     59                                 */
     60                                do_action( 'bp_members_directory_member_types' ); ?>
    2661
    2762                        </ul>
    … …  
    3065                <div class="item-list-tabs" id="subnav" role="navigation">
    3166                        <ul>
    32                                 <?php do_action( 'bp_members_directory_member_sub_types' ); ?>
     67                                <?php
     68
     69                                /**
     70                                 * Fires inside the members directory member sub-types.
     71                                 *
     72                                 * @since BuddyPress (1.5.0)
     73                                 */
     74                                do_action( 'bp_members_directory_member_sub_types' ); ?>
    3375
    3476                                <li id="members-order-select" class="last filter">
    … …  
    4284                                                <?php endif; ?>
    4385
    44                                                 <?php do_action( 'bp_members_directory_order_options' ); ?>
     86                                                <?php
     87
     88                                                /**
     89                                                 * Fires inside the members directory member order options.
     90                                                 *
     91                                                 * @since BuddyPress (1.2.0)
     92                                                 */
     93                                                do_action( 'bp_members_directory_order_options' ); ?>
    4594                                        </select>
    4695                                </li>
    … …  
    52101                </div><!-- #members-dir-list -->
    53102
    54                 <?php do_action( 'bp_directory_members_content' ); ?>
     103                <?php
     104
     105                /**
     106                 * Fires and displays the members content.
     107                 *
     108                 * @since BuddyPress (1.1.0)
     109                 */
     110                do_action( 'bp_directory_members_content' ); ?>
    55111
    56112                <?php wp_nonce_field( 'directory_members', '_wpnonce-member-filter' ); ?>
    57113
    58                 <?php do_action( 'bp_after_directory_members_content' ); ?>
     114                <?php
     115
     116                /**
     117                 * Fires after the display of the members content.
     118                 *
     119                 * @since BuddyPress (1.1.0)
     120                 */
     121                do_action( 'bp_after_directory_members_content' ); ?>
    59122
    60123        </form><!-- #members-directory-form -->
    61124
    62         <?php do_action( 'bp_after_directory_members' ); ?>
     125        <?php
     126
     127        /**
     128         * Fires after the display of the members.
     129         *
     130         * @since BuddyPress (1.1.0)
     131         */
     132        do_action( 'bp_after_directory_members' ); ?>
    63133
    64134</div><!-- #buddypress -->
    65135
    66 <?php do_action( 'bp_after_directory_members_page' ); ?>
     136<?php
     137
     138/**
     139 * Fires at the bottom of the members directory template file.
     140 *
     141 * @since BuddyPress (1.5.0)
     142 */
     143do_action( 'bp_after_directory_members_page' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/members-loop.php

    r9723 r9814  
    1212?>
    1313
    14 <?php do_action( 'bp_before_members_loop' ); ?>
     14<?php
     15
     16/**
     17 * Fires before the display of the members loop.
     18 *
     19 * @since BuddyPress (1.2.0)
     20 */
     21do_action( 'bp_before_members_loop' ); ?>
    1522
    1623<?php if ( bp_get_current_member_type() ) : ?>
    … …  
    3643        </div>
    3744
    38         <?php do_action( 'bp_before_directory_members_list' ); ?>
     45        <?php
     46
     47        /**
     48         * Fires before the display of the members list.
     49         *
     50         * @since BuddyPress (1.1.0)
     51         */
     52        do_action( 'bp_before_directory_members_list' ); ?>
    3953
    4054        <ul id="members-list" class="item-list" role="main">
    … …  
    6175                                <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    6276
    63                                 <?php do_action( 'bp_directory_members_item' ); ?>
     77                                <?php
     78
     79                                /**
     80                                 * Fires inside the display of a directory member item.
     81                                 *
     82                                 * @since BuddyPress (1.1.0)
     83                                 */
     84                                do_action( 'bp_directory_members_item' ); ?>
    6485
    6586                                <?php
    … …  
    7697                        <div class="action">
    7798
    78                                 <?php do_action( 'bp_directory_members_actions' ); ?>
     99                                <?php
     100
     101                                /**
     102                                 * Fires inside the members action HTML markup to display actions.
     103                                 *
     104                                 * @since BuddyPress (1.1.0)
     105                                 */
     106                                do_action( 'bp_directory_members_actions' ); ?>
    79107
    80108                        </div>
    … …  
    87115        </ul>
    88116
    89         <?php do_action( 'bp_after_directory_members_list' ); ?>
     117        <?php
     118
     119        /**
     120         * Fires after the display of the members list.
     121         *
     122         * @since BuddyPress (1.1.0)
     123         */
     124        do_action( 'bp_after_directory_members_list' ); ?>
    90125
    91126        <?php bp_member_hidden_fields(); ?>
    … …  
    115150<?php endif; ?>
    116151
    117 <?php do_action( 'bp_after_members_loop' ); ?>
     152<?php
     153
     154/**
     155 * Fires after the display of the members loop.
     156 *
     157 * @since BuddyPress (1.2.0)
     158 */
     159do_action( 'bp_after_members_loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r9604 r9814  
    11<div id="buddypress">
    22
    3         <?php do_action( 'bp_before_register_page' ); ?>
     3        <?php
     4
     5        /**
     6         * Fires at the top of the BuddyPress member registration page template.
     7         *
     8         * @since BuddyPress (1.1.0)
     9         */
     10        do_action( 'bp_before_register_page' ); ?>
    411
    512        <div class="page" id="register-page">
    … …  
    815
    916                <?php if ( 'registration-disabled' == bp_get_current_signup_step() ) : ?>
    10                         <?php do_action( 'template_notices' ); ?>
    11                         <?php do_action( 'bp_before_registration_disabled' ); ?>
     17                        <?php
     18
     19                        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     20                        do_action( 'template_notices' ); ?>
     21                        <?php
     22
     23                        /**
     24                         * Fires before the display of the registration disabled message.
     25                         *
     26                         * @since BuddyPress (1.5.0)
     27                         */
     28                        do_action( 'bp_before_registration_disabled' ); ?>
    1229
    1330                                <p><?php _e( 'User registration is currently not allowed.', 'buddypress' ); ?></p>
    1431
    15                         <?php do_action( 'bp_after_registration_disabled' ); ?>
     32                        <?php
     33
     34                        /**
     35                         * Fires after the display of the registration disabled message.
     36                         *
     37                         * @since BuddyPress (1.5.0)
     38                         */
     39                        do_action( 'bp_after_registration_disabled' ); ?>
    1640                <?php endif; // registration-disabled signup step ?>
    1741
    1842                <?php if ( 'request-details' == bp_get_current_signup_step() ) : ?>
    1943
    20                         <?php do_action( 'template_notices' ); ?>
     44                        <?php
     45
     46                        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     47                        do_action( 'template_notices' ); ?>
    2148
    2249                        <p><?php _e( 'Registering for this site is easy. Just fill in the fields below, and we\'ll get a new account set up for you in no time.', 'buddypress' ); ?></p>
    2350
    24                         <?php do_action( 'bp_before_account_details_fields' ); ?>
     51                        <?php
     52
     53                        /**
     54                         * Fires before the display of member registration account details fields.
     55                         *
     56                         * @since BuddyPress (1.1.0)
     57                         */
     58                        do_action( 'bp_before_account_details_fields' ); ?>
    2559
    2660                        <div class="register-section" id="basic-details-section">
    … …  
    3165
    3266                                <label for="signup_username"><?php _e( 'Username', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    33                                 <?php do_action( 'bp_signup_username_errors' ); ?>
     67                                <?php
     68
     69                                /**
     70                                 * Fires and displays any member registration username errors.
     71                                 *
     72                                 * @since BuddyPress (1.1.0)
     73                                 */
     74                                do_action( 'bp_signup_username_errors' ); ?>
    3475                                <input type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" <?php bp_form_field_attributes( 'username' ); ?>/>
    3576
    3677                                <label for="signup_email"><?php _e( 'Email Address', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    37                                 <?php do_action( 'bp_signup_email_errors' ); ?>
     78                                <?php
     79
     80                                /**
     81                                 * Fires and displays any member registration email errors.
     82                                 *
     83                                 * @since BuddyPress (1.1.0)
     84                                 */
     85                                do_action( 'bp_signup_email_errors' ); ?>
    3886                                <input type="email" name="signup_email" id="signup_email" value="<?php bp_signup_email_value(); ?>" <?php bp_form_field_attributes( 'email' ); ?>/>
    3987
    4088                                <label for="signup_password"><?php _e( 'Choose a Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    41                                 <?php do_action( 'bp_signup_password_errors' ); ?>
     89                                <?php
     90
     91                                /**
     92                                 * Fires and displays any member registration password errors.
     93                                 *
     94                                 * @since BuddyPress (1.1.0)
     95                                 */
     96                                do_action( 'bp_signup_password_errors' ); ?>
    4297                                <input type="password" name="signup_password" id="signup_password" value="" class="password-entry" <?php bp_form_field_attributes( 'password' ); ?>/>
    4398                                <div id="pass-strength-result"></div>
    4499
    45100                                <label for="signup_password_confirm"><?php _e( 'Confirm Password', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    46                                 <?php do_action( 'bp_signup_password_confirm_errors' ); ?>
     101                                <?php
     102
     103                                /**
     104                                 * Fires and displays any member registration password confirmation errors.
     105                                 *
     106                                 * @since BuddyPress (1.1.0)
     107                                 */
     108                                do_action( 'bp_signup_password_confirm_errors' ); ?>
    47109                                <input type="password" name="signup_password_confirm" id="signup_password_confirm" value="" class="password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
    48110
    49                                 <?php do_action( 'bp_account_details_fields' ); ?>
     111                                <?php
     112
     113                                /**
     114                                 * Fires and displays any extra member registration details fields.
     115                                 *
     116                                 * @since BuddyPress (1.9.0)
     117                                 */
     118                                do_action( 'bp_account_details_fields' ); ?>
    50119
    51120                        </div><!-- #basic-details-section -->
    52121
    53                         <?php do_action( 'bp_after_account_details_fields' ); ?>
     122                        <?php
     123
     124                        /**
     125                         * Fires after the display of member registration account details fields.
     126                         *
     127                         * @since BuddyPress (1.1.0)
     128                         */
     129                        do_action( 'bp_after_account_details_fields' ); ?>
    54130
    55131                        <?php /***** Extra Profile Details ******/ ?>
    … …  
    57133                        <?php if ( bp_is_active( 'xprofile' ) ) : ?>
    58134
    59                                 <?php do_action( 'bp_before_signup_profile_fields' ); ?>
     135                                <?php
     136
     137                                /**
     138                                 * Fires before the display of member registration xprofile fields.
     139                                 *
     140                                 * @since BuddyPress (1.2.4)
     141                                 */
     142                                do_action( 'bp_before_signup_profile_fields' ); ?>
    60143
    61144                                <div class="register-section" id="profile-details-section">
    … …  
    74157                                                        $field_type->edit_field_html();
    75158
     159                                                        /**
     160                                                         * Fires before the display of the visibility options for xprofile fields.
     161                                                         *
     162                                                         * @since BuddyPress (1.7.0)
     163                                                         */
    76164                                                        do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
    77165
    … …  
    97185                                                        <?php endif ?>
    98186
    99                                                         <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
     187                                                        <?php
     188
     189                                                        /**
     190                                                         * Fires after the display of the visibility options for xprofile fields.
     191                                                         *
     192                                                         * @since BuddyPress (1.1.0)
     193                                                         */
     194                                                        do_action( 'bp_custom_profile_edit_fields' ); ?>
    100195
    101196                                                        <p class="description"><?php bp_the_profile_field_description(); ?></p>
    … …  
    109204                                        <?php endwhile; endif; endif; ?>
    110205
    111                                         <?php do_action( 'bp_signup_profile_fields' ); ?>
     206                                        <?php
     207
     208                                        /**
     209                                         * Fires and displays any extra member registration xprofile fields.
     210                                         *
     211                                         * @since BuddyPress (1.9.0)
     212                                         */
     213                                        do_action( 'bp_signup_profile_fields' ); ?>
    112214
    113215                                </div><!-- #profile-details-section -->
    114216
    115                                 <?php do_action( 'bp_after_signup_profile_fields' ); ?>
     217                                <?php
     218
     219                                /**
     220                                 * Fires after the display of member registration xprofile fields.
     221                                 *
     222                                 * @since BuddyPress (1.1.0)
     223                                 */
     224                                do_action( 'bp_after_signup_profile_fields' ); ?>
    116225
    117226                        <?php endif; ?>
    … …  
    119228                        <?php if ( bp_get_blog_signup_allowed() ) : ?>
    120229
    121                                 <?php do_action( 'bp_before_blog_details_fields' ); ?>
     230                                <?php
     231
     232                                /**
     233                                 * Fires before the display of member registration blog details fields.
     234                                 *
     235                                 * @since BuddyPress (1.1.0)
     236                                 */
     237                                do_action( 'bp_before_blog_details_fields' ); ?>
    122238
    123239                                <?php /***** Blog Creation Details ******/ ?>
    … …  
    132248
    133249                                                <label for="signup_blog_url"><?php _e( 'Blog URL', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    134                                                 <?php do_action( 'bp_signup_blog_url_errors' ); ?>
     250                                                <?php
     251
     252                                                /**
     253                                                 * Fires and displays any member registration blog URL errors.
     254                                                 *
     255                                                 * @since BuddyPress (1.1.0)
     256                                                 */
     257                                                do_action( 'bp_signup_blog_url_errors' ); ?>
    135258
    136259                                                <?php if ( is_subdomain_install() ) : ?>
    … …  
    141264
    142265                                                <label for="signup_blog_title"><?php _e( 'Site Title', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
    143                                                 <?php do_action( 'bp_signup_blog_title_errors' ); ?>
     266                                                <?php
     267
     268                                                /**
     269                                                 * Fires and displays any member registration blog title errors.
     270                                                 *
     271                                                 * @since BuddyPress (1.1.0)
     272                                                 */
     273                                                do_action( 'bp_signup_blog_title_errors' ); ?>
    144274                                                <input type="text" name="signup_blog_title" id="signup_blog_title" value="<?php bp_signup_blog_title_value(); ?>" />
    145275
    146276                                                <span class="label"><?php _e( 'I would like my site to appear in search engines, and in public listings around this network.', 'buddypress' ); ?></span>
    147                                                 <?php do_action( 'bp_signup_blog_privacy_errors' ); ?>
     277                                                <?php
     278
     279                                                /**
     280                                                 * Fires and displays any member registration blog privacy errors.
     281                                                 *
     282                                                 * @since BuddyPress (1.1.0)
     283                                                 */
     284                                                do_action( 'bp_signup_blog_privacy_errors' ); ?>
    148285
    149286                                                <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_public" value="public"<?php if ( 'public' == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'Yes', 'buddypress' ); ?></label>
    150287                                                <label><input type="radio" name="signup_blog_privacy" id="signup_blog_privacy_private" value="private"<?php if ( 'private' == bp_get_signup_blog_privacy_value() ) : ?> checked="checked"<?php endif; ?> /> <?php _e( 'No', 'buddypress' ); ?></label>
    151288
    152                                                 <?php do_action( 'bp_blog_details_fields' ); ?>
     289                                                <?php
     290
     291                                                /**
     292                                                 * Fires and displays any extra member registration blog details fields.
     293                                                 *
     294                                                 * @since BuddyPress (1.9.0)
     295                                                 */
     296                                                do_action( 'bp_blog_details_fields' ); ?>
    153297
    154298                                        </div>
    … …  
    156300                                </div><!-- #blog-details-section -->
    157301
    158                                 <?php do_action( 'bp_after_blog_details_fields' ); ?>
     302                                <?php
     303
     304                                /**
     305                                 * Fires after the display of member registration blog details fields.
     306                                 *
     307                                 * @since BuddyPress (1.1.0)
     308                                 */
     309                                do_action( 'bp_after_blog_details_fields' ); ?>
    159310
    160311                        <?php endif; ?>
    161312
    162                         <?php do_action( 'bp_before_registration_submit_buttons' ); ?>
     313                        <?php
     314
     315                        /**
     316                         * Fires before the display of the registration submit buttons.
     317                         *
     318                         * @since BuddyPress (1.1.0)
     319                         */
     320                        do_action( 'bp_before_registration_submit_buttons' ); ?>
    163321
    164322                        <div class="submit">
    … …  
    166324                        </div>
    167325
    168                         <?php do_action( 'bp_after_registration_submit_buttons' ); ?>
     326                        <?php
     327
     328                        /**
     329                         * Fires after the display of the registration submit buttons.
     330                         *
     331                         * @since BuddyPress (1.1.0)
     332                         */
     333                        do_action( 'bp_after_registration_submit_buttons' ); ?>
    169334
    170335                        <?php wp_nonce_field( 'bp_new_signup' ); ?>
    … …  
    174339                <?php if ( 'completed-confirmation' == bp_get_current_signup_step() ) : ?>
    175340
    176                         <?php do_action( 'template_notices' ); ?>
    177                         <?php do_action( 'bp_before_registration_confirmed' ); ?>
     341                        <?php
     342
     343                        /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     344                        do_action( 'template_notices' ); ?>
     345                        <?php
     346
     347                        /**
     348                         * Fires before the display of the registration confirmed messages.
     349                         *
     350                         * @since BuddyPress (1.5.0)
     351                         */
     352                        do_action( 'bp_before_registration_confirmed' ); ?>
    178353
    179354                        <?php if ( bp_registration_needs_activation() ) : ?>
    … …  
    183358                        <?php endif; ?>
    184359
    185                         <?php do_action( 'bp_after_registration_confirmed' ); ?>
     360                        <?php
     361
     362                        /**
     363                         * Fires after the display of the registration confirmed messages.
     364                         *
     365                         * @since BuddyPress (1.5.0)
     366                         */
     367                        do_action( 'bp_after_registration_confirmed' ); ?>
    186368
    187369                <?php endif; // completed-confirmation signup step ?>
    188370
    189                 <?php do_action( 'bp_custom_signup_steps' ); ?>
     371                <?php
     372
     373                /**
     374                 * Fires and displays any custom signup steps.
     375                 *
     376                 * @since BuddyPress (1.1.0)
     377                 */
     378                do_action( 'bp_custom_signup_steps' ); ?>
    190379
    191380                </form>
    … …  
    193382        </div>
    194383
    195         <?php do_action( 'bp_after_register_page' ); ?>
     384        <?php
     385
     386        /**
     387         * Fires at the bottom of the BuddyPress member registration page template.
     388         *
     389         * @since BuddyPress (1.1.0)
     390         */
     391        do_action( 'bp_after_register_page' ); ?>
    196392
    197393</div><!-- #buddypress -->
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/activity.php

    r9604 r9814  
    2222                                <?php bp_activity_show_filters(); ?>
    2323
    24                                 <?php do_action( 'bp_member_activity_filter_options' ); ?>
     24                                <?php
     25
     26                                /**
     27                                 * Fires inside the select input for member activity filter options.
     28                                 *
     29                                 * @since BuddyPress (1.2.0)
     30                                 */
     31                                do_action( 'bp_member_activity_filter_options' ); ?>
    2532
    2633                        </select>
    … …  
    2936</div><!-- .item-list-tabs -->
    3037
    31 <?php do_action( 'bp_before_member_activity_post_form' ); ?>
     38<?php
     39
     40/**
     41 * Fires before the display of the member activity post form.
     42 *
     43 * @since BuddyPress (1.2.0)
     44 */
     45do_action( 'bp_before_member_activity_post_form' ); ?>
    3246
    3347<?php
    … …  
    3549        bp_get_template_part( 'activity/post-form' );
    3650
     51/**
     52 * Fires after the display of the member activity post form.
     53 *
     54 * @since BuddyPress (1.2.0)
     55 */
    3756do_action( 'bp_after_member_activity_post_form' );
     57
     58/**
     59 * Fires before the display of the member activities list.
     60 *
     61 * @since BuddyPress (1.2.0)
     62 */
    3863do_action( 'bp_before_member_activity_content' ); ?>
    3964
    … …  
    4469</div><!-- .activity -->
    4570
    46 <?php do_action( 'bp_after_member_activity_content' ); ?>
     71<?php
     72
     73/**
     74 * Fires after the display of the member activities list.
     75 *
     76 * @since BuddyPress (1.2.0)
     77 */
     78do_action( 'bp_after_member_activity_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/blogs.php

    r9604 r9814  
    2323                                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    2424
    25                                 <?php do_action( 'bp_member_blog_order_options' ); ?>
     25                                <?php
     26
     27                                /**
     28                                 * Fires inside the members blogs order options select input.
     29                                 *
     30                                 * @since BuddyPress (1.2.0)
     31                                 */
     32                                do_action( 'bp_member_blog_order_options' ); ?>
    2633
    2734                        </select>
    … …  
    3542        // Home/My Blogs
    3643        case 'my-sites' :
     44
     45                /**
     46                 * Fires before the display of member blogs content.
     47                 *
     48                 * @since BuddyPress (1.2.0)
     49                 */
    3750                do_action( 'bp_before_member_blogs_content' ); ?>
    3851
    … …  
    4356                </div><!-- .blogs.myblogs -->
    4457
    45                 <?php do_action( 'bp_after_member_blogs_content' );
     58                <?php
     59
     60                /**
     61                 * Fires after the display of member blogs content.
     62                 *
     63                 * @since BuddyPress (1.2.0)
     64                 */
     65                do_action( 'bp_after_member_blogs_content' );
    4666                break;
    4767
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/forums.php

    r9604 r9814  
    2222                                <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option>
    2323
    24                                 <?php do_action( 'bp_forums_directory_order_options' ); ?>
     24                                <?php
     25
     26                                /**
     27                                 * Fires inside the members forums order options select input.
     28                                 *
     29                                 * @since BuddyPress (1.2.0)
     30                                 */
     31                                do_action( 'bp_forums_directory_order_options' ); ?>
    2532
    2633                        </select>
    … …  
    3542
    3643else :
     44
     45        /**
     46         * Fires before the display of member forums content.
     47         *
     48         * @since BuddyPress (1.5.0)
     49         */
    3750        do_action( 'bp_before_member_forums_content' ); ?>
    3851
    … …  
    4356        </div>
    4457
    45         <?php do_action( 'bp_after_member_forums_content' ); ?>
     58        <?php
     59
     60        /**
     61         * Fires after the display of member forums content.
     62         *
     63         * @since BuddyPress (1.5.0)
     64         */
     65        do_action( 'bp_after_member_forums_content' ); ?>
    4666
    4767<?php endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends.php

    r9604 r9814  
    2424                                        <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    2525
    26                                         <?php do_action( 'bp_member_friends_order_options' ); ?>
     26                                        <?php
     27
     28                                        /**
     29                                         * Fires inside the members friends order options select input.
     30                                         *
     31                                         * @since BuddyPress (2.0.0)
     32                                         */
     33                                        do_action( 'bp_member_friends_order_options' ); ?>
    2734
    2835                                </select>
    … …  
    3946        // Home/My Friends
    4047        case 'my-friends' :
     48
     49                /**
     50                 * Fires before the display of member friends content.
     51                 *
     52                 * @since BuddyPress (1.2.0)
     53                 */
    4154                do_action( 'bp_before_member_friends_content' ); ?>
    4255
    … …  
    4760                </div><!-- .members.friends -->
    4861
    49                 <?php do_action( 'bp_after_member_friends_content' );
     62                <?php
     63
     64                /**
     65                 * Fires after the display of member friends content.
     66                 *
     67                 * @since BuddyPress (1.2.0)
     68                 */
     69                do_action( 'bp_after_member_friends_content' );
    5070                break;
    5171
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/friends/requests.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_friend_requests_content' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the display of member friend requests content.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
     8do_action( 'bp_before_member_friend_requests_content' ); ?>
    29
    310<?php if ( bp_has_members( 'type=alphabetical&include=' . bp_get_friendship_requests() ) ) : ?>
    … …  
    3239                                </div>
    3340
    34                                 <?php do_action( 'bp_friend_requests_item' ); ?>
     41                                <?php
     42
     43                                /**
     44                                 * Fires inside the display of a member friend request item.
     45                                 *
     46                                 * @since BuddyPress (1.1.0)
     47                                 */
     48                                do_action( 'bp_friend_requests_item' ); ?>
    3549
    3650                                <div class="action">
    … …  
    3852                                        <a class="button reject" href="<?php bp_friend_reject_request_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    3953
    40                                         <?php do_action( 'bp_friend_requests_item_action' ); ?>
     54                                        <?php
     55
     56                                        /**
     57                                         * Fires inside the member friend request actions markup.
     58                                         *
     59                                         * @since BuddyPress (1.1.0)
     60                                         */
     61                                        do_action( 'bp_friend_requests_item_action' ); ?>
    4162                                </div>
    4263                        </li>
    … …  
    4566        </ul>
    4667
    47         <?php do_action( 'bp_friend_requests_content' ); ?>
     68        <?php
     69
     70        /**
     71         * Fires and displays the member friend requests content.
     72         *
     73         * @since BuddyPress (1.1.0)
     74         */
     75        do_action( 'bp_friend_requests_content' ); ?>
    4876
    4977        <div id="pag-bottom" class="pagination no-ajax">
    … …  
    7199<?php endif;?>
    72100
    73 <?php do_action( 'bp_after_member_friend_requests_content' ); ?>
     101<?php
     102
     103/**
     104 * Fires after the display of member friend requests content.
     105 *
     106 * @since BuddyPress (1.2.0)
     107 */
     108do_action( 'bp_after_member_friend_requests_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups.php

    r9604 r9814  
    2525                                        <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    2626
    27                                         <?php do_action( 'bp_member_group_order_options' ); ?>
     27                                        <?php
     28
     29                                        /**
     30                                         * Fires inside the members group order options select input.
     31                                         *
     32                                         * @since BuddyPress (1.2.0)
     33                                         */
     34                                        do_action( 'bp_member_group_order_options' ); ?>
    2835
    2936                                </select>
    … …  
    4148        // Home/My Groups
    4249        case 'my-groups' :
     50
     51                /**
     52                 * Fires before the display of member groups content.
     53                 *
     54                 * @since BuddyPress (1.2.0)
     55                 */
    4356                do_action( 'bp_before_member_groups_content' ); ?>
    4457
    … …  
    4962                </div>
    5063
    51                 <?php do_action( 'bp_after_member_groups_content' );
     64                <?php
     65
     66                /**
     67                 * Fires after the display of member groups content.
     68                 *
     69                 * @since BuddyPress (1.2.0)
     70                 */
     71                do_action( 'bp_after_member_groups_content' );
    5272                break;
    5373
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r9765 r9814  
    1 <?php do_action( 'bp_before_group_invites_content' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the display of member group invites content.
     5 *
     6 * @since BuddyPress (1.1.0)
     7 */
     8do_action( 'bp_before_group_invites_content' ); ?>
    29
    310<?php if ( bp_has_groups( 'type=invites&user_id=' . bp_loggedin_user_id() ) ) : ?>
    … …  
    1825                                </p>
    1926
    20                                 <?php do_action( 'bp_group_invites_item' ); ?>
     27                                <?php
     28
     29                                /**
     30                                 * Fires inside the display of a member group invite item.
     31                                 *
     32                                 * @since BuddyPress (1.1.0)
     33                                 */
     34                                do_action( 'bp_group_invites_item' ); ?>
    2135
    2236                                <div class="action">
    … …  
    2438                                        <a class="button reject confirm" href="<?php bp_group_reject_invite_link(); ?>"><?php _e( 'Reject', 'buddypress' ); ?></a>
    2539
    26                                         <?php do_action( 'bp_group_invites_item_action' ); ?>
     40                                        <?php
     41
     42                                        /**
     43                                         * Fires inside the member group item action markup.
     44                                         *
     45                                         * @since BuddyPress (1.1.0)
     46                                         */
     47                                        do_action( 'bp_group_invites_item_action' ); ?>
    2748
    2849                                </div>
    … …  
    4061<?php endif;?>
    4162
    42 <?php do_action( 'bp_after_group_invites_content' ); ?>
     63<?php
     64
     65/**
     66 * Fires after the display of member group invites content.
     67 *
     68 * @since BuddyPress (1.1.0)
     69 */
     70do_action( 'bp_after_group_invites_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/home.php

    r9604 r9814  
    11<div id="buddypress">
    22
    3         <?php do_action( 'bp_before_member_home_content' ); ?>
     3        <?php
     4
     5        /**
     6         * Fires before the display of member home content.
     7         *
     8         * @since BuddyPress (1.2.0)
     9         */
     10        do_action( 'bp_before_member_home_content' ); ?>
    411
    512        <div id="item-header" role="complementary">
    … …  
    1522                                <?php bp_get_displayed_user_nav(); ?>
    1623
    17                                 <?php do_action( 'bp_member_options_nav' ); ?>
     24                                <?php
     25
     26                                /**
     27                                 * Fires after the display of member options navigation.
     28                                 *
     29                                 * @since BuddyPress (1.2.4)
     30                                 */
     31                                do_action( 'bp_member_options_nav' ); ?>
    1832
    1933                        </ul>
    … …  
    2337        <div id="item-body" role="main">
    2438
    25                 <?php do_action( 'bp_before_member_body' );
     39                <?php
     40
     41                /**
     42                 * Fires before the display of member body content.
     43                 *
     44                 * @since BuddyPress (1.2.0)
     45                 */
     46                do_action( 'bp_before_member_body' );
    2647
    2748                if ( bp_is_user_activity() || !bp_current_component() ) :
    … …  
    5879                endif;
    5980
     81                /**
     82                 * Fires after the display of member body content.
     83                 *
     84                 * @since BuddyPress (1.2.0)
     85                 */
    6086                do_action( 'bp_after_member_body' ); ?>
    6187
    6288        </div><!-- #item-body -->
    6389
    64         <?php do_action( 'bp_after_member_home_content' ); ?>
     90        <?php
     91
     92        /**
     93         * Fires after the display of member home content.
     94         *
     95         * @since BuddyPress (1.2.0)
     96         */
     97        do_action( 'bp_after_member_home_content' ); ?>
    6598
    6699</div><!-- #buddypress -->
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/member-header.php

    r9604 r9814  
    1010?>
    1111
    12 <?php do_action( 'bp_before_member_header' ); ?>
     12<?php
     13
     14/**
     15 * Fires before the display of a member's header.
     16 *
     17 * @since BuddyPress (1.2.0)
     18 */
     19do_action( 'bp_before_member_header' ); ?>
    1320
    1421<div id="item-header-avatar">
    … …  
    2835        <span class="activity"><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
    2936
    30         <?php do_action( 'bp_before_member_header_meta' ); ?>
     37        <?php
     38
     39        /**
     40         * Fires before the display of the member's header meta.
     41         *
     42         * @since BuddyPress (1.2.0)
     43         */
     44        do_action( 'bp_before_member_header_meta' ); ?>
    3145
    3246        <div id="item-meta">
    … …  
    4458                <div id="item-buttons">
    4559
    46                         <?php do_action( 'bp_member_header_actions' ); ?>
     60                        <?php
     61
     62                        /**
     63                         * Fires in the member header actions section.
     64                         *
     65                         * @since BuddyPress (1.2.6)
     66                         */
     67                        do_action( 'bp_member_header_actions' ); ?>
    4768
    4869                </div><!-- #item-buttons -->
    4970
    5071                <?php
    51                 /***
    52                  * If you'd like to show specific profile fields here use:
    53                  * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
    54                  */
     72
     73                 /**
     74                  * Fires after the group header actions section.
     75                  *
     76                  * If you'd like to show specific profile fields here use:
     77                  * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field
     78                  *
     79                  * @since BuddyPress (1.2.0)
     80                  */
    5581                 do_action( 'bp_profile_header_meta' );
    5682
    … …  
    6187</div><!-- #item-header-content -->
    6288
    63 <?php do_action( 'bp_after_member_header' ); ?>
     89<?php
    6490
    65 <?php do_action( 'template_notices' ); ?>
     91/**
     92 * Fires after the display of a member's header.
     93 *
     94 * @since BuddyPress (1.2.0)
     95 */
     96do_action( 'bp_after_member_header' ); ?>
     97
     98<?php
     99
     100/** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
     101do_action( 'template_notices' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages.php

    r9604 r9814  
    3131        case 'inbox'   :
    3232        case 'sentbox' :
     33
     34                /**
     35                 * Fires before the member messages content for inbox and sentbox.
     36                 *
     37                 * @since BuddyPress (1.2.0)
     38                 */
    3339                do_action( 'bp_before_member_messages_content' ); ?>
    3440
    … …  
    3743                </div><!-- .messages -->
    3844
    39                 <?php do_action( 'bp_after_member_messages_content' );
     45                <?php
     46
     47                /**
     48                 * Fires after the member messages content for inbox and sentbox.
     49                 *
     50                 * @since BuddyPress (1.2.0)
     51                 */
     52                do_action( 'bp_after_member_messages_content' );
    4053                break;
    4154
    … …  
    5265        // Sitewide Notices
    5366        case 'notices' :
     67
     68                /**
     69                 * Fires before the member messages content for notices.
     70                 *
     71                 * @since BuddyPress (1.2.0)
     72                 */
    5473                do_action( 'bp_before_member_messages_content' ); ?>
    5574
    … …  
    5877                </div><!-- .messages -->
    5978
    60                 <?php do_action( 'bp_after_member_messages_content' );
     79                <?php
     80
     81                /**
     82                 * Fires after the member messages content for inbox and sentbox.
     83                 *
     84                 * @since BuddyPress (1.2.0)
     85                 */
     86                do_action( 'bp_after_member_messages_content' );
    6187                break;
    6288
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/compose.php

    r9604 r9814  
    11<form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" role="main" enctype="multipart/form-data">
    22
    3         <?php do_action( 'bp_before_messages_compose_content' ); ?>
     3        <?php
     4
     5        /**
     6         * Fires before the display of message compose content.
     7         *
     8         * @since BuddyPress (1.1.0)
     9         */
     10        do_action( 'bp_before_messages_compose_content' ); ?>
    411
    512        <label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></label>
    … …  
    2330        <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames(); ?>" />
    2431
    25         <?php do_action( 'bp_after_messages_compose_content' ); ?>
     32        <?php
     33
     34        /**
     35         * Fires after the display of message compose content.
     36         *
     37         * @since BuddyPress (1.1.0)
     38         */
     39        do_action( 'bp_after_messages_compose_content' ); ?>
    2640
    2741        <div class="submit">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/messages-loop.php

    r9708 r9814  
    1 <?php do_action( 'bp_before_member_messages_loop' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the members messages loop.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
     8do_action( 'bp_before_member_messages_loop' ); ?>
    29
    310<?php if ( bp_has_message_threads( bp_ajax_querystring( 'messages' ) ) ) : ?>
    … …  
    1522        </div><!-- .pagination -->
    1623
    17         <?php do_action( 'bp_after_member_messages_pagination' ); ?>
     24        <?php
    1825
    19         <?php do_action( 'bp_before_member_messages_threads' ); ?>
     26        /**
     27         * Fires after the members messages pagination display.
     28         *
     29         * @since BuddyPress (1.2.0)
     30         */
     31        do_action( 'bp_after_member_messages_pagination' ); ?>
     32
     33        <?php
     34
     35        /**
     36         * Fires before the members messages threads.
     37         *
     38         * @since BuddyPress (1.2.0)
     39         */
     40        do_action( 'bp_before_member_messages_threads' ); ?>
    2041
    2142        <form action="<?php echo bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ?>/bulk-manage/" method="post" id="messages-bulk-management">
    … …  
    6283                                                </td>
    6384
    64                                                 <?php do_action( 'bp_messages_inbox_list_item' ); ?>
     85                                                <?php
     86
     87                                                /**
     88                                                 * Fires inside the display of a member message inbox list item.
     89                                                 *
     90                                                 * @since BuddyPress (1.1.0)
     91                                                 */
     92                                                do_action( 'bp_messages_inbox_list_item' ); ?>
    6593
    6694                                                <td class="thread-options">
    … …  
    88116        </form>
    89117
    90         <?php do_action( 'bp_after_member_messages_threads' ); ?>
     118        <?php
    91119
    92         <?php do_action( 'bp_after_member_messages_options' ); ?>
     120        /**
     121         * Fires after the members messages threads.
     122         *
     123         * @since BuddyPress (1.2.0)
     124         */
     125        do_action( 'bp_after_member_messages_threads' ); ?>
     126
     127        <?php
     128
     129        /**
     130         * Fires and displays member messages options.
     131         *
     132         * @since BuddyPress (1.2.0)
     133         */
     134        do_action( 'bp_after_member_messages_options' ); ?>
    93135
    94136<?php else: ?>
    … …  
    100142<?php endif;?>
    101143
    102 <?php do_action( 'bp_after_member_messages_loop' ); ?>
     144<?php
     145
     146/**
     147 * Fires after the members messages loop.
     148 *
     149 * @since BuddyPress (1.2.0)
     150 */
     151do_action( 'bp_after_member_messages_loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/notices-loop.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_notices_loop' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the members notices loop.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
     8do_action( 'bp_before_notices_loop' ); ?>
    29
    310<?php if ( bp_has_message_threads() ) : ?>
    … …  
    1522        </div><!-- .pagination -->
    1623
    17         <?php do_action( 'bp_after_notices_pagination' ); ?>
    18         <?php do_action( 'bp_before_notices' ); ?>
     24        <?php
     25
     26        /**
     27         * Fires after the members notices pagination display.
     28         *
     29         * @since BuddyPress (1.2.0)
     30         */
     31        do_action( 'bp_after_notices_pagination' ); ?>
     32        <?php
     33
     34        /**
     35         * Fires before the members notice items.
     36         *
     37         * @since BuddyPress (1.2.0)
     38         */
     39        do_action( 'bp_before_notices' ); ?>
    1940
    2041        <table id="message-threads" class="messages-notices">
    … …  
    3758                                </td>
    3859
    39                                 <?php do_action( 'bp_notices_list_item' ); ?>
     60                                <?php
     61
     62                                /**
     63                                 * Fires inside the display of a member notice list item.
     64                                 *
     65                                 * @since BuddyPress (1.2.0)
     66                                 */
     67                                do_action( 'bp_notices_list_item' ); ?>
    4068
    4169                                <td width="10%">
    … …  
    4775        </table><!-- #message-threads -->
    4876
    49         <?php do_action( 'bp_after_notices' ); ?>
     77        <?php
     78
     79        /**
     80         * Fires after the members notice items.
     81         *
     82         * @since BuddyPress (1.2.0)
     83         */
     84        do_action( 'bp_after_notices' ); ?>
    5085
    5186<?php else: ?>
    … …  
    5792<?php endif;?>
    5893
    59 <?php do_action( 'bp_after_notices_loop' ); ?>
     94<?php
     95
     96/**
     97 * Fires after the members notices loop.
     98 *
     99 * @since BuddyPress (1.2.0)
     100 */
     101do_action( 'bp_after_notices_loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php

    r9604 r9814  
    11<div id="message-thread" role="main">
    22
    3         <?php do_action( 'bp_before_message_thread_content' ); ?>
     3        <?php
     4
     5        /**
     6         * Fires before the display of a single member message thread content.
     7         *
     8         * @since BuddyPress (1.1.0)
     9         */
     10        do_action( 'bp_before_message_thread_content' ); ?>
    411
    512        <?php if ( bp_thread_has_messages() ) : ?>
    … …  
    2936                </p>
    3037
    31                 <?php do_action( 'bp_before_message_thread_list' ); ?>
     38                <?php
     39
     40                /**
     41                 * Fires before the display of the message thread list.
     42                 *
     43                 * @since BuddyPress (1.1.0)
     44                 */
     45                do_action( 'bp_before_message_thread_list' ); ?>
    3246
    3347                <?php while ( bp_thread_messages() ) : bp_thread_the_message(); ?>
    … …  
    3751                                <div class="message-metadata">
    3852
    39                                         <?php do_action( 'bp_before_message_meta' ); ?>
     53                                        <?php
     54
     55                                        /** This action is documented in bp-templates/bp-legacy/buddypress-functions.php */
     56                                        do_action( 'bp_before_message_meta' ); ?>
    4057
    4158                                        <?php bp_the_thread_message_sender_avatar( 'type=thumb&width=30&height=30' ); ?>
    … …  
    5370                                        <span class="activity"><?php bp_the_thread_message_time_since(); ?></span>
    5471
    55                                         <?php do_action( 'bp_after_message_meta' ); ?>
     72                                        <?php
     73
     74                                        /** This action is documented in bp-templates/bp-legacy/buddypress-functions.php */
     75                                        do_action( 'bp_after_message_meta' ); ?>
    5676
    5777                                </div><!-- .message-metadata -->
    5878
    59                                 <?php do_action( 'bp_before_message_content' ); ?>
     79                                <?php
     80
     81                                /** This action is documented in bp-templates/bp-legacy/buddypress-functions.php */
     82                                do_action( 'bp_before_message_content' ); ?>
    6083
    6184                                <div class="message-content">
    … …  
    6588                                </div><!-- .message-content -->
    6689
    67                                 <?php do_action( 'bp_after_message_content' ); ?>
     90                                <?php
     91
     92                                /** This action is documented in bp-templates/bp-legacy/buddypress-functions.php */
     93                                do_action( 'bp_after_message_content' ); ?>
    6894
    6995                                <div class="clear"></div>
    … …  
    7399                <?php endwhile; ?>
    74100
    75                 <?php do_action( 'bp_after_message_thread_list' ); ?>
     101                <?php
    76102
    77                 <?php do_action( 'bp_before_message_thread_reply' ); ?>
     103                /**
     104                 * Fires after the display of the message thread list.
     105                 *
     106                 * @since BuddyPress (1.1.0)
     107                 */
     108                do_action( 'bp_after_message_thread_list' ); ?>
     109
     110                <?php
     111
     112                /**
     113                 * Fires before the display of the message thread reply form.
     114                 *
     115                 * @since BuddyPress (1.1.0)
     116                 */
     117                do_action( 'bp_before_message_thread_reply' ); ?>
    78118
    79119                <form id="send-reply" action="<?php bp_messages_form_action(); ?>" method="post" class="standard-form">
    … …  
    83123                                <div class="message-metadata">
    84124
    85                                         <?php do_action( 'bp_before_message_meta' ); ?>
     125                                        <?php
     126
     127                                        /** This action is documented in bp-templates/bp-legacy/buddypress-functions.php */
     128                                        do_action( 'bp_before_message_meta' ); ?>
    86129
    87130                                        <div class="avatar-box">
    … …  
    91134                                        </div>
    92135
    93                                         <?php do_action( 'bp_after_message_meta' ); ?>
     136                                        <?php
     137
     138                                        /** This action is documented in bp-templates/bp-legacy/buddypress-functions.php */
     139                                        do_action( 'bp_after_message_meta' ); ?>
    94140
    95141                                </div><!-- .message-metadata -->
    … …  
    97143                                <div class="message-content">
    98144
    99                                         <?php do_action( 'bp_before_message_reply_box' ); ?>
     145                                        <?php
     146
     147                                        /**
     148                                         * Fires before the display of the message reply box.
     149                                         *
     150                                         * @since BuddyPress (1.1.0)
     151                                         */
     152                                        do_action( 'bp_before_message_reply_box' ); ?>
    100153
    101154                                        <textarea name="content" id="message_content" rows="15" cols="40"></textarea>
    102155
    103                                         <?php do_action( 'bp_after_message_reply_box' ); ?>
     156                                        <?php
     157
     158                                        /**
     159                                         * Fires after the display of the message reply box.
     160                                         *
     161                                         * @since BuddyPress (1.1.0)
     162                                         */
     163                                        do_action( 'bp_after_message_reply_box' ); ?>
    104164
    105165                                        <div class="submit">
    … …  
    117177                </form><!-- #send-reply -->
    118178
    119                 <?php do_action( 'bp_after_message_thread_reply' ); ?>
     179                <?php
     180
     181                /**
     182                 * Fires after the display of the message thread reply form.
     183                 *
     184                 * @since BuddyPress (1.1.0)
     185                 */
     186                do_action( 'bp_after_message_thread_reply' ); ?>
    120187
    121188        <?php endif; ?>
    122189
    123         <?php do_action( 'bp_after_message_thread_content' ); ?>
     190        <?php
     191
     192        /**
     193         * Fires after the display of a single member message thread content.
     194         *
     195         * @since BuddyPress (1.1.0)
     196         */
     197        do_action( 'bp_after_message_thread_content' ); ?>
    124198
    125199</div>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/plugins.php

    r9604 r9814  
    1111?>
    1212
    13                 <?php do_action( 'bp_before_member_plugin_template' ); ?>
     13                <?php
     14
     15                /**
     16                 * Fires at the start of the member plugin template.
     17                 *
     18                 * @since BuddyPress (1.2.0)
     19                 */
     20                do_action( 'bp_before_member_plugin_template' ); ?>
    1421
    1522                <?php if ( ! bp_is_current_component_core() ) : ?>
    … …  
    1926                                <?php bp_get_options_nav(); ?>
    2027
    21                                 <?php do_action( 'bp_member_plugin_options_nav' ); ?>
     28                                <?php
     29
     30                                /**
     31                                 * Fires inside the member plugin template nav <ul> tag.
     32                                 *
     33                                 * @since BuddyPress (1.2.2)
     34                                 */
     35                                do_action( 'bp_member_plugin_options_nav' ); ?>
    2236                        </ul>
    2337                </div><!-- .item-list-tabs -->
    … …  
    2539                <?php endif; ?>
    2640
    27                 <h3><?php do_action( 'bp_template_title' ); ?></h3>
     41                <h3><?php
    2842
    29                 <?php do_action( 'bp_template_content' ); ?>
     43                        /**
     44                         * Fires inside the member plugin template <h3> tag.
     45                         *
     46                         * @since BuddyPress (1.0.0)
     47                         */
     48                        do_action( 'bp_template_title' ); ?></h3>
    3049
    31                 <?php do_action( 'bp_after_member_plugin_template' ); ?>
     50                <?php
     51
     52                /**
     53                 * Fires and displays the member plugin template content.
     54                 *
     55                 * @since BuddyPress (1.0.0)
     56                 */
     57                do_action( 'bp_template_content' ); ?>
     58
     59                <?php
     60
     61                /**
     62                 * Fires at the end of the member plugin template.
     63                 *
     64                 * @since BuddyPress (1.2.0)
     65                 */
     66                do_action( 'bp_after_member_plugin_template' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile.php

    r9604 r9814  
    1616</div><!-- .item-list-tabs -->
    1717
    18 <?php do_action( 'bp_before_profile_content' ); ?>
     18<?php
     19
     20/**
     21 * Fires before the display of member profile content.
     22 *
     23 * @since BuddyPress (1.1.0)
     24 */
     25do_action( 'bp_before_profile_content' ); ?>
    1926
    2027<div class="profile" role="main">
    … …  
    5259</div><!-- .profile -->
    5360
    54 <?php do_action( 'bp_after_profile_content' ); ?>
     61<?php
     62
     63/**
     64 * Fires after the display of member profile content.
     65 *
     66 * @since BuddyPress (1.1.0)
     67 */
     68do_action( 'bp_after_profile_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php

    r9757 r9814  
    11<h4><?php _e( 'Change Profile Photo', 'buddypress' ); ?></h4>
    22
    3 <?php do_action( 'bp_before_profile_avatar_upload_content' ); ?>
     3<?php
     4
     5/**
     6 * Fires before the display of profile avatar upload content.
     7 *
     8 * @since BuddyPress (1.1.0)
     9 */
     10do_action( 'bp_before_profile_avatar_upload_content' ); ?>
    411
    512<?php if ( !(int)bp_get_option( 'bp-disable-avatar-uploads' ) ) : ?>
    … …  
    6572<?php endif; ?>
    6673
    67 <?php do_action( 'bp_after_profile_avatar_upload_content' ); ?>
     74<?php
     75
     76/**
     77 * Fires after the display of profile avatar upload content.
     78 *
     79 * @since BuddyPress (1.1.0)
     80 */
     81do_action( 'bp_after_profile_avatar_upload_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_profile_edit_content' );
     1<?php
     2
     3/**
     4 * Fires after the display of member profile edit content.
     5 *
     6 * @since BuddyPress (1.1.0)
     7 */
     8do_action( 'bp_before_profile_edit_content' );
    29
    310if ( bp_has_profile( 'profile_group_id=' . bp_get_current_profile_group_id() ) ) :
    … …  
    613<form action="<?php bp_the_profile_group_edit_form_action(); ?>" method="post" id="profile-edit-form" class="standard-form <?php bp_the_profile_group_slug(); ?>">
    714
    8         <?php do_action( 'bp_before_profile_field_content' ); ?>
     15        <?php
     16
     17                /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     18                do_action( 'bp_before_profile_field_content' ); ?>
    919
    1020                <h4><?php printf( __( "Editing '%s' Profile Group", "buddypress" ), bp_get_the_profile_group_name() ); ?></h4>
    … …  
    2838                                $field_type->edit_field_html();
    2939
     40                                /**
     41                                 * Fires before the display of visibility options for the field.
     42                                 *
     43                                 * @since BuddyPress (1.7.0)
     44                                 */
    3045                                do_action( 'bp_custom_profile_edit_fields_pre_visibility' );
    3146                                ?>
    … …  
    5166                                <?php endif ?>
    5267
    53                                 <?php do_action( 'bp_custom_profile_edit_fields' ); ?>
     68                                <?php
     69
     70                                /**
     71                                 * Fires after the visibility options for a field.
     72                                 *
     73                                 * @since BuddyPress (1.1.0)
     74                                 */
     75                                do_action( 'bp_custom_profile_edit_fields' ); ?>
    5476
    5577                                <p class="description"><?php bp_the_profile_field_description(); ?></p>
    … …  
    5880                <?php endwhile; ?>
    5981
    60         <?php do_action( 'bp_after_profile_field_content' ); ?>
     82        <?php
     83
     84        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     85        do_action( 'bp_after_profile_field_content' ); ?>
    6186
    6287        <div class="submit">
    … …  
    7297<?php endwhile; endif; ?>
    7398
    74 <?php do_action( 'bp_after_profile_edit_content' ); ?>
     99<?php
     100
     101/**
     102 * Fires after the display of member profile edit content.
     103 *
     104 * @since BuddyPress (1.1.0)
     105 */
     106do_action( 'bp_after_profile_edit_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-loop.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_profile_loop_content' ); ?>
     1<?php
     2
     3/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     4do_action( 'bp_before_profile_loop_content' ); ?>
    25
    36<?php if ( bp_has_profile() ) : ?>
    … …  
    710                <?php if ( bp_profile_group_has_fields() ) : ?>
    811
    9                         <?php do_action( 'bp_before_profile_field_content' ); ?>
     12                        <?php
     13
     14                        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     15                        do_action( 'bp_before_profile_field_content' ); ?>
    1016
    1117                        <div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    … …  
    2935                                                <?php endif; ?>
    3036
    31                                                 <?php do_action( 'bp_profile_field_item' ); ?>
     37                                                <?php
     38
     39                                                /**
     40                                                 * Fires after the display of a field table row for profile data.
     41                                                 *
     42                                                 * @since BuddyPress (1.1.0)
     43                                                 */
     44                                                do_action( 'bp_profile_field_item' ); ?>
    3245
    3346                                        <?php endwhile; ?>
    … …  
    3649                        </div>
    3750
    38                         <?php do_action( 'bp_after_profile_field_content' ); ?>
     51                        <?php
     52
     53                        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     54                        do_action( 'bp_after_profile_field_content' ); ?>
    3955
    4056                <?php endif; ?>
    … …  
    4258        <?php endwhile; ?>
    4359
    44         <?php do_action( 'bp_profile_field_buttons' ); ?>
     60        <?php
     61
     62        /** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     63        do_action( 'bp_profile_field_buttons' ); ?>
    4564
    4665<?php endif; ?>
    4766
    48 <?php do_action( 'bp_after_profile_loop_content' ); ?>
     67<?php
     68
     69/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php */
     70do_action( 'bp_after_profile_loop_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/profile-wp.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_profile_loop_content' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the display of member profile loop content.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
     8do_action( 'bp_before_profile_loop_content' ); ?>
    29
    310<?php $ud = get_userdata( bp_displayed_user_id() ); ?>
    411
    5 <?php do_action( 'bp_before_profile_field_content' ); ?>
     12<?php
     13
     14        /**
     15         * Fires before the display of member profile field content.
     16         *
     17         * @since BuddyPress (1.1.0)
     18         */
     19        do_action( 'bp_before_profile_field_content' ); ?>
    620
    721        <div class="bp-widget wp-profile">
    … …  
    6781        </div>
    6882
    69 <?php do_action( 'bp_after_profile_field_content' ); ?>
     83<?php
    7084
    71 <?php do_action( 'bp_profile_field_buttons' ); ?>
     85/**
     86 * Fires after the display of member profile field content.
     87 *
     88 * @since BuddyPress (1.1.0)
     89 */
     90do_action( 'bp_after_profile_field_content' ); ?>
    7291
    73 <?php do_action( 'bp_after_profile_loop_content' ); ?>
     92<?php
     93
     94/**
     95 * Fires and displays the profile field buttons.
     96 *
     97 * @since BuddyPress (1.1.0)
     98 */
     99do_action( 'bp_profile_field_buttons' ); ?>
     100
     101<?php
     102
     103/**
     104 * Fires after the display of member profile loop content.
     105 *
     106 * @since BuddyPress (1.2.0)
     107 */
     108do_action( 'bp_after_profile_loop_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/capabilities.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_settings_template' ); ?>
     1<?php
     2
     3/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     4do_action( 'bp_before_member_settings_template' ); ?>
    25
    36<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/capabilities/'; ?>" name="account-capabilities-form" id="account-capabilities-form" class="standard-form" method="post">
    47
    5         <?php do_action( 'bp_members_capabilities_account_before_submit' ); ?>
     8        <?php
     9
     10        /**
     11         * Fires before the display of the submit button for user capabilities saving.
     12         *
     13         * @since BuddyPress (1.6.0)
     14         */
     15        do_action( 'bp_members_capabilities_account_before_submit' ); ?>
    616
    717        <label>
    … …  
    1424        </div>
    1525
    16         <?php do_action( 'bp_members_capabilities_account_after_submit' ); ?>
     26        <?php
     27
     28        /**
     29         * Fires after the display of the submit button for user capabilities saving.
     30         *
     31         * @since BuddyPress (1.6.0)
     32         */
     33        do_action( 'bp_members_capabilities_account_after_submit' ); ?>
    1734
    1835        <?php wp_nonce_field( 'capabilities' ); ?>
    … …  
    2037</form>
    2138
    22 <?php do_action( 'bp_after_member_settings_template' ); ?>
     39<?php
     40
     41/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     42do_action( 'bp_after_member_settings_template' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/delete-account.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_settings_template' ); ?>
     1<?php
     2
     3/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     4do_action( 'bp_before_member_settings_template' ); ?>
    25
    36<div id="message" class="info">
    … …  
    1720<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account'; ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
    1821
    19         <?php do_action( 'bp_members_delete_account_before_submit' ); ?>
     22        <?php
     23
     24        /**
     25         * Fires before the display of the submit button for user delete account submitting.
     26         *
     27         * @since BuddyPress (1.5.0)
     28         */
     29        do_action( 'bp_members_delete_account_before_submit' ); ?>
    2030
    2131        <label>
    … …  
    2838        </div>
    2939
    30         <?php do_action( 'bp_members_delete_account_after_submit' ); ?>
     40        <?php
     41
     42        /**
     43         * Fires after the display of the submit button for user delete account submitting.
     44         *
     45         * @since BuddyPress (1.5.0)
     46         */
     47        do_action( 'bp_members_delete_account_after_submit' ); ?>
    3148
    3249        <?php wp_nonce_field( 'delete-account' ); ?>
    … …  
    3451</form>
    3552
    36 <?php do_action( 'bp_after_member_settings_template' ); ?>
     53<?php
     54
     55/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     56do_action( 'bp_after_member_settings_template' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_settings_template' ); ?>
     1<?php
     2
     3/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     4do_action( 'bp_before_member_settings_template' ); ?>
    25
    36<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
    … …  
    1821        <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<?php _e( 'Repeat New Password', 'buddypress' ); ?>
    1922
    20         <?php do_action( 'bp_core_general_settings_before_submit' ); ?>
     23        <?php
     24
     25        /**
     26         * Fires before the display of the submit button for user general settings saving.
     27         *
     28         * @since BuddyPress (1.5.0)
     29         */
     30        do_action( 'bp_core_general_settings_before_submit' ); ?>
    2131
    2232        <div class="submit">
    … …  
    2434        </div>
    2535
    26         <?php do_action( 'bp_core_general_settings_after_submit' ); ?>
     36        <?php
     37
     38        /**
     39         * Fires after the display of the submit button for user general settings saving.
     40         *
     41         * @since BuddyPress (1.5.0)
     42         */
     43        do_action( 'bp_core_general_settings_after_submit' ); ?>
    2744
    2845        <?php wp_nonce_field( 'bp_settings_general' ); ?>
    … …  
    3047</form>
    3148
    32 <?php do_action( 'bp_after_member_settings_template' ); ?>
     49<?php
     50
     51/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     52do_action( 'bp_after_member_settings_template' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/notifications.php

    r9604 r9814  
    1 <?php do_action( 'bp_before_member_settings_template' ); ?>
     1<?php
     2
     3/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     4do_action( 'bp_before_member_settings_template' ); ?>
    25
    36<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications'; ?>" method="post" class="standard-form" id="settings-form">
    47        <p><?php _e( 'Send an email notice when:', 'buddypress' ); ?></p>
    58
    6         <?php do_action( 'bp_notification_settings' ); ?>
     9        <?php
    710
    8         <?php do_action( 'bp_members_notification_settings_before_submit' ); ?>
     11        /**
     12         * Fires at the top of the member template notification settings form.
     13         *
     14         * @since BuddyPress (1.0.0)
     15         */
     16        do_action( 'bp_notification_settings' ); ?>
     17
     18        <?php
     19
     20        /**
     21         * Fires before the display of the submit button for user notification saving.
     22         *
     23         * @since BuddyPress (1.5.0)
     24         */
     25        do_action( 'bp_members_notification_settings_before_submit' ); ?>
    926
    1027        <div class="submit">
    … …  
    1229        </div>
    1330
    14         <?php do_action( 'bp_members_notification_settings_after_submit' ); ?>
     31        <?php
     32
     33        /**
     34         * Fires after the display of the submit button for user notification saving.
     35         *
     36         * @since BuddyPress (1.5.0)
     37         */
     38        do_action( 'bp_members_notification_settings_after_submit' ); ?>
    1539
    1640        <?php wp_nonce_field('bp_settings_notifications' ); ?>
    … …  
    1842</form>
    1943
    20 <?php do_action( 'bp_after_member_settings_template' ); ?>
     44<?php
     45
     46/** This action is documented in bp-templates/bp-legacy/buddypress/members/single/settings/profile.php */
     47do_action( 'bp_after_member_settings_template' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/profile.php

    r8958 r9814  
    1 <?php do_action( 'bp_before_member_settings_template' ); ?>
     1<?php
     2
     3/**
     4 * Fires before the display of member settings template.
     5 *
     6 * @since BuddyPress (1.5.0)
     7 */
     8do_action( 'bp_before_member_settings_template' ); ?>
    29
    310<form action="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_settings_slug() . '/profile' ); ?>" method="post" class="standard-form" id="settings-form">
    … …  
    3744        <?php endif; ?>
    3845
    39         <?php do_action( 'bp_core_xprofile_settings_before_submit' ); ?>
     46        <?php
     47
     48        /**
     49         * Fires before the display of the submit button for user profile saving.
     50         *
     51         * @since BuddyPress (2.0.0)
     52         */
     53        do_action( 'bp_core_xprofile_settings_before_submit' ); ?>
    4054
    4155        <div class="submit">
    … …  
    4357        </div>
    4458
    45         <?php do_action( 'bp_core_xprofile_settings_after_submit' ); ?>
     59        <?php
     60
     61        /**
     62         * Fires after the display of the submit button for user profile saving.
     63         *
     64         * @since BuddyPress (2.0.0)
     65         */
     66        do_action( 'bp_core_xprofile_settings_after_submit' ); ?>
    4667
    4768        <?php wp_nonce_field( 'bp_xprofile_settings' ); ?>
    … …  
    5172</form>
    5273
    53 <?php do_action( 'bp_after_member_settings_template' );
     74<?php
     75
     76/**
     77 * Fires after the display of member settings template.
     78 *
     79 * @since BuddyPress (1.5.0)
     80 */
     81do_action( 'bp_after_member_settings_template' );
Note: See TracChangeset for help on using the changeset viewer.