WordPress.org

Making WordPress.org

Ticket #2914: 2914.patch

File 2914.patch, 2.2 KB (added by tyxla, 2 years ago)

Do not hardcode currency in the sponsorship agreement template. Add a hint for adding the currency to the amount fields.

  • templates/sponsorship-agreement.php

     
    6060                        <label><?php _e( 'WordCamp Location:', 'wordcamporg' ); ?></label>
    6161                        <input name="wordcamp_location" value="<?php echo esc_attr( $data['wordcamp_location'] ); ?>" />
    6262
    63                         <label><?php _e( 'Sponsorship Amount (in words):', 'wordcamporg' ); ?></label>
     63                        <label><?php _e( 'Sponsorship Amount (in words, including the currency):', 'wordcamporg' ); ?></label>
    6464                        <input name="sponsorship_amount" value="<?php echo esc_attr( $data['sponsorship_amount'] ); ?>" />
    6565
    66                         <label><?php _e( 'Sponsorship Amount (in numbers):', 'wordcamporg' ); ?></label>
     66                        <label><?php _e( 'Sponsorship Amount (in numbers, including the currency symbol):', 'wordcamporg' ); ?></label>
    6767                        <input name="sponsorship_amount_num" value="<?php echo esc_attr( $data['sponsorship_amount_num'] ); ?>" />
    6868
    6969                        <label><?php _e( 'Sponsorship Benefits:', 'wordcamporg' ); ?></label>
     
    150150                <p>Location: <?php echo esc_html( $data['wordcamp_location'] ); ?><br />
    151151                Time Period: <?php echo esc_html( $data['wordcamp_date'] ); ?></p>
    152152
    153                 <p>2. Sponsorship Amount. Within 30 days of this Agreement or before the start of the first Sponsored WordCamp, whichever is sooner, the Sponsor agrees to pay <?php echo esc_html( $data['sponsorship_amount'] ); ?> (US$ <?php echo esc_html( $data['sponsorship_amount_num'] ); ?>) to WPCS (the "Sponsorship").</p>
     153                <p>2. Sponsorship Amount. Within 30 days of this Agreement or before the start of the first Sponsored WordCamp, whichever is sooner, the Sponsor agrees to pay <?php echo esc_html( $data['sponsorship_amount'] ); ?> (<?php echo esc_html( $data['sponsorship_amount_num'] ); ?>) to WPCS (the "Sponsorship").</p>
    154154
    155155                <p>3. Use of Funds. WPCS will use the Sponsorship to cover its costs and the costs of its volunteers and agents in connection with organizing, promoting, and operating the Sponsored WordCamp(s). Any excess remaining after these costs are paid may be used by WPCS for its unrestricted general support.</p>
    156156