Making WordPress.org


Ignore:
Timestamp:
01/20/2016 09:49:51 PM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Centralize file uploads for all modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/input-files.php

    r2327 r2342  
    99        <?php endif; ?>
    1010
    11         <?php // todo move to centralized view file ?>
    12         <p>
    13             <a class="button wcp-insert-media" role="button">
    14                 <?php _e( 'Add files', 'wordcamporg' ); ?>
    15             </a>
    16         </p>
    17 
    18         <h4><?php _e( 'Attached files:', 'wordcamporg' ); ?></h4>
    19 
    20         <ul class="wcp_files_list"></ul>
    21 
    22         <p class="wcp_no_files_uploaded <?php echo $files ? 'hidden' : 'active'; ?>">
    23             <?php _e( "You haven't uploaded any files yet.", 'wordcamporg' ); ?>
    24         </p>
    25 
    26         <script type="text/html" id="tmpl-wcp-attached-file">
    27             <a href="{{ data.url }}">{{ data.filename }}</a>
    28         </script>
    29 
    30         <?php wp_localize_script( 'wcb-attached-files', 'wcbAttachedFiles', $files ); // todo merge into wordcampBudgets var ?>
     11        <?php require_once( dirname( __DIR__ ) . '/wordcamp-budgets/field-attached-files.php' ); ?>
    3112    </td>
    3213</tr>
Note: See TracChangeset for help on using the changeset viewer.