[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress - Groups Admin - Group Avatar 4 * 5 * @package BuddyPress 6 * @subpackage bp-legacy 7 * @version 3.0.0 8 */ 9 10 ?> 11 12 <h2 class="bp-screen-reader-text"><?php _e( 'Group Avatar', 'buddypress' ); ?></h2> 13 14 <?php if ( 'upload-image' == bp_get_avatar_admin_step() ) : ?> 15 16 <p><?php _e("Upload an image to use as a profile photo for this group. The image will be shown on the main group page, and in search results.", 'buddypress' ); ?></p> 17 18 <p> 19 <label for="file" class="bp-screen-reader-text"><?php 20 /* translators: accessibility text */ 21 _e( 'Select an image', 'buddypress' ); 22 ?></label> 23 <input type="file" name="file" id="file" /> 24 <input type="submit" name="upload" id="upload" value="<?php esc_attr_e( 'Upload Image', 'buddypress' ); ?>" /> 25 <input type="hidden" name="action" id="action" value="bp_avatar_upload" /> 26 </p> 27 28 <?php if ( bp_get_group_has_avatar() ) : ?> 29 30 <p><?php _e( "If you'd like to remove the existing group profile photo but not upload a new one, please use the delete group profile photo button.", 'buddypress' ); ?></p> 31 32 <?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_text' => __( 'Delete Group Profile Photo', 'buddypress' ) ) ); ?> 33 34 <?php endif; ?> 35 36 <?php 37 /** 38 * Load the Avatar UI templates 39 * 40 * @since 2.3.0 41 */ 42 bp_avatar_get_templates(); ?> 43 44 <?php wp_nonce_field( 'bp_avatar_upload' ); ?> 45 46 <?php endif; ?> 47 48 <?php if ( 'crop-image' == bp_get_avatar_admin_step() ) : ?> 49 50 <h4><?php _e( 'Crop Profile Photo', 'buddypress' ); ?></h4> 51 52 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-to-crop" class="avatar" alt="<?php esc_attr_e( 'Profile photo to crop', 'buddypress' ); ?>" /> 53 54 <div id="avatar-crop-pane"> 55 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php esc_attr_e( 'Profile photo preview', 'buddypress' ); ?>" /> 56 </div> 57 58 <input type="submit" name="avatar-crop-submit" id="avatar-crop-submit" value="<?php esc_attr_e( 'Crop Image', 'buddypress' ); ?>" /> 59 60 <input type="hidden" name="image_src" id="image_src" value="<?php bp_avatar_to_crop_src(); ?>" /> 61 <input type="hidden" id="x" name="x" /> 62 <input type="hidden" id="y" name="y" /> 63 <input type="hidden" id="w" name="w" /> 64 <input type="hidden" id="h" name="h" /> 65 66 <?php wp_nonce_field( 'bp_avatar_cropstore' ); ?> 67 68 <?php endif;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Apr 19 01:01:08 2024 | Cross-referenced by PHPXref 0.7.1 |