[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * BuddyPress Uploader templates.
   4   *
   5   * This template is used to create the BuddyPress Uploader Backbone views.
   6   *
   7   * @since 2.3.0
   8   * @version 3.1.0
   9   */
  10  
  11  ?>
  12  <script type="text/html" id="tmpl-upload-window">
  13      <?php if ( ! _device_can_upload() ) : ?>
  14          <h3 class="upload-instructions"><?php esc_html_e( 'The web browser on your device cannot be used to upload files.', 'buddypress' ); ?></h3>
  15      <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
  16          <h3 class="upload-instructions"><?php esc_html_e( 'Upload Limit Exceeded', 'buddypress' ); ?></h3>
  17      <?php else : ?>
  18          <div id="{{data.container}}">
  19              <div id="{{data.drop_element}}">
  20                  <div class="drag-drop-inside">
  21                      <p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
  22  
  23                      <p class="drag-drop-buttons">
  24                          <label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text'; ?>">
  25                              <?php esc_html_e( 'Select your file', 'buddypress' ); ?>
  26                          </label>
  27                          <input id="{{data.browse_button}}" type="button" value="<?php echo esc_attr_x( 'Select your file', 'button', 'buddypress' ); ?>" class="button" />
  28                      </p>
  29                  </div>
  30              </div>
  31          </div>
  32      <?php endif; ?>
  33  </script>
  34  
  35  <script type="text/html" id="tmpl-progress-window">
  36      <div id="{{data.id}}">
  37          <div class="bp-progress">
  38              <div class="bp-bar"></div>
  39          </div>
  40          <div class="filename">{{data.filename}}</div>
  41      </div>
  42  </script>


Generated: Sun Apr 14 01:01:05 2024 Cross-referenced by PHPXref 0.7.1