Changeset 2069 for trunk/bp-themes/bp-sn-parent/groups/single/admin.php
- Timestamp:
- 11/01/2009 09:35:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-sn-parent/groups/single/admin.php
r1905 r2069 9 9 </div> 10 10 11 <div id="content"> 11 <div id="content"> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> … … 40 40 <input type="radio" name="group-notify-members" value="0" checked="checked" /> <?php _e( 'No', 'buddypress' ); ?> 41 41 </p> 42 42 43 43 <?php do_action( 'bp_after_group_details_admin' ); ?> 44 44 … … 56 56 57 57 <?php if ( function_exists('bp_wire_install') ) : ?> 58 58 59 59 <div class="checkbox"> 60 60 <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php bp_group_show_wire_setting() ?>/> <?php _e( 'Enable comment wire', 'buddypress' ) ?></label> 61 61 </div> 62 62 63 63 <?php endif; ?> 64 64 65 65 <?php if ( function_exists('bp_forums_setup') ) : ?> 66 66 67 67 <?php if ( bp_forums_is_installed_correctly() ) : ?> 68 68 69 69 <div class="checkbox"> 70 70 <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> 71 71 </div> 72 72 73 73 <?php endif; ?> 74 75 <?php endif; ?> 76 74 75 <?php endif; ?> 76 77 77 <h3><?php _e( 'Privacy Options', 'buddypress' ); ?></h3> 78 78 79 79 <div class="radio"> 80 80 <label> 81 <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> /> 81 <input type="radio" name="group-status" value="public"<?php bp_group_show_status_setting('public') ?> /> 82 82 <strong><?php _e( 'This is a public group', 'buddypress' ) ?></strong> 83 83 <ul> … … 87 87 </ul> 88 88 </label> 89 89 90 90 <label> 91 91 <input type="radio" name="group-status" value="private"<?php bp_group_show_status_setting('private') ?> /> … … 97 97 </ul> 98 98 </label> 99 99 100 100 <label> 101 101 <input type="radio" name="group-status" value="hidden"<?php bp_group_show_status_setting('hidden') ?> /> … … 108 108 </label> 109 109 </div> 110 110 111 111 <?php do_action( 'bp_after_group_settings_admin' ); ?> 112 112 113 113 <p><input type="submit" value="<?php _e( 'Save Changes', 'buddypress' ) ?> »" id="save" name="save" /></p> 114 114 <?php wp_nonce_field( 'groups_edit_group_settings' ) ?> 115 115 116 116 <?php endif; ?> 117 117 118 118 <?php /* Group Avatar Settings */ ?> 119 119 <?php if ( bp_is_group_admin_screen( 'group-avatar' ) ) : ?> … … 121 121 <h2><?php _e( 'Group Avatar', 'buddypress' ); ?></h2> 122 122 123 <div class="left-menu">124 <?php bp_group_avatar( 'type=full' ) ?>125 126 <?php if ( bp_get_group_has_avatar() ) : ?>127 <div class="generic-button" id="delete-group-avatar-button">128 <a class="edit" href="<?php bp_group_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a>129 </div>130 <?php endif; ?>131 </div>132 133 <div class="main-column">134 135 123 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 136 137 <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> 138 139 <p> 140 <input type="file" name="file" id="file" /> 141 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 142 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 143 </p> 144 145 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 146 147 <?php endif; ?> 148 124 125 <div class="left-menu"> 126 <?php bp_group_avatar( 'type=full' ) ?> 127 128 <?php if ( bp_get_group_has_avatar() ) : ?> 129 <div class="generic-button" id="delete-group-avatar-button"> 130 <a class="edit" href="<?php bp_group_avatar_delete_link() ?>" title="<?php _e( 'Delete Avatar', 'buddypress' ) ?>"><?php _e( 'Delete Avatar', 'buddypress' ) ?></a> 131 </div> 132 <?php endif; ?> 133 </div> 134 135 <div class="main-column"> 136 137 <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> 138 139 <p> 140 <input type="file" name="file" id="file" /> 141 <input type="submit" name="upload" id="upload" value="<?php _e( 'Upload Image', 'buddypress' ) ?>" /> 142 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 143 </p> 144 145 <?php wp_nonce_field( 'bp_avatar_upload' ) ?> 146 147 </div> 148 <?php endif; ?> 149 149 150 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 150 151 151 152 <h3><?php _e( 'Crop Avatar', 'buddypress' ) ?></h3> 152 153 153 154 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-to-crop" class="avatar" alt="<?php _e( 'Avatar to crop', 'buddypress' ) ?>" /> 154 155 155 156 <div id="avatar-crop-pane"> 156 157 <img src="<?php bp_avatar_to_crop() ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ) ?>" /> … … 158 159 159 160 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php _e( 'Crop Image', 'buddypress' ) ?>" /> 160 161 161 162 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src() ?>" /> 162 163 <input type="hidden" id="x" name="x" /> … … 166 167 167 168 <?php wp_nonce_field( 'bp_avatar_cropstore' ) ?> 168 169 <?php endif; ?> 170 171 </div> 172 173 <?php endif; ?> 174 169 170 <?php endif; ?> 171 172 <?php endif; ?> 173 175 174 <?php /* Manage Group Members */ ?> 176 175 <?php if ( bp_is_group_admin_screen( 'manage-members' ) ) : ?> 177 176 178 177 <h2><?php _e( 'Manage Members', 'buddypress' ); ?></h2> 179 178 180 179 <?php do_action( 'bp_before_group_manage_members_admin' ); ?> 181 180 182 181 <div class="bp-widget"> 183 182 <h4><?php _e( 'Administrators', 'buddypress' ); ?></h4> 184 183 <?php bp_group_admin_memberlist( true ) ?> 185 184 </div> 186 185 187 186 <?php if ( bp_group_has_moderators() ) : ?> 188 187 … … 193 192 194 193 <?php endif; ?> 195 194 196 195 <div class="bp-widget"> 197 196 <h4><?php _e("Members", "buddypress"); ?></h4> 198 197 199 198 <?php if ( bp_group_has_members( 'per_page=15&exclude_banned=false' ) ) : ?> 200 199 201 200 <?php if ( bp_group_member_needs_pagination() ) : ?> 202 201 203 202 <div class="pagination"> 204 203 205 204 <div id="member-count" class="pag-count"> 206 205 <?php bp_group_member_pagination_count() ?> … … 210 209 <?php bp_group_member_admin_pagination() ?> 211 210 </div> 212 211 213 212 </div> 214 213 215 214 <?php endif; ?> 216 215 217 216 <ul id="members-list" class="item-list single-line"> 218 217 <?php while ( bp_group_members() ) : bp_group_the_member(); ?> 219 218 220 219 <?php if ( bp_get_group_member_is_banned() ) : ?> 221 220 222 221 <li class="banned-user"> 223 222 <?php bp_group_member_avatar_mini() ?> 224 223 225 224 <h5><?php bp_group_member_link() ?> <?php _e( '(banned)', 'buddypress') ?> <span class="small"> — <a href="<?php bp_group_member_unban_link() ?>" class="confirm" title="<?php _e( 'Kick and ban this member', 'buddypress' ) ?>"><?php _e( 'Remove Ban', 'buddypress' ); ?></a> </h5> 226 225 227 226 <?php else : ?> 228 227 229 228 <li> 230 229 <?php bp_group_member_avatar_mini() ?> … … 232 231 233 232 <?php endif; ?> 234 233 235 234 <?php do_action( 'bp_group_manage_members_admin_item' ); ?> 236 235 </li> 237 236 238 237 <?php endwhile; ?> 239 238 </ul> 240 239 241 240 <?php else: ?> 242 241 … … 246 245 247 246 <?php endif; ?> 248 247 249 248 </div> 250 249 251 250 <?php do_action( 'bp_after_group_manage_members_admin' ); ?> 252 251 253 252 <?php endif; ?> 254 253 … … 257 256 258 257 <h2><?php _e( 'Membership Requests', 'buddypress' ); ?></h2> 259 258 260 259 <?php do_action( 'bp_before_group_membership_requests_admin' ); ?> 261 260 262 261 <?php if ( bp_group_has_membership_requests() ) : ?> 263 262 264 263 <ul id="request-list" class="item-list"> 265 264 <?php while ( bp_group_membership_requests() ) : bp_group_the_membership_request(); ?> 266 265 267 266 <li> 268 267 <?php bp_group_request_user_avatar_thumb() ?> 269 268 <h4><?php bp_group_request_user_link() ?> <span class="comments"><?php bp_group_request_comment() ?></span></h4> 270 269 <span class="activity"><?php bp_group_request_time_since_requested() ?></span> 271 270 272 271 <?php do_action( 'bp_group_membership_requests_admin_item' ); ?> 273 272 274 273 <div class="action"> 275 274 276 275 <div class="generic-button accept"> 277 <a href="<?php bp_group_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 276 <a href="<?php bp_group_request_accept_link() ?>"><?php _e( 'Accept', 'buddypress' ); ?></a> 278 277 </div> 279 280 278 279 281 280 282 281 <div class="generic-button reject"> 283 <a href="<?php bp_group_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 282 <a href="<?php bp_group_request_reject_link() ?>"><?php _e( 'Reject', 'buddypress' ); ?></a> 284 283 </div> 285 284 286 285 <?php do_action( 'bp_group_membership_requests_admin_item_action' ); ?> 287 286 288 287 </div> 289 288 </li> 290 289 291 290 <?php endwhile; ?> 292 291 </ul> 293 292 294 293 <?php else: ?> 295 294 … … 299 298 300 299 <?php endif; ?> 301 300 302 301 <?php do_action( 'bp_after_group_membership_requests_admin' ); ?> 303 304 <?php endif; ?> 305 302 303 <?php endif; ?> 304 306 305 <?php do_action( 'groups_custom_edit_steps' ) // Allow plugins to add custom group edit screens ?> 307 306 308 307 <?php /* Delete Group Option */ ?> 309 308 <?php if ( bp_is_group_admin_screen( 'delete-group' ) ) : ?> 310 309 311 310 <h2><?php _e( 'Delete Group', 'buddypress' ); ?></h2> 312 311 313 312 <?php do_action( 'bp_before_group_delete_admin' ); ?> 314 313 315 314 <div id="message" class="info"> 316 315 <p><?php _e( 'WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'buddypress' ); ?></p> 317 316 </div> 318 317 319 318 <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' ); ?> 320 319 321 320 <?php do_action( 'bp_after_group_delete_admin' ); ?> 322 321 323 322 <p><input type="submit" disabled="disabled" value="<?php _e( 'Delete Group', 'buddypress' ) ?> »" id="delete-group-button" name="delete-group-button" /></p> 324 323 325 324 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> 326 325 327 326 <?php wp_nonce_field( 'groups_delete_group' ) ?> 328 329 <?php endif; ?> 330 327 328 <?php endif; ?> 329 331 330 <?php /* This is important, don't forget it */ ?> 332 331 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> 333 332 334 333 </form> 335 334 336 335 <?php do_action( 'bp_after_group_admin_content' ) ?> 337 336 </div>
Note: See TracChangeset
for help on using the changeset viewer.