Skip to:
Content

BuddyPress.org

Changeset 9786


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

Adds hooks documentation for the groups template files.

See #5948.

Location:
trunk/src/bp-templates/bp-legacy/buddypress/groups
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/create.php

    r9757 r9786  
    1 <?php do_action( 'bp_before_create_group_page' ); ?>
     1<?php
     2
     3/**
     4 * Fires at the top of the groups creation template file.
     5 *
     6 * @since BuddyPress (1.7.0)
     7 */
     8do_action( 'bp_before_create_group_page' ); ?>
    29
    310<div id="buddypress">
    411
    5         <?php do_action( 'bp_before_create_group_content_template' ); ?>
     12        <?php
     13
     14        /**
     15         * Fires before the display of group creation content.
     16         *
     17         * @since BuddyPress (1.6.0)
     18         */
     19        do_action( 'bp_before_create_group_content_template' ); ?>
    620
    721        <form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data">
    822
    9                 <?php do_action( 'bp_before_create_group' ); ?>
     23                <?php
     24
     25                /**
     26                 * Fires before the display of group creation.
     27                 *
     28                 * @since BuddyPress (1.2.0)
     29                 */
     30                do_action( 'bp_before_create_group' ); ?>
    1031
    1132                <div class="item-list-tabs no-ajax" id="group-create-tabs" role="navigation">
     
    2445                        <?php if ( bp_is_group_creation_step( 'group-details' ) ) : ?>
    2546
    26                                 <?php do_action( 'bp_before_group_details_creation_step' ); ?>
     47                                <?php
     48
     49                                /**
     50                                 * Fires before the display of the group details creation step.
     51                                 *
     52                                 * @since BuddyPress (1.1.0)
     53                                 */
     54                                do_action( 'bp_before_group_details_creation_step' ); ?>
    2755
    2856                                <div>
     
    3765
    3866                                <?php
     67
     68                                /**
     69                                 * Fires after the display of the group details creation step.
     70                                 *
     71                                 * @since BuddyPress (1.1.0)
     72                                 */
    3973                                do_action( 'bp_after_group_details_creation_step' );
    4074                                do_action( 'groups_custom_group_fields_editable' ); // @Deprecated
     
    4781                        <?php if ( bp_is_group_creation_step( 'group-settings' ) ) : ?>
    4882
    49                                 <?php do_action( 'bp_before_group_settings_creation_step' ); ?>
     83                                <?php
     84
     85                                /**
     86                                 * Fires before the display of the group settings creation step.
     87                                 *
     88                                 * @since BuddyPress (1.1.0)
     89                                 */
     90                                do_action( 'bp_before_group_settings_creation_step' ); ?>
    5091
    5192                                <h4><?php _e( 'Privacy Options', 'buddypress' ); ?></h4>
     
    123164                                <?php endif; ?>
    124165
    125                                 <?php do_action( 'bp_after_group_settings_creation_step' ); ?>
     166                                <?php
     167
     168                                /**
     169                                 * Fires after the display of the group settings creation step.
     170                                 *
     171                                 * @since BuddyPress (1.1.0)
     172                                 */
     173                                do_action( 'bp_after_group_settings_creation_step' ); ?>
    126174
    127175                                <?php wp_nonce_field( 'groups_create_save_group-settings' ); ?>
     
    132180                        <?php if ( bp_is_group_creation_step( 'group-avatar' ) ) : ?>
    133181
    134                                 <?php do_action( 'bp_before_group_avatar_creation_step' ); ?>
     182                                <?php
     183
     184                                /**
     185                                 * Fires before the display of the group avatar creation step.
     186                                 *
     187                                 * @since BuddyPress (1.1.0)
     188                                 */
     189                                do_action( 'bp_before_group_avatar_creation_step' ); ?>
    135190
    136191                                <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
     
    185240                                <?php endif; ?>
    186241
    187                                 <?php do_action( 'bp_after_group_avatar_creation_step' ); ?>
     242                                <?php
     243
     244                                /**
     245                                 * Fires after the display of the group avatar creation step.
     246                                 *
     247                                 * @since BuddyPress (1.1.0)
     248                                 */
     249                                do_action( 'bp_after_group_avatar_creation_step' ); ?>
    188250
    189251                                <?php wp_nonce_field( 'groups_create_save_group-avatar' ); ?>
     
    194256                        <?php if ( bp_is_group_creation_step( 'group-invites' ) ) : ?>
    195257
    196                                 <?php do_action( 'bp_before_group_invites_creation_step' ); ?>
     258                                <?php
     259
     260                                /**
     261                                 * Fires before the display of the group invites creation step.
     262                                 *
     263                                 * @since BuddyPress (1.1.0)
     264                                 */
     265                                do_action( 'bp_before_group_invites_creation_step' ); ?>
    197266
    198267                                <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
     
    255324                                <?php wp_nonce_field( 'groups_create_save_group-invites' ); ?>
    256325
    257                                 <?php do_action( 'bp_after_group_invites_creation_step' ); ?>
     326                                <?php
     327
     328                                /**
     329                                 * Fires after the display of the group invites creation step.
     330                                 *
     331                                 * @since BuddyPress (1.1.0)
     332                                 */
     333                                do_action( 'bp_after_group_invites_creation_step' ); ?>
    258334
    259335                        <?php endif; ?>
    260336
    261                         <?php do_action( 'groups_custom_create_steps' ); // Allow plugins to add custom group creation steps ?>
    262 
    263                         <?php do_action( 'bp_before_group_creation_step_buttons' ); ?>
     337                        <?php
     338
     339                        /**
     340                         * Fires inside the group admin template.
     341                         *
     342                         * Allows plugins to add custom group creation steps.
     343                         *
     344                         * @since BuddyPress (1.1.0)
     345                         */
     346                        do_action( 'groups_custom_create_steps' ); ?>
     347
     348                        <?php
     349
     350                        /**
     351                         * Fires before the display of the group creation step buttons.
     352                         *
     353                         * @since BuddyPress (1.1.0)
     354                         */
     355                        do_action( 'bp_before_group_creation_step_buttons' ); ?>
    264356
    265357                        <?php if ( 'crop-image' != bp_get_avatar_admin_step() ) : ?>
     
    298390                        <?php endif;?>
    299391
    300                         <?php do_action( 'bp_after_group_creation_step_buttons' ); ?>
     392                        <?php
     393
     394                        /**
     395                         * Fires after the display of the group creation step buttons.
     396                         *
     397                         * @since BuddyPress (1.1.0)
     398                         */
     399                        do_action( 'bp_after_group_creation_step_buttons' ); ?>
    301400
    302401                        <?php /* Don't leave out this hidden field */ ?>
    303402                        <input type="hidden" name="group_id" id="group_id" value="<?php bp_new_group_id(); ?>" />
    304403
    305                         <?php do_action( 'bp_directory_groups_content' ); ?>
     404                        <?php
     405
     406                        /**
     407                         * Fires and displays the groups directory content.
     408                         *
     409                         * @since BuddyPress (1.1.0)
     410                         */
     411                        do_action( 'bp_directory_groups_content' ); ?>
    306412
    307413                </div><!-- .item-body -->
    308414
    309                 <?php do_action( 'bp_after_create_group' ); ?>
     415                <?php
     416
     417                /**
     418                 * Fires after the display of group creation.
     419                 *
     420                 * @since BuddyPress (1.2.0)
     421                 */
     422                do_action( 'bp_after_create_group' ); ?>
    310423
    311424        </form>
    312425
    313         <?php do_action( 'bp_after_create_group_content_template' ); ?>
     426        <?php
     427
     428        /**
     429         * Fires after the display of group creation content.
     430         *
     431         * @since BuddyPress (1.6.0)
     432         */
     433        do_action( 'bp_after_create_group_content_template' ); ?>
    314434
    315435</div>
    316436
    317 <?php do_action( 'bp_after_create_group_page' ); ?>
     437<?php
     438
     439/**
     440 * Fires at the bottom of the groups creation template file.
     441 *
     442 * @since BuddyPress (1.7.0)
     443 */
     444do_action( 'bp_after_create_group_page' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/groups-loop.php

    r9604 r9786  
    1212?>
    1313
    14 <?php do_action( 'bp_before_groups_loop' ); ?>
     14<?php
     15
     16/**
     17 * Fires before the display of groups from the groups loop.
     18 *
     19 * @since BuddyPress (1.2.0)
     20 */
     21do_action( 'bp_before_groups_loop' ); ?>
    1522
    1623<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
     
    3239        </div>
    3340
    34         <?php do_action( 'bp_before_directory_groups_list' ); ?>
     41        <?php
     42
     43        /**
     44         * Fires before the listing of the groups list.
     45         *
     46         * @since BuddyPress (1.1.0)
     47         */
     48        do_action( 'bp_before_directory_groups_list' ); ?>
    3549
    3650        <ul id="groups-list" class="item-list" role="main">
     
    4963                                <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
    5064
    51                                 <?php do_action( 'bp_directory_groups_item' ); ?>
     65                                <?php
     66
     67                                /**
     68                                 * Fires inside the listing of an individual group listing item.
     69                                 *
     70                                 * @since BuddyPress (1.1.0)
     71                                 */
     72                                do_action( 'bp_directory_groups_item' ); ?>
    5273
    5374                        </div>
     
    5576                        <div class="action">
    5677
    57                                 <?php do_action( 'bp_directory_groups_actions' ); ?>
     78                                <?php
     79
     80                                /**
     81                                 * Fires inside the action section of an individual group listing item.
     82                                 *
     83                                 * @since BuddyPress (1.1.0)
     84                                 */
     85                                do_action( 'bp_directory_groups_actions' ); ?>
    5886
    5987                                <div class="meta">
     
    72100        </ul>
    73101
    74         <?php do_action( 'bp_after_directory_groups_list' ); ?>
     102        <?php
     103
     104        /**
     105         * Fires after the listing of the groups list.
     106         *
     107         * @since BuddyPress (1.1.0)
     108         */
     109        do_action( 'bp_after_directory_groups_list' ); ?>
    75110
    76111        <div id="pag-bottom" class="pagination">
     
    98133<?php endif; ?>
    99134
    100 <?php do_action( 'bp_after_groups_loop' ); ?>
     135<?php
     136
     137/**
     138 * Fires after the display of groups from the groups loop.
     139 *
     140 * @since BuddyPress (1.2.0)
     141 */
     142do_action( 'bp_after_groups_loop' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r9604 r9786  
    1 <?php do_action( 'bp_before_directory_groups_page' ); ?>
     1<?php
     2
     3/**
     4 * Fires at the top of the groups directory template file.
     5 *
     6 * @since BuddyPress (1.5.0)
     7 */
     8do_action( 'bp_before_directory_groups_page' ); ?>
    29
    310<div id="buddypress">
    411
    5         <?php do_action( 'bp_before_directory_groups' ); ?>
     12        <?php
    613
    7         <?php do_action( 'bp_before_directory_groups_content' ); ?>
     14        /**
     15         * Fires before the display of the groups.
     16         *
     17         * @since BuddyPress (1.1.0)
     18         */
     19        do_action( 'bp_before_directory_groups' ); ?>
     20
     21        <?php
     22
     23        /**
     24         * Fires before the display of the groups content.
     25         *
     26         * @since BuddyPress (1.1.0)
     27         */
     28        do_action( 'bp_before_directory_groups_content' ); ?>
    829
    930        <div id="group-dir-search" class="dir-search" role="search">
     
    2344                                <?php endif; ?>
    2445
    25                                 <?php do_action( 'bp_groups_directory_group_filter' ); ?>
     46                                <?php
     47
     48                                /**
     49                                 * Fires inside the groups directory group filter input.
     50                                 *
     51                                 * @since BuddyPress (1.5.0)
     52                                 */
     53                                do_action( 'bp_groups_directory_group_filter' ); ?>
    2654
    2755                        </ul>
     
    3058                <div class="item-list-tabs" id="subnav" role="navigation">
    3159                        <ul>
    32                                 <?php do_action( 'bp_groups_directory_group_types' ); ?>
     60                                <?php
     61
     62                                /**
     63                                 * Fires inside the groups directory group types.
     64                                 *
     65                                 * @since BuddyPress (1.2.0)
     66                                 */
     67                                do_action( 'bp_groups_directory_group_types' ); ?>
    3368
    3469                                <li id="groups-order-select" class="last filter">
     
    4277                                                <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
    4378
    44                                                 <?php do_action( 'bp_groups_directory_order_options' ); ?>
     79                                                <?php
     80
     81                                                /**
     82                                                 * Fires inside the groups directory group order options.
     83                                                 *
     84                                                 * @since BuddyPress (1.2.0)
     85                                                 */
     86                                                do_action( 'bp_groups_directory_order_options' ); ?>
    4587                                        </select>
    4688                                </li>
     
    5294                </div><!-- #groups-dir-list -->
    5395
    54                 <?php do_action( 'bp_directory_groups_content' ); ?>
     96                <?php
     97
     98                /**
     99                 * Fires and displays the group content.
     100                 *
     101                 * @since BuddyPress (1.1.0)
     102                 */
     103                do_action( 'bp_directory_groups_content' ); ?>
    55104
    56105                <?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ); ?>
    57106
    58                 <?php do_action( 'bp_after_directory_groups_content' ); ?>
     107                <?php
     108
     109                /**
     110                 * Fires after the display of the groups content.
     111                 *
     112                 * @since BuddyPress (1.1.0)
     113                 */
     114                do_action( 'bp_after_directory_groups_content' ); ?>
    59115
    60116        </form><!-- #groups-directory-form -->
    61117
    62         <?php do_action( 'bp_after_directory_groups' ); ?>
     118        <?php
     119
     120        /**
     121         * Fires after the display of the groups.
     122         *
     123         * @since BuddyPress (1.1.0)
     124         */
     125        do_action( 'bp_after_directory_groups' ); ?>
    63126
    64127</div><!-- #buddypress -->
    65128
    66 <?php do_action( 'bp_after_directory_groups_page' ); ?>
     129<?php
     130
     131/**
     132 * Fires at the bottom of the groups directory template file.
     133 *
     134 * @since BuddyPress (1.5.0)
     135 */
     136do_action( 'bp_after_directory_groups_page' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/activity.php

    r9604 r9786  
    33                <li class="feed"><a href="<?php bp_group_activity_feed_link(); ?>" title="<?php esc_attr_e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li>
    44
    5                 <?php do_action( 'bp_group_activity_syndication_options' ); ?>
     5                <?php
     6
     7                /**
     8                 * Fires inside the syndication options list, after the RSS option.
     9                 *
     10                 * @since BuddyPress (1.2.0)
     11                 */
     12                do_action( 'bp_group_activity_syndication_options' ); ?>
    613
    714                <li id="activity-filter-select" class="last">
     
    1219                                <?php bp_activity_show_filters( 'group' ); ?>
    1320
    14                                 <?php do_action( 'bp_group_activity_filter_options' ); ?>
     21                                <?php
     22
     23                                /**
     24                                 * Fires inside the select input for group activity filter options.
     25                                 *
     26                                 * @since BuddyPress (1.2.0)
     27                                 */
     28                                do_action( 'bp_group_activity_filter_options' ); ?>
    1529                        </select>
    1630                </li>
     
    1832</div><!-- .item-list-tabs -->
    1933
    20 <?php do_action( 'bp_before_group_activity_post_form' ); ?>
     34<?php
     35
     36/**
     37 * Fires before the display of the group activity post form.
     38 *
     39 * @since BuddyPress (1.2.0)
     40 */
     41do_action( 'bp_before_group_activity_post_form' ); ?>
    2142
    2243<?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
     
    2647<?php endif; ?>
    2748
    28 <?php do_action( 'bp_after_group_activity_post_form' ); ?>
    29 <?php do_action( 'bp_before_group_activity_content' ); ?>
     49<?php
     50
     51/**
     52 * Fires after the display of the group activity post form.
     53 *
     54 * @since BuddyPress (1.2.0)
     55 */
     56do_action( 'bp_after_group_activity_post_form' ); ?>
     57<?php
     58
     59/**
     60 * Fires before the display of the group activities list.
     61 *
     62 * @since BuddyPress (1.2.0)
     63 */
     64do_action( 'bp_before_group_activity_content' ); ?>
    3065
    3166<div class="activity single-group" role="main">
     
    3570</div><!-- .activity.single-group -->
    3671
    37 <?php do_action( 'bp_after_group_activity_content' ); ?>
     72<?php
     73
     74/**
     75 * Fires after the display of the group activities list.
     76 *
     77 * @since BuddyPress (1.2.0)
     78 */
     79do_action( 'bp_after_group_activity_content' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/admin.php

    r9757 r9786  
    77<form action="<?php bp_group_admin_form_action(); ?>" name="group-settings-form" id="group-settings-form" class="standard-form" method="post" enctype="multipart/form-data" role="main">
    88
    9 <?php do_action( 'bp_before_group_admin_content' ); ?>
     9<?php
     10
     11/**
     12 * Fires inside the group admin form and before the content.
     13 *
     14 * @since BuddyPress (1.1.0)
     15 */
     16do_action( 'bp_before_group_admin_content' ); ?>
    1017
    1118<?php /* Edit Group Details */ ?>
    1219<?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?>
    1320
    14         <?php do_action( 'bp_before_group_details_admin' ); ?>
     21        <?php
     22
     23        /**
     24         * Fires before the display of group admin details.
     25         *
     26         * @since BuddyPress (1.1.0)
     27         */
     28        do_action( 'bp_before_group_details_admin' ); ?>
    1529
    1630        <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
     
    2034        <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
    2135
    22         <?php do_action( 'groups_custom_group_fields_editable' ); ?>
     36        <?php
     37
     38        /**
     39         * Fires after the group description admin details.
     40         *
     41         * @since BuddyPress (1.0.0)
     42         */
     43        do_action( 'groups_custom_group_fields_editable' ); ?>
    2344
    2445        <p>
     
    2849        </p>
    2950
    30         <?php do_action( 'bp_after_group_details_admin' ); ?>
     51        <?php
     52
     53        /**
     54         * Fires after the display of group admin details.
     55         *
     56         * @since BuddyPress (1.1.0)
     57         */
     58        do_action( 'bp_after_group_details_admin' ); ?>
    3159
    3260        <p><input type="submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
     
    3866<?php if ( bp_is_group_admin_screen( 'group-settings' ) ) : ?>
    3967
    40         <?php do_action( 'bp_before_group_settings_admin' ); ?>
     68        <?php
     69
     70        /**
     71         * Fires before the group settings admin display.
     72         *
     73         * @since BuddyPress (1.1.0)
     74         */
     75        do_action( 'bp_before_group_settings_admin' ); ?>
    4176
    4277        <?php if ( bp_is_active( 'forums' ) ) : ?>
     
    113148        <hr />
    114149
    115         <?php do_action( 'bp_after_group_settings_admin' ); ?>
     150        <?php
     151
     152        /**
     153         * Fires after the group settings admin display.
     154         *
     155         * @since BuddyPress (1.1.0)
     156         */
     157        do_action( 'bp_after_group_settings_admin' ); ?>
    116158
    117159        <p><input type="submit" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
     
    180222<?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?>
    181223
    182         <?php do_action( 'bp_before_group_manage_members_admin' ); ?>
     224        <?php
     225
     226        /**
     227         * Fires before the group manage members admin display.
     228         *
     229         * @since BuddyPress (1.1.0)
     230         */
     231        do_action( 'bp_before_group_manage_members_admin' ); ?>
    183232
    184233        <div class="bp-widget">
     
    284333                                                                <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm" title="<?php esc_attr_e( 'Remove this member', 'buddypress' ); ?>"><?php _e( 'Remove from group', 'buddypress' ); ?></a>
    285334
    286                                                                 <?php do_action( 'bp_group_manage_members_admin_item' ); ?>
     335                                                                <?php
     336
     337                                                                /**
     338                                                                 * Fires inside the display of a member admin item in group management area.
     339                                                                 *
     340                                                                 * @since BuddyPress (1.1.0)
     341                                                                 */
     342                                                                do_action( 'bp_group_manage_members_admin_item' ); ?>
    287343
    288344                                                        </span>
     
    303359        </div>
    304360
    305         <?php do_action( 'bp_after_group_manage_members_admin' ); ?>
     361        <?php
     362
     363        /**
     364         * Fires after the group manage members admin display.
     365         *
     366         * @since BuddyPress (1.1.0)
     367         */
     368        do_action( 'bp_after_group_manage_members_admin' ); ?>
    306369
    307370<?php endif; ?>
     
    310373<?php if ( bp_is_group_admin_screen( 'membership-requests' ) ) : ?>
    311374
    312         <?php do_action( 'bp_before_group_membership_requests_admin' ); ?>
     375        <?php
     376
     377        /**
     378         * Fires before the display of group membership requests admin.
     379         *
     380         * @since BuddyPress (1.1.0)
     381         */
     382        do_action( 'bp_before_group_membership_requests_admin' ); ?>
    313383
    314384                <div class="requests">
     
    318388                </div>
    319389
    320         <?php do_action( 'bp_after_group_membership_requests_admin' ); ?>
    321 
    322 <?php endif; ?>
    323 
    324 <?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?>
     390        <?php
     391
     392        /**
     393         * Fires after the display of group membership requests admin.
     394         *
     395         * @since BuddyPress (1.1.0)
     396         */
     397        do_action( 'bp_after_group_membership_requests_admin' ); ?>
     398
     399<?php endif; ?>
     400
     401<?php
     402
     403/**
     404 * Fires inside the group admin template.
     405 *
     406 * Allows plugins to add custom group edit screens.
     407 *
     408 * @since BuddyPress (1.1.0)
     409 */
     410do_action( 'groups_custom_edit_steps' ); ?>
    325411
    326412<?php /* Delete Group Option */ ?>
    327413<?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?>
    328414
    329         <?php do_action( 'bp_before_group_delete_admin' ); ?>
     415        <?php
     416
     417        /**
     418         * Fires before the display of group delete admin.
     419         *
     420         * @since BuddyPress (1.1.0)
     421         */
     422        do_action( 'bp_before_group_delete_admin' ); ?>
    330423
    331424        <div id="message" class="info">
     
    335428        <label><input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e( 'I understand the consequences of deleting this group.', 'buddypress' ); ?></label>
    336429
    337         <?php do_action( 'bp_after_group_delete_admin' ); ?>
     430        <?php
     431
     432        /**
     433         * Fires after the display of group delete admin.
     434         *
     435         * @since BuddyPress (1.1.0)
     436         */
     437        do_action( 'bp_after_group_delete_admin' ); ?>
    338438
    339439        <div class="submit">
     
    348448        <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" />
    349449
    350 <?php do_action( 'bp_after_group_admin_content' ); ?>
     450<?php
     451
     452/**
     453 * Fires inside the group admin form and after the content.
     454 *
     455 * @since BuddyPress (1.1.0)
     456 */
     457do_action( 'bp_after_group_admin_content' ); ?>
    351458
    352459</form><!-- #group-settings-form -->
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum.php

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

    r9604 r9786  
    1 <?php do_action( 'bp_before_group_forum_edit_form' ); ?>
     1<?php
     2
     3/**
     4 * Fires at the top of the group forum edit form.
     5 *
     6 * @since BuddyPress (1.2.4)
     7 */
     8do_action( 'bp_before_group_forum_edit_form' ); ?>
    29
    310<?php if ( bp_has_forum_topic_posts() ) : ?>
     
    3542                        <?php endif; ?>
    3643
    37                         <?php do_action( 'bp_group_forum_topic_meta' ); ?>
     44                        <?php
     45
     46                        /**
     47                         * Fires at the end of the group forum topic meta section.
     48                         *
     49                         * @since BuddyPress (1.2.5)
     50                         */
     51                        do_action( 'bp_group_forum_topic_meta' ); ?>
    3852
    3953                </div>
     
    4357                        <div id="edit-topic">
    4458
    45                                 <?php do_action( 'bp_group_before_edit_forum_topic' ); ?>
     59                                <?php
     60
     61                                /**
     62                                 * Fires before the group forum topic form fields.
     63                                 *
     64                                 * @since BuddyPress (1.2.0)
     65                                 */
     66                                do_action( 'bp_group_before_edit_forum_topic' ); ?>
    4667
    4768                                <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
     
    5475                                <input type="text" name="topic_tags" id="topic_tags" value="<?php bp_forum_topic_tag_list(); ?>" />
    5576
    56                                 <?php do_action( 'bp_group_after_edit_forum_topic' ); ?>
     77                                <?php
     78
     79                                /**
     80                                 * Fires after the group forum topic form fields.
     81                                 *
     82                                 * @since BuddyPress (1.2.0)
     83                                 */
     84                                do_action( 'bp_group_after_edit_forum_topic' ); ?>
    5785
    5886                                <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" /></p>
     
    6694                        <div id="edit-post">
    6795
    68                                 <?php do_action( 'bp_group_before_edit_forum_post' ); ?>
     96                                <?php
     97
     98                                /**
     99                                 * Fires before the group edit forum textarea.
     100                                 *
     101                                 * @since BuddyPress (1.2.0)
     102                                 */
     103                                do_action( 'bp_group_before_edit_forum_post' ); ?>
    69104
    70105                                <textarea name="post_text" id="post_text"><?php bp_the_topic_post_edit_text(); ?></textarea>
    71106
    72                                 <?php do_action( 'bp_group_after_edit_forum_post' ); ?>
     107                                <?php
     108
     109                                /**
     110                                 * Fires after the group edit forum textarea.
     111                                 *
     112                                 * @since BuddyPress (1.2.0)
     113                                 */
     114                                do_action( 'bp_group_after_edit_forum_post' ); ?>
    73115
    74116                                <p class="submit"><input type="submit" name="save_changes" id="save_changes" value="<?php esc_attr_e( 'Save Changes', 'buddypress' ); ?>" /></p>
     
    90132<?php endif;?>
    91133
    92 <?php do_action( 'bp_after_group_forum_edit_form' ); ?>
     134<?php
     135
     136/**
     137 * Fires at the end of the group forum edit form.
     138 *
     139 * @since BuddyPress (1.2.4)
     140 */
     141do_action( 'bp_after_group_forum_edit_form' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/forum/topic.php

    r9604 r9786  
    1 <?php do_action( 'bp_before_group_forum_topic' ); ?>
     1<?php
     2
     3/**
     4 * Fires at the top of the group forum topic template.
     5 *
     6 * @since BuddyPress (1.2.4)
     7 */
     8do_action( 'bp_before_group_forum_topic' ); ?>
    29
    310<form action="<?php bp_forum_topic_action(); ?>" method="post" id="forum-topic-form" class="standard-form">
     
    512                <ul>
    613                        <?php if ( is_user_logged_in() ) : ?>
    7        
     14
    815                                <li>
    916                                        <a href="<?php bp_forum_topic_new_reply_link(); ?>" class="new-reply-link"><?php _e( 'New Reply', 'buddypress' ); ?></a>
    1017                                </li>
    11        
     18
    1219                        <?php endif; ?>
    13        
     20
    1421                        <?php if ( bp_forums_has_directory() ) : ?>
    15        
     22
    1623                                <li>
    1724                                        <a href="<?php bp_forums_directory_permalink(); ?>"><?php _e( 'Forum Directory', 'buddypress' ); ?></a>
    1825                                </li>
    19        
     26
    2027                        <?php endif; ?>
    21        
     28
    2229                </ul>
    2330        </div>
    24        
     31
    2532        <div id="topic-meta">
    2633                <h3><?php bp_the_topic_title(); ?> (<?php bp_the_topic_total_post_count(); ?>)</h3>
    27        
     34
    2835                <?php if ( bp_forum_topic_has_tags() ) : ?>
    29        
     36
    3037                        <div class="topic-tags">
    31        
     38
    3239                                <?php _e( 'Topic tags:', 'buddypress' ); ?> <?php bp_forum_topic_tag_list(); ?>
    33        
    34                         </div>
    35        
     40
     41                        </div>
     42
    3643                <?php endif; ?>
    37        
     44
    3845                <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
    39        
     46
    4047                        <div class="last admin-links">
    41        
     48
    4249                                <?php bp_the_topic_admin_links(); ?>
    43        
    44                         </div>
    45        
     50
     51                        </div>
     52
    4653                <?php endif; ?>
    47        
    48                 <?php do_action( 'bp_group_forum_topic_meta' ); ?>
    49        
     54
     55                <?php
     56
     57                /**
     58                 * Fires at the end of the group forum topic meta markup.
     59                 *
     60                 * @since BuddyPress (1.2.5)
     61                 */
     62                do_action( 'bp_group_forum_topic_meta' ); ?>
     63
    5064        </div>
    5165
     
    6983                </div>
    7084
    71                 <?php do_action( 'bp_before_group_forum_topic_posts' ); ?>
     85                <?php
     86
     87                /**
     88                 * Fires before the listing of the group forum topic posts.
     89                 *
     90                 * @since BuddyPress (1.2.4)
     91                 */
     92                do_action( 'bp_before_group_forum_topic_posts' ); ?>
    7293
    7394                <ul id="topic-post-list" class="item-list" role="main">
     
    91112                                                <?php endif; ?>
    92113
    93                                                 <?php do_action( 'bp_group_forum_post_meta' ); ?>
     114                                                <?php
     115
     116                                                /**
     117                                                 * Fires inside the group forum post meta markup.
     118                                                 *
     119                                                 * @since BuddyPress (1.2.5)
     120                                                 */
     121                                                do_action( 'bp_group_forum_post_meta' ); ?>
    94122
    95123                                                <a href="#post-<?php bp_the_topic_post_id(); ?>" title="<?php esc_attr_e( 'Permanent link to this post', 'buddypress' ); ?>">#</a>
     
    100128                </ul><!-- #topic-post-list -->
    101129
    102                 <?php do_action( 'bp_after_group_forum_topic_posts' ); ?>
     130                <?php
     131
     132                /**
     133                 * Fires before the listing of the group forum topic posts.
     134                 *
     135                 * @since BuddyPress (1.2.4)
     136                 */
     137                do_action( 'bp_after_group_forum_topic_posts' ); ?>
    103138
    104139                <div class="pagination no-ajax">
     
    115150
    116151        <?php else: ?>
    117        
     152
    118153                <div id="message" class="info">
    119154                        <p><?php _e( 'There are no posts for this topic.', 'buddypress' ); ?></p>
    120155                </div>
    121        
     156
    122157        <?php endif;?>
    123158
     
    135170                                        <?php endif; ?>
    136171
    137                                         <?php do_action( 'groups_forum_new_reply_before' ); ?>
     172                                        <?php
     173
     174                                        /**
     175                                         * Fires before the display of the group forum new reply section.
     176                                         *
     177                                         * @since BuddyPress (1.0.0)
     178                                         */
     179                                        do_action( 'groups_forum_new_reply_before' ); ?>
    138180
    139181                                        <h4><?php _e( 'Add a reply:', 'buddypress' ); ?></h4>
     
    145187                                        </div>
    146188
    147                                         <?php do_action( 'groups_forum_new_reply_after' ); ?>
     189                                        <?php
     190
     191                                        /**
     192                                         * Fires after the display of the group forum new reply section.
     193                                         *
     194                                         * @since BuddyPress (1.0.0)
     195                                         */
     196                                        do_action( 'groups_forum_new_reply_after' ); ?>
    148197
    149198                                        <?php wp_nonce_field( 'bp_forums_new_reply' ); ?>
     
    164213</form><!-- #forum-topic-form -->
    165214
    166 <?php do_action( 'bp_after_group_forum_topic' ); ?>
     215<?php
     216
     217/**
     218 * Fires at the end of the group forum topic template.
     219 *
     220 * @since BuddyPress (1.2.4)
     221 */
     222do_action( 'bp_after_group_forum_topic' ); ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

    r9604 r9786  
    11<?php
    22
     3/**
     4 * Fires before the display of a group's header.
     5 *
     6 * @since BuddyPress (1.2.0)
     7 */
    38do_action( 'bp_before_group_header' );
    49
     
    1318                <?php bp_group_list_admins();
    1419
     20                /**
     21                 * Fires after the display of the group's administrators.
     22                 *
     23                 * @since BuddyPress (1.1.0)
     24                 */
    1525                do_action( 'bp_after_group_menu_admins' );
    1626
    1727                if ( bp_group_has_moderators() ) :
     28
     29                        /**
     30                         * Fires before the display of the group's moderators, if there are any.
     31                         *
     32                         * @since BuddyPress (1.1.0)
     33                         */
    1834                        do_action( 'bp_before_group_menu_mods' ); ?>
    1935
     
    2238                        <?php bp_group_list_mods();
    2339
     40                        /**
     41                         * Fires after the display of the group's moderators, if there are any.
     42                         *
     43                         * @since BuddyPress (1.1.0)
     44                         */
    2445                        do_action( 'bp_after_group_menu_mods' );
    2546
     
    4263        <span class="activity"><?php printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() ); ?></span>
    4364
    44         <?php do_action( 'bp_before_group_header_meta' ); ?>
     65        <?php
     66
     67        /**
     68         * Fires before the display of the group's header meta.
     69         *
     70         * @since BuddyPress (1.2.0)
     71         */
     72        do_action( 'bp_before_group_header_meta' ); ?>
    4573
    4674        <div id="item-meta">
     
    5078                <div id="item-buttons">
    5179
    52                         <?php do_action( 'bp_group_header_actions' ); ?>
     80                        <?php
     81
     82                        /**
     83                         * Fires in the group header actions section.
     84                         *
     85                         * @since BuddyPress (1.2.6)
     86                         */
     87                        do_action( 'bp_group_header_actions' ); ?>
    5388
    5489                </div><!-- #item-buttons -->
    5590
    56                 <?php do_action( 'bp_group_header_meta' ); ?>
     91                <?php
     92
     93                /**
     94                 * Fires after the group header actions section.
     95                 *
     96                 * @since BuddyPress (1.2.0)
     97                 */
     98                do_action( 'bp_group_header_meta' ); ?>
    5799
    58100        </div>
     
    60102
    61103<?php
     104
     105/**
     106 * Fires after the display of a group's header.
     107 *
     108 * @since BuddyPress (1.2.0)
     109 */
    62110do_action( 'bp_after_group_header' );
    63111do_action( 'template_notices' );
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/home.php

    r9604 r9786  
    33        <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>
    44
    5         <?php do_action( 'bp_before_group_home_content' ); ?>
     5        <?php
     6
     7        /**
     8         * Fires before the display of the group home content.
     9         *
     10         * @since BuddyPress (1.2.0)
     11         */
     12        do_action( 'bp_before_group_home_content' ); ?>
    613
    714        <div id="item-header" role="complementary">
     
    1724                                <?php bp_get_options_nav(); ?>
    1825
    19                                 <?php do_action( 'bp_group_options_nav' ); ?>
     26                                <?php
     27
     28                                /**
     29                                 * Fires after the display of group options navigation.
     30                                 *
     31                                 * @since BuddyPress (1.2.0)
     32                                 */
     33                                do_action( 'bp_group_options_nav' ); ?>
    2034
    2135                        </ul>
     
    2539        <div id="item-body">
    2640
    27                 <?php do_action( 'bp_before_group_body' );
     41                <?php
     42
     43                /**
     44                 * Fires before the display of the group home body.
     45                 *
     46                 * @since BuddyPress (1.2.0)
     47                 */
     48                do_action( 'bp_before_group_body' );
    2849
    2950                /**
     
    5374                                } else {
    5475
     76                                        /**
     77                                         * Fires before the display of the group status message.
     78                                         *
     79                                         * @since BuddyPress (1.1.0)
     80                                         */
    5581                                        do_action( 'bp_before_group_status_message' ); ?>
    5682
     
    5985                                        </div>
    6086
    61                                         <?php do_action( 'bp_after_group_status_message' );
     87                                        <?php
     88
     89                                        /**
     90                                         * Fires after the display of the group status message.
     91                                         *
     92                                         * @since BuddyPress (1.1.0)
     93                                         */
     94                                        do_action( 'bp_after_group_status_message' );
    6295
    6396                                }
     
    91124                        endif;
    92125
     126                /**
     127                 * Fires after the display of the group home body.
     128                 *
     129                 * @since BuddyPress (1.2.0)
     130                 */
    93131                do_action( 'bp_after_group_body' ); ?>
    94132
    95133        </div><!-- #item-body -->
    96134
    97         <?php do_action( 'bp_after_group_home_content' ); ?>
     135        <?php
     136
     137        /**
     138         * Fires after the display of the group home content.
     139         *
     140         * @since BuddyPress (1.2.0)
     141         */
     142        do_action( 'bp_after_group_home_content' ); ?>
    98143
    99144        <?php endwhile; endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/members.php

    r9604 r9786  
    11<?php if ( bp_group_has_members( bp_ajax_querystring( 'group_members' ) ) ) : ?>
    22
    3         <?php do_action( 'bp_before_group_members_content' ); ?>
     3        <?php
     4
     5        /**
     6         * Fires before the display of the group members content.
     7         *
     8         * @since BuddyPress (1.1.0)
     9         */
     10        do_action( 'bp_before_group_members_content' ); ?>
    411
    512        <div id="pag-top" class="pagination">
     
    1926        </div>
    2027
    21         <?php do_action( 'bp_before_group_members_list' ); ?>
     28        <?php
     29
     30        /**
     31         * Fires before the display of the group members list.
     32         *
     33         * @since BuddyPress (1.1.0)
     34         */
     35        do_action( 'bp_before_group_members_list' ); ?>
    2236
    2337        <ul id="member-list" class="item-list" role="main">
     
    3549                                <span class="activity"><?php bp_group_member_joined_since(); ?></span>
    3650
    37                                 <?php do_action( 'bp_group_members_list_item' ); ?>
     51                                <?php
     52
     53                                /**
     54                                 * Fires inside the listing of an individual group member listing item.
     55                                 *
     56                                 * @since BuddyPress (1.1.0)
     57                                 */
     58                                do_action( 'bp_group_members_list_item' ); ?>
    3859
    3960                                <?php if ( bp_is_active( 'friends' ) ) : ?>
     
    4364                                                <?php bp_add_friend_button( bp_get_group_member_id(), bp_get_group_member_is_friend() ); ?>
    4465
    45                                                 <?php do_action( 'bp_group_members_list_item_action' ); ?>
     66                                                <?php
     67
     68                                                /**
     69                                                 * Fires inside the action section of an individual group member listing item.
     70                                                 *
     71                                                 * @since BuddyPress (1.1.0)
     72                                                 */
     73                                                do_action( 'bp_group_members_list_item_action' ); ?>
    4674
    4775                                        </div>
     
    5482        </ul>
    5583
    56         <?php do_action( 'bp_after_group_members_list' ); ?>
     84        <?php
     85
     86        /**
     87         * Fires after the display of the group members list.
     88         *
     89         * @since BuddyPress (1.1.0)
     90         */
     91        do_action( 'bp_after_group_members_list' ); ?>
    5792
    5893        <div id="pag-bottom" class="pagination">
     
    72107        </div>
    73108
    74         <?php do_action( 'bp_after_group_members_content' ); ?>
     109        <?php
     110
     111        /**
     112         * Fires after the display of the group members content.
     113         *
     114         * @since BuddyPress (1.1.0)
     115         */
     116        do_action( 'bp_after_group_members_content' ); ?>
    75117
    76118<?php else: ?>
Note: See TracChangeset for help on using the changeset viewer.