|
@@ 1840-1842 (lines=3) @@
|
| 1837 |
|
$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 ) . '>' |
| 1838 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
| 1839 |
|
|
| 1840 |
|
foreach ( $countries as $ckey => $cvalue ) { |
| 1841 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
| 1842 |
|
} |
| 1843 |
|
|
| 1844 |
|
$field .= '</select>'; |
| 1845 |
|
|
|
@@ 1869-1871 (lines=3) @@
|
| 1866 |
|
$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'] . '> |
| 1867 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
| 1868 |
|
|
| 1869 |
|
foreach ( $states as $ckey => $cvalue ) { |
| 1870 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
| 1871 |
|
} |
| 1872 |
|
|
| 1873 |
|
$field .= '</select>'; |
| 1874 |
|
|