|
@@ 1824-1826 (lines=3) @@
|
| 1821 |
|
$field = '<select name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" ' . $args['autocomplete'] . ' class="country_to_state country_select ' . esc_attr( implode( ' ', $args['input_class'] ) ) .'" ' . implode( ' ', $custom_attributes ) . '>' |
| 1822 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
| 1823 |
|
|
| 1824 |
|
foreach ( $countries as $ckey => $cvalue ) { |
| 1825 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
| 1826 |
|
} |
| 1827 |
|
|
| 1828 |
|
$field .= '</select>'; |
| 1829 |
|
|
|
@@ 1853-1855 (lines=3) @@
|
| 1850 |
|
$field .= '<select name="' . esc_attr( $key ) . '" id="' . esc_attr( $args['id'] ) . '" class="state_select ' . esc_attr( implode( ' ', $args['input_class'] ) ) .'" ' . implode( ' ', $custom_attributes ) . ' data-placeholder="' . esc_attr( $args['placeholder'] ) . '" ' . $args['autocomplete'] . '> |
| 1851 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
| 1852 |
|
|
| 1853 |
|
foreach ( $states as $ckey => $cvalue ) { |
| 1854 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
| 1855 |
|
} |
| 1856 |
|
|
| 1857 |
|
$field .= '</select>'; |
| 1858 |
|
|