PluginProbe
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager / 4.1.40
Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager v4.1.40
4.1.41 4.1.40 4.1.39 4.1.38 trunk 1.2 1.2.1 1.2.2 1.2.3 1.3 1.3.1 1.3.2 1.3.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6 1.6.1 All 180 releases
flexible-checkout-fields / templates / fields / url.php
url.php
39 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This template can be overridden by copying it to yourtheme/flexible-checkout-fields/fields/url.php
4 *
5 * @var string $key Field ID.
6 * @var mixed[] $args Custom attributes for field.
7 * @var mixed $value Field value.
8 * @var string[] $custom_attributes .
9 *
10 * @package Flexible Checkout Fields
11 */
12
13 ?>
14 <p class="form-row <?php echo esc_attr( $args['class'] ); ?>"
15 id="<?php echo esc_attr( $key ); ?>_field"
16 data-priority="<?php echo esc_attr( $args['priority'] ); ?>"
17 data-fcf-field="<?php echo esc_attr( $key ); ?>">
18 <label for="<?php echo esc_attr( $key ); ?>">
19 <?php echo wp_kses_post( $args['label'] ); ?>
20 <?php if ( $args['required'] ) : ?>
21 <abbr class="required"
22 title="<?php echo esc_attr( __( 'Required Field', 'flexible-checkout-fields' ) ); ?>">*</abbr>
23 <?php else : ?>
24 <span class="optional">(<?php echo esc_html__( 'optional', 'woocommerce' ); ?>)</span>
25 <?php endif; ?>
26 </label>
27 <input
28 type="url"
29 class="input-text"
30 name="<?php echo esc_attr( $key ); ?>"
31 id="<?php echo esc_attr( $key ); ?>"
32 placeholder="<?php echo esc_attr( $args['placeholder'] ); ?>"
33 value="<?php echo esc_attr( $value ); ?>"
34 data-fcf-field-input="<?php echo esc_attr( $key ); ?>"
35 <?php foreach ( $custom_attributes as $attr_key => $attr_value ) : ?>
36 <?php echo esc_attr( $attr_key ); ?>="<?php echo esc_attr( $attr_value ); ?>"
37 <?php endforeach; ?> />
38 </p>
39