/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/index.php

  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. */ 
  15.  
  16. /** 
  17. * This action is for internal use, please do not use it 
  18. */ 
  19. do_action( 'bp_attachments_avatar_check_template' ); 
  20. ?> 
  21. <div class="bp-avatar-nav"></div> 
  22. <div class="bp-avatar"></div> 
  23. <div class="bp-avatar-status"></div> 
  24.  
  25. <script type="text/html" id="tmpl-bp-avatar-nav"> 
  26. <a href="{{data.href}}" class="bp-avatar-nav-item" data-nav="{{data.id}}">{{data.name}}</a> 
  27. </script> 
  28.  
  29. <?php bp_attachments_get_template_part( 'uploader' ); ?> 
  30.  
  31. <?php bp_attachments_get_template_part( 'avatars/crop' ); ?> 
  32.  
  33. <?php bp_attachments_get_template_part( 'avatars/camera' ); ?> 
  34.  
  35. <script id="tmpl-bp-avatar-delete" type="text/html"> 
  36. <# if ( 'user' === data.object ) { #> 
  37. <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> 
  38. <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p> 
  39. <# } else if ( 'group' === data.object ) { #> 
  40. <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> 
  41. <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p> 
  42. <# } else { #> 
  43. <?php do_action( 'bp_attachments_avatar_delete_template' ); ?> 
  44. <# } #> 
  45. </script> 
  46.  
  47. <?php do_action( 'bp_attachments_avatar_main_template' ); ?> 
.