[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/buddypress/assets/_attachments/avatars/ -> index.php (source)

   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  <script id="tmpl-bp-avatar-delete" type="text/html">
  37      <# if ( 'user' === data.object ) { #>
  38          <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>
  39          <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete My Profile Photo', 'buddypress' ); ?></a></p>
  40      <# } else if ( 'group' === data.object ) { #>
  41          <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>
  42          <p><a class="button edit" id="bp-delete-avatar" href="#"><?php esc_html_e( 'Delete Group Profile Photo', 'buddypress' ); ?></a></p>
  43      <# } else { #>
  44          <?php do_action( 'bp_attachments_avatar_delete_template' ); ?>
  45      <# } #>
  46  </script>
  47  
  48  <?php do_action( 'bp_attachments_avatar_main_template' );


Generated: Wed Dec 11 01:01:37 2019 Cross-referenced by PHPXref 0.7.1