|
@@ 1871-1873 (lines=3) @@
|
| 1868 |
|
$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 ) . '>' |
| 1869 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
| 1870 |
|
|
| 1871 |
|
foreach ( $countries as $ckey => $cvalue ) { |
| 1872 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
| 1873 |
|
} |
| 1874 |
|
|
| 1875 |
|
$field .= '</select>'; |
| 1876 |
|
|
|
@@ 1900-1902 (lines=3) @@
|
| 1897 |
|
$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'] . '> |
| 1898 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
| 1899 |
|
|
| 1900 |
|
foreach ( $states as $ckey => $cvalue ) { |
| 1901 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
| 1902 |
|
} |
| 1903 |
|
|
| 1904 |
|
$field .= '</select>'; |
| 1905 |
|
|