|
@@ 1882-1884 (lines=3) @@
|
| 1879 |
|
$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 ) . '>' |
| 1880 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
| 1881 |
|
|
| 1882 |
|
foreach ( $countries as $ckey => $cvalue ) { |
| 1883 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
| 1884 |
|
} |
| 1885 |
|
|
| 1886 |
|
$field .= '</select>'; |
| 1887 |
|
|
|
@@ 1911-1913 (lines=3) @@
|
| 1908 |
|
$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'] . '> |
| 1909 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
| 1910 |
|
|
| 1911 |
|
foreach ( $states as $ckey => $cvalue ) { |
| 1912 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
| 1913 |
|
} |
| 1914 |
|
|
| 1915 |
|
$field .= '</select>'; |
| 1916 |
|
|