[ 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 * 12 * @package BuddyPress 13 * @subpackage bp-attachments 14 * @version 3.0.0 15 */ 16 17 /** 18 * This action is for internal use, please do not use it 19 */ 20 do_action( 'bp_attachments_avatar_check_template' ); 21 ?> 22 <div class="bp-avatar-nav"></div> 23 <div class="bp-avatar"></div> 24 <div class="bp-avatar-status"></div> 25 26 <script type="text/html" id="tmpl-bp-avatar-nav"> 27 <a href="{{data.href}}" class="bp-avatar-nav-item" data-nav="{{data.id}}">{{data.name}}</a> 28 </script> 29 30 <?php bp_attachments_get_template_part( 'uploader' ); ?> 31 32 <?php bp_attachments_get_template_part( 'avatars/crop' ); ?> 33 34 <?php bp_attachments_get_template_part( 'avatars/camera' ); ?> 35 36 <?php bp_attachments_get_template_part( 'avatars/recycle' ); ?> 37 38 <script id="tmpl-bp-avatar-delete" type="text/html"> 39 <# if ( 'user' === data.object ) { #> 40 <p><?php _e( "If you'd like to delete your current profile photo but not upload a new one, please use the delete profile photo button.", 'buddypress' ); ?></p> 41 <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p> 42 <# } else if ( 'group' === data.object ) { #> 43 <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> 44 <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p> 45 <# } else { #> 46 <?php do_action( 'bp_attachments_avatar_delete_template' ); ?> 47 <# } #> 48 </script> 49 50 <?php do_action( 'bp_attachments_avatar_main_template' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Dec 5 01:00:58 2024 | Cross-referenced by PHPXref 0.7.1 |