mirror of
https://gh.wpcy.net/https://github.com/pronamic/woocommerce-eu-vat-number.git
synced 2026-04-22 17:42:15 +08:00
19 lines
827 B
PHP
19 lines
827 B
PHP
<?php
|
|
/**
|
|
* Location confirmation field template.
|
|
*
|
|
* @package woocommerce-eu-vat-number/templates
|
|
* @since 2.2.0
|
|
*/
|
|
|
|
?>
|
|
<p class="form-row location_confirmation terms">
|
|
<label for="location_confirmation" class="checkbox"><input type="checkbox" class="input-checkbox" name="location_confirmation" <?php checked( $location_confirmation_is_checked, true ); ?> id="location_confirmation" /> <span>
|
|
<?php
|
|
$billing_country = is_callable( array( WC()->customer, 'get_billing_country' ) ) ? WC()->customer->get_billing_country() : WC()->customer->get_country();
|
|
/* translators: %s billing country */
|
|
echo wp_kses_post( sprintf( __( 'I am established, have my permanent address, or usually reside within <strong>%s</strong>.', 'woocommerce-eu-vat-number' ), $countries[ $billing_country ] ) );
|
|
?>
|
|
</span>
|
|
</label>
|
|
</p>
|