Skip to content

Commit

Permalink
review input mask Codeinwp/ppom-pro#404
Browse files Browse the repository at this point in the history
  • Loading branch information
selul committed Sep 6, 2024
1 parent c596dfb commit 5206e13
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions classes/inputs/input.text.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function __construct() {

private function get_settings() {

$regex_help_url = 'https://github.com/RobinHerbots/Inputmask#any-option-can-also-be-passed-through-the-use-of-a-data-attribute-use-data-inputmask-the-name-of-the-optionvalue';
$regex_help_url = 'https://docs.themeisle.com/article/2060-input-masking-documentation-for-field-configuration';

$input_meta = array(
'title' => array(
Expand Down Expand Up @@ -93,8 +93,8 @@ private function get_settings() {
'input_mask' => array(
'type' => 'text',
'title' => __( 'Input Masking', 'woocommerce-product-addon' ),
'desc' => __( 'Click options to see all Masking Options', 'woocommerce-product-addon' ),
'link' => __( '<a href="https://github.com/RobinHerbots/Inputmask" target="_blank">Options</a>', 'woocommerce-product-addon' ),
'desc' => __( 'Input masking ensures that users input data in predefined formats.', 'woocommerce-product-addon' ),
'link' => __( '<a href="https://docs.themeisle.com/article/2060-input-masking-documentation-for-field-configuration" target="_blank">Options</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'width' => array(
Expand All @@ -119,18 +119,19 @@ private function get_settings() {
'desc' => __( 'Role separated by comma.', 'woocommerce-product-addon' ),
'hidden' => true,
),
'use_regex' => array(
'type' => 'checkbox',
'title' => __( 'Use Regex Expresession', 'woocommerce-product-addon' ),
'link' => __( '<a target="_blank" href="' . esc_url( $regex_help_url ) . '">See More</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'onetime' => array(
'type' => 'checkbox',
'title' => __( 'One Time Fee/Charge', 'woocommerce-product-addon' ),
'desc' => __( 'Will not multiply with quantity', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'use_regex' => array(
'type' => 'checkbox',
'title' => __( 'Enable Regex for Input Mask', 'woocommerce-product-addon' ),
'desc' => __( 'Enabling this option allows the input mask field to interpret the provided pattern as a regular expression (regex).', 'woocommerce-product-addon' ),
'link' => __( '<a target="_blank" href="' . esc_url( $regex_help_url ) . '">See More</a>', 'woocommerce-product-addon' ),
'col_classes' => array( 'col-md-3', 'col-sm-12' ),
),
'desc_tooltip' => array(
'type' => 'checkbox',
'title' => __( 'Show tooltip (PRO)', 'woocommerce-product-addon' ),
Expand Down

0 comments on commit 5206e13

Please sign in to comment.