Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2012 08:09:34 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Add ending semicolons to bp-default where omitted. Fixes #4002.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/single/admin.php

    r5618 r5737  
    55</div><!-- .item-list-tabs -->
    66
    7 <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">
    8 
    9 <?php do_action( 'bp_before_group_admin_content' ) ?>
     7<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">
     8
     9<?php do_action( 'bp_before_group_admin_content' ); ?>
    1010
    1111<?php /* Edit Group Details */ ?>
     
    1515
    1616    <label for="group-name"><?php _e( 'Group Name (required)', 'buddypress' ); ?></label>
    17     <input type="text" name="group-name" id="group-name" value="<?php bp_group_name() ?>" aria-required="true" />
     17    <input type="text" name="group-name" id="group-name" value="<?php bp_group_name(); ?>" aria-required="true" />
    1818
    1919    <label for="group-desc"><?php _e( 'Group Description (required)', 'buddypress' ); ?></label>
    20     <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable() ?></textarea>
    21 
    22     <?php do_action( 'groups_custom_group_fields_editable' ) ?>
     20    <textarea name="group-desc" id="group-desc" aria-required="true"><?php bp_group_description_editable(); ?></textarea>
     21
     22    <?php do_action( 'groups_custom_group_fields_editable' ); ?>
    2323
    2424    <p>
     
    3030    <?php do_action( 'bp_after_group_details_admin' ); ?>
    3131
    32     <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="save" name="save" /></p>
    33     <?php wp_nonce_field( 'groups_edit_group_details' ) ?>
     32    <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
     33    <?php wp_nonce_field( 'groups_edit_group_details' ); ?>
    3434
    3535<?php endif; ?>
     
    4545
    4646            <div class="checkbox">
    47                 <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting() ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ) ?></label>
     47                <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php bp_group_show_forum_setting(); ?> /> <?php _e( 'Enable discussion forum', 'buddypress' ); ?></label>
    4848            </div>
    4949
     
    5858    <div class="radio">
    5959        <label>
    60             <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting( 'public' ) ?> />
    61             <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong>
     60            <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting( 'public' ); ?> />
     61            <strong><?php _e( 'This is a public group', 'buddypress' ); ?></strong>
    6262            <ul>
    63                 <li><?php _e( 'Any site member can join this group.', 'buddypress' ) ?></li>
    64                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
    65                 <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ) ?></li>
     63                <li><?php _e( 'Any site member can join this group.', 'buddypress' ); ?></li>
     64                <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     65                <li><?php _e( 'Group content and activity will be visible to any site member.', 'buddypress' ); ?></li>
    6666            </ul>
    6767        </label>
    6868
    6969        <label>
    70             <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting( 'private' ) ?> />
    71             <strong><?php _e( 'This is a private group', 'buddypress' ) ?></strong>
     70            <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting( 'private' ); ?> />
     71            <strong><?php _e( 'This is a private group', 'buddypress' ); ?></strong>
    7272            <ul>
    73                 <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ) ?></li>
    74                 <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ) ?></li>
    75                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     73                <li><?php _e( 'Only users who request membership and are accepted can join the group.', 'buddypress' ); ?></li>
     74                <li><?php _e( 'This group will be listed in the groups directory and in search results.', 'buddypress' ); ?></li>
     75                <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    7676            </ul>
    7777        </label>
    7878
    7979        <label>
    80             <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting( 'hidden' ) ?> />
    81             <strong><?php _e( 'This is a hidden group', 'buddypress' ) ?></strong>
     80            <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting( 'hidden' ); ?> />
     81            <strong><?php _e( 'This is a hidden group', 'buddypress' ); ?></strong>
    8282            <ul>
    83                 <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ) ?></li>
    84                 <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ) ?></li>
    85                 <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ) ?></li>
     83                <li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
     84                <li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
     85                <li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    8686            </ul>
    8787        </label>
     
    9292    <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4>
    9393
    94     <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ) ?></p>
     94    <p><?php _e( 'Which members of this group are allowed to invite others?', 'buddypress' ); ?></p>
    9595
    9696    <div class="radio">
    9797        <label>
    98             <input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ) ?> />
    99             <strong><?php _e( 'All group members', 'buddypress' ) ?></strong>
     98            <input type="radio" name="group-invite-status" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
     99            <strong><?php _e( 'All group members', 'buddypress' ); ?></strong>
    100100        </label>
    101101
    102102        <label>
    103             <input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ) ?> />
    104             <strong><?php _e( 'Group admins and mods only', 'buddypress' ) ?></strong>
     103            <input type="radio" name="group-invite-status" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
     104            <strong><?php _e( 'Group admins and mods only', 'buddypress' ); ?></strong>
    105105        </label>
    106106       
    107107        <label>
    108             <input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ) ?> />
    109             <strong><?php _e( 'Group admins only', 'buddypress' ) ?></strong>
     108            <input type="radio" name="group-invite-status" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
     109            <strong><?php _e( 'Group admins only', 'buddypress' ); ?></strong>
    110110        </label>
    111111    </div>
     
    115115    <?php do_action( 'bp_after_group_settings_admin' ); ?>
    116116
    117     <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?>" id="save" name="save" /></p>
    118     <?php wp_nonce_field( 'groups_edit_group_settings' ) ?>
     117    <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ); ?>" id="save" name="save" /></p>
     118    <?php wp_nonce_field( 'groups_edit_group_settings' ); ?>
    119119
    120120<?php endif; ?>
     
    125125    <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?>
    126126
    127             <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
     127            <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress'); ?></p>
    128128
    129129            <p>
    130130                <input type="file" name="file" id="file" />
    131                 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" />
     131                <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ); ?>" />
    132132                <input type="hidden" name="action" id="action" value="bp_avatar_upload" />
    133133            </p>
     
    135135            <?php if ( bp_get_group_has_avatar() ) : ?>
    136136
    137                 <p><?php _e( "If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ) ?></p>
     137                <p><?php _e( "If you'd like to remove the existing avatar but not upload a new one, please use the delete avatar button.", 'buddypress' ); ?></p>
    138138
    139139                <?php bp_button( array( 'id' => 'delete_group_avatar', 'component' => 'groups', 'wrapper_id' => 'delete-group-avatar-button', 'link_class' => 'edit', 'link_href' => bp_get_group_avatar_delete_link(), 'link_title' => __( 'Delete Avatar', 'buddypress' ), 'link_text' => __( 'Delete Avatar', 'buddypress' ) ) ); ?>
     
    141141            <?php endif; ?>
    142142
    143             <?php wp_nonce_field( 'bp_avatar_upload' ) ?>
     143            <?php wp_nonce_field( 'bp_avatar_upload' ); ?>
    144144
    145145    <?php endif; ?>
     
    147147    <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?>
    148148
    149         <h3><?php _e( 'Crop Avatar', 'buddypress' ) ?></h3>
    150 
    151         <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" />
     149        <h3><?php _e( 'Crop Avatar', 'buddypress' ); ?></h3>
     150
     151        <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ); ?>" />
    152152
    153153        <div id="avatar-crop-pane">
    154             <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" />
     154            <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" />
    155155        </div>
    156156
    157         <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" />
    158 
    159         <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" />
     157        <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ); ?>" />
     158
     159        <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" />
    160160        <input type="hidden" id="x" name="x" />
    161161        <input type="hidden" id="y" name="y" />
     
    163163        <input type="hidden" id="h" name="h" />
    164164
    165         <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>
     165        <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?>
    166166
    167167    <?php endif; ?>
     
    183183            <?php while ( bp_members() ) : bp_the_member(); ?>
    184184            <li>
    185                 <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ) ?>
     185                <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    186186                <h5>
    187187                    <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    188188                    <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?>
    189189                    <span class="small">
    190                         <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ) ?>"><?php _e( 'Demote to Member', 'buddypress' ) ?></a>
     190                        <a class="button confirm admin-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    191191                    </span>         
    192192                    <?php endif; ?>
     
    203203    <?php if ( bp_group_has_moderators() ) : ?>
    204204        <div class="bp-widget">
    205             <h4><?php _e( 'Moderators', 'buddypress' ) ?></h4>     
     205            <h4><?php _e( 'Moderators', 'buddypress' ); ?></h4>     
    206206           
    207207            <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?>
     
    210210                    <?php while ( bp_members() ) : bp_the_member(); ?>                 
    211211                    <li>
    212                         <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ) ?>
     212                        <?php echo bp_core_fetch_avatar( array( 'item_id' => bp_get_member_user_id(), 'type' => 'thumb', 'width' => 30, 'height' => 30, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_member_name() ) ) ); ?>
    213213                        <h5>
    214214                            <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a>
    215215                            <span class="small">
    216                                 <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ) ?>" class="button confirm mod-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    217                                 <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ) ?>"><?php _e( 'Demote to Member', 'buddypress' ) ?></a>
     216                                <a href="<?php bp_group_member_promote_admin_link( array( 'user_id' => bp_get_member_user_id() ) ); ?>" class="button confirm mod-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
     217                                <a class="button confirm mod-demote-to-member" href="<?php bp_group_member_demote_link( bp_get_member_user_id() ); ?>"><?php _e( 'Demote to Member', 'buddypress' ); ?></a>
    218218                            </span>     
    219219                        </h5>       
     
    238238
    239239                    <div id="member-count" class="pag-count">
    240                         <?php bp_group_member_pagination_count() ?>
     240                        <?php bp_group_member_pagination_count(); ?>
    241241                    </div>
    242242
    243243                    <div id="member-admin-pagination" class="pagination-links">
    244                         <?php bp_group_member_admin_pagination() ?>
     244                        <?php bp_group_member_admin_pagination(); ?>
    245245                    </div>
    246246
     
    253253
    254254                    <li class="<?php bp_group_member_css_class(); ?>">
    255                         <?php bp_group_member_avatar_mini() ?>
     255                        <?php bp_group_member_avatar_mini(); ?>
    256256
    257257                        <h5>
    258                             <?php bp_group_member_link() ?>
     258                            <?php bp_group_member_link(); ?>
    259259
    260260                            <?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress'); ?>
     
    264264                            <?php if ( bp_get_group_member_is_banned() ) : ?>
    265265
    266                                 <a href="<?php bp_group_member_unban_link() ?>" class="button confirm member-unban" title="<?php _e( 'Unban this member', 'buddypress' ) ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>
     266                                <a href="<?php bp_group_member_unban_link(); ?>" class="button confirm member-unban" title="<?php _e( 'Unban this member', 'buddypress' ); ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a>
    267267
    268268                            <?php else : ?>
    269269
    270                                 <a href="<?php bp_group_member_ban_link() ?>" class="button confirm member-ban" title="<?php _e( 'Kick and ban this member', 'buddypress' ); ?>"><?php _e( 'Kick &amp; Ban', 'buddypress' ); ?></a>
    271                                 <a href="<?php bp_group_member_promote_mod_link() ?>" class="button confirm member-promote-to-mod" title="<?php _e( 'Promote to Mod', 'buddypress' ); ?>"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>
    272                                 <a href="<?php bp_group_member_promote_admin_link() ?>" class="button confirm member-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
     270                                <a href="<?php bp_group_member_ban_link(); ?>" class="button confirm member-ban" title="<?php _e( 'Kick and ban this member', 'buddypress' ); ?>"><?php _e( 'Kick &amp; Ban', 'buddypress' ); ?></a>
     271                                <a href="<?php bp_group_member_promote_mod_link(); ?>" class="button confirm member-promote-to-mod" title="<?php _e( 'Promote to Mod', 'buddypress' ); ?>"><?php _e( 'Promote to Mod', 'buddypress' ); ?></a>
     272                                <a href="<?php bp_group_member_promote_admin_link(); ?>" class="button confirm member-promote-to-admin" title="<?php _e( 'Promote to Admin', 'buddypress' ); ?>"><?php _e( 'Promote to Admin', 'buddypress' ); ?></a>
    273273
    274274                            <?php endif; ?>
    275275
    276                                 <a href="<?php bp_group_member_remove_link() ?>" class="button confirm" title="<?php _e( 'Remove this member', 'buddypress' ); ?>"><?php _e( 'Remove from group', 'buddypress' ); ?></a>
     276                                <a href="<?php bp_group_member_remove_link(); ?>" class="button confirm" title="<?php _e( 'Remove this member', 'buddypress' ); ?>"><?php _e( 'Remove from group', 'buddypress' ); ?></a>
    277277
    278278                                <?php do_action( 'bp_group_manage_members_admin_item' ); ?>
     
    310310
    311311                <li>
    312                     <?php bp_group_request_user_avatar_thumb() ?>
    313                     <h4><?php bp_group_request_user_link() ?> <span class="comments"><?php bp_group_request_comment() ?></span></h4>
    314                     <span class="activity"><?php bp_group_request_time_since_requested() ?></span>
     312                    <?php bp_group_request_user_avatar_thumb(); ?>
     313                    <h4><?php bp_group_request_user_link(); ?> <span class="comments"><?php bp_group_request_comment(); ?></span></h4>
     314                    <span class="activity"><?php bp_group_request_time_since_requested(); ?></span>
    315315
    316316                    <?php do_action( 'bp_group_membership_requests_admin_item' ); ?>
     
    358358
    359359    <div class="submit">
    360         <input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ) ?>" id="delete-group-button" name="delete-group-button" />
    361     </div>
    362 
    363     <?php wp_nonce_field( 'groups_delete_group' ) ?>
     360        <input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ); ?>" id="delete-group-button" name="delete-group-button" />
     361    </div>
     362
     363    <?php wp_nonce_field( 'groups_delete_group' ); ?>
    364364
    365365<?php endif; ?>
    366366
    367367<?php /* This is important, don't forget it */ ?>
    368     <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" />
    369 
    370 <?php do_action( 'bp_after_group_admin_content' ) ?>
     368    <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id(); ?>" />
     369
     370<?php do_action( 'bp_after_group_admin_content' ); ?>
    371371
    372372</form><!-- #group-settings-form -->
Note: See TracChangeset for help on using the changeset viewer.