| 1 |
<?php |
| 2 |
/** |
| 3 |
* Checkout terms and conditions area. |
| 4 |
* |
| 5 |
* @package WooCommerce\Templates |
| 6 |
* @version 3.4.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
defined( 'ABSPATH' ) || exit; |
| 10 |
|
| 11 |
if ( apply_filters( 'woocommerce_checkout_show_terms', true ) && function_exists( 'wc_terms_and_conditions_checkbox_enabled' ) ) { |
| 12 |
do_action( 'woocommerce_checkout_before_terms_and_conditions' ); |
| 13 |
|
| 14 |
?> |
| 15 |
<div class="woocommerce-terms-and-conditions-wrapper sellkit-checkout-terms"> |
| 16 |
<?php |
| 17 |
/** |
| 18 |
* Terms and conditions hook used to inject content. |
| 19 |
* |
| 20 |
* @since 3.4.0. |
| 21 |
* @hooked wc_checkout_privacy_policy_text() Shows custom privacy policy text. Priority 20. |
| 22 |
* @hooked wc_terms_and_conditions_page_content() Shows t&c page content. Priority 30. |
| 23 |
*/ |
| 24 |
do_action( 'woocommerce_checkout_terms_and_conditions' ); |
| 25 |
?> |
| 26 |
|
| 27 |
<?php if ( wc_terms_and_conditions_checkbox_enabled() ) : ?> |
| 28 |
<p class="form-row validate-required"> |
| 29 |
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox"> |
| 30 |
<input type="checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" name="terms" <?php checked( apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) ), true ); // phpcs:ignore WordPress.Security.NonceVerification.Missing -- WooCommerce checkout template; WC validates checkout. ?> id="terms" /> |
| 31 |
<span class="woocommerce-terms-and-conditions-checkbox-text"><?php wc_terms_and_conditions_checkbox_text(); ?></span> <abbr class="required" title="<?php esc_attr_e( 'required', 'sellkit' ); ?>">*</abbr> |
| 32 |
</label> |
| 33 |
<input type="hidden" name="terms-field" value="1" /> |
| 34 |
</p> |
| 35 |
<?php endif; ?> |
| 36 |
</div> |
| 37 |
<?php |
| 38 |
do_action( 'woocommerce_checkout_after_terms_and_conditions' ); |
| 39 |
} |
| 40 |
|