Guest User

Untitled

a guest
Jul 7th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  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. *
  9. * @package BuddyPress
  10. * @subpackage bp-attachments
  11. * @version 3.0.0
  12. */
  13.  
  14. ?>
  15. <script type="text/html" id="tmpl-upload-window">
  16. <?php if ( ! _device_can_upload() ) : ?>
  17. <h3 class="upload-instructions"><?php esc_html_e( 'The web browser on your device cannot be used to upload files.', 'buddypress' ); ?></h3>
  18. <?php elseif ( is_multisite() && ! is_upload_space_available() ) : ?>
  19. <h3 class="upload-instructions"><?php esc_html_e( 'Upload Limit Exceeded', 'buddypress' ); ?></h3>
  20. <?php else : ?>
  21. <div id="{{data.container}}">
  22. <div id="{{data.drop_element}}">
  23. <div class="drag-drop-inside">
  24. <p class="drag-drop-info"><?php esc_html_e( 'Drop your file here', 'buddypress' ); ?></p>
  25. <p><?php _ex( 'or', 'Uploader: Drop your file here - or - Select your File', 'buddypress' ); ?></p>
  26. <p class="drag-drop-buttons"><label for="{{data.browse_button}}" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
  27. /* translators: accessibility text */
  28. esc_html_e( 'Select your File', 'buddypress' );
  29. ?></label><input id="{{data.browse_button}}" type="button" value="<?php esc_attr_e( 'Select your File', 'buddypress' ); ?>" class="button" /></p>
  30. </div>
  31. </div>
  32. </div>
  33. <?php endif; ?>
  34. </script>
  35.  
  36. <script type="text/html" id="tmpl-progress-window">
  37. <div id="{{data.id}}">
  38. <div class="bp-progress">
  39. <div class="bp-bar"></div>
  40. </div>
  41. <div class="filename">{{data.filename}}</div>
  42. </div>
  43. </script>
Add Comment
Please, Sign In to add comment