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