[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * BuddyPress Avatars main template. 4 * 5 * This template is used to inject the BuddyPress Backbone views 6 * dealing with avatars. 7 * 8 * It's also used to create the common Backbone views. 9 * 10 * @since 2.3.0 11 * @version 3.1.0 12 */ 13 14 /** 15 * This action is for internal use, please do not use it 16 */ 17 do_action( 'bp_attachments_avatar_check_template' ); 18 ?> 19 <div class="bp-avatar-nav"></div> 20 <div class="bp-avatar"></div> 21 <div class="bp-avatar-status"></div> 22 23 <script type="text/html" id="tmpl-bp-avatar-nav"> 24 <a href="{{data.href}}" class="bp-avatar-nav-item" data-nav="{{data.id}}">{{data.name}}</a> 25 </script> 26 27 <?php bp_attachments_get_template_part( 'uploader' ); ?> 28 29 <?php bp_attachments_get_template_part( 'avatars/crop' ); ?> 30 31 <?php bp_attachments_get_template_part( 'avatars/camera' ); ?> 32 33 <script id="tmpl-bp-avatar-delete" type="text/html"> 34 <# if ( 'user' === data.object ) { #> 35 <p><?php esc_html_e( "If you'd like to delete your current profile photo, use the delete profile photo button.", 'buddypress' ); ?></p> 36 <button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></button> 37 <# } else if ( 'group' === data.object ) { #> 38 <?php bp_nouveau_user_feedback( 'group-avatar-delete-info' ); ?> 39 <button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></button> 40 <# } else { #> 41 <?php 42 /** 43 * Fires inside the avatar delete frontend template markup if no other data.object condition is met. 44 * 45 * @since 3.0.0 46 */ 47 do_action( 'bp_attachments_avatar_delete_template' ); ?> 48 <# } #> 49 </script> 50 51 <?php 52 /** 53 * Fires after the avatar main frontend template markup. 54 * 55 * @since 3.0.0 56 */ 57 do_action( 'bp_attachments_avatar_main_template' ); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Feb 26 01:01:36 2021 | Cross-referenced by PHPXref 0.7.1 |