PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 1.3.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v1.3.3
3.6.0 3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / includes / admin / settings / class-evf-settings-validation.php
everest-forms / includes / admin / settings Last commit date
class-evf-settings-email.php 8 years ago class-evf-settings-general.php 8 years ago class-evf-settings-integrations.php 7 years ago class-evf-settings-page.php 8 years ago class-evf-settings-recaptcha.php 8 years ago class-evf-settings-validation.php 8 years ago
class-evf-settings-validation.php
110 lines
1 <?php
2 /**
3 * EverestForms Validation Settings
4 *
5 * @package EverestForms\Admin
6 * @version 1.0.0
7 */
8
9 defined( 'ABSPATH' ) || exit;
10
11 if ( class_exists( 'EVF_Settings_Validation', false ) ) {
12 return new EVF_Settings_Validation();
13 }
14
15 /**
16 * EVF_Settings_Validation.
17 */
18 class EVF_Settings_Validation extends EVF_Settings_Page {
19
20 /**
21 * Constructor.
22 */
23 public function __construct() {
24 $this->id = 'validation';
25 $this->label = __( 'Validations', 'everest-forms' );
26
27 parent::__construct();
28 }
29
30 /**
31 * Get settings array.
32 *
33 * @return array
34 */
35 public function get_settings() {
36 $settings = apply_filters(
37 'everest_forms_validation_settings', array(
38 array(
39 'title' => __( 'Validation Messages', 'everest-forms' ),
40 'type' => 'title',
41 'desc' => 'Validation Messages for Form Fields',
42 'id' => 'validation_options',
43 ),
44 array(
45 'title' => __( 'Required', 'everest-forms' ),
46 'desc' => __( 'Enter the message for the required form field', 'everest-forms' ),
47 'id' => 'everest_forms_required_validation',
48 'type' => 'text',
49 'desc_tip' => true,
50 'css' => 'min-width: 350px;',
51 'default' => __( 'This field is required.', 'everest-forms' ),
52 ),
53 array(
54 'title' => __( 'Website URL', 'everest-forms' ),
55 'desc' => __( 'Enter the message for the valid website url', 'everest-forms' ),
56 'id' => 'everest_forms_url_validation',
57 'type' => 'text',
58 'desc_tip' => true,
59 'css' => 'min-width: 350px;',
60 'default' => __( 'Please enter a valid URL.', 'everest-forms' ),
61 ),
62 array(
63 'title' => __( 'Email', 'everest-forms' ),
64 'desc' => __( 'Enter the message for the valid email', 'everest-forms' ),
65 'id' => 'everest_forms_email_validation',
66 'type' => 'text',
67 'desc_tip' => true,
68 'css' => 'min-width: 350px;',
69 'default' => __( 'Please enter a valid email address.', 'everest-forms' ),
70 ),
71 array(
72 'title' => __( 'Number', 'everest-forms' ),
73 'desc' => __( 'Enter the message for the valid number', 'everest-forms' ),
74 'id' => 'everest_forms_number_validation',
75 'type' => 'text',
76 'desc_tip' => true,
77 'css' => 'min-width: 350px;',
78 'default' => __( 'Please enter a valid number.', 'everest-forms' ),
79 ),
80 array(
81 'title' => __( 'reCAPTCHA', 'everest-forms' ),
82 'desc' => __( 'Enter the message for the valid recaptcha', 'everest-forms' ),
83 'id' => 'everest_forms_recaptcha_validation',
84 'type' => 'text',
85 'desc_tip' => true,
86 'css' => 'min-width: 350px;',
87 'default' => __( 'Invalid reCaptcha Code.', 'everest-forms' ),
88 ),
89 array(
90 'type' => 'sectionend',
91 'id' => 'validation_options',
92 ),
93 )
94 );
95
96 return apply_filters( 'everest_forms_get_settings_' . $this->id, $settings );
97 }
98
99 /**
100 * Save settings.
101 */
102 public function save() {
103 $settings = $this->get_settings();
104
105 EVF_Admin_Settings::save_fields( $settings );
106 }
107 }
108
109 return new EVF_Settings_Validation();
110