PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.5.2
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.5.2
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 / addons / CleanTalk / Builder / Builder.php
everest-forms / addons / CleanTalk / Builder Last commit date
Builder.php 1 year ago
Builder.php
87 lines
1 <?php
2 /**
3 * CleanTalk.
4 *
5 * @since 3.2.2
6 * @package EverestForms\Addons\CleanTalk\Builder
7 */
8
9 namespace EverestForms\Addons\CleanTalk\Builder;
10
11 /**
12 * CleanTalk.
13 *
14 * @since 3.2.2
15 */
16 class Builder {
17
18 /**
19 * Constructor.
20 *
21 * @since 3.2.2
22 */
23 public function __construct() {
24 add_action( 'everest_forms_inline_cleantalk_settings', array( $this, 'add_inline_clean_talk_settings' ) );
25 }
26
27 /**
28 * Inline settings.
29 *
30 * @param [type] $obj
31 */
32 public function add_inline_clean_talk_settings( $obj ) {
33 $settings = isset( $this->form_data['settings'] ) ? $this->form_data['settings'] : array();
34 $clean_talk_method = get_option( 'everest_forms_clean_talk_methods', 'rest_api' );
35 $access_key = get_option( 'everest_forms_recaptcha_cleantalk_access_key', '' );
36
37 echo '<div class="everest-forms-border-container">';
38 echo '<div class="everest-forms-clean-talk-setting-container"><h4 class="everest-forms-border-container-title">' . esc_html__( 'CleanTalk', 'everest-forms' ) . '</h4>';
39 echo '<div>';
40 echo '<button class="everest-forms-update-clean-talk-key-button ' . ( empty( $access_key ) ? 'everest-forms-hidden' : '' ) . '" data-access-key="' . esc_attr( $access_key ) . '">';
41 echo esc_html__( 'Update Key', 'everest-forms' );
42 echo '</button>';
43 echo '<a href="https://docs.everestforms.net/docs/cleantalk/" target="_blank" class="everest-forms-learn-more-link-cleantalk">' . esc_html__( 'View Docs', 'everest-forms' ) . '</a>';
44 echo '</div></div>';
45 everest_forms_panel_field(
46 'toggle',
47 'settings',
48 'cleantalk',
49 $obj->form_data,
50 esc_html__( 'Enable CleanTalk anti-spam protection', 'everest-forms' ),
51 array(
52 'default' => '0',
53 )
54 );
55
56 if ( empty( $access_key ) ) {
57 echo '<div class="everest-forms-warning-container">';
58 echo '<img src="' . esc_url( plugins_url( 'addons/CleanTalk/assets/images/warning.png', EVF_PLUGIN_FILE ) ) . '" alt="' . esc_attr__( 'CleanTalk', 'everest-forms' ) . '" class="everest-forms-warning-icon" />';
59 echo '<p class="everest-forms-warning-text">';
60 echo esc_html__( 'No CleanTalk access key found ', 'everest-forms' );
61 echo '<span class="everest-forms-warning-text-link">Add Key</span>';
62 echo '</p>';
63 echo '</div>';
64 }
65 echo '<div class="everest-forms-border-container everest-forms-cleantalk-protection-type">';
66 everest_forms_panel_field(
67 'select',
68 'settings',
69 'cleantalk_protection_type',
70 $obj->form_data,
71 esc_html__( 'Protection type', 'everest-forms' ),
72 array(
73 'default' => 'mark_as_spam',
74 'tooltip' => esc_html__( "Please select the protection type. Choosing 'Mark as Spam' allows the submission but marks the entry as spam, while selecting 'Reject Submission' will prevent the form submission.", 'everest-forms' ),
75 'options' => array(
76 'mark_as_spam' => esc_html__( 'Mark as Spam', 'everest-forms' ),
77 'validation_failed' => esc_html__( 'Reject Submission', 'everest-forms' ),
78 ),
79 )
80 );
81
82 echo '</div>';
83 echo '</div>';
84
85 }
86 }
87