|
@@ 1910-1912 (lines=3) @@
|
| 1907 |
|
$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 ) . '>' |
| 1908 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
| 1909 |
|
|
| 1910 |
|
foreach ( $countries as $ckey => $cvalue ) { |
| 1911 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
| 1912 |
|
} |
| 1913 |
|
|
| 1914 |
|
$field .= '</select>'; |
| 1915 |
|
|
|
@@ 1939-1941 (lines=3) @@
|
| 1936 |
|
$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'] . '> |
| 1937 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
| 1938 |
|
|
| 1939 |
|
foreach ( $states as $ckey => $cvalue ) { |
| 1940 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
| 1941 |
|
} |
| 1942 |
|
|
| 1943 |
|
$field .= '</select>'; |
| 1944 |
|
|