PluginProbe
Additional Terms Lite for WooCommerce / 1.6.2
Additional Terms Lite for WooCommerce v1.6.2
1.7.3 1.7.2.1 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 All 35 releases
woo-additional-terms / templates / checkout / checkbox.php

checkbox.php in Additional Terms Lite for WooCommerce 1.6.2, at templates/checkout/checkbox.php

61 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Template for displaying additional terms and conditions checkbox on the checkout page.
4 *
5 * @since 1.0.0
6 *
7 * @package woo-additional-terms
8 */
9
10 defined( 'ABSPATH' ) || exit;
11 defined( 'WC_VERSION' ) || exit;
12
13 // List of allowed anchor attributes.
14 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
15 $allowed_anchor_attributes = array(
16 'a' => array(
17 'href' => array(),
18 'target' => array(),
19 'class' => array(),
20 'data-action' => array(),
21 'data-fancybox' => array(),
22 'data-animation-effect' => array(),
23 'data-width' => array(),
24 'data-height' => array(),
25 'data-src' => array(),
26 ),
27 );
28 ?>
29
30 <div class="woocommerce-terms-and-conditions-wrapper woo-additional-terms">
31 <div
32 id="woo-additional-terms-content"
33 class="woo-additional-terms__content woo-additional-terms__content--<?php echo esc_attr( $args['display_action'] ); ?>"
34 ><?php echo wc_format_content( wp_kses_post( $args['page_content'] ) ); ?></div>
35 <p class="form-row <?php echo esc_attr( wc_string_to_bool( $args['is_required'] ) ? 'validate-required' : 'novalidate' ); ?>">
36 <label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">
37 <input
38 type="checkbox"
39 class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox"
40 name="_woo_additional_terms"
41 id="_woo_additional_terms"
42 value="1"
43 />
44 <span class="woocommerce-terms-and-conditions-checkbox-text">
45 <?php echo wp_kses( $args['checkbox_label'], $allowed_anchor_attributes ); ?>
46 </span>
47 <?php
48 if ( wc_string_to_bool( $args['is_required'] ) ) :
49 ?>
50 <abbr
51 class="required"
52 title="<?php esc_attr_e( 'Required', 'woo-additional-terms' ); ?>"
53 >*</abbr>
54 <?php endif; ?>
55 </label>
56 </p>
57 </div>
58
59 <?php
60 /* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
61