Changeset 5737 for trunk/bp-themes/bp-default/groups/single/admin.php
- Timestamp:
- 02/12/2012 08:09:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/groups/single/admin.php
r5618 r5737 5 5 </div><!-- .item-list-tabs --> 6 6 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' ); ?> 10 10 11 11 <?php /* Edit Group Details */ ?> … … 15 15 16 16 <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" /> 18 18 19 19 <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' ); ?> 23 23 24 24 <p> … … 30 30 <?php do_action( 'bp_after_group_details_admin' ); ?> 31 31 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' ); ?> 34 34 35 35 <?php endif; ?> … … 45 45 46 46 <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> 48 48 </div> 49 49 … … 58 58 <div class="radio"> 59 59 <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> 62 62 <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> 66 66 </ul> 67 67 </label> 68 68 69 69 <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> 72 72 <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> 76 76 </ul> 77 77 </label> 78 78 79 79 <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> 82 82 <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> 86 86 </ul> 87 87 </label> … … 92 92 <h4><?php _e( 'Group Invitations', 'buddypress' ); ?></h4> 93 93 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> 95 95 96 96 <div class="radio"> 97 97 <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> 100 100 </label> 101 101 102 102 <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> 105 105 </label> 106 106 107 107 <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> 110 110 </label> 111 111 </div> … … 115 115 <?php do_action( 'bp_after_group_settings_admin' ); ?> 116 116 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' ); ?> 119 119 120 120 <?php endif; ?> … … 125 125 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 126 126 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> 128 128 129 129 <p> 130 130 <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' ); ?>" /> 132 132 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 133 133 </p> … … 135 135 <?php if ( bp_get_group_has_avatar() ) : ?> 136 136 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> 138 138 139 139 <?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' ) ) ); ?> … … 141 141 <?php endif; ?> 142 142 143 <?php wp_nonce_field( 'bp_avatar_upload' ) ?>143 <?php wp_nonce_field( 'bp_avatar_upload' ); ?> 144 144 145 145 <?php endif; ?> … … 147 147 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 148 148 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' ); ?>" /> 152 152 153 153 <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' ); ?>" /> 155 155 </div> 156 156 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(); ?>" /> 160 160 <input type="hidden" id="x" name="x" /> 161 161 <input type="hidden" id="y" name="y" /> … … 163 163 <input type="hidden" id="h" name="h" /> 164 164 165 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?>165 <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?> 166 166 167 167 <?php endif; ?> … … 183 183 <?php while ( bp_members() ) : bp_the_member(); ?> 184 184 <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() ) ) ); ?> 186 186 <h5> 187 187 <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> 188 188 <?php if ( count( bp_group_admin_ids( false, 'array' ) ) > 1 ) : ?> 189 189 <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> 191 191 </span> 192 192 <?php endif; ?> … … 203 203 <?php if ( bp_group_has_moderators() ) : ?> 204 204 <div class="bp-widget"> 205 <h4><?php _e( 'Moderators', 'buddypress' ) ?></h4>205 <h4><?php _e( 'Moderators', 'buddypress' ); ?></h4> 206 206 207 207 <?php if ( bp_has_members( '&include=' . bp_group_mod_ids() ) ) : ?> … … 210 210 <?php while ( bp_members() ) : bp_the_member(); ?> 211 211 <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() ) ) ); ?> 213 213 <h5> 214 214 <a href="<?php bp_member_permalink(); ?>"> <?php bp_member_name(); ?></a> 215 215 <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> 218 218 </span> 219 219 </h5> … … 238 238 239 239 <div id="member-count" class="pag-count"> 240 <?php bp_group_member_pagination_count() ?>240 <?php bp_group_member_pagination_count(); ?> 241 241 </div> 242 242 243 243 <div id="member-admin-pagination" class="pagination-links"> 244 <?php bp_group_member_admin_pagination() ?>244 <?php bp_group_member_admin_pagination(); ?> 245 245 </div> 246 246 … … 253 253 254 254 <li class="<?php bp_group_member_css_class(); ?>"> 255 <?php bp_group_member_avatar_mini() ?>255 <?php bp_group_member_avatar_mini(); ?> 256 256 257 257 <h5> 258 <?php bp_group_member_link() ?>258 <?php bp_group_member_link(); ?> 259 259 260 260 <?php if ( bp_get_group_member_is_banned() ) _e( '(banned)', 'buddypress'); ?> … … 264 264 <?php if ( bp_get_group_member_is_banned() ) : ?> 265 265 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> 267 267 268 268 <?php else : ?> 269 269 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 & 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 & 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> 273 273 274 274 <?php endif; ?> 275 275 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> 277 277 278 278 <?php do_action( 'bp_group_manage_members_admin_item' ); ?> … … 310 310 311 311 <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> 315 315 316 316 <?php do_action( 'bp_group_membership_requests_admin_item' ); ?> … … 358 358 359 359 <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' ); ?> 364 364 365 365 <?php endif; ?> 366 366 367 367 <?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' ); ?> 371 371 372 372 </form><!-- #group-settings-form -->
Note: See TracChangeset
for help on using the changeset viewer.