[ 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 <?php bp_attachments_get_template_part( 'avatars/recycle' ); ?> 34 35 <script id="tmpl-bp-avatar-delete" type="text/html"> 36 <# if ( 'user' === data.object ) { #> 37 <p><?php esc_html_e( "If you'd like to delete your current profile photo, use the delete profile photo button.", 'buddypress' ); ?></p> 38 <button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></button> 39 <# } else if ( 'group' === data.object ) { #> 40 <?php bp_nouveau_user_feedback( 'group-avatar-delete-info' ); ?> 41 <button type="button" class="button edit" id="bp-delete-avatar"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></button> 42 <# } else { #> 43 <?php 44 /** 45 * Fires inside the avatar delete frontend template markup if no other data.object condition is met. 46 * 47 * @since 3.0.0 48 */ 49 do_action( 'bp_attachments_avatar_delete_template' ); ?> 50 <# } #> 51 </script> 52 53 <?php 54 /** 55 * Fires after the avatar main frontend template markup. 56 * 57 * @since 3.0.0 58 */ 59 do_action( 'bp_attachments_avatar_main_template' ); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Jan 15 01:00:56 2025 | Cross-referenced by PHPXref 0.7.1 |