Making WordPress.org


Ignore:
Timestamp:
11/01/2017 04:33:47 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Payments: Add missing ISO 4217 currencies.

This also cleans up and normalizes the dropdown rendering across payments modules.

File:
1 edited

Legend:

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

    r4967 r6067  
    1212            <?php __checked_selected_helper( $required, true, true, 'required' ); ?>
    1313        >
    14             <option value="null-select-one">
     14            <option value="">
     15                <?php // translators: %s is a label in a dropdown. For example, "Select a currency", or "Select a category". ?>
    1516                <?php printf( esc_html__( '-- Select a %s --', 'wordcamporg' ), $label ); ?>
    1617            </option>
    17             <option value="null-separator1"></option>
     18            <option value=""></option>
    1819
    1920            <?php foreach ( $options as $value => $option_label ) : ?>
    2021                <option value="<?php echo esc_attr( $value ); ?>" <?php selected( $value, $selected ); ?>>
    2122                    <?php echo esc_html( $option_label ); ?>
     23                    <?php if ( 'currency' === $name && $value ) : ?>
     24                        (<?php echo esc_html( $value ); ?>)
     25                    <?php endif; ?>
    2226                </option>
    2327            <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.