Making WordPress.org

Changeset 2637


Ignore:
Timestamp:
02/26/2016 01:49:52 AM (9 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Add instruction text for payment methods.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments
Files:
3 edited

Legend:

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

    r2633 r2637  
    216216        );
    217217
     218        $introduction_message = sprintf(
     219            '<p>%s</p> <p>%s</p>',
     220            __( 'Direct Deposit or Wire is the fastest way to pay a vendor. Checks and credit card payments can take 3-5 days for us and/or the bank to process.', 'wordcamporg' ),
     221            __( 'Each wire transfer costs us processing fees, so please try to avoid multiple wire requests for one vendor.', 'wordcamporg' )
     222        );
     223
    218224        add_meta_box(
    219225            'wcp_payment_details',
     
    223229            'normal',
    224230            'high',
    225             array( 'meta_key_prefix' => 'camppayments' )
     231            array(
     232                'meta_key_prefix'      => 'camppayments',
     233                'introduction_message' => $introduction_message,
     234            )
    226235        );
    227236
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/reimbursement-request.php

    r2600 r2637  
    169169        'normal',
    170170        'high'
     171    );
     172
     173    $introduction_message = sprintf(
     174        '<p>%s</p> <p>%s</p>',
     175        __( 'This is where you can give us information on how we can reimburse you for approved expenses that you paid out-of-pocket.', 'wordcamporg' ),
     176        __( 'Each wire transfer and check costs us processing fees, so if you have multiple out-of-pocket expenses, please try to group them into one reimbursement request.', 'wordcamporg' )
    171177    );
    172178
     
    181187            'meta_key_prefix' => 'wcbrr',
    182188            'fields_enabled'  => user_can_edit_request( $post ),
     189            'introduction_message' => $introduction_message,
    183190            'show_vendor_requested_payment_method' => false,
    184191        )
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/views/payment-request/metabox-payment.php

    r2636 r2637  
     1<?php if ( ! empty( $box['args']['introduction_message'] ) ) : ?>
     2    <p>
     3        <?php echo wp_kses( $box['args']['introduction_message'], array( 'p' => array() ) ); ?>
     4    </p>
     5<?php endif; ?>
     6
    17<fieldset <?php disabled( $box['args']['fields_enabled'], false ); ?> >
    28
     
    1723    </table>
    1824
    19     <table id="payment_method_check_fields" class="form-table payment_method_fields <?php echo 'Check' == $selected_payment_method ? 'active' : 'hidden'; ?>">
    20         <?php $this->render_text_input( $post, 'Payable To', 'payable_to' ); ?>
    21         <?php $this->render_text_input(    $post, 'Street Address',    'check_street_address' ); ?>
    22         <?php $this->render_text_input(    $post, 'City',              'check_city'           ); ?>
    23         <?php $this->render_text_input(    $post, 'State / Province',  'check_state'          ); ?>
    24         <?php $this->render_text_input(    $post, 'ZIP / Postal Code', 'check_zip_code'       ); ?>
    25         <?php $this->render_country_input( $post, 'Country',           'check_country'        ); ?>
    26     </table>
     25    <div id="payment_method_check_fields" class="form-table payment_method_fields <?php echo 'Check' == $selected_payment_method ? 'active' : 'hidden'; ?>">
     26        <p>
     27            <?php _e( 'Please fill out all the below fields to ensure that the check is sent successfully.', 'wordcamporg' ); ?>
     28        </p>
     29
     30        <table>
     31            <?php $this->render_text_input( $post, 'Payable To', 'payable_to' ); ?>
     32            <?php $this->render_text_input(    $post, 'Street Address',    'check_street_address' ); ?>
     33            <?php $this->render_text_input(    $post, 'City',              'check_city'           ); ?>
     34            <?php $this->render_text_input(    $post, 'State / Province',  'check_state'          ); ?>
     35            <?php $this->render_text_input(    $post, 'ZIP / Postal Code', 'check_zip_code'       ); ?>
     36            <?php $this->render_country_input( $post, 'Country',           'check_country'        ); ?>
     37        </table>
     38    </div>
    2739
    2840    <p id="payment_method_credit_card_fields" class="description payment_method_fields <?php echo 'Credit Card' == $selected_payment_method ? 'active' : 'hidden'; ?>">
     
    3143
    3244    <div id="payment_method_wire_fields" class="form-table payment_method_fields <?php echo 'Wire' == $selected_payment_method ? 'active' : 'hidden'; ?>">
     45        <p>
     46            <?php _e(
     47                'Please include Bank Name, SWIFT code, Beneficiary Name, and Beneficiary Account Number to ensure that your wire is sent successfully.',
     48                'wordcamporg'
     49            ); ?>
     50        </p>
     51
    3352        <table>
    3453            <?php $this->render_text_input( $post, 'Beneficiary’s Bank Name',              'bank_name' ); ?>
Note: See TracChangeset for help on using the changeset viewer.