PATH:
home
/
urbaoubp
/
gns.pitgradnja.com
/
wp-content
/
plugins
/
complianz-gdpr
/
integrations
/
plugins
<?php defined( 'ABSPATH' ) or die( "you do not have access to this page!" ); /** * Override the forminator captcha message so users understand it doesn't work because recaptcha is blocked. * */ add_filter( 'forminator_invalid_captcha_message', 'cmplz_forminator_override_recaptcha_error', 10, 4 ); function cmplz_forminator_override_recaptcha_error( $invalid_captcha_message, $element_id, $field, $verify ) { $invalid_captcha_message = __( "Please accept cookies so we can validate your request with reCaptcha, and submit this form", "complianz-gdpr" ); return $invalid_captcha_message; } /** * Add forminator as formtype to the list * * @param $formtypes * * @return mixed */ function cmplz_forminator_form_types( $formtypes ) { $formtypes['fn_'] = 'forminator'; return $formtypes; } add_filter( 'cmplz_form_types', 'cmplz_forminator_form_types' ); /** * Get list of Forminator forms * * @param array $input_forms * * @return array $input_forms */ function cmplz_forminator_get_plugin_forms( $input_forms ) { $forms = Forminator_API::get_forms(); if ( is_array( $forms ) ) { $forms = wp_list_pluck( $forms, "name", "id" ); foreach ( $forms as $id => $title ) { $input_forms[ 'fn_' . $id ] = $title . " " . '(Forminator)'; } } return $input_forms; } add_filter( 'cmplz_get_forms', 'cmplz_forminator_get_plugin_forms' ); /** * Adds a consent box the a Forminator form * * @param $form_id */ function cmplz_forminator_add_consent_checkbox( $form_id ) { $form_id = str_replace( 'fn_', '', $form_id ); $gdpr_field = Forminator_API::get_form_fields_by_type( $form_id, 'gdprcheckbox' ); if ( is_wp_error( $gdpr_field ) ) { $data = array( 'condition_action' => 'show', 'condition_rule' => 'any', 'type' => 'gdprcheckbox', "required" => true, 'cols' => '12', 'validation' => '', 'gdpr_description' => cmplz_sprintf( __( "Yes, I agree with the %sPrivacy Statement%s", "complianz-gdpr" ), '<a href="' . COMPLIANZ::$document->get_permalink( 'privacy-statement', 'eu', true ) . '">', '</a>' ), 'field_label' => __( 'Privacy', "complianz-gdpr" ), 'description' => '', 'validation_text' => '', 'custom-class' => '' ); Forminator_API::add_form_field( $form_id, 'gdprcheckbox', $data ); } } add_action( "cmplz_add_consent_box_forminator", 'cmplz_forminator_add_consent_checkbox' ); add_filter( 'cmplz_placeholder_markers', 'cmplz_forminator_placeholder' ); function cmplz_forminator_placeholder( $tags ) { $tags['google-recaptcha'][] = 'forminator-g-recaptcha'; return $tags; } /** * Add some custom css for the placeholder */ add_action( 'cmplz_banner_css', 'cmplz_forminator_css' ); function cmplz_forminator_css() { ?> .cmplz-blocked-content-container.forminator-g-recaptcha { max-width: initial !important; height: 90px !important } @media only screen and (max-width: 400px) { .cmplz-blocked-content-container.forminator-g-recaptcha { height: 100px !important } } .cmplz-blocked-content-container.forminator-g-recaptcha .cmplz-blocked-content-notice { top: unset; left: unset; transform: unset; } <?php } ;
[-] volocation.php
[edit]
[-] clarity.php
[edit]
[-] ultimate-addons-elementor.php
[edit]
[-] themify-builder.php
[edit]
[-] omgf.php
[edit]
[-] wp-google-maps.php
[edit]
[-] activecampaign.php
[edit]
[-] wp-google-maps-widget.php
[edit]
[-] caos-host-analytics-local.php
[edit]
[-] index.php
[edit]
[-] pixelyoursite.php
[edit]
[-] amp.php
[edit]
[-] content-views-plugin.php
[edit]
[-] weglot-translate.php
[edit]
[-] wpadverts.php
[edit]
[-] tidio-live-chat.php
[edit]
[-] woocommerce.php
[edit]
[-] contact-form-7.php
[edit]
[-] yotu-wp.php
[edit]
[-] sumo.php
[edit]
[-] pixelyoursite-bing.php
[edit]
[-] woocommerce-variation-swatches.php
[edit]
[-] happyforms.php
[edit]
[-] advanced-nocaptcha-recaptcha.php
[edit]
[-] pixelyoursite-pinterest.php
[edit]
[-] bb-powerpack.php
[edit]
[-] user-registration.php
[edit]
[-] simple-business-directory.php
[edit]
[-] forminator-addon-registration.php
[edit]
[-] trustpulse.php
[edit]
[-] google-site-kit.php
[edit]
[-] novo-map.php
[edit]
[-] buttonizer.php
[edit]
[-] primavera.php
[edit]
[-] omnisend.php
[edit]
[-] facebook-for-wordpress.php
[edit]
[-] hcaptcha.php
[edit]
[-] rate-my-post.php
[edit]
[-] wp-store-locator.php
[edit]
[-] burst-statistics.php
[edit]
[-] welaunch-store-locator.php
[edit]
[-] google-analytics-dashboard-for-wp.php
[edit]
[-] pixel-caffeine.php
[edit]
[-] uncode.php
[edit]
[-] easy-liveblogs.php
[edit]
[-] generatepress-maps.php
[edit]
[-] colibriwp.php
[edit]
[-] disable-and-remove-google-fonts.php
[edit]
[-] advanced-ads.php
[edit]
[-] invisible-recaptcha.php
[edit]
[-] gravity-forms.php
[edit]
[-] qtranslate.php
[edit]
[-] jetpack.php
[edit]
[-] elementor.php
[edit]
[-] lead-forensics.php
[edit]
[-] wp-google-map-plugin.php
[edit]
[-] woocommerce-google-analytics-pro.php
[edit]
[-] superfly-menu.php
[edit]
[-] wp-donottrack.php
[edit]
[-] greenshift.php
[edit]
[-] presto-player.php
[edit]
[-] lazy-loader.php
[edit]
[-] google-tagmanager-for-wordpress.php
[edit]
[-] wpforms.php
[edit]
[-] avada-maps.php
[edit]
[-] mailchimp-woocommerce.php
[edit]
[-] theeventscalendar.php
[edit]
[-] acf.php
[edit]
[-] facebook-for-woocommerce.php
[edit]
[+]
..
[-] forminator-addon-class-v2.php
[edit]
[-] nudgify.php
[edit]
[-] agile-store-locator.php
[edit]
[-] divi-plugin.php
[edit]
[-] addtoany.php
[edit]
[-] woocommerce-google-analytics-integration.php
[edit]
[-] super-socializer.php
[edit]
[-] embed-google-fonts.php
[edit]
[-] meks-easy-maps.php
[edit]
[-] flexible-map.php
[edit]
[-] map-multi-marker.php
[edit]
[-] citadela-directory.php
[edit]
[-] wp-consent-api.php
[edit]
[-] olympus-google-fonts.php
[edit]
[-] podcast-player.php
[edit]
[-] pixelyoursite-pro.php
[edit]
[-] so-widgets-bundle.php
[edit]
[-] thrive.php
[edit]
[-] easy-fancybox.php
[edit]
[-] osm.php
[edit]
[-] monsterinsights.php
[edit]
[-] forminator.php
[edit]
[-] user-registration-pro.php
[edit]
[-] google-maps-easy.php
[edit]
[-] geo-my-wp.php
[edit]
[-] use-any-font.php
[edit]
[-] g1-gmaps.php
[edit]
[-] wp-video-lightbox.php
[edit]
[-] forminator-addon-class.php
[edit]
[-] divi.php
[edit]
[-] wp-rocket.php
[edit]
[+]
elementor-pro
[-] beehive.php
[edit]
[-] local-google-fonts.php
[edit]
[-] beaver-builder.php
[edit]