├── .DS_Store
├── .gitignore
├── Custom Cookie Banners
├── .DS_Store
├── Statistics Category Always Active
│ ├── banner.php
│ └── cookiebanner
│ │ └── cookiebanner.php
├── Ace & Tate
│ ├── banner.php
│ └── cookiebanner
│ │ └── cookiebanner.php
└── Bottom to Center
│ ├── banner.php
│ └── cookiebanner
│ └── cookiebanner.php
├── GeoIp
├── override_ip_detection.php
├── geo-ip.php
└── override-region-by-geo-ip.php
├── changing-blocked-text-contact-form-7.php
├── Cookies
├── clear_cookies.php
├── force-cookies-on-root.php
├── allow_cookies_on_root_field.php
└── clear-cookies-on-revoke.php
├── exclude-post-type.php
├── banner-on-wp-login.php
├── exclude-page-from-scan.php
├── force-cookie-warning.php
├── block-images.php
├── tagdiv-youtube.php
├── Google Maps
├── custom-google-maps-placeholder.php
├── events-manager.php
├── bricks-builder-google-maps.php
├── woodmart-custom-google-maps.php
├── interico-advanced.php
├── progress-map.php
├── property-hive.php
├── custom-betheme-google-maps.php
├── leaflet-maps.php
├── maps-marker-pro.php
├── churchthemes-gmaps.php
├── Extended-Google-Map-for-Elementor.php
├── theme-directory-pro.php
├── directory-theme-gmaps.php
├── enfold-google-maps.php
├── homey-maps.php
├── 10web-google-maps.php
├── wp-maps-pro.php
├── custom-google-maps.php
├── uncode-theme-google-maps.php
├── webnus-modern-events-calendar.php
├── mappress_compliance.php
├── ultimate-add-ons-for-elementor.php
└── facet-wp.php
├── hide-banner-in-us.php
├── deny-on-banner-close.php
├── open-cookie-policy-in-new-window.php
├── redirect-on-deny.php
├── whitelist-script.php
├── dequeue_statistics.php
├── presto-player-lazyloading.php
├── paid-memberships-pro.php
├── obfuscate-email-shortcode.php
├── show-cookie-banner.php
├── reload-after-consent.php
├── fix_css_after_site_migration.php
├── delay-banner.php
├── wrap-elements.php
├── exclude-cookie-blocker-and-banner.php
├── append-consent-status-to-iframe.php
├── TCF
├── append-tc-string-to-link.php
└── dissmiss-tcf-banner.php
├── facebook-pagelike-widget.php
├── different_policy_id_multisite.php
├── rolex-mu-plugin
├── rolex
│ ├── category.php
│ └── script.js
└── rolex.php
├── show-banner-on-blocked-content-click.php
├── remove-unused-languages.php
├── foo-gallery.php
├── powerpack-beaver-builder.php
├── no-scroll-soft-cookie-wall.php
├── manage-consent-button.php
├── ultimate-addons-elementor.php
├── headless
└── headless.php
├── my-custom-cookiebanner.php
├── README.md
├── magnific-popups.php
├── contact-form-7.php
├── show_denied_banner_after_period.php
├── social-media-category.php
├── Cookie Banner HTML
├── cookiebanner.php
└── cookiebanner-a11y.php
├── elementor-background-video.php
└── square-text-boxes-template.php
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/complianz/complianz-integrations/HEAD/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .DS_Store
3 | Custom Cookie Banners/.DS_Store
4 | .DS_Store
5 | Custom Cookie Banners/.DS_Store
6 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/complianz/complianz-integrations/HEAD/Custom Cookie Banners/.DS_Store
--------------------------------------------------------------------------------
/GeoIp/override_ip_detection.php:
--------------------------------------------------------------------------------
1 | query( "TRUNCATE TABLE {$wpdb->prefix}cmplz_cookies" );
10 | }
11 | add_action( 'plugins_loaded', 'cmplz_my_clear_cookies', 20, 1 );
12 |
--------------------------------------------------------------------------------
/exclude-post-type.php:
--------------------------------------------------------------------------------
1 | 'youtube',
8 | 'category' => 'marketing',
9 | 'placeholder' => 'youtube',
10 | 'placeholder_class' => 'td_block_video_playlist',
11 | 'urls' => array(
12 | '//www.youtube.com/embed',
13 | ),
14 | );
15 |
16 | return $tags;
17 | }
18 |
--------------------------------------------------------------------------------
/Google Maps/custom-google-maps-placeholder.php:
--------------------------------------------------------------------------------
1 |
4 |
12 | ', ''), '', $script);
15 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
16 | }
17 | add_action( 'wp_enqueue_scripts', 'cmplz_hide_banner_us', PHP_INT_MAX );
--------------------------------------------------------------------------------
/deny-on-banner-close.php:
--------------------------------------------------------------------------------
1 |
4 |
12 | ', ''), '', $script);
15 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
16 | }
17 | add_action( 'wp_enqueue_scripts', 'cmplz_deny_on_banner_close', PHP_INT_MAX );
--------------------------------------------------------------------------------
/Cookies/force-cookies-on-root.php:
--------------------------------------------------------------------------------
1 |
8 |
18 |
9 |
17 | 'google-maps',
6 | 'category' => 'marketing',
7 | 'placeholder' => 'google-maps',
8 | 'urls' => array(
9 | 'events-manager.js',
10 | ),
11 | 'enable_placeholder' => '1',
12 | 'placeholder_class' => 'em-location-map-container',
13 | );
14 | return $tags;
15 | }
16 |
17 | function cmplz_eventsmanager_css() {
18 | ?>
19 |
24 | '',
16 | ), $atts, $tag );
17 | $email = sanitize_email($atts['email']);
18 | ob_start();
19 | $css = '';
20 | echo $css.COMPLIANZ::$document->obfuscate_email($email);
21 | return ob_get_clean();
22 | }
23 | add_shortcode( 'cmplz_obfuscate', 'cmplz_obfuscate_shortcode' );
24 |
--------------------------------------------------------------------------------
/Google Maps/bricks-builder-google-maps.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
7 | 'category' => 'marketing',
8 | 'placeholder' => 'google-maps',
9 | 'urls' => array(
10 | 'maps.googleapis.com',
11 | 'infobox',
12 | ),
13 | 'enable_placeholder' => '1',
14 | 'placeholder_class' => 'bricks-google-map-wrapper',
15 | 'enable_dependency' => '1',
16 | 'dependency' => [
17 | //'wait-for-this-script' => 'script-that-should-wait'
18 | 'maps.googleapis.com' => 'infobox',
19 | ],
20 | );
21 | return $tags;
22 | }
23 | add_filter( 'cmplz_known_script_tags', 'cmplz_bricks_googlemaps_script' );
24 |
--------------------------------------------------------------------------------
/show-cookie-banner.php:
--------------------------------------------------------------------------------
1 |
7 |
21 |
8 |
22 | ID );
15 | $banner->save();
16 | }
17 | }
18 | }
19 | get_option('cmplz_current_site_url', $previous_site_url );
20 | }
21 | add_action('init', 'cmplz_detect_url_change');
22 | }
--------------------------------------------------------------------------------
/delay-banner.php:
--------------------------------------------------------------------------------
1 |
6 |
17 | ', ''), '', $script);
20 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
21 | }
22 | add_action( 'wp_enqueue_scripts', 'cmplz_delay_banner', PHP_INT_MAX );
--------------------------------------------------------------------------------
/GeoIp/geo-ip.php:
--------------------------------------------------------------------------------
1 | geoip->geoip_enabled() ) {
19 | $region = COMPLIANZ()->geoip->region();
20 | $country_code = COMPLIANZ()->geoip->get_country_code();
21 | error_log( "Custom usage of GEO IP" );
22 | error_log( "country code " . $country_code );
23 | error_log( "region " . $region );
24 |
25 | return $region;
26 | } else {
27 | error_log( "geo ip not enabled" );
28 |
29 | return $region;
30 | }
31 |
32 | }
--------------------------------------------------------------------------------
/Google Maps/woodmart-custom-google-maps.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
7 | 'category' => 'marketing',
8 | 'placeholder' => 'google-maps',
9 | 'urls' => array(
10 | 'maps.google.com',
11 | 'maplace.min.js',
12 | 'googleMap.min.js',
13 | ),
14 | 'enable_placeholder' => '1',
15 | 'placeholder_class' => 'google-map-container',
16 | 'enable_dependency' => '1',
17 | 'dependency' => [
18 | //'wait-for-this-script' => 'script-that-should-wait'
19 | 'maps.google.com' => 'maplace.min.js',
20 | 'maplace.min.js' => 'googleMap.min.js',
21 | ],
22 | );
23 | return $tags;
24 | }
25 | add_filter( 'cmplz_known_script_tags', 'cmplz_woodmart_custom_googlemaps_script' );
26 |
--------------------------------------------------------------------------------
/wrap-elements.php:
--------------------------------------------------------------------------------
1 | in case the an iFrame is set without wrapping HTML attributes
4 | * A common example is when YouTube videos will shift your lay-out when blocked prior to consent
5 | */
6 |
7 | /**
8 | * @param string $html
9 | *
10 | * @return string
11 | */
12 | function cmplz_add_div_iframe($html){
13 | return '
'.$html.'
';
14 | }
15 | add_filter( 'cmplz_iframe_html', 'cmplz_add_div_iframe' );
16 |
17 |
18 | /**
19 | * jquery alternative
20 | * @return void
21 | */
22 |
23 | function cmplz_add_div_iframe_jquery() {
24 | ?>
25 |
30 | 'google-maps',
14 | 'category' => 'marketing',
15 | 'placeholder' => 'google-maps',
16 | 'urls' => array(
17 | 'maps.googleapis.com/maps/api/js',
18 | 'mapOptions',
19 | ),
20 | 'enable_placeholder' => '1',
21 | 'placeholder_class' => 'my-maps-class',
22 | 'enable_dependency' => '1',
23 | 'dependency' => [
24 | //'wait-for-this-script' => 'script-that-should-wait'
25 | 'maps.googleapis.com' => 'mapOptions',
26 | ],
27 | );
28 | return $tags;
29 | }
30 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_googlemaps_script' );
31 |
--------------------------------------------------------------------------------
/GeoIp/override-region-by-geo-ip.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
10 | 'category' => 'marketing',
11 | 'placeholder' => 'google-maps',
12 | 'urls' => array(
13 | 'maps.google.com',
14 | 'progress_map',
15 | 'gmap3.min.js',
16 | 'var plugin_map_placeholder',
17 | 'snazzy-info-window.min.js',
18 | ),
19 | 'enable_placeholder' => '1',
20 | 'placeholder_class' => 'codespacing_progress_map_area',
21 | 'enable_dependency' => '1',
22 | 'dependency' => [
23 | //'wait-for-this-script' => 'script-that-should-wait'
24 | 'maps.google.com' => 'var plugin_map_placeholder',
25 | //'snazzy-info-window.min.js' => 'gmap3.min.js',
26 | ],
27 | );
28 |
29 | return $tags;
30 | }
31 | add_filter( 'cmplz_known_script_tags', 'cmplz_progressmap_googlemaps_script' );
32 |
--------------------------------------------------------------------------------
/Google Maps/property-hive.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
12 | 'category' => 'marketing',
13 | 'placeholder' => 'google-maps',
14 | 'urls' => array(
15 | 'maps.googleapis.com',
16 | 'initialize_property_map',
17 | ),
18 | 'enable_placeholder' => '1',
19 | // Create the placeholder class by adding it to the Google Map DIV.
20 | 'placeholder_class' => 'cmplz-maps-placeholder',
21 | 'enable_dependency' => '1',
22 | 'dependency' => [
23 | //'wait-for-this-script' => 'script-that-should-wait'
24 | 'initialize_property_map' => 'maps.googleapis.com',
25 | ],
26 | );
27 |
28 | return $tags;
29 | }
30 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_googlemaps_script' );
31 |
--------------------------------------------------------------------------------
/exclude-cookie-blocker-and-banner.php:
--------------------------------------------------------------------------------
1 |
9 |
23 | ', '' ), '', $script );
26 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
27 | }
28 | add_action( 'wp_enqueue_scripts', 'cmplz_append_status_to_iframe' );
--------------------------------------------------------------------------------
/Cookies/allow_cookies_on_root_field.php:
--------------------------------------------------------------------------------
1 | 'settings',
6 | 'step' => 'general',
7 | 'type' => 'checkbox',
8 | 'default' => false,
9 | 'label' => __( "Set cookiebanner cookies on the root domain", 'complianz-gdpr' ),
10 | 'help' => __( "This is useful if you have a multisite, or several sites as subdomains on a main site", 'complianz-gdpr' ),
11 | 'table' => true,
12 | );
13 |
14 | $fields['cookie_domain'] = array(
15 | 'source' => 'settings',
16 | 'step' => 'general',
17 | 'type' => 'text',
18 | 'default' => false,
19 | 'label' => __( "Domain to set the cookies on", 'complianz-gdpr' ),
20 | 'help' => __( "This should be your main, root domain.", 'complianz-gdpr' ),
21 | 'table' => true,
22 | 'condition' => array( 'set_cookies_on_root' => true ),
23 | );
24 |
25 | return $fields;
26 | }
27 |
28 | add_filter( 'cmplz_fields_load_types', 'cmplz_allow_cookies_on_root_field', 10, 1 );
29 |
--------------------------------------------------------------------------------
/TCF/append-tc-string-to-link.php:
--------------------------------------------------------------------------------
1 |
10 |
26 | ', ''), '', $script);
29 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
30 | }
31 | add_action( 'wp_enqueue_scripts', 'cmplz_append_tc_string_to_link', PHP_INT_MAX );
32 |
--------------------------------------------------------------------------------
/facebook-pagelike-widget.php:
--------------------------------------------------------------------------------
1 | 'facebook',
7 | 'category' => 'marketing',
8 | 'placeholder' => 'facebook',
9 | 'urls' => array(
10 | 'fb.js',
11 | ),
12 | );
13 | return $tags;
14 | }
15 |
16 |
17 | /**
18 | * Add some custom css for the placeholder
19 | */
20 |
21 | add_action( 'wp_footer', 'cmplz_fb_pagelike_widget_css' );
22 | function cmplz_fb_pagelike_widget_css() {
23 | ?>
24 |
29 |
35 |
43 |
2 |
3 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/TCF/dissmiss-tcf-banner.php:
--------------------------------------------------------------------------------
1 |
5 |
26 | ', ''), '', $script);
29 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
30 | }
31 | add_action( 'wp_enqueue_scripts', 'cmplz_dismiss_tcf_banner', PHP_INT_MAX );
--------------------------------------------------------------------------------
/show-banner-on-blocked-content-click.php:
--------------------------------------------------------------------------------
1 |
8 |
28 | 'google-maps',
19 | 'category' => 'marketing',
20 | 'placeholder' => 'google-maps',
21 | 'urls' => array(
22 | 'maps.googleapis.com',
23 | 'mfn_google_maps',
24 | ),
25 | 'enable_placeholder' => '1',
26 | 'placeholder_class' => 'google-map',
27 | 'enable_dependency' => '1',
28 | 'dependency' => [
29 | //'wait-for-this-script' => 'script-that-should-wait'
30 | ],
31 | );
32 | return $tags;
33 | }
34 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_betheme_script' );
35 |
--------------------------------------------------------------------------------
/Google Maps/leaflet-maps.php:
--------------------------------------------------------------------------------
1 | 'openstreetmaps',
8 | 'category' => 'marketing',
9 | 'placeholder' => 'openstreetmaps',
10 | 'urls' => array(
11 | 'WPLeafletMapPlugin',
12 | ),
13 | 'enable_placeholder' => '1',
14 | 'placeholder_class' => 'leaflet-map',
15 | 'enable_dependency' => '1',
16 | 'dependency' => [
17 | //'wait-for-this-script' => 'script-that-should-wait'
18 | 'leaflet.js' => 'leaflet-gesture-handling-leafext.min.js',
19 | ],
20 | );
21 | return $tags;
22 | }
23 |
24 | /**
25 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
26 | *
27 | * @param $services
28 | *
29 | * @return array
30 | */
31 |
32 | function cmplz_leafletmaps_directory_detected_services( $services ) {
33 | if ( ! in_array( 'openstreetmaps', $services ) ) {
34 | $services[] = 'openstreetmaps';
35 | }
36 |
37 | return $services;
38 | }
39 |
40 | add_filter( 'cmplz_detected_services', 'cmplz_leafletmaps_directory_detected_services' );
--------------------------------------------------------------------------------
/Google Maps/maps-marker-pro.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
19 | 'category' => 'marketing',
20 | 'placeholder' => 'google-maps',
21 | 'urls' => array(
22 | 'mmpVars',
23 | 'var mapsMarkerPro',
24 | 'mapsmarkerpro.js',
25 | ),
26 | 'enable_placeholder' => '1',
27 | 'placeholder_class' => 'mmp-map',
28 | 'enable_dependency' => '1',
29 | 'dependency' => [
30 | //'wait-for-this-script' => 'script-that-should-wait'
31 | 'mapsmarkerpro.js' => 'var mapsMarkerPro',
32 | ],
33 | );
34 | return $tags;
35 | }
36 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_maps_marker_pro' );
37 |
--------------------------------------------------------------------------------
/Google Maps/churchthemes-gmaps.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
13 | 'category' => 'marketing',
14 | 'placeholder' => 'google-maps',
15 | 'urls' => array(
16 | 'maps.gstatic.com',
17 | 'maps.googleapis.com',
18 | ),
19 | 'enable_placeholder' => '1',
20 | 'placeholder_class' => 'ctfw-google-map',
21 | 'enable_dependency' => '1',
22 | 'dependency' => [
23 | //'wait-for-this-script' => 'script-that-should-wait'
24 | 'ctfw-maps-js' => 'maps.googleapis.com/',
25 | ],
26 | );
27 | return $tags;
28 | }
29 | add_filter( 'cmplz_known_script_tags', 'cmplz_ctfw_googlemaps_script' );
30 |
31 | /**
32 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
33 | *
34 | * @param $services
35 | *
36 | * @return array
37 | */
38 | function cmplz_ctfw_detected_services( $services ) {
39 | if ( ! in_array( 'google-maps', $services ) ) {
40 | $services[] = 'google-maps';
41 | }
42 |
43 | return $services;
44 | }
45 | add_filter( 'cmplz_detected_services', 'cmplz_ctfw_detected_services' );
46 |
--------------------------------------------------------------------------------
/remove-unused-languages.php:
--------------------------------------------------------------------------------
1 | $html_match ) {
10 | $el = $matches[0][ $key ];
11 | $src = $matches[1][ $key ];
12 | if (strpos($src, 'youtube') !== false) {
13 | $new_el = str_replace( 'class="fg-item-inner', 'class="fg-item-inner cmplz-placeholder-element ', $el );
14 | $html = str_replace( $el, $new_el, $html );
15 | }
16 | }
17 | }
18 | }
19 | return $html;
20 | }
21 | add_filter( 'cmplz_cookie_blocker_output' , 'my_foo_gallery_block_content' );
22 |
23 |
24 | function my_cmplz_foo_gallery_css() {
25 | if ( cmplz_uses_thirdparty('youtube') ) {
26 | ?>
27 |
39 | 'google-maps',
13 | 'category' => 'marketing',
14 | 'placeholder' => 'google-maps',
15 | 'urls' => array(
16 | 'maps.googleapis.com/maps/api/js',
17 | 'eb-google-map.js',
18 | ),
19 | 'enable_placeholder' => '1',
20 | 'placeholder_class' => 'eb-map',
21 | 'enable_dependency' => '1',
22 | 'dependency' => [
23 | //'wait-for-this-script' => 'script-that-should-wait'
24 | 'maps.googleapis.com/maps/api/js' => 'eb-google-map.js',
25 | ],
26 | );
27 |
28 | return $tags;
29 | }
30 | add_filter( 'cmplz_known_script_tags', 'cmplz_extendedmapsforelementor_script' );
31 |
32 | /**
33 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
34 | *
35 | * @param $services
36 | *
37 | * @return array
38 | */
39 | function cmplz_extendedmapsforelementor_detected_services( $services ) {
40 |
41 | if ( ! in_array( 'google-maps', $services ) ) {
42 | $services[] = 'google-maps';
43 | }
44 |
45 | return $services;
46 | }
47 |
48 | add_filter( 'cmplz_detected_services', 'cmplz_extendedmapsforelementor_detected_services' );
49 |
--------------------------------------------------------------------------------
/powerpack-beaver-builder.php:
--------------------------------------------------------------------------------
1 |
8 |
28 | ', ''), '', $script);
31 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
32 | }
33 | add_action( 'wp_enqueue_scripts', 'cmplz_bb_powerpack_script',PHP_INT_MAX );
34 | }
35 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/Statistics Category Always Active/banner.php:
--------------------------------------------------------------------------------
1 |
33 |
34 | ID );
48 | $banner->save();
49 | }
50 | }
51 | }
52 | add_action('init', 'regenerate_banner');
53 |
--------------------------------------------------------------------------------
/Google Maps/theme-directory-pro.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
11 | 'category' => 'marketing',
12 | 'placeholder' => 'google-maps',
13 | 'urls' => array(
14 | 'showHeaderMap',
15 | 'openstreetmap',
16 | 'leaflet-gesture-handling.min.js',
17 | 'leaflet.markercluster.js',
18 | 'leaflet.js'
19 | ),
20 | 'enable_placeholder' => '1',
21 | 'placeholder_class' => 'leaflet-map-container',
22 | 'enable_dependency' => '1',
23 | 'dependency' => [
24 | //'wait-for-this-script' => 'script-that-should-wait'
25 | 'leaflet.js' => 'showHeaderMap'
26 | ],
27 | );
28 | return $tags;
29 | }
30 |
31 |
32 | function cmplz_directory_pro_scripts() {
33 | ?>
34 |
45 |
10 |
27 | ', ''), '', $script);
30 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
31 | }
32 | add_action( 'wp_enqueue_scripts', 'cmplz_noscroll_js', PHP_INT_MAX );
33 |
34 | /**
35 | * Add css to the banner, to prevent scrolling on the body element
36 | * @return void
37 | */
38 | function cmplz_noscroll_css() {
39 | ?>
40 | .cmplz-noscroll {
41 | height:100%;
42 | overflow:hidden;
43 | }
44 |
13 |
14 |
38 |
45 |
46 | 'google-maps',
19 | 'category' => 'marketing',
20 | 'placeholder' => 'google-maps',
21 | 'urls' => array(
22 | 'showHeaderMap',
23 | 'mapContainer',
24 | 'google.maps',
25 | 'maps.googleapis.com/maps/api/js',
26 | ),
27 | 'enable_placeholder' => '1',
28 | 'placeholder_class' => 'google-map-container,map-container',
29 | );
30 |
31 | return $tags;
32 | }
33 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_googlemaps_script' );
34 |
35 | function cmplz_maps_initDomContentLoaded() {
36 | ?>
37 |
43 |
44 | /is';
9 | ob_start();
10 | require_once( __DIR__ . '/rolex/category.php');
11 | $social = ob_get_clean();
12 | if ( preg_match( $pattern, $html, $matches ) ) {
13 | $marketing = $matches[0];
14 | $html = str_replace($marketing, $social.$marketing, $html);
15 | }
16 |
17 | return $html;
18 | }
19 | add_filter('cmplz_banner_html', 'cmplz_add_rlx_category');
20 |
21 | /**
22 | * Enqueue the script
23 | * @return void
24 | */
25 | function cmplz_enqueue_rlx( ) {
26 | wp_enqueue_script( 'cmplz-adobe', '//assets.adobedtm.com/7e3b3fa0902e/7ba12da1470f/launch-5de25e657d80.min.js', [] );
27 | $script = plugin_dir_url(__FILE__). "rolex/script.js";
28 | wp_enqueue_script( 'cmplz-rolex', $script, ['cmplz-cookiebanner'], filemtime($script).CMPLZ_ROLEX_VERSION );
29 | }
30 | add_action( 'wp_enqueue_scripts', 'cmplz_enqueue_rlx' );
31 |
32 | function cmplz_block_adobe_script( $tags ) {
33 | $tags[] = array(
34 | 'name' => 'rolex',
35 | 'category' => 'rlx',
36 | 'urls' => array(
37 | 'assets.adobedtm.com',
38 | ),
39 | 'enable_placeholder' => '0',
40 | );
41 | return $tags;
42 | }
43 | add_filter( 'cmplz_known_script_tags', 'cmplz_block_adobe_script' );
44 |
45 | //
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/Google Maps/enfold-google-maps.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
11 | 'category' => 'marketing',
12 | 'urls' => array(
13 | 'maps.googleapis.com',
14 | 'avia_google_maps_front',
15 | ),
16 | 'enable_placeholder' => '1',
17 | 'placeholder_class' => 'av_gmaps_sc_main_wrap',
18 | 'enable_dependency' => '1',
19 | 'dependency' => [
20 | //'wait-for-this-script' => 'script-that-should-wait'
21 | 'maps.googleapis.com' => 'avia_google_maps_front',
22 | ],
23 | );
24 | return $tags;
25 | }
26 | add_filter( 'cmplz_known_script_tags', 'cmplz_enfold_googlemaps_script' );
27 |
28 | /**
29 | * Trigger the DomContentLoaded event
30 | * This is not always needed, but in a plugin initializes on document load or ready, the map won't show on consent because this event already ran.
31 | * This will re-trigger that.
32 | */
33 |
34 | function cmplz_enfold_maps_initDomContentLoaded() {
35 | ob_start();
36 | ?>
37 |
43 | ', ''), '', $script);
46 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
47 | }
48 | add_action( 'wp_enqueue_scripts', 'cmplz_enfold_maps_initDomContentLoaded',PHP_INT_MAX );
49 |
--------------------------------------------------------------------------------
/ultimate-addons-elementor.php:
--------------------------------------------------------------------------------
1 |
7 |
13 | 'google-maps',
23 | 'category' => 'marketing',
24 | 'placeholder' => 'google-maps',
25 | 'urls' => array(
26 | 'uael-google-map.js',
27 | 'maps.googleapis.com',
28 | ),
29 | 'enable_placeholder' => '1',
30 | 'placeholder_class' => 'uael-google-map-wrap',
31 | 'enable_dependency' => '1',
32 | 'dependency' => [
33 | //'wait-for-this-script' => 'script-that-should-wait'
34 | 'maps.googleapis.com' => 'uael-google-map.js'
35 | ],
36 | );
37 | return $tags;
38 | }
39 |
40 | /**
41 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
42 | *
43 | * @param $services
44 | *
45 | * @return array
46 | */
47 |
48 | function cmplz_uafe_detected_services( $services ) {
49 | if ( ! in_array( 'google-maps', $services ) ) {
50 | $services[] = 'google-maps';
51 | }
52 |
53 | return $services;
54 | }
55 |
56 | add_filter( 'cmplz_detected_services', 'cmplz_uafe_detected_services' );
57 |
--------------------------------------------------------------------------------
/headless/headless.php:
--------------------------------------------------------------------------------
1 | get_front_end_settings();
9 | $js = '';
10 | // if ( cmplz_tcf_active() ) {
11 | // //add tcf js with filter
12 | // $js .= apply_filters('cmplz_tcf_js', '' );
13 | // }
14 | if ( get_option('cmplz_post_scribe_required') ) {
15 | $js .= file_get_contents(cmplz_path . "assets/js/postscribe.min.js");
16 | }
17 |
18 | $js .= "var complianz = ".json_encode($cookiesettings).";";
19 | $js .= file_get_contents(cmplz_path . "cookiebanner/js/complianz.min.js");
20 | ob_start();
21 | COMPLIANZ::$banner_loader->inline_cookie_script();
22 | $stats = ob_get_clean();
23 | preg_match('/(.*?)<\/script>/is', $stats, $matches);
24 | $stats = $matches[1];
25 | $js .= $stats;
26 | $upload_dir = cmplz_upload_dir('js');
27 | $file = $upload_dir . 'complianz-headless.min.js';
28 | if ( file_exists($upload_dir) && is_writable($upload_dir) ){
29 | $handle = fopen($file, 'wb' );
30 | fwrite($handle, $js);
31 | fclose($handle);
32 | }
33 |
34 | //generate html file
35 | $upload_dir = cmplz_upload_dir('html');
36 | ob_start();
37 | COMPLIANZ::$banner_loader->cookiebanner_html();
38 | $html = ob_get_clean();
39 | $file = $upload_dir . 'banner.html';
40 | if ( file_exists($upload_dir) && is_writable($upload_dir) ){
41 | $handle = fopen($file, 'wb' );
42 | fwrite($handle, $html);
43 | fclose($handle);
44 | }
45 | }
--------------------------------------------------------------------------------
/my-custom-cookiebanner.php:
--------------------------------------------------------------------------------
1 |
20 | .cmplz-cookiebanner {
21 |
22 | }
23 | ID );
38 | $banner->save();
39 | }
40 | }
41 | }
42 | add_action('init', 'regenerate_banner');
43 |
44 |
45 | /**
46 | * Add custom css to banner css file
47 | * @return void
48 | */
49 | function add_my_custom_banner_css() {
50 | ?>
51 | .cmplz-cookiebanner {
52 |
53 | }
54 | 'google-maps',
19 | 'category' => 'marketing',
20 | 'placeholder' => 'google-maps',
21 | 'urls' => array(
22 | 'maps.googleapis.com',
23 | 'homey-maps',
24 | 'infoxbox_packed',
25 | ),
26 | 'enable_placeholder' => '1',
27 | 'placeholder_class' => 'map-section',
28 | 'enable_dependency' => '1',
29 | 'dependency' => [
30 | //'wait-for-this-script' => 'script-that-should-wait'
31 | 'maps.googleapis.com' => 'infoxbox_packed',
32 | 'infoxbox_packed' => 'homey-maps', //has to have a different key
33 | ],
34 | );
35 | return $tags;
36 | }
37 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_googlemaps_script' );
38 |
39 | function cmplz_homey_maps_initDomContentLoaded() {
40 | ob_start();
41 | ?>
42 |
48 | ', ''), '', $script);
51 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
52 | }
53 | add_action( 'wp_enqueue_scripts', 'cmplz_homey_maps_initDomContentLoaded',PHP_INT_MAX );
54 |
55 |
--------------------------------------------------------------------------------
/Google Maps/10web-google-maps.php:
--------------------------------------------------------------------------------
1 | '10web-google-maps',
9 | 'category' => 'marketing',
10 | 'placeholder' => 'google-maps',
11 | 'urls' => array(
12 | 'init_map',
13 | 'maps.googleapis.com',
14 | 'frontend_main.js',
15 | 'gmwdInitMainMap',
16 | ),
17 | 'enable_placeholder' => '1',
18 | 'placeholder_class' => 'gmwd_container',
19 | 'enable_dependency' => '1',
20 | 'dependency' => [
21 | //'wait-for-this-script' => 'script-that-should-wait'
22 | //'gmwdInitMainMap' => 'init_map',
23 | //'frontend_main.js' => 'maps.googleapis.com',
24 | //'init_map' => 'frontend_main.js',
25 | 'init_map' => 'gmwdInitMainMap',
26 | 'maps.googleapis.com' => 'frontend_main.js',
27 | 'frontend_main.js' => 'init_map',
28 | ],
29 | );
30 | return $tags;
31 | }
32 | add_filter( 'cmplz_known_script_tags', 'cmplz_10web_googlemaps_script' );
33 |
34 |
35 | /**
36 | * Trigger the DomContentLoaded event
37 | * This is not always needed, but in a plugin initializes on document load or ready, the map won't show on consent because this event already ran.
38 | * This will re-trigger that.
39 | *
40 | */
41 |
42 | function cmplz_10web_maps_initDomContentLoaded() {
43 | ob_start();
44 | ?>
45 |
51 | ', ''), '', $script);
54 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
55 | }
56 | add_action( 'wp_enqueue_scripts', 'cmplz_10web_maps_initDomContentLoaded',PHP_INT_MAX );
57 |
--------------------------------------------------------------------------------
/Google Maps/wp-maps-pro.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
12 | 'category' => 'marketing',
13 | 'placeholder' => 'google-maps',
14 | 'urls' => array(
15 | 'maps.js',
16 | 'infobox.js',
17 | '/maps/api/',
18 | 'wpgmp_map',
19 | 'var map',
20 | ),
21 | 'enable_placeholder' => 1,
22 | 'placeholder_class' => 'wpgmp_map_container',
23 | 'enable_dependency' => '1',
24 | 'dependency' => [
25 | //'wait-for-this-script' => 'script-that-should-wait'
26 | '/maps/api/' => 'maps.js',
27 | 'maps.js' => 'infobox.js',
28 | 'infobox.js' => 'var map',
29 | ],
30 | );
31 |
32 | return $tags;
33 | }
34 |
35 | function cmplz_wp_google_map_pro_reload_after_consent() {
36 | ?>
37 |
49 | 'google-maps',
19 | 'category' => 'marketing',
20 | 'placeholder' => 'google-maps',
21 | 'urls' => array(
22 | 'maps.googleapis.com/maps/api/js',
23 | 'initMap',
24 | ),
25 | 'enable_placeholder' => '1',
26 | 'placeholder_class' => 'my-maps-class',
27 | 'enable_dependency' => '1',
28 | 'dependency' => [
29 | //'wait-for-this-script' => 'script-that-should-wait'
30 | 'initMap' => 'maps.googleapis.com',
31 | ],
32 | );
33 | return $tags;
34 | }
35 | add_filter( 'cmplz_known_script_tags', 'cmplz_custom_googlemaps_script' );
36 |
37 |
38 | /**
39 | * Trigger the DomContentLoaded event
40 | * This is not always needed, but in a plugin initializes on document load or ready, the map won't show on consent because this event already ran.
41 | * This will re-trigger that.
42 | *
43 | */
44 |
45 | function cmplz_custom_maps_initDomContentLoaded() {
46 | ob_start();
47 | ?>
48 |
54 | ', ''), '', $script);
57 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
58 | }
59 | add_action( 'wp_enqueue_scripts', 'cmplz_custom_maps_initDomContentLoaded',PHP_INT_MAX );
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/Google Maps/uncode-theme-google-maps.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
9 | 'category' => 'marketing',
10 | 'placeholder' => 'google-maps',
11 | 'urls' => array(
12 | 'uncode.gmaps.min.js',
13 | 'maps.googleapis.com'
14 | ),
15 | 'enable_placeholder' => '1',
16 | 'placeholder_class' => 'uncode-map-wrapper',
17 | 'enable_dependency' => '1',
18 | 'dependency' => [
19 | //'wait-for-this-script' => 'script-that-should-wait'
20 | 'maps.googleapis.com' => 'uncode.gmaps.min.js',
21 | ],
22 | );
23 | return $tags;
24 | }
25 |
26 |
27 | add_filter( 'cmplz_known_script_tags', 'cmplz_uncode_googlemaps_script' );
28 |
29 | /**
30 | * Trigger the DomContentLoaded event
31 | * This is not always needed, but in a plugin initializes on document load or ready, the map won't show on consent because this event already ran.
32 | * This will re-trigger that.
33 | *
34 | */
35 |
36 | function cmplz_custom_maps_initDomContentLoaded() {
37 | ob_start();
38 | ?>
39 |
45 | ', ''), '', $script);
48 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
49 | }
50 | add_action( 'wp_enqueue_scripts', 'cmplz_custom_maps_initDomContentLoaded',PHP_INT_MAX );
51 |
52 |
53 | /**
54 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
55 | *
56 | * @param $services
57 | *
58 | * @return array
59 | */
60 |
61 | function cmplz_uncode_maps_detected_services( $services ) {
62 | if ( ! in_array( 'google-maps', $services ) ) {
63 | $services[] = 'google-maps';
64 | }
65 |
66 | return $services;
67 | }
68 | add_filter( 'cmplz_detected_services', 'cmplz_uncode_maps_detected_services' );
69 |
70 | ?>
71 |
--------------------------------------------------------------------------------
/Google Maps/webnus-modern-events-calendar.php:
--------------------------------------------------------------------------------
1 | 'google-maps',
13 | 'placeholder' => 'google-maps',
14 | 'category' => 'marketing',
15 | 'urls' => array(
16 | 'richmarker',
17 | 'function mec_init_gmap',
18 | 'maps.googleapis.com/maps/api/js',
19 | 'googlemap.js',
20 | ),
21 | 'enable_placeholder' => '1',
22 | 'placeholder_class' => 'mec-googlemap-details',
23 | 'enable_dependency' => '1',
24 | 'dependency' => [
25 | //'wait-for-this-script' => 'script-that-should-wait'
26 | 'maps.googleapis.com/maps/api/js' => 'googlemap.js',
27 | 'googlemap.js' => 'richmarker',
28 | 'richmarker' => 'function mec_init_gmap',
29 | ],
30 | );
31 | return $tags;
32 | }
33 | add_filter( 'cmplz_known_script_tags', 'cmplz_webnus_modern_events_googlemaps_script' );
34 |
35 | /* Trigger domContentLoaded event, not always needed
36 | function cmplz_custom_maps_initDomContentLoaded() {
37 | ob_start();
38 | ?>
39 |
45 | ', ''), '', $script);
48 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
49 | }
50 | add_action( 'wp_enqueue_scripts', 'cmplz_custom_maps_initDomContentLoaded',PHP_INT_MAX );
51 | */
52 |
53 | /**
54 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
55 | *
56 | * @param $services
57 | *
58 | * @return array
59 | */
60 | function cmplz_webnus_detected_services( $services ) {
61 | if ( ! in_array( 'google-maps', $services ) ) {
62 | $services[] = 'google-maps';
63 | }
64 |
65 | return $services;
66 | }
67 | add_filter( 'cmplz_detected_services', 'cmplz_webnus_detected_services' );
68 |
--------------------------------------------------------------------------------
/magnific-popups.php:
--------------------------------------------------------------------------------
1 | $total_match ) {
7 | $href = $matches[2][ $key ];
8 | $new = $total_match;
9 | if ( cmplz_use_placeholder( $href ) ) {
10 | $placeholder = cmplz_placeholder('youtube', $href );
11 | $new = COMPLIANZ::$cookie_blocker->add_class( $new, 'a', "cmplz-placeholder-element" );
12 | $new = COMPLIANZ::$cookie_blocker->add_data( $new, 'a', 'placeholder-image', $placeholder );
13 | }
14 | $new = str_replace('"'.$href.'"', '"#" data-href-cmplz="'.$href.'" ', $new);
15 | $output = str_replace($total_match, $new, $output);
16 | }
17 | }
18 |
19 | return $output;
20 | }
21 |
22 | function cmplz_magnific_popup_script() {
23 | ob_start();
24 | ?>
25 |
44 | ', ''), '', $script);
47 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
48 | }
49 | add_action( 'wp_enqueue_scripts', 'cmplz_magnific_popup_script',PHP_INT_MAX );
50 |
--------------------------------------------------------------------------------
/contact-form-7.php:
--------------------------------------------------------------------------------
1 | is_active() ) {
30 | $tags[] = array(
31 | 'name' => 'google-recaptcha',
32 | 'category' => 'marketing',
33 | 'placeholder' => 'google-recaptcha',
34 | 'urls' => array(
35 | 'recaptcha/api.js',
36 | 'grecaptcha',
37 | 'recaptcha.js',
38 | 'recaptcha/api',
39 | 'apis.google.com/js/platform.js',
40 | 'modules/recaptcha/script.js',
41 | ),
42 | 'enable_placeholder' => '1',
43 | 'placeholder_class' => 'recaptcha-invisible,g-recaptcha',
44 | 'enable_dependency' => '1',
45 | 'dependency' => [
46 | //'wait-for-this-script' => 'script-that-should-wait'
47 | 'recaptcha/api.js' => 'modules/recaptcha/script.js',
48 | ],
49 | );
50 | }
51 | }
52 | return $tags;
53 | }
54 |
55 | /**
56 | * Add some custom css for the placeholder
57 | */
58 |
59 | add_action( 'cmplz_banner_css', 'cmplz_recaptcha_custom_css' );
60 | function cmplz_recaptcha_custom_css() {
61 | ?>
62 | .cmplz-blocked-content-container.recaptcha-invisible,
63 | .cmplz-blocked-content-container.g-recaptcha {
64 | max-width: initial !important;
65 | height: 80px !important;
66 | margin-bottom: 20px;
67 | }
68 |
69 | @media only screen and (max-width: 400px) {
70 | .cmplz-blocked-content-container.recaptcha-invisible,
71 | .cmplz-blocked-content-container.g-recaptcha {
72 | height: 100px !important
73 | }
74 | }
75 |
76 | .cmplz-blocked-content-container.recaptcha-invisible .cmplz-blocked-content-notice,
77 | .cmplz-blocked-content-container.g-recaptcha .cmplz-blocked-content-notice {
78 | max-width: initial;
79 | padding: 7px;
80 | }
81 | iframes ) {
23 | $tags[] = array(
24 | 'name' => 'mappress',
25 | 'placeholder' => 'google-maps',
26 | 'urls' => array(
27 | 'mappress=embed',
28 | ),
29 | 'category' => 'marketing',
30 | 'iframe' => 1,
31 | );
32 | //@fixed: differentiate between google and leaflet engine.
33 | } elseif ( Mappress::$options->engine ==='google' ) {
34 | $tags[] = array(
35 | 'name' => 'mappress',
36 | 'category' => 'marketing',
37 | 'urls' => array(
38 | '/build/index_mappress',
39 | 'maps.googleapis.com',
40 | ),
41 | 'enable_placeholder' => 1,
42 | 'placeholder' => 'google-maps',
43 | 'placeholder_class' => 'mapp-wrapper',
44 | );
45 | } else {
46 | $tags[] = array(
47 | 'name' => 'mappress',
48 | 'category' => 'marketing',
49 | 'urls' => array(
50 | '/build/index_mappress',
51 | 'maps.googleapis.com',
52 | ),
53 | 'enable_placeholder' => 1,
54 | 'placeholder' => 'google-maps',
55 | 'placeholder_class' => 'mapp-wrapper',
56 | 'enable_dependency' => 1,
57 | 'dependency' => [
58 | 'maps.googleapis.com' => 'index_mappress',
59 | ],
60 | );
61 | }
62 | return $tags;
63 | }
64 |
65 | // Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
66 |
67 | //@fixed issue with not existing function name cmplz_detected_services vs cmplz_services
68 | static function cmplz_services( $services ) {
69 | if ( ! in_array( 'google-maps', $services ) )
70 | $services[] = 'google-maps';
71 | return $services;
72 | }
73 |
74 | // Whitelist the l10n script
75 | static function cmplz_whitelist($tags){
76 | $tags[] = 'var mappl10n';
77 | return $tags;
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/Google Maps/ultimate-add-ons-for-elementor.php:
--------------------------------------------------------------------------------
1 |
11 |
22 | ', ''), '', $script);
25 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
26 | }
27 | }
28 | add_action( 'wp_enqueue_scripts', 'cmplz_uafe_initDomContentLoaded', PHP_INT_MAX );
29 |
30 | add_filter( 'cmplz_known_script_tags', 'cmplz_uafe_script' );
31 | function cmplz_uafe_script( $tags ) {
32 |
33 | $tags[] = 'uael-google-map.js';
34 | $tags[] = 'uael-google-map.js';
35 | $tags[] = 'maps.googleapis.com';
36 |
37 | return $tags;
38 | }
39 |
40 | /**
41 | * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
42 | *
43 | * @param $services
44 | *
45 | * @return array
46 | */
47 |
48 | function cmplz_uafe_detected_services( $services ) {
49 | if ( ! in_array( 'google-maps', $services ) ) {
50 | $services[] = 'google-maps';
51 | }
52 |
53 | return $services;
54 | }
55 |
56 | add_filter( 'cmplz_detected_services', 'cmplz_uafe_detected_services' );
57 |
58 |
59 | /**
60 | * Add placeholder for google maps
61 | *
62 | * @param $tags
63 | *
64 | * @return mixed
65 | */
66 |
67 | function cmplz_uafe_placeholder( $tags ) {
68 | $tags['google-maps'][] = 'uael-google-map-wrap';
69 |
70 | return $tags;
71 | }
72 |
73 | add_filter( 'cmplz_placeholder_markers', 'cmplz_uafe_placeholder' );
74 |
75 |
76 | /**
77 | * Conditionally add the dependency from the plugin core file to the api files
78 | */
79 |
80 | add_filter( 'cmplz_dependencies', 'cmplz_uafe_dependencies' );
81 | function cmplz_uafe_dependencies( $tags ) {
82 |
83 | $tags['maps.googleapis.com'] = 'uael-google-map.js';
84 |
85 | return $tags;
86 | }
87 |
--------------------------------------------------------------------------------
/show_denied_banner_after_period.php:
--------------------------------------------------------------------------------
1 |
4 |
57 | ', ''), '', $script);
60 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
61 | }
62 | add_action( 'wp_enqueue_scripts', 'cmplz_set_denied_time_cookie', PHP_INT_MAX );
--------------------------------------------------------------------------------
/Cookies/clear-cookies-on-revoke.php:
--------------------------------------------------------------------------------
1 | 6.0
5 | */
6 | function cmplz_clear_cookies_on_revoke() {
7 | ?>
8 |
59 | {
29 | if (e.target.closest('.cmplz-save-preferences')) {
30 | let rlx_enabled = document.querySelector('input.cmplz-rlx').checked;
31 | if (rlx_enabled) {
32 | cmplz_enable_rolex();
33 | } else {
34 | cmplz_revoke_rolex();
35 | }
36 | }
37 | //accept all.
38 | if (e.target.closest('.cmplz-accept')) {
39 | cmplz_enable_rolex();
40 | }
41 | });
42 |
43 | document.addEventListener("cmplz_fire_categories", function (e) {
44 | if ( cmplz_get_cookie('rlx') === 'allow' ) {
45 | cmplz_set_cookie('rlx', 'allow');
46 | cmplz_enable_rolex();
47 | }
48 | });
49 |
50 | document.addEventListener("cmplz_revoke", function (e) {
51 | cmplz_revoke_rolex();
52 | });
53 |
54 | document.addEventListener("cmplz_before_cookiebanner", function(e) {
55 | if ( cmplz_get_cookie('rlx') === 'allow'){
56 | console.log("#1");
57 | cmplz_enable_rolex();
58 | } else {
59 | console.log("#2");
60 |
61 | cmplz_revoke_rolex();
62 | }
63 | });
64 |
65 | function cmplz_enable_rolex(){
66 | if ( cmplz_rolex_enabled ) return;
67 | console.log("enable rolex consent");
68 | document.querySelector('input.cmplz-rlx').checked = true;
69 | cmplz_set_cookie('rlx', 'allow');
70 | cmplz_set_rlx_cookie(true);
71 | cmplz_enable_category('cmplz_rlx', false);
72 |
73 | if ( typeof _satellite === 'object') {
74 | _satellite.setVar("Analyticsconsent","true");
75 | _satellite.track("PageView");
76 | }
77 |
78 | let rlxCorner = document.getElementById("rlx-corner");
79 | if ( rlxCorner ) {
80 | rlxCorner.contentWindow.postMessage("consentTrue","https://corners.rolex.com");
81 | rlxCorner.contentWindow.postMessage("consentValidation","https://corners.rolex.com");
82 | }
83 | cmplz_rolex_enabled = true;
84 | }
85 |
86 | function cmplz_revoke_rolex(){
87 | console.log("revoke rolex consent");
88 | cmplz_set_cookie('rlx', 'deny');
89 | if ( typeof _satellite === 'object') {
90 | _satellite.setVar("Analyticsconsent","false");
91 | }
92 | cmplz_set_rlx_cookie(false);
93 | cmplz_rolex_enabled = false;
94 | }
95 |
96 | /**
97 | * Handle revoke
98 | */
99 | document.addEventListener("cmplz_revoke", function(e) {
100 | cmplz_revoke_rolex();
101 | });
102 |
--------------------------------------------------------------------------------
/Google Maps/facet-wp.php:
--------------------------------------------------------------------------------
1 | 'FacetWP',
23 | 'category' => 'marketing',
24 | 'urls' => array(
25 | 'maps.googleapis.com',
26 | 'facetwp/assets/js/dist/front.min.js',
27 | 'facetwp-map-facet/assets/js/front.js',
28 | ),
29 | 'enable_placeholder' => '1',
30 | 'placeholder' => 'google-maps',
31 | 'placeholder_class' => 'custom-css-class-for-embed-google-map',
32 | 'enable_dependency' => '1',
33 | 'dependency' => [
34 | //'wait-for-this-script' => 'script-that-should-wait'. This should reflect the order in which it should load.
35 | 'maps.googleapis.com' => $wait_for,
36 | ],
37 | );
38 |
39 | return $tags;
40 | }
41 | add_filter( 'cmplz_known_script_tags', 'cmplz_facetwp_script' );
42 | /**
43 | * Re Initialize Map
44 | *
45 | */
46 |
47 | function cmplz_facetwp_map_initDomContentLoaded() {
48 | ob_start();
49 | ?>
50 |
113 | ', ''), '', $script);
116 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
117 | }
118 | add_action( 'wp_enqueue_scripts', 'cmplz_facetwp_map_initDomContentLoaded',PHP_INT_MAX );
119 |
120 |
121 |
--------------------------------------------------------------------------------
/social-media-category.php:
--------------------------------------------------------------------------------
1 | /is';
4 | ob_start();
5 | ?>
6 |
7 |
8 |
19 |
20 |
21 |
22 |
23 | // Social Media descriptive text
24 |
26 |
27 |
28 |
29 |
44 |
101 | ', ''), '', $script);
104 | wp_add_inline_script( 'cmplz-cookiebanner', $script );
105 | }
106 | add_action( 'wp_enqueue_scripts', 'cmplz_social_media_script',PHP_INT_MAX );
107 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/Ace & Tate/banner.php:
--------------------------------------------------------------------------------
1 |
33 |
34 |
35 | @media (min-width: 426px) {
36 | .cmplz-cookiebanner {
37 | width:426px;
38 | }
39 | }
40 | .cmplz-cookiebanner {
41 | filter: drop-shadow(rgba(0, 0, 0, 0.05) 0px 0px 15px);
42 | max-width:unset!important;
43 | bottom: 1em;
44 | }
45 |
46 |
47 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
48 | display: flex;
49 | justify-content: space-between;
50 | }
51 |
52 | .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
53 | .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
54 | background: white;
55 | text-decoration:underline;
56 | border:none;
57 | }
58 |
59 | .cmplz-categories-visible .cmplz-message,
60 | .cmplz-categories-visible .cmplz-title,
61 | .cmplz-categories-visible .cmplz-header
62 | {
63 | display: none!important;
64 | }
65 |
66 | .cmplz-categories-visible .cmplz-message-title {
67 | display: block!important;
68 | }
69 |
70 | .cmplz-message-title {
71 | display: none;
72 | }
73 |
74 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
75 | grid-template-columns: 1fr auto 0px;
76 | }
77 |
78 | .cmplz-cookiebanner .cmplz-title:before,
79 | #cmplz-manage-consent .cmplz-manage-consent:before {
80 | content: "🍪";
81 | margin-right: 10px;
82 | }
83 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-category-title {
84 | font-weight:600;
85 | }
86 |
87 | .cmplz-cookiebanner a {
88 | cursor:pointer;
89 | text-decoration:underline;
90 | }
91 |
92 | .cmplz-cookiebanner .cmplz-header .cmplz-title {
93 | display: block;
94 | }
95 |
96 | .cmplz-cookiebanner .cmplz-links .cmplz-link {
97 | display:none;
98 | }
99 |
100 | details.cmplz-category.cmplz-functional {
101 | border-left: 2px solid green;
102 | opacity: 0.5;
103 | }
104 |
105 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description, .cmplz-category-title {
106 | font-size: 18px!important;
107 | background: white;
108 | }
109 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description {
110 | border: 1px solid #eee;
111 | border-top: none;
112 | }
113 |
114 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
115 | border: 1px solid #eee;
116 | background: white;
117 | border-bottom:none;
118 | }
119 |
120 | .cmplz-cookiebanner .cmplz-header {
121 | display:flex;
122 | }
123 |
124 | .cmplz-cookiebanner .cmplz-body {
125 | line-height: 28px;
126 | font-weight:300;
127 | max-height: 67px;
128 | overflow-y:hidden;
129 | transition: max-height 0.15s ease-out;
130 | }
131 | .cmplz-categories-visible > .cmplz-body {
132 | line-height: 28px;
133 | transition: max-height 1.15s ease-in;
134 | font-weight:300;
135 | max-height: 1000px;
136 | z-index:99;
137 | }
138 |
139 | .cmplz-cookiebanner:hover > .cmplz-body {
140 | line-height: 28px;
141 | transition: max-height 1.15s ease-in;
142 | font-weight:300;
143 | max-height: 1000px;
144 | z-index:99;
145 | }
146 |
147 | .cmplz-cookiebanner .cmplz-body{overflow-y:hidden;}
148 | .cmplz-cookiebanner .cmplz-links {display:none;}
149 | .cmplz-custom-border {}
150 | .cmplz-cookiebanner .cmplz-buttons {
151 | display: flex;
152 | gap: var(--cmplz_banner_margin);
153 | flex-direction: row-reverse;
154 | }
155 |
156 | ID );
170 | $banner->save();
171 | }
172 | }
173 | }
174 | add_action('init', 'regenerate_banner');
175 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/Bottom to Center/banner.php:
--------------------------------------------------------------------------------
1 |
32 |
33 | @media (min-width: 1024px) {
34 | .cmplz-cookiebanner {
35 | margin: 10px;
36 | width: calc(100% - 20px);
37 | }
38 | }
39 |
40 | @media (min-width: 480px) {
41 | .cmplz-cookiebanner {
42 | display:flex;
43 | }
44 | }
45 |
46 | @media (max-width: 1290px) {
47 | .cmplz-cookiebanner .cmplz-buttons {
48 | display: grid;
49 | }
50 | }
51 |
52 | @media (max-width: 1290px) {
53 | .cmplz-categories-visible .cmplz-buttons {
54 | display: flex;
55 | }
56 | .cmplz-cookiebanner {
57 | }
58 | }
59 |
60 | @media (max-width: 480px) {
61 | .cmplz-cookiebanner .cmplz-buttons {
62 | display: grid;
63 | }
64 | .cmplz-cookiebanner {
65 | display: grid;
66 | }
67 | }
68 |
69 | /* cmplz-categories-visible */
70 |
71 | .cmplz-custom-title, .cmplz-custom-text {
72 | color:#043959;
73 | font-family:inherit;
74 | }
75 |
76 | .cmplz-custom-title {
77 | font-size:18px;
78 | font-weight:600;
79 | }
80 |
81 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
82 | padding: 0 10px!important;
83 | }
84 |
85 | .cmplz-categories .cmplz-category {
86 | background: white!important;
87 | border: 1px solid #eff3f7;
88 | }
89 |
90 | .cmplz-custom-text {
91 | font-size: 14px;
92 | margin: 20px 0;
93 | }
94 |
95 | .cmplz-categories-visible .cmplz-btn {
96 | min-width:unset!important;
97 | }
98 | button.cmplz-btn {
99 | font-size: 14px!important;
100 | font-family: inherit;
101 | }
102 | .cmplz-categories-visible .cmplz-message {
103 | display:none;
104 | }
105 |
106 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description {
107 | padding: 0px 10px 0px 10px!important;
108 | }
109 | .cmplz-cookiebanner .cmplz-categories .cmplz-category {
110 | padding: 5px;
111 | }
112 |
113 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
114 | grid-template-columns: 1fr auto 0px!important;
115 | }
116 |
117 | .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-category-title {
118 | font-size: 18px;
119 | }
120 |
121 | .cmplz-cookiebanner.cmplz-categories-visible .cmplz-body > div {
122 | width: 100%;
123 | }
124 |
125 | .cmplz-cookiebanner .cmplz-divider, .cmplz-cookiebanner .cmplz-header,
126 | .cmplz-manage-third-parties, .cmplz-close, .cmplz-title, .cmplz-logo
127 | {
128 | display:none;
129 | }
130 |
131 | .cmplz-custom-message {
132 | display:flex;
133 | flex-direction: column;
134 | align-content: flex-start;
135 | }
136 |
137 | .cmplz-categories-visible {
138 | left:50%!important;
139 | top:50%!important;
140 | transform: translate(-50%, -50%)!IMPORTANT;
141 | position:absolute!important;
142 | width:580px!important;
143 | flex-direction: column;
144 | height: fit-content;
145 | }
146 |
147 | .cmplz-cookiebanner .cmplz-categories-visible .cmplz-header a.cmplz-close,
148 | .cmplz-categories-visible .cmplz-header .cmplz-logo,
149 | .cmplz-categories-visible .cmplz-header .cmplz-title,
150 | {
151 | display:unset!important;
152 | }
153 |
154 | .cmplz-cookiebanner {
155 | box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
156 | }
157 |
158 | .cmplz-categories-visible {
159 | opacity: 0;
160 | animation: opacityOn 1s normal forwards;
161 | animation-timing-function: ease-in;
162 | animation-delay: 0s;
163 | }
164 |
165 | @keyframes opacityOn {
166 | 0% {
167 | opacity: 0.2;
168 | }
169 | 25% {
170 | opacity: 0.4;
171 | }
172 | 50% {
173 | opacity: 0.6;
174 | }
175 | 75% {
176 | opacity: 0.9;
177 | }
178 | 100% {
179 | opacity: 1;
180 | }
181 | }
182 |
183 | .cmplz-buttons {
184 | flex-direction:row-reverse!important;
185 | border:none;
186 | border-radius:0px;
187 | }
188 |
189 | ID );
203 | $banner->save();
204 | }
205 | }
206 | }
207 | add_action('init', 'regenerate_banner');
208 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/Ace & Tate/cookiebanner/cookiebanner.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
13 |
14 |
15 |
16 |
{message_{consent_type}}
17 |
18 |
19 |
20 |
21 |
22 |
39 |
40 |
41 | {functional_text}
42 |
43 |
44 |
45 |
46 |
47 |
59 |
60 |
61 | {preferences_text}
62 |
63 |
64 |
65 |
66 |
67 |
79 |
80 |
81 | {statistics_text}
82 | {statistics_text_anonymous}
83 |
84 |
85 |
86 |
87 |
99 |
100 |
101 | {marketing_text}
102 |
103 |
104 |
105 |
106 |
107 |
108 |
115 |
116 |
117 |
118 |
125 |
126 |
132 |
133 |
--------------------------------------------------------------------------------
/Cookie Banner HTML/cookiebanner.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
15 |
16 |
17 |
18 |
{message_{consent_type}}
19 |
20 |
21 |
22 |
23 |
40 |
41 |
42 | {functional_text}
43 |
44 |
45 |
46 |
47 |
48 |
61 |
62 |
63 | {preferences_text}
64 |
65 |
66 |
67 |
68 |
69 |
82 |
83 |
84 | {statistics_text}
85 | {statistics_text_anonymous}
86 |
87 |
88 |
89 |
90 |
103 |
104 |
105 | {marketing_text}
106 |
107 |
108 |
109 |
110 |
111 |
112 |
119 |
120 |
121 |
122 |
130 |
131 |
137 |
--------------------------------------------------------------------------------
/Cookie Banner HTML/cookiebanner-a11y.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
15 |
16 |
17 |
18 |
{message_{consent_type}}
19 |
20 |
21 |
22 |
23 |
40 |
41 |
42 | {functional_text}
43 |
44 |
45 |
46 |
47 |
48 |
61 |
62 |
63 | {preferences_text}
64 |
65 |
66 |
67 |
68 |
69 |
82 |
83 |
84 | {statistics_text}
85 | {statistics_text_anonymous}
86 |
87 |
88 |
89 |
90 |
103 |
104 |
105 | {marketing_text}
106 |
107 |
108 |
109 |
110 |
111 |
112 |
119 |
120 |
121 |
122 |
130 |
131 |
137 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/Bottom to Center/cookiebanner/cookiebanner.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
15 |
16 |
17 |
18 |
{message_{consent_type}}
19 |
20 |
21 |
22 |
Give permission or set your own choice
23 |
24 |
Your consent applies to this media and you can change it again through your privacy settings on our website. Read more in our {title}
25 | and {title}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
49 |
50 |
51 | {functional_text}
52 |
53 |
54 |
55 |
56 |
57 |
70 |
71 |
72 | {preferences_text}
73 |
74 |
75 |
76 |
77 |
78 |
91 |
92 |
93 | {statistics_text}
94 | {statistics_text_anonymous}
95 |
96 |
97 |
98 |
99 |
112 |
113 |
114 | {marketing_text}
115 |
116 |
117 |
118 |
119 |
120 |
121 |
128 |
129 |
130 |
131 |
139 |
140 |
--------------------------------------------------------------------------------
/Custom Cookie Banners/Statistics Category Always Active/cookiebanner/cookiebanner.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
15 |
16 |
17 |
18 |
{message_{consent_type}}
19 |
20 |
21 |
22 |
23 |
44 |
45 |
46 | {functional_text}
47 |
48 |
49 |
50 |
51 |
52 |
69 |
70 |
71 | {preferences_text}
72 |
73 |
74 |
75 |
76 |
77 |
97 |
98 |
99 | {statistics_text}
100 | {statistics_text_anonymous}
101 |
102 |
103 |
104 |
105 |
122 |
123 |
124 | {marketing_text}
125 |
126 |
127 |
128 |
129 |
130 |
131 |
138 |
139 |
140 |
141 |
149 |
150 |
156 |
157 |
--------------------------------------------------------------------------------
/elementor-background-video.php:
--------------------------------------------------------------------------------
1 |
16 |
130 | ', ''), '', $script);
133 | wp_add_inline_script( 'cmplz-cookiebanner', $script);
134 | }
135 | }
136 | add_action( 'wp_enqueue_scripts', 'cmplz_elementor_backgroundvideo',PHP_INT_MAX );
137 |
138 | /**
139 | * Filter cookie blocker output
140 | */
141 |
142 | function cmplz_elementor_cookieblocker_backgroundvideo( $output ){
143 |
144 | if ( cmplz_uses_thirdparty('youtube') ) {
145 | /**
146 | * Video background
147 | */
148 | $iframe_pattern = '/ $total_match ) {
151 | $placeholder = '';
152 | if ( isset($matches[1][$key]) && cmplz_use_placeholder('youtube') ) {
153 | $youtube_url = $matches[1][$key];
154 | $placeholder = 'data-placeholder-image="'.cmplz_placeholder( false, stripcslashes($youtube_url) ).'" ';
155 | }
156 |
157 | $new_match = str_replace('data-settings', $placeholder.' data-category="marketing" data-service="youtube" data-cmplz-elementor-settings', $total_match);
158 | $new_match = str_replace('data-widget_type', 'data-cmplz_elementor_widget_type', $new_match);
159 | $new_match = str_replace('class="', 'class="cmplz-elementor-video_background ', $new_match);
160 | $output = str_replace($total_match, $new_match, $output);
161 | }
162 | }
163 | }
164 |
165 | if ( cmplz_uses_thirdparty('vimeo') ) {
166 | /**
167 | * Video background
168 | */
169 | $iframe_pattern = '/ $total_match ) {
172 | $placeholder = '';
173 | if ( isset($matches[1][$key]) && cmplz_use_placeholder('vimeo') ) {
174 | $url = $matches[1][$key];
175 | $placeholder = 'data-placeholder-image="'.cmplz_placeholder( false, stripcslashes($url) ).'" ';
176 | }
177 | $new_match = str_replace('data-settings', $placeholder.' data-category="marketing" data-service="vimeo" data-cmplz-elementor-settings', $total_match);
178 | $new_match = str_replace('data-widget_type', 'data-cmplz_elementor_widget_type', $new_match);
179 | $new_match = str_replace('class="', 'class="cmplz-elementor-video_background ', $new_match);
180 | $output = str_replace($total_match, $new_match, $output);
181 | }
182 | }
183 | }
184 |
185 | return $output;
186 | }
187 | add_filter('cmplz_cookie_blocker_output', 'cmplz_elementor_cookieblocker_backgroundvideo');
188 |
--------------------------------------------------------------------------------
/square-text-boxes-template.php:
--------------------------------------------------------------------------------
1 |
11 |
98 |
99 |
106 |
107 |
108 |
109 |
{message_{consent_type}}
110 |
111 |
112 |
113 |
114 |
133 |
134 |
135 | {functional_text}
136 |
137 |
138 |
139 |
140 |
156 |
157 |
158 | {preferences_text}
159 |
160 |
161 |
162 |
163 |
164 |
180 |
181 |
182 | {statistics_text}
183 | {statistics_text_anonymous}
184 |
185 |
186 |
187 |
188 |
189 |
205 |
206 |
207 | {marketing_text}
208 |
209 |
210 |
211 |
212 |
213 |
214 |
221 |
222 |
223 |
224 |
232 |
233 |
239 |
240 |
241 |
242 |
--------------------------------------------------------------------------------