|
@@ 1902-1904 (lines=3) @@
|
1899 |
|
$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 ) . '>' |
1900 |
|
. '<option value="">'.__( 'Select a country…', 'woocommerce' ) .'</option>'; |
1901 |
|
|
1902 |
|
foreach ( $countries as $ckey => $cvalue ) { |
1903 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '. selected( $value, $ckey, false ) . '>'. __( $cvalue, 'woocommerce' ) .'</option>'; |
1904 |
|
} |
1905 |
|
|
1906 |
|
$field .= '</select>'; |
1907 |
|
|
|
@@ 1931-1933 (lines=3) @@
|
1928 |
|
$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'] . '> |
1929 |
|
<option value="">'.__( 'Select a state…', 'woocommerce' ) .'</option>'; |
1930 |
|
|
1931 |
|
foreach ( $states as $ckey => $cvalue ) { |
1932 |
|
$field .= '<option value="' . esc_attr( $ckey ) . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue, 'woocommerce' ) .'</option>'; |
1933 |
|
} |
1934 |
|
|
1935 |
|
$field .= '</select>'; |
1936 |
|
|