[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/buddypress/assets/_attachments/avatars/ -> camera.php (source)

   1  <?php
   2  /**
   3   * BuddyPress Avatars camera template.
   4   *
   5   * This template is used to create the camera Backbone views.
   6   *
   7   * @since 2.3.0
   8   * @version 3.1.0
   9   */
  10  
  11  ?>
  12  <script id="tmpl-bp-avatar-webcam" type="text/html">
  13      <# if ( ! data.user_media ) { #>
  14          <div id="bp-webcam-message">
  15              <p class="warning"><?php esc_html_e( 'Your browser does not support this feature.', 'buddypress' ); ?></p>
  16          </div>
  17      <# } else { #>
  18          <div id="avatar-to-crop"></div>
  19          <div class="avatar-crop-management">
  20              <div id="avatar-crop-pane" class="avatar" style="width:{{data.w}}px; height:{{data.h}}px"></div>
  21              <div id="avatar-crop-actions">
  22                  <button type="button" class="button avatar-webcam-capture"><?php echo esc_html_x( 'Capture', 'button', 'buddypress' ); ?></button>
  23                  <button type="button" class="button avatar-webcam-save"><?php echo esc_html_x( 'Save', 'button', 'buddypress' ); ?></button>
  24              </div>
  25          </div>
  26      <# } #>
  27  </script>


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