|
@@ 1897-1899 (lines=3) @@
|
| 1894 |
|
$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 ) . '>' |
| 1895 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
| 1896 |
|
|
| 1897 |
|
foreach ( $countries as $ckey => $cvalue ) { |
| 1898 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
| 1899 |
|
} |
| 1900 |
|
|
| 1901 |
|
$field .= '</select>'; |
| 1902 |
|
|
|
@@ 1926-1928 (lines=3) @@
|
| 1923 |
|
$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'] . '> |
| 1924 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
| 1925 |
|
|
| 1926 |
|
foreach ( $states as $ckey => $cvalue ) { |
| 1927 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
| 1928 |
|
} |
| 1929 |
|
|
| 1930 |
|
$field .= '</select>'; |
| 1931 |
|
|