[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-legacy/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   *
   9   * @package BuddyPress
  10   * @subpackage bp-attachments
  11   * @version 3.0.0
  12   */
  13  
  14  ?>
  15  <script id="tmpl-bp-avatar-webcam" type="text/html">
  16      <# if ( ! data.user_media ) { #>
  17          <div id="bp-webcam-message">
  18              <p class="warning"><?php esc_html_e( 'Your browser does not support this feature.', 'buddypress' );?></p>
  19          </div>
  20      <# } else { #>
  21          <div id="avatar-to-crop"></div>
  22          <div class="avatar-crop-management">
  23              <div id="avatar-crop-pane" class="avatar" style="width:{{data.w}}px; height:{{data.h}}px"></div>
  24              <div id="avatar-crop-actions">
  25                  <a class="button avatar-webcam-capture" href="#"><?php esc_html_e( 'Capture', 'buddypress' );?></a>
  26                  <a class="button avatar-webcam-save" href="#"><?php esc_html_e( 'Save', 'buddypress' );?></a>
  27              </div>
  28          </div>
  29      <# } #>
  30  </script>


Generated: Sat Dec 14 01:00:55 2024 Cross-referenced by PHPXref 0.7.1