Cookiebot | GDPR Compliant Cookie Consent and Notice - Version 3.0.1

Version Description

Download this release

Release Info

Developer cookiebot
Plugin Icon 128x128 Cookiebot | GDPR Compliant Cookie Consent and Notice
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

addons/controller/addons/hubspot-leadin/hubspot-leadin.php CHANGED
@@ -76,7 +76,13 @@ class Hubspot_Leadin implements Cookiebot_Addons_Interface {
76
  public function cookiebot_addon_hubspot_tracking_code() {
77
 
78
  // block the script untill the consent is given
79
- $this->script_loader_tag->add_tag( 'leadin-scriptloader-js', $this->get_cookie_types() );
 
 
 
 
 
 
80
  }
81
 
82
  /**
76
  public function cookiebot_addon_hubspot_tracking_code() {
77
 
78
  // block the script untill the consent is given
79
+
80
+ if(version_compare(LEADIN_PLUGIN_VERSION,'7.10.0','>=')) {
81
+ $this->script_loader_tag->add_tag( 'leadin-script-loader-js', $this->get_cookie_types() );
82
+ }
83
+ else {
84
+ $this->script_loader_tag->add_tag( 'leadin-scriptloader-js', $this->get_cookie_types() );
85
+ }
86
  }
87
 
88
  /**
addons/cookiebot-addons-init.php CHANGED
@@ -23,7 +23,7 @@ define( 'COOKIEBOT_ADDONS_BASE_NAME', dirname( plugin_basename( __FILE__ ) ) );
23
  /**
24
  * Same version as the CookiebotWP
25
  */
26
- define( 'COOKIEBOT_ADDONS_VERSION', '3.0.0' );
27
 
28
  /**
29
  * Register autoloader to load files/classes dynamically
23
  /**
24
  * Same version as the CookiebotWP
25
  */
26
+ define( 'COOKIEBOT_ADDONS_VERSION', '3.0.1' );
27
 
28
  /**
29
  * Register autoloader to load files/classes dynamically
addons/tests/integration/addons/test-caos-host-analyticsjs-local.php CHANGED
@@ -15,8 +15,8 @@ class Test_Caos_Host_Analyticsjs_Local extends \WP_UnitTestCase {
15
  $content = file_get_contents( 'http://plugins.svn.wordpress.org/host-analyticsjs-local/trunk/host-analyticsjs-local.php' );
16
 
17
  $this->assertNotFalse( strpos( $content,
18
- 'add_action(\'wp_footer\', \'caos_analytics_render_tracking_code\', CAOS_ANALYTICS_ENQUEUE_ORDER);' ) );
19
  $this->assertNotFalse( strpos( $content,
20
- 'add_action(\'wp_head\', \'caos_analytics_render_tracking_code\', CAOS_ANALYTICS_ENQUEUE_ORDER);' ) );
21
  }
22
  }
15
  $content = file_get_contents( 'http://plugins.svn.wordpress.org/host-analyticsjs-local/trunk/host-analyticsjs-local.php' );
16
 
17
  $this->assertNotFalse( strpos( $content,
18
+ 'add_action(\'wp_footer\', \'caos_analytics_render_tracking_code\', CAOS_OPT_ENQUEUE_ORDER);' ) );
19
  $this->assertNotFalse( strpos( $content,
20
+ 'add_action(\'wp_head\', \'caos_analytics_render_tracking_code\', CAOS_OPT_ENQUEUE_ORDER);' ) );
21
  }
22
  }
addons/tests/integration/addons/test-facebook-for-woocommerce.php CHANGED
@@ -21,17 +21,27 @@ class Test_Facebook_For_Woocommerce extends \WP_UnitTestCase {
21
  * @covers \cookiebot_addons\controller\addons\facebook_for_woocommerce\Facebook_For_Woocommerce
22
  */
23
  public function test_facebook_for_woocommerce_hooks() {
 
24
  $content = file_get_contents( 'https://raw.githubusercontent.com/facebookincubator/facebook-for-woocommerce/master/facebook-commerce-events-tracker.php' );
25
 
26
- $this->assertNotFalse( strpos( $content, 'add_action(\'wp_head\', array($this, \'apply_filters\'));' ) );
27
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_after_single_product' ) );
28
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_after_shop_loop' ) );
29
- $this->assertNotFalse( strpos( $content, 'add_action(\'pre_get_posts' ) );
30
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_after_cart' ) );
31
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_add_to_cart' ) );
32
- $this->assertNotFalse( strpos( $content, 'add_action(\'wc_ajax_fb_inject_add_to_cart_event' ) );
33
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_after_checkout_form' ) );
34
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_thankyou' ) );
35
- $this->assertNotFalse( strpos( $content, 'add_action(\'woocommerce_payment_complete' ) );
 
 
 
 
 
 
 
 
 
36
  }
37
- }
21
  * @covers \cookiebot_addons\controller\addons\facebook_for_woocommerce\Facebook_For_Woocommerce
22
  */
23
  public function test_facebook_for_woocommerce_hooks() {
24
+
25
  $content = file_get_contents( 'https://raw.githubusercontent.com/facebookincubator/facebook-for-woocommerce/master/facebook-commerce-events-tracker.php' );
26
 
27
+ $this->assertNotFalse( strpos( $content, 'add_action( \'wp_head\', array( $this, \'apply_filters\' ) );' ) );
28
+ $this->assertNotFalse( strpos( $content, 'add_action(
29
+ \'woocommerce_after_single_product\',' ) );
30
+ $this->assertNotFalse( strpos( $content, 'add_action(
31
+ \'woocommerce_after_shop_loop\',' ) );
32
+ $this->assertNotFalse( strpos( $content, 'add_action(
33
+ \'pre_get_posts\',' ) );
34
+ $this->assertNotFalse( strpos( $content, 'add_action(
35
+ \'woocommerce_after_cart\',' ) );
36
+ $this->assertNotFalse( strpos( $content, 'add_action(
37
+ \'woocommerce_add_to_cart\',' ) );
38
+ $this->assertNotFalse( strpos( $content, 'add_action(
39
+ \'wc_ajax_fb_inject_add_to_cart_event\',' ) );
40
+ $this->assertNotFalse( strpos( $content, 'add_action(
41
+ \'woocommerce_after_checkout_form\',' ) );
42
+ $this->assertNotFalse( strpos( $content, 'add_action(
43
+ \'woocommerce_thankyou\',' ) );
44
+ $this->assertNotFalse( strpos( $content, 'add_action(
45
+ \'woocommerce_payment_complete\',' ) );
46
  }
47
+ }
addons/tests/integration/addons/test-hubspot-leadin.php CHANGED
@@ -16,6 +16,6 @@ class Test_Hubspot_Leadin extends \WP_UnitTestCase {
16
  public function test_hook() {
17
  $content = file_get_contents( 'http://plugins.svn.wordpress.org/leadin/trunk/inc/class-leadin.php' );
18
 
19
- $this->assertNotFalse( strpos( $content, '$embedId = \'leadin-scriptloader-js\';') );
20
  }
21
- }
16
  public function test_hook() {
17
  $content = file_get_contents( 'http://plugins.svn.wordpress.org/leadin/trunk/inc/class-leadin.php' );
18
 
19
+ $this->assertNotFalse( strpos( $content, "const TRACKING_CODE_ID = 'leadin-script-loader-js';") );
20
  }
21
+ }
cookiebot.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Cookiebot | GDPR Compliant Cookie Consent and Notice
4
  Plugin URI: https://cookiebot.com/
5
  Description: Cookiebot is a fully GDPR & ePrivacy compliant cookie consent solution supporting prior consent, cookie declaration, and documentation of consents. Easy to install, implement and configure.
6
  Author: Cybot A/S
7
- Version: 3.0.0
8
  Author URI: http://cookiebot.com
9
  Text Domain: cookiebot
10
  Domain Path: /langs
@@ -21,7 +21,7 @@ final class Cookiebot_WP {
21
  * @var string
22
  * @since 1.0.0
23
  */
24
- public $version = '3.0.0';
25
 
26
  /**
27
  * @var Cookiebot_WP The single instance of the class
@@ -432,6 +432,54 @@ final class Cookiebot_WP {
432
  </p>
433
  </td>
434
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  <tr valign="top">
436
  <th scope="row"><?php _e('Cookiebot Language','cookiebot'); ?></th>
437
  <td>
@@ -501,180 +549,162 @@ final class Cookiebot_WP {
501
 
502
  </td>
503
  </tr>
504
- <tr valign="top">
505
- <th scope="row">
506
- <?php _e('Cookie-blocking mode','cookiebot'); ?>
507
- </th>
508
- <td>
509
- <?php
510
- $cbm = get_option('cookiebot-cookie-blocking-mode','manual');
511
- if($is_ms && $network_cookie_blocking_mode != 'custom') {
512
- $cbm = $network_cookie_blocking_mode;
513
- }
514
- ?>
515
- <label>
516
- <input type="radio" name="cookiebot-cookie-blocking-mode" value="auto" <?php checked('auto', $cbm, true); ?> />
517
- <?php _e('Automatic','cookiebot'); ?>
518
- </label>
519
- &nbsp; &nbsp;
520
- <label>
521
- <input type="radio" name="cookiebot-cookie-blocking-mode" value="manual" <?php checked('manual',$cbm, true); ?> />
522
- <?php _e('Manual','cookiebot'); ?>
523
- </label>
524
- <p class="description">
525
- <?php _e('Should Cookiebot automatic block cookies by tagging known tags.','cookiebot') ?>
526
- </p>
527
- </td>
528
- </tr>
529
- <script>
530
- jQuery(document).ready(function($) {
531
- var cookieBlockingMode = '<?php echo $cbm; ?>';
532
- $( 'input[type=radio][name=cookiebot-cookie-blocking-mode]' ).on( 'change', function() {
533
- if(this.value == 'auto' && cookieBlockingMode != this.value ) {
534
- $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 );
535
- $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true );
536
- }
537
- if( this.value == 'manual' && cookieBlockingMode != this.value ) {
538
- $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 1 );
539
- $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', false );
540
- }
541
- cookieBlockingMode = this.value;
542
- });
543
- if( cookieBlockingMode == 'auto' ) {
544
- $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 );
545
- $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true );
546
- }
547
  });
548
- </script>
549
-
550
- <tr valign="top" id="cookiebot-setting-async">
551
- <th scope="row">
552
- <?php _e('Add async or defer attribute','cookiebot'); ?>
553
- <br /><?php _e('Consent banner script tag'); ?>
554
- </th>
555
- <td>
556
- <?php
557
- $cv = get_option('cookiebot-script-tag-uc-attribute','async');
558
- $disabled = false;
559
- if($is_ms && $network_scrip_tag_uc_attr != 'custom') {
560
- $disabled = true;
561
- $cv = $network_scrip_tag_uc_attr;
562
- }
563
- ?>
564
- <label>
565
- <input type="radio" name="cookiebot-script-tag-uc-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="" <?php checked('', $cv, true); ?> />
566
- <i>None</i>
567
- </label>
568
- &nbsp; &nbsp;
569
- <label>
570
- <input type="radio" name="cookiebot-script-tag-uc-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="async" <?php checked('async',$cv, true); ?> />
571
- async
572
- </label>
573
- &nbsp; &nbsp;
574
- <label>
575
- <input type="radio" name="cookiebot-script-tag-uc-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="defer" <?php checked('defer',$cv, true); ?> />
576
- defer
577
- </label>
578
- <p class="description">
579
- <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
580
- <?php _e('Add async or defer attribute to Cookiebot script tag. Default: async','cookiebot') ?>
581
- </p>
582
- </td>
583
- </tr>
584
- <tr valign="top">
585
- <th scope="row">
586
- <?php _e('Add async or defer attribute','cookiebot'); ?>
587
- <br /><?php _e('Cookie declaration script tag'); ?>
588
- </th>
589
- <td>
590
- <?php
591
- $cv = get_option('cookiebot-script-tag-cd-attribute','async');
592
- $disabled = false;
593
- if($is_ms && $network_scrip_tag_cd_attr != 'custom') {
594
- $disabled = true;
595
- $cv = $network_scrip_tag_cd_attr;
596
- }
597
- ?>
598
- <label>
599
- <input type="radio" name="cookiebot-script-tag-cd-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="" <?php checked('', $cv, true); ?> />
600
- <i>None</i>
601
- </label>
602
- &nbsp; &nbsp;
603
- <label>
604
- <input type="radio" name="cookiebot-script-tag-cd-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="async" <?php checked('async',$cv, true); ?> />
605
- async
606
- </label>
607
- &nbsp; &nbsp;
608
- <label>
609
- <input type="radio" name="cookiebot-script-tag-cd-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="defer" <?php checked('defer',$cv, true); ?> />
610
- defer
611
- </label>
612
- <p class="description">
613
- <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
614
- <?php _e('Add async or defer attribute to Cookiebot script tag. Default: async','cookiebot') ?>
615
- </p>
616
- </td>
617
- </tr>
618
- <?php
619
- if(!is_multisite()) {
620
- ?>
621
  <tr valign="top">
622
- <th scope="row"><?php _e('Auto-update Cookiebot','cookiebot'); ?></th>
 
 
 
623
  <td>
624
- <input type="checkbox" name="cookiebot-autoupdate" value="1" <?php checked(1,get_option('cookiebot-autoupdate',false), true); ?> />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
625
  <p class="description">
626
- <?php _e('Automatic update your Cookiebot plugin when new releases becomes available.','cookiebot') ?>
 
627
  </p>
628
  </td>
629
  </tr>
630
  <?php
631
- }
632
- ?>
633
- <tr valign="top" id="cookiebot-setting-hide-popup">
634
- <th scope="row"><?php _e('Hide Cookie Popup','cookiebot'); ?></th>
635
- <td>
636
- <?php
637
- $disabled = false;
638
- if($is_ms && get_site_option('cookiebot-nooutput',false)) {
639
- $disabled = true;
640
- echo '<input type="checkbox" checked disabled />';
641
- }
642
- else {
643
- ?>
644
- <input type="checkbox" name="cookiebot-nooutput" value="1" <?php checked(1,get_option('cookiebot-nooutput',false), true); ?> />
645
- <?php
646
- }
647
  ?>
648
- <p class="description">
649
- <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
650
- <b><?php _e('This checkbox will remove the cookie consent banner from your website. The <i>[cookie_declaration]</i> shortcode will still be available.','cookiebot') ?></b><br />
651
- <?php _e('If you are using Google Tag Manager (or equal), you need to add the Cookiebot script in your Tag Manager.','cookiebot') ?><br />
652
- <?php _e('<a href="https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment" target="_blank">See a detailed guide here</a>','cookiebot') ?>
653
- </p>
654
- </td>
655
- </tr>
656
- <tr valign="top">
657
- <th scope="row"><?php _e('Hide Cookie Popup in WP Admin','cookiebot'); ?></th>
658
- <td>
659
  <?php
660
- $disabled = false;
661
- if($is_ms && get_site_option('cookiebot-nooutput-admin',false)) {
662
- echo '<input type="checkbox" checked disabled />';
663
- $disabled = true;
664
- }
665
- else {
 
 
 
 
 
 
 
 
 
 
666
  ?>
667
- <input type="checkbox" name="cookiebot-nooutput-admin" value="1" <?php checked(1,get_option('cookiebot-nooutput-admin',false), true); ?> />
 
 
 
 
 
 
 
 
 
 
668
  <?php
669
- }
670
- ?>
671
- <p class="description">
672
- <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
673
- <b><?php _e('This checkbox will remove the cookie consent banner the Wordpress Admin area.','cookiebot') ?></b>
674
- </p>
675
- </td>
676
- </tr>
677
- </table>
 
 
 
 
 
 
 
 
 
 
678
  <?php submit_button(); ?>
679
  </form>
680
  </div>
4
  Plugin URI: https://cookiebot.com/
5
  Description: Cookiebot is a fully GDPR & ePrivacy compliant cookie consent solution supporting prior consent, cookie declaration, and documentation of consents. Easy to install, implement and configure.
6
  Author: Cybot A/S
7
+ Version: 3.0.1
8
  Author URI: http://cookiebot.com
9
  Text Domain: cookiebot
10
  Domain Path: /langs
21
  * @var string
22
  * @since 1.0.0
23
  */
24
+ public $version = '3.0.1';
25
 
26
  /**
27
  * @var Cookiebot_WP The single instance of the class
432
  </p>
433
  </td>
434
  </tr>
435
+ <tr valign="top">
436
+ <th scope="row">
437
+ <?php _e('Cookie-blocking mode','cookiebot'); ?>
438
+ </th>
439
+ <td>
440
+ <?php
441
+ $cbm = get_option('cookiebot-cookie-blocking-mode','manual');
442
+ if($is_ms && $network_cookie_blocking_mode != 'custom') {
443
+ $cbm = $network_cookie_blocking_mode;
444
+ }
445
+ ?>
446
+ <label>
447
+ <input type="radio" name="cookiebot-cookie-blocking-mode" value="auto" <?php checked('auto', $cbm, true); ?> />
448
+ <?php _e('Automatic','cookiebot'); ?>
449
+ </label>
450
+ &nbsp; &nbsp;
451
+ <label>
452
+ <input type="radio" name="cookiebot-cookie-blocking-mode" value="manual" <?php checked('manual',$cbm, true); ?> />
453
+ <?php _e('Manual','cookiebot'); ?>
454
+ </label>
455
+ <p class="description">
456
+ <?php _e('Automatic block cookies (except necessary) untill the user has given their consent.','cookiebot') ?>
457
+ <a href="https://support.cookiebot.com/hc/en-us/articles/360009063100-Automatic-Cookie-Blocking-How-does-it-work-" target="_blank">
458
+ <?php _e('Learn more','cookiebot'); ?>
459
+ </a>
460
+ </p>
461
+ <script>
462
+ jQuery(document).ready(function($) {
463
+ var cookieBlockingMode = '<?php echo $cbm; ?>';
464
+ $( 'input[type=radio][name=cookiebot-cookie-blocking-mode]' ).on( 'change', function() {
465
+ if(this.value == 'auto' && cookieBlockingMode != this.value ) {
466
+ $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 );
467
+ $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true );
468
+ }
469
+ if( this.value == 'manual' && cookieBlockingMode != this.value ) {
470
+ $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 1 );
471
+ $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', false );
472
+ }
473
+ cookieBlockingMode = this.value;
474
+ });
475
+ if( cookieBlockingMode == 'auto' ) {
476
+ $( '#cookiebot-setting-async, #cookiebot-setting-hide-popup' ).css( 'opacity', 0.4 );
477
+ $( 'input[type=radio][name=cookiebot-script-tag-uc-attribute], input[name=cookiebot-nooutput]' ).prop( 'disabled', true );
478
+ }
479
+ });
480
+ </script>
481
+ </td>
482
+ </tr>
483
  <tr valign="top">
484
  <th scope="row"><?php _e('Cookiebot Language','cookiebot'); ?></th>
485
  <td>
549
 
550
  </td>
551
  </tr>
552
+ </table>
553
+ <script>
554
+ jQuery(document).ready(function($) {
555
+ $('#advanced_settings_link').on('click',function(e) {
556
+ e.preventDefault();
557
+ $('#advanced_settings').slideToggle();
558
+ $('#advanced_settings_link').toggleClass('active');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
559
  });
560
+ });
561
+ </script>
562
+ <style type="text/css">
563
+ #advanced_settings_link {
564
+ cursor:pointer;
565
+ }
566
+ #advanced_settings_link::after {
567
+ content: "\f140";
568
+ font: normal 24px/1 dashicons;
569
+ position: relative;
570
+ top: 5px;
571
+ }
572
+ #advanced_settings_link.active::after {
573
+ content: "\f142";
574
+ }
575
+ </style>
576
+ <h3 id="advanced_settings_link"><?php _e('Advanced settings', 'cookiebot'); ?></h3>
577
+ <div id="advanced_settings" style="display:none;">
578
+ <table class="form-table">
579
+ <tr valign="top" id="cookiebot-setting-async">
580
+ <th scope="row">
581
+ <?php _e('Add async or defer attribute','cookiebot'); ?>
582
+ <br /><?php _e('Consent banner script tag'); ?>
583
+ </th>
584
+ <td>
585
+ <?php
586
+ $cv = get_option('cookiebot-script-tag-uc-attribute','async');
587
+ $disabled = false;
588
+ if($is_ms && $network_scrip_tag_uc_attr != 'custom') {
589
+ $disabled = true;
590
+ $cv = $network_scrip_tag_uc_attr;
591
+ }
592
+ ?>
593
+ <label>
594
+ <input type="radio" name="cookiebot-script-tag-uc-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="" <?php checked('', $cv, true); ?> />
595
+ <i>None</i>
596
+ </label>
597
+ &nbsp; &nbsp;
598
+ <label>
599
+ <input type="radio" name="cookiebot-script-tag-uc-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="async" <?php checked('async',$cv, true); ?> />
600
+ async
601
+ </label>
602
+ &nbsp; &nbsp;
603
+ <label>
604
+ <input type="radio" name="cookiebot-script-tag-uc-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="defer" <?php checked('defer',$cv, true); ?> />
605
+ defer
606
+ </label>
607
+ <p class="description">
608
+ <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
609
+ <?php _e('Add async or defer attribute to Cookiebot script tag. Default: async','cookiebot') ?>
610
+ </p>
611
+ </td>
612
+ </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
613
  <tr valign="top">
614
+ <th scope="row">
615
+ <?php _e('Add async or defer attribute','cookiebot'); ?>
616
+ <br /><?php _e('Cookie declaration script tag'); ?>
617
+ </th>
618
  <td>
619
+ <?php
620
+ $cv = get_option('cookiebot-script-tag-cd-attribute','async');
621
+ $disabled = false;
622
+ if($is_ms && $network_scrip_tag_cd_attr != 'custom') {
623
+ $disabled = true;
624
+ $cv = $network_scrip_tag_cd_attr;
625
+ }
626
+ ?>
627
+ <label>
628
+ <input type="radio" name="cookiebot-script-tag-cd-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="" <?php checked('', $cv, true); ?> />
629
+ <i>None</i>
630
+ </label>
631
+ &nbsp; &nbsp;
632
+ <label>
633
+ <input type="radio" name="cookiebot-script-tag-cd-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="async" <?php checked('async',$cv, true); ?> />
634
+ async
635
+ </label>
636
+ &nbsp; &nbsp;
637
+ <label>
638
+ <input type="radio" name="cookiebot-script-tag-cd-attribute"<?php echo ($disabled) ? ' disabled' : ''; ?> value="defer" <?php checked('defer',$cv, true); ?> />
639
+ defer
640
+ </label>
641
  <p class="description">
642
+ <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
643
+ <?php _e('Add async or defer attribute to Cookiebot script tag. Default: async','cookiebot') ?>
644
  </p>
645
  </td>
646
  </tr>
647
  <?php
648
+ if(!is_multisite()) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
649
  ?>
650
+ <tr valign="top">
651
+ <th scope="row"><?php _e('Auto-update Cookiebot','cookiebot'); ?></th>
652
+ <td>
653
+ <input type="checkbox" name="cookiebot-autoupdate" value="1" <?php checked(1,get_option('cookiebot-autoupdate',false), true); ?> />
654
+ <p class="description">
655
+ <?php _e('Automatic update your Cookiebot plugin when new releases becomes available.','cookiebot') ?>
656
+ </p>
657
+ </td>
658
+ </tr>
 
 
659
  <?php
660
+ }
661
+ ?>
662
+ <tr valign="top" id="cookiebot-setting-hide-popup">
663
+ <th scope="row"><?php _e('Hide Cookie Popup','cookiebot'); ?></th>
664
+ <td>
665
+ <?php
666
+ $disabled = false;
667
+ if($is_ms && get_site_option('cookiebot-nooutput',false)) {
668
+ $disabled = true;
669
+ echo '<input type="checkbox" checked disabled />';
670
+ }
671
+ else {
672
+ ?>
673
+ <input type="checkbox" name="cookiebot-nooutput" value="1" <?php checked(1,get_option('cookiebot-nooutput',false), true); ?> />
674
+ <?php
675
+ }
676
  ?>
677
+ <p class="description">
678
+ <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
679
+ <b><?php _e('This checkbox will remove the cookie consent banner from your website. The <i>[cookie_declaration]</i> shortcode will still be available.','cookiebot') ?></b><br />
680
+ <?php _e('If you are using Google Tag Manager (or equal), you need to add the Cookiebot script in your Tag Manager.','cookiebot') ?><br />
681
+ <?php _e('<a href="https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment" target="_blank">See a detailed guide here</a>','cookiebot') ?>
682
+ </p>
683
+ </td>
684
+ </tr>
685
+ <tr valign="top">
686
+ <th scope="row"><?php _e('Hide Cookie Popup in WP Admin','cookiebot'); ?></th>
687
+ <td>
688
  <?php
689
+ $disabled = false;
690
+ if($is_ms && get_site_option('cookiebot-nooutput-admin',false)) {
691
+ echo '<input type="checkbox" checked disabled />';
692
+ $disabled = true;
693
+ }
694
+ else {
695
+ ?>
696
+ <input type="checkbox" name="cookiebot-nooutput-admin" value="1" <?php checked(1,get_option('cookiebot-nooutput-admin',false), true); ?> />
697
+ <?php
698
+ }
699
+ ?>
700
+ <p class="description">
701
+ <?php if($disabled) { echo '<b>'._('Network setting applied. Please contact website administrator to change this setting.').'</b><br />'; } ?>
702
+ <b><?php _e('This checkbox will remove the cookie consent banner the Wordpress Admin area.','cookiebot') ?></b>
703
+ </p>
704
+ </td>
705
+ </tr>
706
+ </table>
707
+ </div>
708
  <?php submit_button(); ?>
709
  </form>
710
  </div>
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- # Cookiebot | GDPR Compliant Cookie Consent and Notice #
2
- * Contributors: cookiebot,phpgeekdk,aytac
3
  * Tags: cookie, compliance, eu, gdpr, europe, cookie consent, consent
4
  * Requires at least: 4.4
5
  * Tested up to: 5.2
6
- * Stable tag: 3.0.0
7
  * Requires PHP: 5.6
8
  * License: GPLv2 or later
9
 
@@ -164,6 +164,10 @@ Cookiebot works with GTM, however you need to enable the "Hide Cookie Popup" opt
164
 
165
  ## Changelog ##
166
 
 
 
 
 
167
  ### 3.0.0 - 2019-09-10 ###
168
  * Adding support for auto cookie blocking mode
169
 
1
+ # Cookiebot | GDPR Compliant Cookie Consent and Notice #
2
+ * Contributors: cookiebot,phpgeekdk,aytac,rvcybot,kh1987,bmlcybot
3
  * Tags: cookie, compliance, eu, gdpr, europe, cookie consent, consent
4
  * Requires at least: 4.4
5
  * Tested up to: 5.2
6
+ * Stable tag: 3.0.1
7
  * Requires PHP: 5.6
8
  * License: GPLv2 or later
9
 
164
 
165
  ## Changelog ##
166
 
167
+ ### 3.0.1 - 2019-09-17 ###
168
+ * Clean up setting page
169
+ * Fixing failing addons after plugin updates
170
+
171
  ### 3.0.0 - 2019-09-10 ###
172
  * Adding support for auto cookie blocking mode
173