|
@@ 1830-1832 (lines=3) @@
|
1827 |
|
$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 ) . '>' |
1828 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
1829 |
|
|
1830 |
|
foreach ( $countries as $ckey => $cvalue ) { |
1831 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
1832 |
|
} |
1833 |
|
|
1834 |
|
$field .= '</select>'; |
1835 |
|
|
|
@@ 1859-1861 (lines=3) @@
|
1856 |
|
$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'] . '> |
1857 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
1858 |
|
|
1859 |
|
foreach ( $states as $ckey => $cvalue ) { |
1860 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
1861 |
|
} |
1862 |
|
|
1863 |
|
$field .= '</select>'; |
1864 |
|
|