[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/assets/_attachments/cover-images/ -> index.php (source)

   1  <?php
   2  /**
   3   * BuddyPress Cover Images main template.
   4   *
   5   * This template is used to inject the BuddyPress Backbone views
   6   * dealing with cover images.
   7   *
   8   * It's also used to create the common Backbone views.
   9   *
  10   * @since 2.4.0
  11   * @version 3.1.0
  12   */
  13  
  14  ?>
  15  
  16  <div class="bp-cover-image"></div>
  17  <div class="bp-cover-image-status"></div>
  18  <div class="bp-cover-image-manage"></div>
  19  
  20  <?php bp_attachments_get_template_part( 'uploader' ); ?>
  21  
  22  <script id="tmpl-bp-cover-image-delete" type="text/html">
  23      <# if ( 'user' === data.object ) { #>
  24          <p><?php esc_html_e( "If you'd like to delete your current cover image, use the delete Cover Image button.", 'buddypress' ); ?></p>
  25          <button type="button" class="button edit" id="bp-delete-cover-image">
  26              <?php
  27              echo esc_html_x( 'Delete My Cover Image', 'button', 'buddypress' );
  28              ?>
  29          </button>
  30      <# } else if ( 'group' === data.object ) { #>
  31          <p><?php esc_html_e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p>
  32          <button type="button" class="button edit" id="bp-delete-cover-image">
  33              <?php
  34              echo esc_html_x( 'Delete Group Cover Image', 'button', 'buddypress' );
  35              ?>
  36          </button>
  37      <# } else { #>
  38          <?php
  39              /**
  40               * Fires inside the cover image delete frontend template markup if no other data.object condition is met.
  41               *
  42               * @since 3.0.0
  43               */
  44              do_action( 'bp_attachments_cover_image_delete_template' ); ?>
  45      <# } #>
  46  </script>
  47  
  48  <?php
  49      /**
  50       * Fires after the cover image main frontend template markup.
  51       *
  52       * @since 3.0.0
  53       */
  54      do_action( 'bp_attachments_cover_image_main_template' ); ?>


Generated: Tue Apr 16 01:01:07 2024 Cross-referenced by PHPXref 0.7.1