html-price-with-validation-error.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var \WPDesk\FS\TableRate\ShippingMethodSingle $this |
| 4 | * @var string $field_key |
| 5 | * @var string $key |
| 6 | * @var array $data |
| 7 | * |
| 8 | * @package Flexible Shipping |
| 9 | */ |
| 10 | |
| 11 | ?> |
| 12 | <tr valign="top"> |
| 13 | <th scope="row" class="titledesc"> |
| 14 | <label for="<?php echo esc_attr( $field_key ); ?>"> |
| 15 | <?php echo wp_kses_post( $data['title'] ); ?> |
| 16 | <?php echo $this->get_tooltip_html( $data ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 17 | </label> |
| 18 | </th> |
| 19 | <td class="forminp"> |
| 20 | <fieldset> |
| 21 | <legend class="screen-reader-text"><span><?php echo wp_kses_post( $data['title'] ); ?></span></legend> |
| 22 | <input |
| 23 | class="wc_input_price input-text regular-input <?php echo esc_attr( $data['class'] ); ?>" |
| 24 | type="text" |
| 25 | name="<?php echo esc_attr( $field_key ); ?>" |
| 26 | id="<?php echo esc_attr( $field_key ); ?>" |
| 27 | style="<?php echo esc_attr( $data['css'] ); ?>" |
| 28 | value="<?php echo esc_attr( wc_format_localized_price( $this->get_option( $key ) ) ); ?>" |
| 29 | placeholder="<?php echo esc_attr( $data['placeholder'] ); ?>" |
| 30 | <?php disabled( $data['disabled'], true ); ?> |
| 31 | <?php echo $this->get_custom_attribute_html( $data ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 32 | /> |
| 33 | <?php echo $this->get_description_html( $data ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 34 | <p class="description fs-free-shipping-threshold-error-message" style="color:#b32d2e;margin-top:4px;"><?php echo wp_kses_post( $data['error_message'] ); ?></p> |
| 35 | </fieldset> |
| 36 | </td> |
| 37 | </tr> |
| 38 |