Cookie Law / GDPR Info - Version 2.0.1

Version Description

  • Enhancement - New shortcode [cookie_accept_all] to add accept all button to the banner
  • Enhancement - MonsterInsights integration
  • Enhancement - New filter wt_cli_set_secure_cookies to set plugin cookies as secure
  • Fix - Site map issue with cookie category
  • Fix - Cookie categories are not ordered properly in secondary languages
Download this release

Release Info

Developer webtoffee
Plugin Icon Cookie Law / GDPR Info
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

admin/modules/cookie-scaner/cookie-scaner.php CHANGED
@@ -64,11 +64,11 @@ class Cookie_Law_Info_Cookie_Scaner extends Cookie_Law_Info_Cookieyes {
64
  );
65
  add_action( 'admin_menu', array( $this, 'add_admin_pages' ), 5 );
66
  add_action( 'wt_cli_cookie_scanner_body', array( $this, 'scanner_notices' ) );
67
- // add_action( 'wt_cli_cookie_scanner_results', array( $this, 'display_scan_results' ) );
68
  add_action( 'init', array( $this, 'init' ) );
69
  add_action( 'admin_init', array( $this, 'export_result' ) );
70
  add_filter( 'wt_cli_cookie_scan_status', array( $this, 'check_scan_status' ) );
71
  register_activation_hook( CLI_PLUGIN_FILENAME, array( $this, 'activator' ) );
 
72
  add_action(
73
  'rest_api_init',
74
  function () {
@@ -151,7 +151,7 @@ class Cookie_Law_Info_Cookie_Scaner extends Cookie_Law_Info_Cookieyes {
151
  `current_action` VARCHAR(50) NOT NULL,
152
  `current_offset` INT NOT NULL DEFAULT '0',
153
  PRIMARY KEY(`id_cli_cookie_scan`)
154
- );";
155
 
156
  dbDelta( $create_table_sql );
157
  }
@@ -167,7 +167,7 @@ class Cookie_Law_Info_Cookie_Scaner extends Cookie_Law_Info_Cookieyes {
167
  `scanned` INT NOT NULL DEFAULT '0',
168
  `total_cookies` INT NOT NULL DEFAULT '0',
169
  PRIMARY KEY(`id_cli_cookie_scan_url`)
170
- );";
171
 
172
  dbDelta( $create_table_sql );
173
  }
@@ -683,7 +683,7 @@ class Cookie_Law_Info_Cookie_Scaner extends Cookie_Law_Info_Cookieyes {
683
  */
684
  public function get_table_missing_notice() {
685
 
686
- $message = __( 'To scan cookies following tables should be present on your database, please check if tables do exist on your database.', 'cookie-law-info' );
687
  $message .= '<ul>';
688
  $message .= '<li>{$wpdb->prefix}cli_cookie_scan</li>';
689
  $message .= '<li>{$wpdb->prefix}cli_cookie_scan_url</li>';
64
  );
65
  add_action( 'admin_menu', array( $this, 'add_admin_pages' ), 5 );
66
  add_action( 'wt_cli_cookie_scanner_body', array( $this, 'scanner_notices' ) );
 
67
  add_action( 'init', array( $this, 'init' ) );
68
  add_action( 'admin_init', array( $this, 'export_result' ) );
69
  add_filter( 'wt_cli_cookie_scan_status', array( $this, 'check_scan_status' ) );
70
  register_activation_hook( CLI_PLUGIN_FILENAME, array( $this, 'activator' ) );
71
+ add_action('wt_cli_initialize_plugin', array( $this, 'activator' ) );
72
  add_action(
73
  'rest_api_init',
74
  function () {
151
  `current_action` VARCHAR(50) NOT NULL,
152
  `current_offset` INT NOT NULL DEFAULT '0',
153
  PRIMARY KEY(`id_cli_cookie_scan`)
154
+ ) $charset_collate;";
155
 
156
  dbDelta( $create_table_sql );
157
  }
167
  `scanned` INT NOT NULL DEFAULT '0',
168
  `total_cookies` INT NOT NULL DEFAULT '0',
169
  PRIMARY KEY(`id_cli_cookie_scan_url`)
170
+ ) $charset_collate;";
171
 
172
  dbDelta( $create_table_sql );
173
  }
683
  */
684
  public function get_table_missing_notice() {
685
 
686
+ $message = __( 'To scan cookies following tables should be present on your database, please check if tables do exist on your database. If not exist please try to deactivate and activate the plugin again.', 'cookie-law-info' );
687
  $message .= '<ul>';
688
  $message .= '<li>{$wpdb->prefix}cli_cookie_scan</li>';
689
  $message .= '<li>{$wpdb->prefix}cli_cookie_scan_url</li>';
admin/modules/cookie-scaner/views/settings.php CHANGED
@@ -198,6 +198,5 @@ table.wt-cli-table {
198
  <div class="wt-cli-cookie-scan-notice">
199
  <?php do_action( 'wt_cli_cookie_scanner_body' ); ?>
200
  </div>
201
- <?php //do_action( 'wt_cli_cookie_scanner_results' ); ?>
202
  </div>
203
  </div>
198
  <div class="wt-cli-cookie-scan-notice">
199
  <?php do_action( 'wt_cli_cookie_scanner_body' ); ?>
200
  </div>
 
201
  </div>
202
  </div>
admin/modules/cookies/cookies.php CHANGED
@@ -36,7 +36,7 @@ class Cookie_Law_Info_Cookies {
36
 
37
  add_action( 'wt_cli_before_cookie_scanner_header', array( $this, 'add_cookie_migration_notice' ) );
38
  add_action( 'wt_cli_initialize_plugin', array( $this, 'load_default_plugin_settings' ) );
39
- add_action( 'wt_cli_after_cookie_category_migration', array( $this, 'load_default_terms') );
40
 
41
  }
42
 
@@ -85,12 +85,9 @@ class Cookie_Law_Info_Cookies {
85
  $taxonomy = 'cookielawinfo-category';
86
  $terms = array();
87
  if ( version_compare( $wp_version, '4.9', '>=' ) ) {
88
- $args = array(
89
  'taxonomy' => $taxonomy,
90
  'hide_empty' => false,
91
- 'meta_key' => 'CLIpriority',
92
- 'orderby' => 'meta_value_num', // use 'meta_value_num' if the value type of this meta is numeric.
93
- 'order' => 'DESC',
94
  );
95
  $terms = get_terms( $args );
96
  } else {
@@ -179,13 +176,11 @@ class Cookie_Law_Info_Cookies {
179
  $this->cookie_add_defaultstate( $term );
180
  $this->add_scripts_meta( $term );
181
  // $this->add_status_meta( $term );
182
-
183
  }
184
  public function edit_category_form_fields( $term ) {
185
  $this->cookie_edit_defaultstate( $term );
186
  $this->edit_scripts_meta( $term );
187
  // $this->edit_status_meta( $term );
188
-
189
  }
190
  public function add_meta_box() {
191
 
@@ -317,20 +312,28 @@ class Cookie_Law_Info_Cookies {
317
  break;
318
  }
319
  }
320
-
 
 
 
 
321
  public function create_taxonomy() {
322
  register_taxonomy(
323
  'cookielawinfo-category',
324
  'cookielawinfo',
325
  array(
326
- 'labels' => array(
327
  'name' => __( 'Cookie Category', 'cookie-law-info' ),
328
  'add_new_item' => __( 'Add cookie category', 'cookie-law-info' ),
329
  'edit_item' => __( 'Edit cookie category', 'cookie-law-info' ),
330
  ),
331
- 'rewrite' => array( 'slug' => 'cookielawinfo-category' ),
332
- 'hierarchical' => false,
333
- 'show_in_menu' => ( $this->check_if_old_category_table() === true ? false : true ),
 
 
 
 
334
  )
335
  );
336
 
@@ -340,6 +343,22 @@ class Cookie_Law_Info_Cookies {
340
  $strictly_necessary_categories = array( 'necessary', 'obligatoire' );
341
  return apply_filters( 'gdpr_strictly_enabled_category', $strictly_necessary_categories );
342
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
  public function migrate_cookie_terms() {
344
 
345
  $cookie_categories = $this->get_cookie_category_options_old();
@@ -377,7 +396,7 @@ class Cookie_Law_Info_Cookies {
377
  $this->update_term_meta( $term_id, '_cli_cookie_body_scripts', $data['body_scripts'] );
378
  }
379
  $default_state = ( isset( $data['default_state'] ) && $data['default_state'] === true ? 'enabled' : 'disabled' );
380
- $priority = isset( $data['priority'] ) ? $data['priority'] : 0 ;
381
  $this->update_term_meta( $term_id, 'CLIdefaultstate', $default_state );
382
  $this->update_term_meta( $term_id, 'CLIpriority', $priority );
383
  Cookie_Law_Info_Languages::get_instance()->maybe_set_term_language( $term_id ); // In polylang plugin the default language will not be get assigned.
@@ -387,7 +406,7 @@ class Cookie_Law_Info_Cookies {
387
  }
388
 
389
  public function register_settings_page() {
390
- if ( $this->check_if_old_category_table() === true || true === apply_filters('wt_cli_force_show_old_cookie_categories', false ) ) {
391
  add_submenu_page(
392
  'edit.php?post_type=' . CLI_POST_TYPE,
393
  __( 'Non-necessary', 'cookie-law-info' ),
@@ -444,7 +463,7 @@ class Cookie_Law_Info_Cookies {
444
  $settings['body_scripts'] = isset( $options['thirdparty_body_section'] ) ? wp_unslash( $options['thirdparty_body_section'] ) : $defaults['body_scripts'];
445
  $settings['strict'] = false;
446
  $settings['cookies'] = $this->get_cookies_by_meta( '_cli_cookie_sensitivity', 'non-necessary' );
447
- $settings['priority'] = 6;
448
  $this->non_necessary_options = $settings;
449
  }
450
  return $this->non_necessary_options;
@@ -517,13 +536,15 @@ class Cookie_Law_Info_Cookies {
517
  }
518
  }
519
  $cookies = $this->get_cookies_by_term( 'cookielawinfo-category', $term_slug );
520
- $cli_default_state = $this->get_term_meta( $term_id, 'CLIdefaultstate', true );
 
521
 
522
  $default_state = isset( $cli_default_state ) && $cli_default_state === 'enabled' ? true : false;
523
 
524
  $category_data = array(
525
- 'id' => $term_id,
526
  'status' => true,
 
527
  'default_state' => $default_state,
528
  'strict' => $strict,
529
  'title' => $term_name,
@@ -535,13 +556,15 @@ class Cookie_Law_Info_Cookies {
535
 
536
  if ( $this->check_strictly_necessary_category( $term_id ) === true ) {
537
  $strict = true;
 
538
  $necessary_categories[ $term_slug ] = $category_data;
539
  } else {
540
  $non_necessary_categories[ $term_slug ] = $category_data;
541
  }
542
- $cookie_data = $necessary_categories + $non_necessary_categories;
543
  }
544
  }
 
 
545
  }
546
  return $cookie_data;
547
 
@@ -590,10 +613,8 @@ class Cookie_Law_Info_Cookies {
590
  <?php
591
  }
592
  public function check_strictly_necessary_category( $term_id ) {
593
- $strict_enabled = self::get_strictly_necessory_categories();
594
- $terms = get_term_by( 'id', $term_id, 'cookielawinfo-category' );
595
-
596
- if ( in_array( $terms->slug, $strict_enabled ) ) {
597
  return true;
598
  }
599
  return false;
@@ -823,11 +844,11 @@ class Cookie_Law_Info_Cookies {
823
  <div class="wt-cli-admin-notice-wrapper">
824
  <div class="wt-cli-notice-content">
825
  <p style="font-weight:500;font-size:1.05em;"><?php _e( 'Clicking “Migrate cookie categories” will auto migrate your existing cookie categories (Necessary and Non-necessary) to our new Cookie Category taxonomy. This action is required to enable the cookie scanner.', 'cookie-law-info' ); ?></p>
826
- <h3 style="font-size:1.05em;"><?php echo __(' What happens after migration?','cookie-law-info'); ?></h3>
827
  <ul>
828
- <li><?php echo __('You no longer need to manage static cookie categories. After the migration, new cookie categories (Necessary, Functional, Analytics, Performance, Advertisement, and Others) will be created automatically. Also, you can easily add custom cookie categories and edit/delete the existing categories including the custom categories.','cookiel-law-info');?></li>
829
- <li><?php echo __('If you have made any changes to the existing "Non-necessary" category we will migrate it to the newly created “Cookie Category” section. If not, we will delete the "Non-necessary" category automatically.','cookiel-law-info');?></li>
830
- <li><?php echo __('During the migration phase your existing cookie category translations will be lost. Hence we request you to add it manually soon after the migration. You can access the existing translations by navigating to the string translation settings of your translator plugin.','cookiel-law-info');?></li>
831
  </ul>
832
  </div>
833
  <div class="wt-cli-notice-actions">
@@ -876,27 +897,27 @@ class Cookie_Law_Info_Cookies {
876
  'functional' => array(
877
  'title' => 'Functional',
878
  'description' => 'Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.',
879
- 'priority' => 5,
880
  ),
881
  'performance' => array(
882
  'title' => 'Performance',
883
  'description' => 'Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.',
884
- 'priority' => 4,
885
  ),
886
  'analytics' => array(
887
  'title' => 'Analytics',
888
  'description' => 'Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.',
889
- 'priority' => 3,
890
  ),
891
  'advertisement' => array(
892
  'title' => 'Advertisement',
893
  'description' => 'Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.',
894
- 'priority' => 2,
895
  ),
896
- 'others' => array(
897
  'title' => 'Others',
898
  'description' => 'Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.',
899
- 'priority' => 1,
900
  ),
901
  );
902
  return $cookie_categories;
@@ -1035,9 +1056,9 @@ class Cookie_Law_Info_Cookies {
1035
  continue;
1036
  }
1037
  $term_id = ( isset( $term['term_id'] ) ? $term['term_id'] : false );
1038
- $priority = isset( $data['priority'] ) ? $data['priority'] : 0 ;
1039
- $this->update_term_meta( $term_id, 'CLIpriority', $priority );
1040
  if ( $term_id !== false ) {
 
 
1041
  Cookie_Law_Info_Languages::get_instance()->maybe_set_term_language( $term_id ); // In polylang plugin the default language will not be get assigned.
1042
  }
1043
  }
@@ -1074,5 +1095,62 @@ class Cookie_Law_Info_Cookies {
1074
  public function save_priority_meta( $term_id ) {
1075
  update_term_meta( $term_id, 'CLIpriority', 0 );
1076
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1077
  }
1078
  Cookie_Law_Info_Cookies::get_instance();
36
 
37
  add_action( 'wt_cli_before_cookie_scanner_header', array( $this, 'add_cookie_migration_notice' ) );
38
  add_action( 'wt_cli_initialize_plugin', array( $this, 'load_default_plugin_settings' ) );
39
+ add_action( 'wt_cli_after_cookie_category_migration', array( $this, 'load_default_terms' ) );
40
 
41
  }
42
 
85
  $taxonomy = 'cookielawinfo-category';
86
  $terms = array();
87
  if ( version_compare( $wp_version, '4.9', '>=' ) ) {
88
+ $args = array(
89
  'taxonomy' => $taxonomy,
90
  'hide_empty' => false,
 
 
 
91
  );
92
  $terms = get_terms( $args );
93
  } else {
176
  $this->cookie_add_defaultstate( $term );
177
  $this->add_scripts_meta( $term );
178
  // $this->add_status_meta( $term );
 
179
  }
180
  public function edit_category_form_fields( $term ) {
181
  $this->cookie_edit_defaultstate( $term );
182
  $this->edit_scripts_meta( $term );
183
  // $this->edit_status_meta( $term );
 
184
  }
185
  public function add_meta_box() {
186
 
312
  break;
313
  }
314
  }
315
+ /**
316
+ * Register cutsom taxonomy
317
+ *
318
+ * @return void
319
+ */
320
  public function create_taxonomy() {
321
  register_taxonomy(
322
  'cookielawinfo-category',
323
  'cookielawinfo',
324
  array(
325
+ 'labels' => array(
326
  'name' => __( 'Cookie Category', 'cookie-law-info' ),
327
  'add_new_item' => __( 'Add cookie category', 'cookie-law-info' ),
328
  'edit_item' => __( 'Edit cookie category', 'cookie-law-info' ),
329
  ),
330
+ 'public' => false,
331
+ 'publicly_queryable' => false,
332
+ 'exclude_from_search' => true,
333
+ 'show_ui' => true,
334
+ 'rewrite' => true,
335
+ 'hierarchical' => false,
336
+ 'show_in_menu' => ( $this->check_if_old_category_table() === true ? false : true ),
337
  )
338
  );
339
 
343
  $strictly_necessary_categories = array( 'necessary', 'obligatoire' );
344
  return apply_filters( 'gdpr_strictly_enabled_category', $strictly_necessary_categories );
345
  }
346
+ /**
347
+ * Returns necessary category id's
348
+ *
349
+ * @return array
350
+ */
351
+ public function get_necessary_category_ids() {
352
+ $necessory_categories = self::get_strictly_necessory_categories();
353
+ $necessory_category_ids = array();
354
+ foreach ( $necessory_categories as $category ) {
355
+ $term = $this->get_term_data_from_db( 'slug', $category );
356
+ if ( false !== $term ) {
357
+ $necessory_category_ids[] = $term->term_id;
358
+ }
359
+ }
360
+ return $necessory_category_ids;
361
+ }
362
  public function migrate_cookie_terms() {
363
 
364
  $cookie_categories = $this->get_cookie_category_options_old();
396
  $this->update_term_meta( $term_id, '_cli_cookie_body_scripts', $data['body_scripts'] );
397
  }
398
  $default_state = ( isset( $data['default_state'] ) && $data['default_state'] === true ? 'enabled' : 'disabled' );
399
+ $priority = isset( $data['priority'] ) ? $data['priority'] : 0;
400
  $this->update_term_meta( $term_id, 'CLIdefaultstate', $default_state );
401
  $this->update_term_meta( $term_id, 'CLIpriority', $priority );
402
  Cookie_Law_Info_Languages::get_instance()->maybe_set_term_language( $term_id ); // In polylang plugin the default language will not be get assigned.
406
  }
407
 
408
  public function register_settings_page() {
409
+ if ( $this->check_if_old_category_table() === true || true === apply_filters( 'wt_cli_force_show_old_cookie_categories', false ) ) {
410
  add_submenu_page(
411
  'edit.php?post_type=' . CLI_POST_TYPE,
412
  __( 'Non-necessary', 'cookie-law-info' ),
463
  $settings['body_scripts'] = isset( $options['thirdparty_body_section'] ) ? wp_unslash( $options['thirdparty_body_section'] ) : $defaults['body_scripts'];
464
  $settings['strict'] = false;
465
  $settings['cookies'] = $this->get_cookies_by_meta( '_cli_cookie_sensitivity', 'non-necessary' );
466
+ $settings['priority'] = 6;
467
  $this->non_necessary_options = $settings;
468
  }
469
  return $this->non_necessary_options;
536
  }
537
  }
538
  $cookies = $this->get_cookies_by_term( 'cookielawinfo-category', $term_slug );
539
+ $cli_default_state = $this->get_meta_data_from_db( $term_id, 'CLIdefaultstate' );
540
+ $priority = $this->get_meta_data_from_db( $term_id, 'CLIpriority' );
541
 
542
  $default_state = isset( $cli_default_state ) && $cli_default_state === 'enabled' ? true : false;
543
 
544
  $category_data = array(
545
+ 'id' => $term_id,
546
  'status' => true,
547
+ 'priority' => isset( $priority ) ? intval( $priority ) : 0,
548
  'default_state' => $default_state,
549
  'strict' => $strict,
550
  'title' => $term_name,
556
 
557
  if ( $this->check_strictly_necessary_category( $term_id ) === true ) {
558
  $strict = true;
559
+ $category_data['strict'] = $strict;
560
  $necessary_categories[ $term_slug ] = $category_data;
561
  } else {
562
  $non_necessary_categories[ $term_slug ] = $category_data;
563
  }
 
564
  }
565
  }
566
+ $non_necessary_categories = $this->order_category_by_key( $non_necessary_categories, 'priority' );
567
+ $cookie_data = $necessary_categories + $non_necessary_categories;
568
  }
569
  return $cookie_data;
570
 
613
  <?php
614
  }
615
  public function check_strictly_necessary_category( $term_id ) {
616
+ $strict_enabled = $this->get_necessary_category_ids();
617
+ if ( in_array( $term_id, $strict_enabled ) ) {
 
 
618
  return true;
619
  }
620
  return false;
844
  <div class="wt-cli-admin-notice-wrapper">
845
  <div class="wt-cli-notice-content">
846
  <p style="font-weight:500;font-size:1.05em;"><?php _e( 'Clicking “Migrate cookie categories” will auto migrate your existing cookie categories (Necessary and Non-necessary) to our new Cookie Category taxonomy. This action is required to enable the cookie scanner.', 'cookie-law-info' ); ?></p>
847
+ <h3 style="font-size:1.05em;"><?php echo __( 'What happens after migration?', 'cookie-law-info' ); ?></h3>
848
  <ul>
849
+ <li><?php echo __( 'You no longer need to manage static cookie categories. After the migration, new cookie categories (Necessary, Functional, Analytics, Performance, Advertisement, and Others) will be created automatically. Also, you can easily add custom cookie categories and edit/delete the existing categories including the custom categories.', 'cookiel-law-info' ); ?></li>
850
+ <li><?php echo __( 'If you have made any changes to the existing "Non-necessary" category we will migrate it to the newly created “Cookie Category” section. If not, we will delete the "Non-necessary" category automatically.', 'cookiel-law-info' ); ?></li>
851
+ <li><?php echo __( 'During the migration phase your existing cookie category translations will be lost. Hence we request you to add it manually soon after the migration. You can access the existing translations by navigating to the string translation settings of your translator plugin.', 'cookiel-law-info' ); ?></li>
852
  </ul>
853
  </div>
854
  <div class="wt-cli-notice-actions">
897
  'functional' => array(
898
  'title' => 'Functional',
899
  'description' => 'Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.',
900
+ 'priority' => 5,
901
  ),
902
  'performance' => array(
903
  'title' => 'Performance',
904
  'description' => 'Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.',
905
+ 'priority' => 4,
906
  ),
907
  'analytics' => array(
908
  'title' => 'Analytics',
909
  'description' => 'Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.',
910
+ 'priority' => 3,
911
  ),
912
  'advertisement' => array(
913
  'title' => 'Advertisement',
914
  'description' => 'Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.',
915
+ 'priority' => 2,
916
  ),
917
+ 'others' => array(
918
  'title' => 'Others',
919
  'description' => 'Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.',
920
+ 'priority' => 1,
921
  ),
922
  );
923
  return $cookie_categories;
1056
  continue;
1057
  }
1058
  $term_id = ( isset( $term['term_id'] ) ? $term['term_id'] : false );
 
 
1059
  if ( $term_id !== false ) {
1060
+ $priority = isset( $data['priority'] ) ? $data['priority'] : 0;
1061
+ $this->update_term_meta( $term_id, 'CLIpriority', $priority );
1062
  Cookie_Law_Info_Languages::get_instance()->maybe_set_term_language( $term_id ); // In polylang plugin the default language will not be get assigned.
1063
  }
1064
  }
1095
  public function save_priority_meta( $term_id ) {
1096
  update_term_meta( $term_id, 'CLIpriority', 0 );
1097
  }
1098
+ /**
1099
+ * Get meta data directly from the DB
1100
+ *
1101
+ * @param int $term_id Term id.
1102
+ * @param string $meta_key Meta key name.
1103
+ * @return string
1104
+ */
1105
+ public function get_meta_data_from_db( $term_id, $meta_key ) {
1106
+ global $wpdb;
1107
+ $term_value = false;
1108
+ $term_meta = $wpdb->get_row( $wpdb->prepare( "SELECT meta_value FROM $wpdb->termmeta WHERE term_id = %d AND meta_key = %s", $term_id, $meta_key ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery,WordPress.DB.PreparedSQL.NotPrepared
1109
+ if ( $term_meta ) {
1110
+ $term_value = $term_meta->meta_value;
1111
+ }
1112
+ return $term_value;
1113
+ }
1114
+ /**
1115
+ * Get term data directly from DB to avoid hooks by other plugins.
1116
+ *
1117
+ * @param string $key using this key the row is fetched.
1118
+ * @param string $value value of the corresponding key.
1119
+ * @return array
1120
+ */
1121
+ public function get_term_data_from_db( $key, $value ) {
1122
+ global $wpdb;
1123
+ $term_data = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->terms WHERE $key = %s", $value ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery,WordPress.DB.PreparedSQL.NotPrepared
1124
+ if ( $term_data && is_object( $term_data ) ) {
1125
+ return $term_data;
1126
+ }
1127
+ return false;
1128
+ }
1129
+ /**
1130
+ * Re order the categories based on the key
1131
+ *
1132
+ * @param array $categories Category array.
1133
+ * @param string $key The key based on which an array is sorted.
1134
+ * @param string $order The sort order default DESC.
1135
+ * @return array
1136
+ */
1137
+ public function order_category_by_key( $categories, $meta_key, $order = 'DESC' ) {
1138
+ $sort_order = SORT_DESC;
1139
+ $meta_values = array();
1140
+ if ( 'ASC' === $order ) {
1141
+ $sort_order = SORT_ASC;
1142
+ }
1143
+ if ( ! empty( $categories ) && is_array( $categories ) ) {
1144
+ foreach ( $categories as $key => $category ) {
1145
+ if ( isset( $category[ $meta_key ] ) ) {
1146
+ $meta_values[] = $category[ $meta_key ];
1147
+ }
1148
+ }
1149
+ if ( ! empty( $meta_values ) && is_array( $meta_values ) ) {
1150
+ array_multisort( $meta_values, $sort_order, $categories );
1151
+ }
1152
+ }
1153
+ return $categories;
1154
+ }
1155
  }
1156
  Cookie_Law_Info_Cookies::get_instance();
admin/modules/uninstall-feedback/uninstall-feedback.php CHANGED
@@ -3,336 +3,343 @@
3
  /**
4
  * Uninstall Feedback
5
  *
6
- * @link
7
- * @since 2.5.0
8
  *
9
- * @package Cookie_Law_Info
10
  */
11
- if (!defined('ABSPATH')) {
12
- exit;
13
  }
14
- class Cookie_Law_Info_Uninstall_Feedback
15
- {
16
- protected $api_url = '';
17
- protected $current_version = CLI_VERSION;
18
- protected $auth_key = 'cookielawinfo_uninstall_1234#';
19
- protected $plugin_id = CLI_POST_TYPE;
20
- protected $plugin_file = CLI_PLUGIN_FILENAME; //plugin main file
21
- public function __construct()
22
- {
23
- $this->api_url = 'https://feedback.webtoffee.com/wp-json/' . $this->plugin_id . '/v1/uninstall';
24
 
25
- add_action('admin_footer', array($this, 'deactivate_scripts'));
26
- add_action('wp_ajax_' . $this->plugin_id . '_submit_uninstall_reason', array($this, "send_uninstall_reason"));
27
- add_filter('plugin_action_links_' . plugin_basename($this->plugin_file), array($this, 'plugin_action_links'));
28
- }
29
- public function plugin_action_links($links)
30
- {
31
- if (array_key_exists('deactivate', $links)) {
32
- $links['deactivate'] = str_replace('<a', '<a class="' . $this->plugin_id . '-deactivate-link"', $links['deactivate']);
33
- }
34
- return $links;
35
- }
36
- private function get_uninstall_reasons()
37
- {
38
 
39
- $reasons = array(
 
 
 
 
 
 
 
 
 
 
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  array(
42
- 'id' => 'complex-setup',
43
- 'text' => __('The plugin is complex to set up', 'cookie-law-info'),
44
- 'type' => 'textarea',
45
- 'placeholder' => __('Please describe which area you are facing difficulties', 'cookie-law-info')
46
- ),
47
- array(
48
- 'id' => 'found-better-plugin',
49
- 'text' => __('I found a better plugin', 'cookie-law-info'),
50
- 'type' => 'text',
51
- 'placeholder' => __('Which plugin?', 'cookie-law-info')
52
- ),
53
- array(
54
- 'id' => 'not-have-that-feature',
55
- 'text' => __('The plugin is great, but I need specific feature that you don\'t support', 'cookie-law-info'),
56
- 'type' => 'textarea',
57
- 'placeholder' => __('Could you tell us more about that feature?', 'cookie-law-info')
58
- ),
59
- array(
60
- 'id' => 'did-not-work-as-expected',
61
- 'text' => __('The plugin didn\'t work as expected', 'cookie-law-info'),
62
- 'type' => 'textarea',
63
- 'placeholder' => __('What did you expect?', 'cookie-law-info')
64
- ),
65
- array(
66
- 'id' => 'conflict-theme-plugin',
67
- 'text' => __('A conflict with another plugin or theme', 'cookie-law-info'),
68
- 'type' => 'text',
69
- 'placeholder' => __('Which plugin or theme?', 'cookie-law-info')
70
- ),
71
- array(
72
- 'id' => 'translation-issues',
73
- 'text' => __('Translation issues', 'cookie-law-info'),
74
- 'child' => array(
75
- array(
76
- 'id' => 'incorrect-misssing-translation',
77
- 'text' => __('Incorrect/missing translation', 'cookie-law-info'),
78
- 'type' => 'textarea',
79
- 'placeholder' => __('Name the language', 'cookie-law-info')
80
- ),
81
- array(
82
- 'id' => 'could-not-translate',
83
- 'text' => __('Unable to translate my dynamic content e.g, cookie message, button text etc', 'cookie-law-info'),
84
- 'type' => 'textarea',
85
- 'placeholder' => __('Name the language and the translator plugin that you are using', 'cookie-law-info')
86
- ),
87
- )
88
- ),
89
- array(
90
- 'id' => 'upgrade-to-pro',
91
- 'text' => __('Upgrade to pro', 'cookie-law-info'),
92
- ),
93
  array(
94
- 'id' => 'other',
95
- 'text' => __('Other', 'cookie-law-info'),
96
- 'type' => 'textarea',
97
- 'placeholder' => __('Could you tell us a bit more?', 'cookie-law-info')
98
- ),
99
- );
 
 
 
 
100
 
101
- return $reasons;
102
- }
103
- public function generate_reason_html()
104
- {
105
- }
106
- public function deactivate_scripts()
107
- {
108
- global $pagenow;
109
- if ('plugins.php' != $pagenow) {
110
- return;
111
- }
112
- $reasons = $this->get_uninstall_reasons();
113
- ?>
114
- <div class="<?php echo $this->plugin_id; ?>-modal" id="<?php echo $this->plugin_id; ?>-modal">
115
- <div class="<?php echo $this->plugin_id; ?>-modal-wrap">
116
- <div class="<?php echo $this->plugin_id; ?>-modal-header">
117
- <h3><?php _e('If you have a moment, please let us know why you are deactivating:', 'cookie-law-info'); ?></h3>
118
- </div>
119
- <div class="<?php echo $this->plugin_id; ?>-modal-body">
120
- <ul class="reasons"><?php foreach ($reasons as $reason) :
121
- $data_type = (isset($reason['type']) ? 'data-type="' . esc_attr($reason['type']) . '"' : '');
122
- $placeholder = (isset($reason['type']) ? 'data-placeholder="' . esc_attr($reason['placeholder']) . '"' : '');
123
- $childs = (isset($reason['child']) && is_array($reason['child'])) ? $reason['child'] : array();
124
- ?>
125
- <li <?php echo $data_type; ?> <?php echo $placeholder; ?>>
126
- <label><input type="radio" name="selected-reason" value="<?php echo $reason['id']; ?>"><?php echo $reason['text']; ?></label>
127
- <?php if (!empty($childs)) : ?>
128
- <ul class="<?php echo $this->plugin_id . '-sub-reasons'; ?>">
129
- <?php foreach ($childs as $child) :
130
- $data_type = (isset($child['type']) ? 'data-type="' . esc_attr($child['type']) . '"' : '');
131
- $placeholder = (isset($child['type']) ? 'data-placeholder="' . esc_attr($child['placeholder']) . '"' : '');
132
- ?>
133
- <li <?php echo $data_type; ?> <?php echo $placeholder; ?>>
134
- <label><input type="radio" name="selected-reason" value="<?php echo $child['id']; ?>"><?php echo $child['text']; ?></label>
135
- <?php endforeach; ?>
136
- </ul>
137
- <?php endif; ?>
138
-
139
- </li>
 
140
 
141
- <?php endforeach; ?>
142
- </ul>
143
- <div class="wt-uninstall-feedback-privacy-policy">
144
- <?php _e("We do not collect any personal data when you submit this form. It's your feedback that we value.", "cookie-law-info"); ?>
145
- <a href="https://www.webtoffee.com/privacy-policy/" target="_blank"><?php _e('Privacy Policy', 'cookie-law-info'); ?></a>
146
- </div>
147
- </div>
148
- <div class="<?php echo $this->plugin_id; ?>-modal-footer">
149
 
150
- <a class="button-primary" href="https://www.webtoffee.com/support/" target="_blank">
151
- <span class="dashicons dashicons-external" style="margin-top:3px;"></span>
152
- <?php _e('Go to support', 'cookie-law-info'); ?></a>
153
- <button class="button-primary <?php echo $this->plugin_id; ?>-model-submit"><?php _e('Submit & Deactivate', 'cookie-law-info'); ?></button>
154
- <button class="button-secondary <?php echo $this->plugin_id; ?>-model-cancel"><?php _e('Cancel', 'cookie-law-info'); ?></button>
155
- <a href="#" style="color: #737373;" class="dont-bother-me"><?php _e('I rather wouldn\'t say', 'cookie-law-info'); ?></a>
156
- </div>
157
- </div>
158
- </div>
159
- <style type="text/css">
160
- .<?php echo $this->plugin_id; ?>-modal {
161
- position: fixed;
162
- z-index: 99999;
163
- top: 0;
164
- right: 0;
165
- bottom: 0;
166
- left: 0;
167
- background: rgba(0, 0, 0, 0.5);
168
- display: none;
169
- }
170
 
171
- .<?php echo $this->plugin_id; ?>-modal.modal-active {
172
- display: block;
173
- }
174
 
175
- .<?php echo $this->plugin_id; ?>-modal-wrap {
176
- width: 50%;
177
- position: relative;
178
- margin: 10% auto;
179
- background: #fff;
180
- }
181
 
182
- .<?php echo $this->plugin_id; ?>-modal-header {
183
- border-bottom: 1px solid #eee;
184
- padding: 8px 20px;
185
- }
186
 
187
- .<?php echo $this->plugin_id; ?>-modal-header h3 {
188
- line-height: 150%;
189
- margin: 0;
190
- }
191
 
192
- .<?php echo $this->plugin_id; ?>-modal-body {
193
- padding: 5px 20px 20px 20px;
194
- }
195
 
196
- .<?php echo $this->plugin_id; ?>-modal-body .input-text,
197
- .<?php echo $this->plugin_id; ?>-modal-body textarea {
198
- width: 75%;
199
- }
200
 
201
- .<?php echo $this->plugin_id; ?>-modal-body .reason-input {
202
- margin-top: 5px;
203
- margin-left: 20px;
204
- }
205
 
206
- .<?php echo $this->plugin_id; ?>-modal-footer {
207
- border-top: 1px solid #eee;
208
- padding: 12px 20px;
209
- text-align: left;
210
- }
211
 
212
- .<?php echo $this->plugin_id; ?>-sub-reasons {
213
- display: none;
214
- padding-left: 20px;
215
- padding-top: 10px;
216
- padding-bottom: 4px;
217
- }
218
 
219
- .wt-uninstall-feedback-privacy-policy {
220
- text-align: left;
221
- font-size: 12px;
222
- color: #aaa;
223
- line-height: 14px;
224
- margin-top: 20px;
225
- font-style: italic;
226
- }
227
 
228
- .wt-uninstall-feedback-privacy-policy a {
229
- font-size: 11px;
230
- color: #4b9cc3;
231
- text-decoration-color: #99c3d7;
232
- }
233
- </style>
234
- <script type="text/javascript">
235
- (function($) {
236
- $(function() {
237
- var plugin_id = '<?php echo $this->plugin_id; ?>';
238
- var modal = $('#' + plugin_id + '-modal');
239
- var deactivateLink = '';
240
- $('a.' + plugin_id + '-deactivate-link').click(function(e) {
241
- e.preventDefault();
242
- modal.addClass('modal-active');
243
- deactivateLink = $(this).attr('href');
244
- modal.find('a.dont-bother-me').attr('href', deactivateLink).css('float', 'right');
245
- });
246
- modal.on('click', 'button.' + plugin_id + '-model-cancel', function(e) {
247
- e.preventDefault();
248
- modal.removeClass('modal-active');
249
- });
250
- modal.on('click', 'input[type="radio"]', function() {
251
- var parent = $(this).parents('li:first');
252
- if (parent.find('ul').length > 0) {
253
- $('.' + plugin_id + '-sub-reasons').hide();
254
- parent.find('ul').show();
255
- } else {
256
- modal.find('.reason-input').remove();
257
- var inputType = parent.data('type'),
258
- inputPlaceholder = parent.data('placeholder'),
259
- reasonInputHtml = '<div class="reason-input">' + (('text' === inputType) ? '<input type="text" class="input-text" size="40" />' : '<textarea rows="5" cols="45"></textarea>') + '</div>';
260
- if (inputType === 'textarea' || inputType === 'text') {
261
- parent.append($(reasonInputHtml));
262
- parent.find('input, textarea').attr('placeholder', inputPlaceholder).focus();
263
- }
264
- }
265
 
266
- });
267
 
268
- modal.on('click', 'button.' + plugin_id + '-model-submit', function(e) {
269
- e.preventDefault();
270
- var button = $(this);
271
- if (button.hasClass('disabled')) {
272
- return;
273
- }
274
- var $radio = $('input[type="radio"]:checked', modal);
275
- var $selected_reason = $radio.parents('li:first'),
276
- $input = $selected_reason.find('textarea, input[type="text"]');
277
 
278
- $.ajax({
279
- url: ajaxurl,
280
- type: 'POST',
281
- data: {
282
- action: plugin_id + '_submit_uninstall_reason',
283
- reason_id: (0 === $radio.length) ? 'none' : $radio.val(),
284
- reason_info: (0 !== $input.length) ? $input.val().trim() : ''
285
- },
286
- beforeSend: function() {
287
- button.addClass('disabled');
288
- button.text('Processing...');
289
- },
290
- complete: function() {
291
- window.location.href = deactivateLink;
292
- }
293
- });
294
- });
295
- });
296
- }(jQuery));
297
- </script>
298
- <?php
299
- }
300
 
301
- public function send_uninstall_reason()
302
- {
303
- global $wpdb;
304
- if (!isset($_POST['reason_id'])) {
305
- wp_send_json_error();
306
- }
307
- //$current_user = wp_get_current_user();
308
- $data = array(
309
- 'reason_id' => sanitize_text_field($_POST['reason_id']),
310
- 'plugin' => $this->plugin_id,
311
- 'auth' => $this->auth_key,
312
- 'date' => gmdate("M d, Y h:i:s A"),
313
- 'url' => '',
314
- 'user_email' => '',
315
- 'reason_info' => isset($_REQUEST['reason_info']) ? trim(stripslashes($_REQUEST['reason_info'])) : '',
316
- 'software' => $_SERVER['SERVER_SOFTWARE'],
317
- 'php_version' => phpversion(),
318
- 'mysql_version' => $wpdb->db_version(),
319
- 'wp_version' => get_bloginfo('version'),
320
- 'wc_version' => (!defined('WC_VERSION')) ? '' : WC_VERSION,
321
- 'locale' => get_locale(),
322
- 'multisite' => is_multisite() ? 'Yes' : 'No',
323
- $this->plugin_id . '_version' => $this->current_version,
324
- );
325
- // Write an action/hook here in webtoffe to recieve the data
326
- $resp = wp_remote_post($this->api_url, array(
327
- 'method' => 'POST',
328
- 'timeout' => 45,
329
- 'redirection' => 5,
330
- 'httpversion' => '1.0',
331
- 'blocking' => false,
332
- 'body' => $data,
333
- 'cookies' => array()
334
- ));
335
- wp_send_json_success();
336
- }
 
 
337
  }
338
  new Cookie_Law_Info_Uninstall_Feedback();
3
  /**
4
  * Uninstall Feedback
5
  *
6
+ * @link
7
+ * @since 2.5.0
8
  *
9
+ * @package Cookie_Law_Info
10
  */
11
+ if ( ! defined( 'ABSPATH' ) ) {
12
+ exit;
13
  }
14
+ class Cookie_Law_Info_Uninstall_Feedback {
 
 
 
 
 
 
 
 
 
15
 
16
+ protected $api_url = '';
17
+ protected $current_version = CLI_VERSION;
18
+ protected $auth_key = 'cookielawinfo_uninstall_1234#';
19
+ protected $plugin_id = CLI_POST_TYPE;
20
+ protected $plugin_file = CLI_PLUGIN_FILENAME; // plugin main file
21
+ public function __construct() {
22
+ $this->api_url = 'https://feedback.webtoffee.com/wp-json/' . $this->plugin_id . '/v1/uninstall';
 
 
 
 
 
 
23
 
24
+ add_action( 'admin_footer', array( $this, 'deactivate_scripts' ) );
25
+ add_action( 'wp_ajax_' . $this->plugin_id . '_submit_uninstall_reason', array( $this, 'send_uninstall_reason' ) );
26
+ add_filter( 'plugin_action_links_' . plugin_basename( $this->plugin_file ), array( $this, 'plugin_action_links' ) );
27
+ }
28
+ public function plugin_action_links( $links ) {
29
+ if ( array_key_exists( 'deactivate', $links ) ) {
30
+ $links['deactivate'] = str_replace( '<a', '<a class="' . $this->plugin_id . '-deactivate-link"', $links['deactivate'] );
31
+ }
32
+ return $links;
33
+ }
34
+ private function get_uninstall_reasons() {
35
 
36
+ $reasons = array(
37
+
38
+ array(
39
+ 'id' => 'did-not-work-as-expected',
40
+ 'text' => __( 'The plugin didn\'t work as expected', 'cookie-law-info' ),
41
+ 'type' => 'textarea',
42
+ 'placeholder' => __( 'How can we make our plugin better?', 'cookie-law-info' ),
43
+ ),
44
+ array(
45
+ 'id' => 'cookie-scanner-issue',
46
+ 'text' => __( 'Issues with cookie scanner', 'cookie-law-info' ),
47
+ 'type' => 'textarea',
48
+ 'placeholder' => __(
49
+ 'Describe the challenges that you faced while using our Cookie Scanner.&#10;Eg:- Scan did not find all cookies.',
50
+ 'cookie-law-info'
51
+ ),
52
+ ),
53
+ array(
54
+ 'id' => 'not-have-that-feature',
55
+ 'text' => __( 'The plugin is great, but I need specific feature that you don\'t support', 'cookie-law-info' ),
56
+ 'type' => 'textarea',
57
+ 'placeholder' => __( 'Could you tell us more about that feature?', 'cookie-law-info' ),
58
+ ),
59
+ array(
60
+ 'id' => 'conflict-theme-plugin',
61
+ 'text' => __( 'A conflict with another plugin or theme', 'cookie-law-info' ),
62
+ 'type' => 'textarea',
63
+ 'placeholder' => __( 'Specify whether you are having issues with the back-end or front-end functionalities. Enter your site URL to help us fix the plugin/theme conflicts.', 'cookie-law-info' ),
64
+ ),
65
+ array(
66
+ 'id' => 'translation-issues',
67
+ 'text' => __( 'Translation issues', 'cookie-law-info' ),
68
+ 'child' => array(
69
+ array(
70
+ 'id' => 'incorrect-misssing-translation',
71
+ 'text' => __( 'Incorrect/missing translation', 'cookie-law-info' ),
72
+ 'type' => 'textarea',
73
+ 'placeholder' => __( 'Name the language and specify the string with incorrect translation.', 'cookie-law-info' ),
74
+ ),
75
+ array(
76
+ 'id' => 'could-not-translate',
77
+ 'text' => __( 'Unable to translate my dynamic content e.g, cookie message, button text etc', 'cookie-law-info' ),
78
+ 'type' => 'textarea',
79
+ 'placeholder' => __( 'Name the language and the translator plugin that you are using', 'cookie-law-info' ),
80
+ ),
81
+ ),
82
+ ),
83
  array(
84
+ 'id' => 'found-better-plugin',
85
+ 'text' => __( 'I found a better plugin', 'cookie-law-info' ),
86
+ 'type' => 'text',
87
+ 'placeholder' => __( 'Which plugin?', 'cookie-law-info' ),
88
+ ),
89
+ array(
90
+ 'id' => 'upgrade-to-pro',
91
+ 'text' => __( 'Upgrade to pro', 'cookie-law-info' ),
92
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  array(
94
+ 'id' => 'temporary-deactivation',
95
+ 'text' => __( 'It’s a temporary deactivation', 'cookie-law-info' ),
96
+ ),
97
+ array(
98
+ 'id' => 'other',
99
+ 'text' => __( 'Other', 'cookie-law-info' ),
100
+ 'type' => 'textarea',
101
+ 'placeholder' => __( 'Please describe your issue in detail.', 'cookie-law-info' ),
102
+ ),
103
+ );
104
 
105
+ return $reasons;
106
+ }
107
+ public function generate_reason_html() {
108
+ }
109
+ public function deactivate_scripts() {
110
+ global $pagenow;
111
+ if ( 'plugins.php' != $pagenow ) {
112
+ return;
113
+ }
114
+ $reasons = $this->get_uninstall_reasons();
115
+ ?>
116
+ <div class="<?php echo $this->plugin_id; ?>-modal" id="<?php echo $this->plugin_id; ?>-modal">
117
+ <div class="<?php echo $this->plugin_id; ?>-modal-wrap">
118
+ <div class="<?php echo $this->plugin_id; ?>-modal-header">
119
+ <h3><?php _e( 'If you have a moment, please let us know why you are deactivating:', 'cookie-law-info' ); ?></h3>
120
+ </div>
121
+ <div class="<?php echo $this->plugin_id; ?>-modal-body">
122
+ <ul class="reasons">
123
+ <?php
124
+ foreach ( $reasons as $reason ) :
125
+ $data_type = ( isset( $reason['type'] ) ? 'data-type="' . esc_attr( $reason['type'] ) . '"' : '' );
126
+ $placeholder = ( isset( $reason['type'] ) ? 'data-placeholder="' . esc_attr( $reason['placeholder'] ) . '"' : '' );
127
+ $childs = ( isset( $reason['child'] ) && is_array( $reason['child'] ) ) ? $reason['child'] : array();
128
+ ?>
129
+ <li <?php echo $data_type; ?> <?php echo $placeholder; ?>>
130
+ <label><input type="radio" name="selected-reason" value="<?php echo $reason['id']; ?>"><?php echo $reason['text']; ?></label>
131
+ <?php if ( ! empty( $childs ) ) : ?>
132
+ <ul class="<?php echo $this->plugin_id . '-sub-reasons'; ?>">
133
+ <?php
134
+ foreach ( $childs as $child ) :
135
+ $data_type = ( isset( $child['type'] ) ? 'data-type="' . esc_attr( $child['type'] ) . '"' : '' );
136
+ $placeholder = ( isset( $child['type'] ) ? 'data-placeholder="' . esc_attr( $child['placeholder'] ) . '"' : '' );
137
+ ?>
138
+ <li <?php echo $data_type; ?> <?php echo $placeholder; ?>>
139
+ <label><input type="radio" name="selected-reason" value="<?php echo $child['id']; ?>"><?php echo $child['text']; ?></label>
140
+ <?php endforeach; ?>
141
+ </ul>
142
+ <?php endif; ?>
143
+
144
+ </li>
145
 
146
+ <?php endforeach; ?>
147
+ </ul>
148
+ <div class="wt-uninstall-feedback-privacy-policy">
149
+ <?php _e( "We do not collect any personal data when you submit this form. It's your feedback that we value.", 'cookie-law-info' ); ?>
150
+ <a href="https://www.webtoffee.com/privacy-policy/" target="_blank"><?php _e( 'Privacy Policy', 'cookie-law-info' ); ?></a>
151
+ </div>
152
+ </div>
153
+ <div class="<?php echo $this->plugin_id; ?>-modal-footer">
154
 
155
+ <a class="button-primary" href="https://www.webtoffee.com/support/" target="_blank">
156
+ <span class="dashicons dashicons-external" style="margin-top:3px;"></span>
157
+ <?php _e( 'Go to support', 'cookie-law-info' ); ?></a>
158
+ <button class="button-primary <?php echo $this->plugin_id; ?>-model-submit"><?php _e( 'Submit & Deactivate', 'cookie-law-info' ); ?></button>
159
+ <button class="button-secondary <?php echo $this->plugin_id; ?>-model-cancel"><?php _e( 'Cancel', 'cookie-law-info' ); ?></button>
160
+ <a href="#" style="color: #737373;" class="dont-bother-me"><?php _e( 'I rather wouldn\'t say', 'cookie-law-info' ); ?></a>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ <style type="text/css">
165
+ .<?php echo $this->plugin_id; ?>-modal {
166
+ position: fixed;
167
+ z-index: 99999;
168
+ top: 0;
169
+ right: 0;
170
+ bottom: 0;
171
+ left: 0;
172
+ background: rgba(0, 0, 0, 0.5);
173
+ display: none;
174
+ }
175
 
176
+ .<?php echo $this->plugin_id; ?>-modal.modal-active {
177
+ display: block;
178
+ }
179
 
180
+ .<?php echo $this->plugin_id; ?>-modal-wrap {
181
+ width: 50%;
182
+ position: relative;
183
+ margin: 10% auto;
184
+ background: #fff;
185
+ }
186
 
187
+ .<?php echo $this->plugin_id; ?>-modal-header {
188
+ border-bottom: 1px solid #eee;
189
+ padding: 8px 20px;
190
+ }
191
 
192
+ .<?php echo $this->plugin_id; ?>-modal-header h3 {
193
+ line-height: 150%;
194
+ margin: 0;
195
+ }
196
 
197
+ .<?php echo $this->plugin_id; ?>-modal-body {
198
+ padding: 5px 20px 20px 20px;
199
+ }
200
 
201
+ .<?php echo $this->plugin_id; ?>-modal-body .input-text,
202
+ .<?php echo $this->plugin_id; ?>-modal-body textarea {
203
+ width: 75%;
204
+ }
205
 
206
+ .<?php echo $this->plugin_id; ?>-modal-body .reason-input {
207
+ margin-top: 5px;
208
+ margin-left: 20px;
209
+ }
210
 
211
+ .<?php echo $this->plugin_id; ?>-modal-footer {
212
+ border-top: 1px solid #eee;
213
+ padding: 12px 20px;
214
+ text-align: left;
215
+ }
216
 
217
+ .<?php echo $this->plugin_id; ?>-sub-reasons {
218
+ display: none;
219
+ padding-left: 20px;
220
+ padding-top: 10px;
221
+ padding-bottom: 4px;
222
+ }
223
 
224
+ .wt-uninstall-feedback-privacy-policy {
225
+ text-align: left;
226
+ font-size: 12px;
227
+ color: #aaa;
228
+ line-height: 14px;
229
+ margin-top: 20px;
230
+ font-style: italic;
231
+ }
232
 
233
+ .wt-uninstall-feedback-privacy-policy a {
234
+ font-size: 11px;
235
+ color: #4b9cc3;
236
+ text-decoration-color: #99c3d7;
237
+ }
238
+ </style>
239
+ <script type="text/javascript">
240
+ (function($) {
241
+ $(function() {
242
+ var plugin_id = '<?php echo $this->plugin_id; ?>';
243
+ var modal = $('#' + plugin_id + '-modal');
244
+ var deactivateLink = '';
245
+ $('a.' + plugin_id + '-deactivate-link').click(function(e) {
246
+ e.preventDefault();
247
+ modal.addClass('modal-active');
248
+ deactivateLink = $(this).attr('href');
249
+ modal.find('a.dont-bother-me').attr('href', deactivateLink).css('float', 'right');
250
+ });
251
+ modal.on('click', 'button.' + plugin_id + '-model-cancel', function(e) {
252
+ e.preventDefault();
253
+ modal.removeClass('modal-active');
254
+ });
255
+ modal.on('click', 'input[type="radio"]', function() {
256
+ var parent = $(this).parents('li:first');
257
+ if (parent.find('ul').length > 0) {
258
+ $('.' + plugin_id + '-sub-reasons').hide();
259
+ parent.find('ul').show();
260
+ } else {
261
+ modal.find('.reason-input').remove();
262
+ var inputType = parent.data('type'),
263
+ inputPlaceholder = parent.data('placeholder'),
264
+ reasonInputHtml = '<div class="reason-input">' + (('text' === inputType) ? '<input type="text" class="input-text" size="40" />' : '<textarea rows="5" cols="45"></textarea>') + '</div>';
265
+ if (inputType === 'textarea' || inputType === 'text') {
266
+ parent.append($(reasonInputHtml));
267
+ parent.find('input, textarea').attr('placeholder', inputPlaceholder).focus();
268
+ }
269
+ }
270
 
271
+ });
272
 
273
+ modal.on('click', 'button.' + plugin_id + '-model-submit', function(e) {
274
+ e.preventDefault();
275
+ var button = $(this);
276
+ if (button.hasClass('disabled')) {
277
+ return;
278
+ }
279
+ var $radio = $('input[type="radio"]:checked', modal);
280
+ var $selected_reason = $radio.parents('li:first'),
281
+ $input = $selected_reason.find('textarea, input[type="text"]');
282
 
283
+ $.ajax({
284
+ url: ajaxurl,
285
+ type: 'POST',
286
+ data: {
287
+ action: plugin_id + '_submit_uninstall_reason',
288
+ reason_id: (0 === $radio.length) ? 'none' : $radio.val(),
289
+ reason_info: (0 !== $input.length) ? $input.val().trim() : ''
290
+ },
291
+ beforeSend: function() {
292
+ button.addClass('disabled');
293
+ button.text('Processing...');
294
+ },
295
+ complete: function() {
296
+ window.location.href = deactivateLink;
297
+ }
298
+ });
299
+ });
300
+ });
301
+ }(jQuery));
302
+ </script>
303
+ <?php
304
+ }
305
 
306
+ public function send_uninstall_reason() {
307
+ global $wpdb;
308
+ if ( ! isset( $_POST['reason_id'] ) ) {
309
+ wp_send_json_error();
310
+ }
311
+ // $current_user = wp_get_current_user();
312
+ $data = array(
313
+ 'reason_id' => sanitize_text_field( $_POST['reason_id'] ),
314
+ 'plugin' => $this->plugin_id,
315
+ 'auth' => $this->auth_key,
316
+ 'date' => gmdate( 'M d, Y h:i:s A' ),
317
+ 'url' => '',
318
+ 'user_email' => '',
319
+ 'reason_info' => isset( $_REQUEST['reason_info'] ) ? trim( stripslashes( $_REQUEST['reason_info'] ) ) : '',
320
+ 'software' => $_SERVER['SERVER_SOFTWARE'],
321
+ 'php_version' => phpversion(),
322
+ 'mysql_version' => $wpdb->db_version(),
323
+ 'wp_version' => get_bloginfo( 'version' ),
324
+ 'wc_version' => ( ! defined( 'WC_VERSION' ) ) ? '' : WC_VERSION,
325
+ 'locale' => get_locale(),
326
+ 'multisite' => is_multisite() ? 'Yes' : 'No',
327
+ $this->plugin_id . '_version' => $this->current_version,
328
+ );
329
+ // Write an action/hook here in webtoffe to recieve the data
330
+ $resp = wp_remote_post(
331
+ $this->api_url,
332
+ array(
333
+ 'method' => 'POST',
334
+ 'timeout' => 45,
335
+ 'redirection' => 5,
336
+ 'httpversion' => '1.0',
337
+ 'blocking' => false,
338
+ 'body' => $data,
339
+ 'cookies' => array(),
340
+ )
341
+ );
342
+ wp_send_json_success();
343
+ }
344
  }
345
  new Cookie_Law_Info_Uninstall_Feedback();
admin/views/admin-settings-buttons.php CHANGED
@@ -1,360 +1,422 @@
1
  <?php
2
  // If this file is called directly, abort.
3
  if ( ! defined( 'WPINC' ) ) {
4
- die;
5
  }
6
  ?>
7
- <div class="cookie-law-info-tab-content" data-id="<?php echo $target_id;?>">
8
-
9
- <ul class="cli_sub_tab">
10
- <li style="border-left:none; padding-left: 0px;" data-target="accept-button"><a><?php _e('Accept Button', 'cookie-law-info'); ?></a></li>
11
- <li data-target="reject-button"><a><?php _e('Reject Button', 'cookie-law-info'); ?></a></li>
12
- <li data-target="settings-button"><a><?php _e('Settings Button', 'cookie-law-info'); ?></a></li>
13
- <li data-target="read-more-button"><a><?php _e('Read More Link', 'cookie-law-info'); ?></a></li>
14
- <li data-target="do-not-sell-button" class="wt-cli-ccpa-element"><a><?php _e('Do not sell link', 'cookie-law-info'); ?></a></li>
15
- </ul>
 
16
 
17
- <div class="cli_sub_tab_container">
18
 
19
- <div class="cli_sub_tab_content" data-id="accept-button" style="display:block;">
20
- <h3><?php _e('Main Button', 'cookie-law-info'); ?> <code>[cookie_button]</code></h3>
21
- <p><?php _e('This button/link can be customised to either simply close the cookie bar, or follow a link. You can also customise the colours and styles, and show it as a link or a button.', 'cookie-law-info'); ?></p>
22
- <table class="form-table">
23
- <tr valign="top">
24
- <th scope="row"><label for="button_1_text_field"><?php _e('Text', 'cookie-law-info'); ?></label></th>
25
- <td>
26
- <input type="text" name="button_1_text_field" value="<?php echo stripslashes($the_options['button_1_text']) ?>" />
27
- </td>
28
- </tr>
29
- <tr valign="top">
30
- <th scope="row"><label for="button_1_link_colour_field"><?php _e('Text colour', 'cookie-law-info'); ?></label></th>
31
- <td>
32
- <?php
33
- echo '<input type="text" name="button_1_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_1_link_colour'] . '" class="my-color-field" />';
34
- ?>
35
- </td>
36
- </tr>
37
- <tr valign="top">
38
- <th scope="row"><label for="button_1_as_button_field"><?php _e('Show as', 'cookie-law-info'); ?></label></th>
39
- <td>
40
- <input type="radio" cli_frm_tgl-target="cli_accept_type" id="button_1_as_button_field_yes" name="button_1_as_button_field" class="styled cli_form_toggle" value="true" <?php echo ( $the_options['button_1_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php _e('Button', 'cookie-law-info'); ?>
41
-
42
- <input type="radio" cli_frm_tgl-target="cli_accept_type" id="button_1_as_button_field_no" name="button_1_as_button_field" class="styled cli_form_toggle" value="false" <?php echo ( $the_options['button_1_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e('Link', 'cookie-law-info'); ?>
43
- </td>
44
- </tr>
45
- <tr valign="top" class="cli-indent-15" cli_frm_tgl-id="cli_accept_type" cli_frm_tgl-val="true">
46
- <th scope="row"><label for="button_1_button_colour_field"><?php _e('Background colour', 'cookie-law-info'); ?></label></th>
47
- <td>
48
- <?php
49
- echo '<input type="text" name="button_1_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_1_button_colour'] . '" class="my-color-field" />';
50
- ?>
51
- </td>
52
- </tr>
53
 
54
- <tr valign="top">
55
- <th scope="row"><label for="button_1_action_field"><?php _e('Action', 'cookie-law-info'); ?></label></th>
56
- <td>
57
- <select name="button_1_action_field" id="cli-plugin-button-1-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_accept_action">
58
- <?php $this->print_combobox_options($this->get_js_actions(), $the_options['button_1_action']) ?>
59
- </select>
60
- </td>
61
- </tr>
62
- <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
63
- <th scope="row"><label for="button_1_url_field"><?php _e('URL', 'cookie-law-info'); ?></label></th>
64
- <td>
65
- <input type="text" name="button_1_url_field" id="button_1_url_field" value="<?php echo $the_options['button_1_url'] ?>" />
66
- <span class="cli_form_help"><?php _e('Button will only link to URL if Action = Open URL', 'cookie-law-info'); ?></span>
67
- </td>
68
- </tr>
69
 
70
- <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
71
- <th scope="row"><label for="button_1_new_win_field"><?php _e('Open URL in new window?', 'cookie-law-info'); ?></label></th>
72
- <td>
73
- <input type="radio" id="button_1_new_win_field_yes" name="button_1_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_1_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php _e('Yes', 'cookie-law-info'); ?>
74
-
75
- <input type="radio" id="button_1_new_win_field_no" name="button_1_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_1_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e('No', 'cookie-law-info'); ?>
76
- </td>
77
- </tr>
78
-
79
-
80
-
81
- <tr valign="top">
82
- <th scope="row"><label for="button_1_button_size_field"><?php _e('Size', 'cookie-law-info'); ?></label></th>
83
- <td>
84
- <select name="button_1_button_size_field" class="vvv_combobox">
85
- <?php $this->print_combobox_options($this->get_button_sizes(), $the_options['button_1_button_size']); ?>
86
- </select>
87
- </td>
88
- </tr>
89
- </table><!-- end custom button -->
90
- </div>
91
 
92
- <div class="cli_sub_tab_content" data-id="reject-button">
93
- <h3><?php _e('Reject Button', 'cookie-law-info'); ?> <code>[cookie_reject]</code></h3>
94
- <table class="form-table" >
95
- <tr valign="top">
96
- <th scope="row"><label for="button_3_text_field"><?php _e('Text', 'cookie-law-info'); ?></label></th>
97
- <td>
98
- <input type="text" name="button_3_text_field" value="<?php echo stripslashes($the_options['button_3_text']) ?>" />
99
- </td>
100
- </tr>
101
- <tr valign="top">
102
- <th scope="row"><label for="button_3_link_colour_field"><?php _e('Text colour', 'cookie-law-info'); ?></label></th>
103
- <td>
104
- <?php
105
- echo '<input type="text" name="button_3_link_colour_field" id="cli-colour-link-button-3" value="' . $the_options['button_3_link_colour'] . '" class="my-color-field" />';
106
- ?>
107
- </td>
108
- </tr>
109
- <tr valign="top">
110
- <th scope="row"><label for="button_3_as_button_field"><?php _e('Show as', 'cookie-law-info'); ?></label></th>
111
- <td>
112
- <input type="radio" id="button_3_as_button_field_yes" name="button_3_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_reject_type" value="true" <?php echo ( $the_options['button_3_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php _e('Button', 'cookie-law-info'); ?>
113
-
114
- <input type="radio" id="button_3_as_button_field_no" name="button_3_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_reject_type" value="false" <?php echo ( $the_options['button_3_as_button'] == false ) ? ' checked="checked"' : ''; ?> /><?php _e('Link', 'cookie-law-info'); ?>
115
- </td>
116
- </tr>
117
- <tr valign="top" cli_frm_tgl-id="cli_reject_type" cli_frm_tgl-val="true">
118
- <th scope="row"><label for="button_3_button_colour_field"><?php _e('Background colour', 'cookie-law-info'); ?></label></th>
119
- <td>
120
- <?php
121
- echo '<input type="text" name="button_3_button_colour_field" id="cli-colour-btn-button-3" value="' . $the_options['button_3_button_colour'] . '" class="my-color-field" />';
122
- ?>
123
- </td>
124
- </tr>
125
- <tr valign="top">
126
- <th scope="row"><label for="button_3_action_field"><?php _e('Action', 'cookie-law-info'); ?></label></th>
127
- <td>
128
- <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_reject_action">
129
- <?php
130
- $action_list = $this->get_js_actions();
131
- $action_list['close_header']['value'] = '#cookie_action_close_header_reject';
132
- $this->print_combobox_options($action_list, $the_options['button_3_action']);
133
- ?>
134
- </select>
135
- </td>
136
- </tr>
137
- <tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
138
- <th scope="row"><label for="button_3_url_field"><?php _e('URL', 'cookie-law-info'); ?></label></th>
139
- <td>
140
- <input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo $the_options['button_3_url'] ?>" />
141
- <span class="cli_form_help"><?php _e('Button will only link to URL if Action = Open URL', 'cookie-law-info'); ?></span>
142
- </td>
143
- </tr>
144
 
145
- <tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
146
- <th scope="row"><label for="button_3_new_win_field"><?php _e('Open URL in new window?', 'cookie-law-info'); ?></label></th>
147
- <td>
148
- <input type="radio" id="button_3_new_win_field_yes" name="button_3_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_3_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php _e('Yes', 'cookie-law-info'); ?>
149
- <input type="radio" id="button_3_new_win_field_no" name="button_3_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_3_new_win'] == false ) ? ' checked="checked"' : ''; ?> /><?php _e('No', 'cookie-law-info'); ?>
150
- </td>
151
- </tr>
152
- <tr valign="top">
153
- <th scope="row"><label for="button_3_button_size_field"><?php _e('Size', 'cookie-law-info'); ?></label></th>
154
- <td>
155
- <select name="button_3_button_size_field" class="vvv_combobox">
156
- <?php $this->print_combobox_options($this->get_button_sizes(), $the_options['button_3_button_size']); ?>
157
- </select>
158
- </td>
159
- </tr>
160
- </table><!-- end custom button -->
161
- </div>
162
- <div class="cli_sub_tab_content" data-id="settings-button">
163
- <h3><?php _e('Settings Button', 'cookie-law-info'); ?> <code>[cookie_settings]</code></h3>
164
- <table class="form-table" >
165
- <tr valign="top">
166
- <th scope="row"><label for="button_4_text_field"><?php _e('Text', 'cookie-law-info'); ?></label></th>
167
- <td>
168
- <input type="text" name="button_4_text_field" value="<?php echo stripslashes($the_options['button_4_text']) ?>" />
169
- </td>
170
- </tr>
171
- <tr valign="top">
172
- <th scope="row"><label for="button_4_link_colour_field"><?php _e('Text colour', 'cookie-law-info'); ?></label></th>
173
- <td>
174
- <?php
175
- echo '<input type="text" name="button_4_link_colour_field" id="cli-colour-link-button-4" value="' . $the_options['button_4_link_colour'] . '" class="my-color-field" />';
176
- ?>
177
- </td>
178
- </tr>
179
- <tr valign="top">
180
- <th scope="row"><label for="button_4_as_button_field"><?php _e('Show as', 'cookie-law-info'); ?></label></th>
181
- <td>
182
- <input type="radio" id="button_4_as_button_field_yes" name="button_4_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_settings_type" value="true" <?php echo ( $the_options['button_4_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /><?php _e('Button', 'cookie-law-info'); ?>
183
-
184
- <input type="radio" id="button_4_as_button_field_no" name="button_4_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_settings_type" value="false" <?php echo ( $the_options['button_4_as_button'] == false ) ? ' checked="checked"' : ''; ?> /><?php _e('Link', 'cookie-law-info'); ?>
185
- </td>
186
- </tr>
187
- <tr valign="top" cli_frm_tgl-id="cli_settings_type" cli_frm_tgl-val="true">
188
- <th scope="row"><label for="button_4_button_colour_field"><?php _e('Background colour', 'cookie-law-info'); ?></label></th>
189
- <td>
190
- <?php
191
- echo '<input type="text" name="button_4_button_colour_field" id="cli-colour-btn-button-4" value="' . $the_options['button_4_button_colour'] . '" class="my-color-field" />';
192
- ?>
193
- </td>
194
- </tr>
195
- <tr valign="top">
196
- <th scope="row"><label for="button_4_button_size_field"><?php _e('Size', 'cookie-law-info'); ?></label></th>
197
- <td>
198
- <select name="button_4_button_size_field" class="vvv_combobox">
199
- <?php $this->print_combobox_options($this->get_button_sizes(), $the_options['button_4_button_size']); ?>
200
- </select>
201
- </td>
202
- </tr>
203
- </table><!-- end custom button -->
204
- </div>
205
- <div class="cli_sub_tab_content" data-id="read-more-button">
206
- <h3><?php _e('Read More Link', 'cookie-law-info'); ?> <code>[cookie_link]</code></h3>
207
- <p><?php _e('This button/link can be used to provide a link out to your Privacy & Cookie Policy. You can customise it any way you like.', 'cookie-law-info'); ?></p>
208
- <?php
209
- if(Cookie_Law_Info_Admin::module_exists('cli-policy-generator'))
210
- {
211
- ?>
212
- <p><?php _e('Click', 'cookie-law-info'); ?> <a href="<?php echo admin_url('edit.php?post_type='.CLI_POST_TYPE.'&page=cookie-law-info-policy-generator'); ?>"><?php _e('here', 'cookie-law-info'); ?></a> <?php _e(' to generate content for Cookie Policy page.', 'cookie-law-info'); ?>
213
- </p>
214
- <?php
215
- }
216
- ?>
217
 
218
- <table class="form-table">
219
- <tr valign="top">
220
- <th scope="row"><label for="button_2_text_field"><?php _e('Text', 'cookie-law-info'); ?></label></th>
221
- <td>
222
- <input type="text" name="button_2_text_field" value="<?php echo stripslashes($the_options['button_2_text']) ?>" />
223
- </td>
224
- </tr>
225
- <tr valign="top">
226
- <th scope="row"><label for="button_2_link_colour_field"><?php _e('Text colour', 'cookie-law-info'); ?></label></th>
227
- <td>
228
- <?php
229
- echo '<input type="text" name="button_2_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_2_link_colour'] . '" class="my-color-field" />';
230
- ?>
231
- </td>
232
- </tr>
233
- <tr valign="top">
234
- <th scope="row"><label for="button_2_as_button_field"><?php _e('Show as', 'cookie-law-info'); ?></label></th>
235
- <td>
236
- <input type="radio" id="button_2_as_button_field_yes" name="button_2_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_type" value="true" <?php echo ( $the_options['button_2_as_button'] == true ) ? ' checked="checked"' : ''; ?> /> <?php _e('Button', 'cookie-law-info'); ?>
237
-
238
- <input type="radio" id="button_2_as_button_field_no" name="button_2_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_type" value="false" <?php echo ( $the_options['button_2_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e('Link', 'cookie-law-info'); ?>
239
- </td>
240
- </tr>
241
- <tr valign="top" cli_frm_tgl-id="cli_readmore_type" cli_frm_tgl-val="true">
242
- <th scope="row"><label for="button_2_button_colour_field"><?php _e('Background colour', 'cookie-law-info'); ?></label></th>
243
- <td>
244
- <?php
245
- echo '<input type="text" name="button_2_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_2_button_colour'] . '" class="my-color-field" />';
246
- ?>
247
- </td>
248
- </tr>
249
-
250
- <tr valign="top">
251
- <th scope="row"><label for="button_2_url_type_field"><?php _e('URL or Page?', 'cookie-law-info'); ?></label></th>
252
- <td>
253
- <input type="radio" id="button_2_url_type_field_url" name="button_2_url_type_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_url_type" value="url" <?php echo ( $the_options['button_2_url_type'] == 'url' ) ? ' checked="checked"' : ''; ?> /> <?php _e('URL', 'cookie-law-info'); ?>
254
-
255
- <input type="radio" id="button_2_url_type_field_page" name="button_2_url_type_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_url_type" value="page" <?php echo ( $the_options['button_2_url_type'] == 'page' ) ? ' checked="checked"' : ''; ?> /> <?php _e('Page', 'cookie-law-info'); ?>
256
- </td>
257
- </tr>
258
 
259
- <tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="url">
260
- <th scope="row"><label for="button_2_url_field"><?php _e('URL', 'cookie-law-info'); ?></label></th>
261
- <td>
262
- <input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo $the_options['button_2_url'] ?>" />
263
- </td>
264
- </tr>
265
- <tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="page">
266
- <th scope="row"><label for="button_2_page_field"><?php _e('Page', 'cookie-law-info'); ?></label></th>
267
- <td>
268
- <select name="button_2_page_field" class="vvv_combobox" id="button_2_page_field">
269
- <option value="0">--<?php _e('Select One','cookie-law-info'); ?>--</option>
270
- <?php
271
- foreach($all_pages as $page)
272
- {
273
- ?>
274
- <option value="<?php echo $page->ID; ?>" <?php echo ($the_options['button_2_page']==$page->ID ? 'selected' : ''); ?>> <?php echo $page->post_title;?> </option>;
275
- <?php
276
- }
277
- ?>
278
- </select>
279
- <?php
280
- if($the_options['button_2_page']>0)
281
- {
282
- $privacy_policy_page=get_post($the_options['button_2_page']);
283
- $privacy_page_exists=0;
284
- if($privacy_policy_page instanceof WP_Post)
285
- {
286
- if($privacy_policy_page->post_status==='publish')
287
- {
288
- $privacy_page_exists=1;
289
- }
290
- }
291
- if($privacy_page_exists==0)
292
- {
293
- ?>
294
- <span class="cli_form_er cli_privacy_page_not_exists_er" style="display: inline;"><?php echo _e('The currently selected page does not exist. Please select a new page.'); ?></span>
295
- <?php
296
- }
297
- }
298
- ?>
299
- </td>
300
- </tr>
301
- <tr valign="top">
302
- <th scope="row"><label for="button_2_new_win_field"><?php _e('Minimize Cookie Bar in this page/URL?', 'cookie-law-info'); ?></label></th>
303
- <td>
304
- <input type="radio" id="button_2_hidebar_field_yes" name="button_2_hidebar_field" class="styled" value="true" <?php echo ( $the_options['button_2_hidebar'] == true ) ? ' checked="checked"' : ''; ?> /> <?php _e('Yes', 'cookie-law-info'); ?>
305
- <input type="radio" id="button_2_hidebar_field_no" name="button_2_hidebar_field" class="styled" value="false" <?php echo ( $the_options['button_2_hidebar'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e('No', 'cookie-law-info'); ?>
306
- </td>
307
- </tr>
308
- <tr valign="top">
309
- <th scope="row"><label for="button_2_new_win_field"><?php _e('Open in new window?', 'cookie-law-info'); ?></label></th>
310
- <td>
311
- <input type="radio" id="button_2_new_win_field_yes" name="button_2_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_2_new_win'] == true ) ? ' checked="checked"' : ''; ?> /> <?php _e('Yes', 'cookie-law-info'); ?>
312
- <input type="radio" id="button_2_new_win_field_no" name="button_2_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_2_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e('No', 'cookie-law-info'); ?>
313
- </td>
314
- </tr>
315
- <tr valign="top">
316
- <th scope="row"><label for="button_2_button_size_field"><?php _e('Size', 'cookie-law-info'); ?></label></th>
317
- <td>
318
- <select name="button_2_button_size_field" class="vvv_combobox">
319
- <?php $this->print_combobox_options($this->get_button_sizes(), $the_options['button_2_button_size']); ?>
320
- </select>
321
- </td>
322
- </tr>
323
- </table><!-- end custom button -->
324
- </div>
325
- <div class="cli_sub_tab_content wt-cli-ccpa-element" data-id="do-not-sell-button">
326
- <h3><?php _e('Do not sell link', 'cookie-law-info'); ?> <code>[wt_cli_ccpa_optout]</code></h3>
327
- <table class="form-table">
328
- <tr valign="top">
329
- <th scope="row"><label for="button_6_text_field"><?php _e('CCPA Text', 'cookie-law-info'); ?></label></th>
330
- <td>
331
- <input type="text" name="button_6_text_field" value="<?php echo stripslashes($the_options['button_6_text']) ?>" />
332
- </td>
333
- </tr>
334
- <tr valign="top">
335
- <th scope="row"><label for="button_6_as_link_field"><?php _e('Show as', 'cookie-law-info'); ?></label></th>
336
- <td>
337
- <input type="radio" cli_frm_tgl-target="wt-cli-ccpa-advanced" id="button_6_as_link_field_yes" name="button_6_as_link_field" class="styled cli_form_toggle" value="true" <?php echo (wp_validate_boolean($the_options['button_6_as_link']) == true) ? ' checked="checked"' : ''; ?> /> <?php _e('Link', 'cookie-law-info'); ?>
338
- <input type="radio" cli_frm_tgl-target="wt-cli-ccpa-advanced" id="button_6_as_link_field_no" name="button_6_as_link_field" class="styled cli_form_toggle" value="false" <?php echo (wp_validate_boolean($the_options['button_6_as_link']) == false) ? ' checked="checked"' : ' '; ?> /> <?php _e('Checkbox', 'cookie-law-info'); ?>
339
-
340
- <span class="cli_form_help" cli_frm_tgl-id="wt-cli-ccpa-advanced" cli_frm_tgl-val="true" style="margin-top:8px;"><?php _e('The shortcode will be represented as a link whereever used.', 'cookie-law-info'); ?></span>
341
- <span class="cli_form_help" cli_frm_tgl-id="wt-cli-ccpa-advanced" cli_frm_tgl-val="false" style="margin-top:8px;"><?php _e('The shortcode will be represented as a checkbox with select option to record consent.', 'cookie-law-info'); ?></span>
342
 
343
- </td>
344
- </tr>
345
- <tr valign="top">
346
- <th scope="row"><label for="button_6_link_colour_field"><?php _e('Text colour', 'cookie-law-info'); ?></label></th>
347
- <td>
348
- <?php
349
- echo '<input type="text" name="button_6_link_colour_field" id="cli-colour-link-button-6" value="' . $the_options['button_6_link_colour'] . '" class="my-color-field" />';
350
- ?>
351
- </td>
352
- </tr>
353
- </table><!-- end custom button -->
354
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
355
 
356
- </div>
357
- <?php
358
- include "admin-settings-save-button.php";
359
- ?>
360
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <?php
2
  // If this file is called directly, abort.
3
  if ( ! defined( 'WPINC' ) ) {
4
+ die;
5
  }
6
  ?>
7
+ <div class="cookie-law-info-tab-content" data-id="<?php echo $target_id; ?>">
8
+
9
+ <ul class="cli_sub_tab">
10
+ <li style="border-left:none; padding-left: 0px;" data-target="accept-button"><a><?php _e( 'Accept Button', 'cookie-law-info' ); ?></a></li>
11
+ <li data-target="accept-all-button"><a><?php _e('Accept All Button', 'cookie-law-info'); ?></a></li>
12
+ <li data-target="reject-button"><a><?php _e( 'Reject Button', 'cookie-law-info' ); ?></a></li>
13
+ <li data-target="settings-button"><a><?php _e( 'Settings Button', 'cookie-law-info' ); ?></a></li>
14
+ <li data-target="read-more-button"><a><?php _e( 'Read More Link', 'cookie-law-info' ); ?></a></li>
15
+ <li data-target="do-not-sell-button" class="wt-cli-ccpa-element"><a><?php _e( 'Do not sell link', 'cookie-law-info' ); ?></a></li>
16
+ </ul>
17
 
18
+ <div class="cli_sub_tab_container">
19
 
20
+ <div class="cli_sub_tab_content" data-id="accept-button" style="display:block;">
21
+ <h3><?php _e( 'Accept Button', 'cookie-law-info' ); ?> <code>[cookie_button]</code></h3>
22
+ <p><?php _e( 'This button/link can be customised to either simply close the cookie bar, or follow a link. You can also customise the colours and styles, and show it as a link or a button.', 'cookie-law-info' ); ?></p>
23
+ <table class="form-table">
24
+ <tr valign="top">
25
+ <th scope="row"><label for="button_1_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
26
+ <td>
27
+ <input type="text" name="button_1_text_field" value="<?php echo stripslashes( $the_options['button_1_text'] ); ?>" />
28
+ </td>
29
+ </tr>
30
+ <tr valign="top">
31
+ <th scope="row"><label for="button_1_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
32
+ <td>
33
+ <?php
34
+ echo '<input type="text" name="button_1_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_1_link_colour'] . '" class="my-color-field" />';
35
+ ?>
36
+ </td>
37
+ </tr>
38
+ <tr valign="top">
39
+ <th scope="row"><label for="button_1_as_button_field"><?php _e( 'Show as', 'cookie-law-info' ); ?></label></th>
40
+ <td>
41
+ <input type="radio" cli_frm_tgl-target="cli_accept_type" id="button_1_as_button_field_yes" name="button_1_as_button_field" class="styled cli_form_toggle" value="true" <?php echo ( $the_options['button_1_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php _e( 'Button', 'cookie-law-info' ); ?>
42
+
43
+ <input type="radio" cli_frm_tgl-target="cli_accept_type" id="button_1_as_button_field_no" name="button_1_as_button_field" class="styled cli_form_toggle" value="false" <?php echo ( $the_options['button_1_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Link', 'cookie-law-info' ); ?>
44
+ </td>
45
+ </tr>
46
+ <tr valign="top" class="cli-indent-15" cli_frm_tgl-id="cli_accept_type" cli_frm_tgl-val="true">
47
+ <th scope="row"><label for="button_1_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
48
+ <td>
49
+ <?php
50
+ echo '<input type="text" name="button_1_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_1_button_colour'] . '" class="my-color-field" />';
51
+ ?>
52
+ </td>
53
+ </tr>
54
 
55
+ <tr valign="top">
56
+ <th scope="row"><label for="button_1_action_field"><?php _e( 'Action', 'cookie-law-info' ); ?></label></th>
57
+ <td>
58
+ <select name="button_1_action_field" id="cli-plugin-button-1-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_accept_action">
59
+ <?php $this->print_combobox_options( $this->get_js_actions(), $the_options['button_1_action'] ); ?>
60
+ </select>
61
+ </td>
62
+ </tr>
63
+ <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
64
+ <th scope="row"><label for="button_1_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
65
+ <td>
66
+ <input type="text" name="button_1_url_field" id="button_1_url_field" value="<?php echo $the_options['button_1_url']; ?>" />
67
+ <span class="cli_form_help"><?php _e( 'Button will only link to URL if Action = Open URL', 'cookie-law-info' ); ?></span>
68
+ </td>
69
+ </tr>
70
 
71
+ <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
72
+ <th scope="row"><label for="button_1_new_win_field"><?php _e( 'Open URL in new window?', 'cookie-law-info' ); ?></label></th>
73
+ <td>
74
+ <input type="radio" id="button_1_new_win_field_yes" name="button_1_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_1_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php _e( 'Yes', 'cookie-law-info' ); ?>
75
+
76
+ <input type="radio" id="button_1_new_win_field_no" name="button_1_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_1_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'No', 'cookie-law-info' ); ?>
77
+ </td>
78
+ </tr>
79
+
80
+
81
+
82
+ <tr valign="top">
83
+ <th scope="row"><label for="button_1_button_size_field"><?php _e( 'Size', 'cookie-law-info' ); ?></label></th>
84
+ <td>
85
+ <select name="button_1_button_size_field" class="vvv_combobox">
86
+ <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_1_button_size'] ); ?>
87
+ </select>
88
+ </td>
89
+ </tr>
90
+ </table><!-- end custom button -->
91
+ </div>
92
 
93
+ <div class="cli_sub_tab_content" data-id="reject-button">
94
+ <h3><?php _e( 'Reject Button', 'cookie-law-info' ); ?> <code>[cookie_reject]</code></h3>
95
+ <table class="form-table" >
96
+ <tr valign="top">
97
+ <th scope="row"><label for="button_3_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
98
+ <td>
99
+ <input type="text" name="button_3_text_field" value="<?php echo stripslashes( $the_options['button_3_text'] ); ?>" />
100
+ </td>
101
+ </tr>
102
+ <tr valign="top">
103
+ <th scope="row"><label for="button_3_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
104
+ <td>
105
+ <?php
106
+ echo '<input type="text" name="button_3_link_colour_field" id="cli-colour-link-button-3" value="' . $the_options['button_3_link_colour'] . '" class="my-color-field" />';
107
+ ?>
108
+ </td>
109
+ </tr>
110
+ <tr valign="top">
111
+ <th scope="row"><label for="button_3_as_button_field"><?php _e( 'Show as', 'cookie-law-info' ); ?></label></th>
112
+ <td>
113
+ <input type="radio" id="button_3_as_button_field_yes" name="button_3_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_reject_type" value="true" <?php echo ( $the_options['button_3_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php _e( 'Button', 'cookie-law-info' ); ?>
114
+
115
+ <input type="radio" id="button_3_as_button_field_no" name="button_3_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_reject_type" value="false" <?php echo ( $the_options['button_3_as_button'] == false ) ? ' checked="checked"' : ''; ?> /><?php _e( 'Link', 'cookie-law-info' ); ?>
116
+ </td>
117
+ </tr>
118
+ <tr valign="top" cli_frm_tgl-id="cli_reject_type" cli_frm_tgl-val="true">
119
+ <th scope="row"><label for="button_3_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
120
+ <td>
121
+ <?php
122
+ echo '<input type="text" name="button_3_button_colour_field" id="cli-colour-btn-button-3" value="' . $the_options['button_3_button_colour'] . '" class="my-color-field" />';
123
+ ?>
124
+ </td>
125
+ </tr>
126
+ <tr valign="top">
127
+ <th scope="row"><label for="button_3_action_field"><?php _e( 'Action', 'cookie-law-info' ); ?></label></th>
128
+ <td>
129
+ <select name="button_3_action_field" id="cli-plugin-button-3-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_reject_action">
130
+ <?php
131
+ $action_list = $this->get_js_actions();
132
+ $action_list['close_header']['value'] = '#cookie_action_close_header_reject';
133
+ $this->print_combobox_options( $action_list, $the_options['button_3_action'] );
134
+ ?>
135
+ </select>
136
+ </td>
137
+ </tr>
138
+ <tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
139
+ <th scope="row"><label for="button_3_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
140
+ <td>
141
+ <input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo $the_options['button_3_url']; ?>" />
142
+ <span class="cli_form_help"><?php _e( 'Button will only link to URL if Action = Open URL', 'cookie-law-info' ); ?></span>
143
+ </td>
144
+ </tr>
145
 
146
+ <tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
147
+ <th scope="row"><label for="button_3_new_win_field"><?php _e( 'Open URL in new window?', 'cookie-law-info' ); ?></label></th>
148
+ <td>
149
+ <input type="radio" id="button_3_new_win_field_yes" name="button_3_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_3_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php _e( 'Yes', 'cookie-law-info' ); ?>
150
+ <input type="radio" id="button_3_new_win_field_no" name="button_3_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_3_new_win'] == false ) ? ' checked="checked"' : ''; ?> /><?php _e( 'No', 'cookie-law-info' ); ?>
151
+ </td>
152
+ </tr>
153
+ <tr valign="top">
154
+ <th scope="row"><label for="button_3_button_size_field"><?php _e( 'Size', 'cookie-law-info' ); ?></label></th>
155
+ <td>
156
+ <select name="button_3_button_size_field" class="vvv_combobox">
157
+ <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_3_button_size'] ); ?>
158
+ </select>
159
+ </td>
160
+ </tr>
161
+ </table><!-- end custom button -->
162
+ </div>
163
+ <div class="cli_sub_tab_content" data-id="settings-button">
164
+ <h3><?php _e( 'Settings Button', 'cookie-law-info' ); ?> <code>[cookie_settings]</code></h3>
165
+ <table class="form-table" >
166
+ <tr valign="top">
167
+ <th scope="row"><label for="button_4_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
168
+ <td>
169
+ <input type="text" name="button_4_text_field" value="<?php echo stripslashes( $the_options['button_4_text'] ); ?>" />
170
+ </td>
171
+ </tr>
172
+ <tr valign="top">
173
+ <th scope="row"><label for="button_4_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
174
+ <td>
175
+ <?php
176
+ echo '<input type="text" name="button_4_link_colour_field" id="cli-colour-link-button-4" value="' . $the_options['button_4_link_colour'] . '" class="my-color-field" />';
177
+ ?>
178
+ </td>
179
+ </tr>
180
+ <tr valign="top">
181
+ <th scope="row"><label for="button_4_as_button_field"><?php _e( 'Show as', 'cookie-law-info' ); ?></label></th>
182
+ <td>
183
+ <input type="radio" id="button_4_as_button_field_yes" name="button_4_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_settings_type" value="true" <?php echo ( $the_options['button_4_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /><?php _e( 'Button', 'cookie-law-info' ); ?>
184
+
185
+ <input type="radio" id="button_4_as_button_field_no" name="button_4_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_settings_type" value="false" <?php echo ( $the_options['button_4_as_button'] == false ) ? ' checked="checked"' : ''; ?> /><?php _e( 'Link', 'cookie-law-info' ); ?>
186
+ </td>
187
+ </tr>
188
+ <tr valign="top" cli_frm_tgl-id="cli_settings_type" cli_frm_tgl-val="true">
189
+ <th scope="row"><label for="button_4_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
190
+ <td>
191
+ <?php
192
+ echo '<input type="text" name="button_4_button_colour_field" id="cli-colour-btn-button-4" value="' . $the_options['button_4_button_colour'] . '" class="my-color-field" />';
193
+ ?>
194
+ </td>
195
+ </tr>
196
+ <tr valign="top">
197
+ <th scope="row"><label for="button_4_button_size_field"><?php _e( 'Size', 'cookie-law-info' ); ?></label></th>
198
+ <td>
199
+ <select name="button_4_button_size_field" class="vvv_combobox">
200
+ <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_4_button_size'] ); ?>
201
+ </select>
202
+ </td>
203
+ </tr>
204
+ </table><!-- end custom button -->
205
+ </div>
206
+ <div class="cli_sub_tab_content" data-id="read-more-button">
207
+ <h3><?php _e( 'Read More Link', 'cookie-law-info' ); ?> <code>[cookie_link]</code></h3>
208
+ <p><?php _e( 'This button/link can be used to provide a link out to your Privacy & Cookie Policy. You can customise it any way you like.', 'cookie-law-info' ); ?></p>
209
+ <?php
210
+ if ( Cookie_Law_Info_Admin::module_exists( 'cli-policy-generator' ) ) {
211
+ ?>
212
+ <p><?php _e( 'Click', 'cookie-law-info' ); ?> <a href="<?php echo admin_url( 'edit.php?post_type=' . CLI_POST_TYPE . '&page=cookie-law-info-policy-generator' ); ?>"><?php _e( 'here', 'cookie-law-info' ); ?></a> <?php _e( ' to generate content for Cookie Policy page.', 'cookie-law-info' ); ?>
213
+ </p>
214
+ <?php
215
+ }
216
+ ?>
 
217
 
218
+ <table class="form-table">
219
+ <tr valign="top">
220
+ <th scope="row"><label for="button_2_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
221
+ <td>
222
+ <input type="text" name="button_2_text_field" value="<?php echo stripslashes( $the_options['button_2_text'] ); ?>" />
223
+ </td>
224
+ </tr>
225
+ <tr valign="top">
226
+ <th scope="row"><label for="button_2_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
227
+ <td>
228
+ <?php
229
+ echo '<input type="text" name="button_2_link_colour_field" id="cli-colour-link-button-1" value="' . $the_options['button_2_link_colour'] . '" class="my-color-field" />';
230
+ ?>
231
+ </td>
232
+ </tr>
233
+ <tr valign="top">
234
+ <th scope="row"><label for="button_2_as_button_field"><?php _e( 'Show as', 'cookie-law-info' ); ?></label></th>
235
+ <td>
236
+ <input type="radio" id="button_2_as_button_field_yes" name="button_2_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_type" value="true" <?php echo ( $the_options['button_2_as_button'] == true ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Button', 'cookie-law-info' ); ?>
237
+
238
+ <input type="radio" id="button_2_as_button_field_no" name="button_2_as_button_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_type" value="false" <?php echo ( $the_options['button_2_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Link', 'cookie-law-info' ); ?>
239
+ </td>
240
+ </tr>
241
+ <tr valign="top" cli_frm_tgl-id="cli_readmore_type" cli_frm_tgl-val="true">
242
+ <th scope="row"><label for="button_2_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
243
+ <td>
244
+ <?php
245
+ echo '<input type="text" name="button_2_button_colour_field" id="cli-colour-btn-button-1" value="' . $the_options['button_2_button_colour'] . '" class="my-color-field" />';
246
+ ?>
247
+ </td>
248
+ </tr>
249
+
250
+ <tr valign="top">
251
+ <th scope="row"><label for="button_2_url_type_field"><?php _e( 'URL or Page?', 'cookie-law-info' ); ?></label></th>
252
+ <td>
253
+ <input type="radio" id="button_2_url_type_field_url" name="button_2_url_type_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_url_type" value="url" <?php echo ( $the_options['button_2_url_type'] == 'url' ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'URL', 'cookie-law-info' ); ?>
254
+
255
+ <input type="radio" id="button_2_url_type_field_page" name="button_2_url_type_field" class="styled cli_form_toggle" cli_frm_tgl-target="cli_readmore_url_type" value="page" <?php echo ( $the_options['button_2_url_type'] == 'page' ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Page', 'cookie-law-info' ); ?>
256
+ </td>
257
+ </tr>
258
 
259
+ <tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="url">
260
+ <th scope="row"><label for="button_2_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
261
+ <td>
262
+ <input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo $the_options['button_2_url']; ?>" />
263
+ </td>
264
+ </tr>
265
+ <tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="page">
266
+ <th scope="row"><label for="button_2_page_field"><?php _e( 'Page', 'cookie-law-info' ); ?></label></th>
267
+ <td>
268
+ <select name="button_2_page_field" class="vvv_combobox" id="button_2_page_field">
269
+ <option value="0">--<?php _e( 'Select One', 'cookie-law-info' ); ?>--</option>
270
+ <?php
271
+ foreach ( $all_pages as $page ) {
272
+ ?>
273
+ <option value="<?php echo $page->ID; ?>" <?php echo ( $the_options['button_2_page'] == $page->ID ? 'selected' : '' ); ?>> <?php echo $page->post_title; ?> </option>;
274
+ <?php
275
+ }
276
+ ?>
277
+ </select>
278
+ <?php
279
+ if ( $the_options['button_2_page'] > 0 ) {
280
+ $privacy_policy_page = get_post( $the_options['button_2_page'] );
281
+ $privacy_page_exists = 0;
282
+ if ( $privacy_policy_page instanceof WP_Post ) {
283
+ if ( $privacy_policy_page->post_status === 'publish' ) {
284
+ $privacy_page_exists = 1;
285
+ }
286
+ }
287
+ if ( $privacy_page_exists == 0 ) {
288
+ ?>
289
+ <span class="cli_form_er cli_privacy_page_not_exists_er" style="display: inline;"><?php echo _e( 'The currently selected page does not exist. Please select a new page.' ); ?></span>
290
+ <?php
291
+ }
292
+ }
293
+ ?>
294
+ </td>
295
+ </tr>
296
+ <tr valign="top">
297
+ <th scope="row"><label for="button_2_new_win_field"><?php _e( 'Minimize Cookie Bar in this page/URL?', 'cookie-law-info' ); ?></label></th>
298
+ <td>
299
+ <input type="radio" id="button_2_hidebar_field_yes" name="button_2_hidebar_field" class="styled" value="true" <?php echo ( $the_options['button_2_hidebar'] == true ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Yes', 'cookie-law-info' ); ?>
300
+ <input type="radio" id="button_2_hidebar_field_no" name="button_2_hidebar_field" class="styled" value="false" <?php echo ( $the_options['button_2_hidebar'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'No', 'cookie-law-info' ); ?>
301
+ </td>
302
+ </tr>
303
+ <tr valign="top">
304
+ <th scope="row"><label for="button_2_new_win_field"><?php _e( 'Open in new window?', 'cookie-law-info' ); ?></label></th>
305
+ <td>
306
+ <input type="radio" id="button_2_new_win_field_yes" name="button_2_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_2_new_win'] == true ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Yes', 'cookie-law-info' ); ?>
307
+ <input type="radio" id="button_2_new_win_field_no" name="button_2_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_2_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'No', 'cookie-law-info' ); ?>
308
+ </td>
309
+ </tr>
310
+ <tr valign="top">
311
+ <th scope="row"><label for="button_2_button_size_field"><?php _e( 'Size', 'cookie-law-info' ); ?></label></th>
312
+ <td>
313
+ <select name="button_2_button_size_field" class="vvv_combobox">
314
+ <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_2_button_size'] ); ?>
315
+ </select>
316
+ </td>
317
+ </tr>
318
+ </table><!-- end custom button -->
319
+ </div>
320
+ <div class="cli_sub_tab_content wt-cli-ccpa-element" data-id="do-not-sell-button">
321
+ <h3><?php _e( 'Do not sell link', 'cookie-law-info' ); ?> <code>[wt_cli_ccpa_optout]</code></h3>
322
+ <table class="form-table">
323
+ <tr valign="top">
324
+ <th scope="row"><label for="button_6_text_field"><?php _e( 'CCPA Text', 'cookie-law-info' ); ?></label></th>
325
+ <td>
326
+ <input type="text" name="button_6_text_field" value="<?php echo stripslashes( $the_options['button_6_text'] ); ?>" />
327
+ </td>
328
+ </tr>
329
+ <tr valign="top">
330
+ <th scope="row"><label for="button_6_as_link_field"><?php _e( 'Show as', 'cookie-law-info' ); ?></label></th>
331
+ <td>
332
+ <input type="radio" cli_frm_tgl-target="wt-cli-ccpa-advanced" id="button_6_as_link_field_yes" name="button_6_as_link_field" class="styled cli_form_toggle" value="true" <?php echo ( wp_validate_boolean( $the_options['button_6_as_link'] ) == true ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Link', 'cookie-law-info' ); ?>
333
+ <input type="radio" cli_frm_tgl-target="wt-cli-ccpa-advanced" id="button_6_as_link_field_no" name="button_6_as_link_field" class="styled cli_form_toggle" value="false" <?php echo ( wp_validate_boolean( $the_options['button_6_as_link'] ) == false ) ? ' checked="checked"' : ' '; ?> /> <?php _e( 'Checkbox', 'cookie-law-info' ); ?>
334
+ <span class="cli_form_help" cli_frm_tgl-id="wt-cli-ccpa-advanced" cli_frm_tgl-val="true" style="margin-top:8px;"><?php _e( 'The shortcode will be represented as a link whereever used.', 'cookie-law-info' ); ?></span>
335
+ <span class="cli_form_help" cli_frm_tgl-id="wt-cli-ccpa-advanced" cli_frm_tgl-val="false" style="margin-top:8px;"><?php _e( 'The shortcode will be represented as a checkbox with select option to record consent.', 'cookie-law-info' ); ?></span>
 
 
 
 
 
 
336
 
337
+ </td>
338
+ </tr>
339
+ <tr valign="top">
340
+ <th scope="row"><label for="button_6_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
341
+ <td>
342
+ <?php
343
+ echo '<input type="text" name="button_6_link_colour_field" id="cli-colour-link-button-6" value="' . $the_options['button_6_link_colour'] . '" class="my-color-field" />';
344
+ ?>
345
+ </td>
346
+ </tr>
347
+ </table><!-- end custom button -->
348
+ </div>
349
+ <div class="cli_sub_tab_content" data-id="accept-all-button" style="display:block;">
350
+ <h3><?php _e( 'Accept All Button', 'cookie-law-info' ); ?> <code>[cookie_accept_all]</code></h3>
351
+ <p><?php _e( 'This button/link can be customised to either simply close the cookie bar, or follow a link. You can also customise the colours and styles, and show it as a link or a button.', 'cookie-law-info' ); ?></p>
352
+ <table class="form-table">
353
+ <tr valign="top">
354
+ <th scope="row"><label for="button_7_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
355
+ <td>
356
+ <input type="text" name="button_7_text_field" value="<?php echo stripslashes( $the_options['button_7_text'] ); ?>" />
357
+ </td>
358
+ </tr>
359
+ <tr valign="top">
360
+ <th scope="row"><label for="button_7_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
361
+ <td>
362
+ <?php
363
+ echo '<input type="text" name="button_7_link_colour_field" id="cli-colour-link-button-7" value="' . $the_options['button_7_link_colour'] . '" class="my-color-field" />';
364
+ ?>
365
+ </td>
366
+ </tr>
367
+ <tr valign="top">
368
+ <th scope="row"><label for="button_7_as_button_field"><?php _e( 'Show as', 'cookie-law-info' ); ?></label></th>
369
+ <td>
370
+ <input type="radio" cli_frm_tgl-target="cli_accept_all_type" id="button_7_as_button_field_yes" name="button_7_as_button_field" class="styled cli_form_toggle" value="true" <?php echo ( $the_options['button_7_as_button'] == true ) ? ' checked="checked"' : ' '; ?> /> <?php _e( 'Button', 'cookie-law-info' ); ?>
371
 
372
+ <input type="radio" cli_frm_tgl-target="cli_accept_all_type" id="button_7_as_button_field_no" name="button_7_as_button_field" class="styled cli_form_toggle" value="false" <?php echo ( $the_options['button_7_as_button'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'Link', 'cookie-law-info' ); ?>
373
+ </td>
374
+ </tr>
375
+ <tr valign="top" class="cli-indent-15" cli_frm_tgl-id="cli_accept_all_type" cli_frm_tgl-val="true">
376
+ <th scope="row"><label for="button_7_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
377
+ <td>
378
+ <?php
379
+ echo '<input type="text" name="button_7_button_colour_field" id="cli-colour-btn-button-7" value="' . $the_options['button_7_button_colour'] . '" class="my-color-field" />';
380
+ ?>
381
+ </td>
382
+ </tr>
383
+ <tr valign="top">
384
+ <th scope="row"><label for="button_7_action_field"><?php _e( 'Action', 'cookie-law-info' ); ?></label></th>
385
+ <td>
386
+ <select name="button_7_action_field" id="cli-plugin-button-7-action" class="vvv_combobox cli_form_toggle" cli_frm_tgl-target="cli_accept_all_action">
387
+ <?php $this->print_combobox_options( $this->get_js_actions(), $the_options['button_7_action'] ); ?>
388
+ </select>
389
+ </td>
390
+ </tr>
391
+ <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_all_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
392
+ <th scope="row"><label for="button_7_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
393
+ <td>
394
+ <input type="text" name="button_7_url_field" id="button_7_url_field" value="<?php echo $the_options['button_7_url']; ?>" />
395
+ <span class="cli_form_help"><?php _e( 'Button will only link to URL if Action = Open URL', 'cookie-law-info' ); ?></span>
396
+ </td>
397
+ </tr>
398
+
399
+ <tr valign="top" class="cli-plugin-row cli-indent-15" cli_frm_tgl-id="cli_accept_all_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
400
+ <th scope="row"><label for="button_7_new_win_field"><?php _e( 'Open URL in new window?', 'cookie-law-info' ); ?></label></th>
401
+ <td>
402
+ <input type="radio" id="button_7_new_win_field_yes" name="button_7_new_win_field" class="styled" value="true" <?php echo ( $the_options['button_7_new_win'] == true ) ? ' checked="checked"' : ''; ?> /><?php _e( 'Yes', 'cookie-law-info' ); ?>
403
+
404
+ <input type="radio" id="button_7_new_win_field_no" name="button_7_new_win_field" class="styled" value="false" <?php echo ( $the_options['button_7_new_win'] == false ) ? ' checked="checked"' : ''; ?> /> <?php _e( 'No', 'cookie-law-info' ); ?>
405
+ </td>
406
+ </tr>
407
+ <tr valign="top">
408
+ <th scope="row"><label for="button_7_button_size_field"><?php _e( 'Size', 'cookie-law-info' ); ?></label></th>
409
+ <td>
410
+ <select name="button_7_button_size_field" class="vvv_combobox">
411
+ <?php $this->print_combobox_options( $this->get_button_sizes(), $the_options['button_7_button_size'] ); ?>
412
+ </select>
413
+ </td>
414
+ </tr>
415
+ </table><!-- end custom button -->
416
+ </div>
417
+
418
+ </div>
419
+ <?php
420
+ require 'admin-settings-save-button.php';
421
+ ?>
422
+ </div>
admin/views/admin-settings-help.php CHANGED
@@ -106,7 +106,7 @@ if ( ! defined( 'WPINC' ) ) {
106
  <img src="<?php echo $admin_img_path;?>documentation.png">
107
  <h3><?php _e('Documentation', 'cookie-law-info'); ?></h3>
108
  <p><?php _e('Refer to our documentation to set and get started', 'cookie-law-info'); ?></p>
109
- <a target="_blank" href="http://cookielawinfo.com/user-guide/" class="button button-primary">
110
  <?php _e('Documentation', 'cookie-law-info'); ?>
111
  </a>
112
  </li>
106
  <img src="<?php echo $admin_img_path;?>documentation.png">
107
  <h3><?php _e('Documentation', 'cookie-law-info'); ?></h3>
108
  <p><?php _e('Refer to our documentation to set and get started', 'cookie-law-info'); ?></p>
109
+ <a target="_blank" href="https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-version-user-guide/" class="button button-primary">
110
  <?php _e('Documentation', 'cookie-law-info'); ?>
111
  </a>
112
  </li>
cookie-law-info.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: GDPR Cookie Consent
17
  * Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
18
  * Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
19
- * Version: 2.0.0
20
  * Author: WebToffee
21
  * Author URI: http://cookielawinfo.com/
22
  * License: GPLv3
@@ -69,7 +69,7 @@ define ( 'CLI_ACTIVATION_ID','wtgdprcookieconsent');
69
  * Currently plugin version.
70
  * Rename this for your plugin and update it as you release new versions.
71
  */
72
- define( 'CLI_VERSION', '2.0.0' );
73
 
74
  function wt_cookie_law_info_update_message( $data, $response )
75
  {
16
  * Plugin Name: GDPR Cookie Consent
17
  * Plugin URI: https://www.webtoffee.com/product/gdpr-cookie-consent/
18
  * Description: A simple way to show your website complies with the EU Cookie Law / GDPR.
19
+ * Version: 2.0.1
20
  * Author: WebToffee
21
  * Author URI: http://cookielawinfo.com/
22
  * License: GPLv3
69
  * Currently plugin version.
70
  * Rename this for your plugin and update it as you release new versions.
71
  */
72
+ define( 'CLI_VERSION', '2.0.1' );
73
 
74
  function wt_cookie_law_info_update_message( $data, $response )
75
  {
includes/class-cookie-law-info.php CHANGED
@@ -78,7 +78,7 @@ class Cookie_Law_Info {
78
  }
79
  else
80
  {
81
- $this->version = '2.0.0';
82
  }
83
  $this->plugin_name = 'cookie-law-info';
84
 
@@ -425,7 +425,17 @@ class Cookie_Law_Info {
425
  'button_4_button_size' => 'medium',
426
  'button_4_style' => array(),
427
  'button_5_style' => array(),
428
-
 
 
 
 
 
 
 
 
 
 
429
  'font_family' => 'inherit', // Pick the family, not the easy name (see helper function below)
430
  'header_fix' => false,
431
  'is_on' => true,
@@ -501,7 +511,12 @@ class Cookie_Law_Info {
501
  'button_4_button_colour' => $settings['button_4_button_colour'],
502
  'button_4_button_hover' => (self::su_hex_shift( $settings['button_4_button_colour'], 'down', 20 )),
503
  'button_4_link_colour' => $settings['button_4_link_colour'],
504
- 'button_4_as_button' => $settings['button_4_as_button'],
 
 
 
 
 
505
  'font_family' => $settings['font_family'],
506
  'header_fix' => $settings['header_fix'],
507
  'notify_animate_hide' => $settings['notify_animate_hide'],
@@ -566,6 +581,8 @@ class Cookie_Law_Info {
566
  case 'button_3_as_button':
567
  case 'button_4_new_win':
568
  case 'button_4_as_button':
 
 
569
  case 'scroll_close':
570
  case 'scroll_close_reload':
571
  case 'accept_close_reload':
@@ -611,6 +628,8 @@ class Cookie_Law_Info {
611
  case 'button_3_button_colour':
612
  case 'button_4_link_colour':
613
  case 'button_4_button_colour':
 
 
614
  if ( preg_match( '/^#[a-f0-9]{6}|#[a-f0-9]{3}$/i', $value ) )
615
  {
616
  // Was: '/^#([0-9a-fA-F]{1,2}){3}$/i' which allowed e.g. '#00dd' (error)
@@ -632,10 +651,11 @@ class Cookie_Law_Info {
632
  // URLs only:
633
  case 'button_1_url':
634
  case 'button_2_url':
635
- case 'button_3_url':
636
- case 'button_4_url':
637
- $ret = esc_url( $value );
638
- break;
 
639
  // Basic sanitisation for all the rest:
640
  default:
641
  $ret = self::wt_cli_clean( $value );
78
  }
79
  else
80
  {
81
+ $this->version = '2.0.1';
82
  }
83
  $this->plugin_name = 'cookie-law-info';
84
 
425
  'button_4_button_size' => 'medium',
426
  'button_4_style' => array(),
427
  'button_5_style' => array(),
428
+
429
+ 'button_7_text' => 'ACCEPT ALL',
430
+ 'button_7_url' => '#',
431
+ 'button_7_action' => '#cookie_action_close_header',
432
+ 'button_7_link_colour' => '#fff',
433
+ 'button_7_new_win' => false,
434
+ 'button_7_as_button' => true,
435
+ 'button_7_button_colour' => '#61a229',
436
+ 'button_7_button_size' => 'medium',
437
+ 'button_7_style' => array(),
438
+
439
  'font_family' => 'inherit', // Pick the family, not the easy name (see helper function below)
440
  'header_fix' => false,
441
  'is_on' => true,
511
  'button_4_button_colour' => $settings['button_4_button_colour'],
512
  'button_4_button_hover' => (self::su_hex_shift( $settings['button_4_button_colour'], 'down', 20 )),
513
  'button_4_link_colour' => $settings['button_4_link_colour'],
514
+ 'button_4_as_button' => $settings['button_4_as_button'],
515
+ 'button_7_button_colour' => $settings['button_7_button_colour'],
516
+ 'button_7_button_hover' => (self::su_hex_shift( $settings['button_7_button_colour'], 'down', 20 )),
517
+ 'button_7_link_colour' => $settings['button_7_link_colour'],
518
+ 'button_7_as_button' => $settings['button_7_as_button'],
519
+ 'button_7_new_win' => $settings['button_7_new_win'],
520
  'font_family' => $settings['font_family'],
521
  'header_fix' => $settings['header_fix'],
522
  'notify_animate_hide' => $settings['notify_animate_hide'],
581
  case 'button_3_as_button':
582
  case 'button_4_new_win':
583
  case 'button_4_as_button':
584
+ case 'button_7_new_win':
585
+ case 'button_7_as_button':
586
  case 'scroll_close':
587
  case 'scroll_close_reload':
588
  case 'accept_close_reload':
628
  case 'button_3_button_colour':
629
  case 'button_4_link_colour':
630
  case 'button_4_button_colour':
631
+ case 'button_7_link_colour':
632
+ case 'button_7_button_colour':
633
  if ( preg_match( '/^#[a-f0-9]{6}|#[a-f0-9]{3}$/i', $value ) )
634
  {
635
  // Was: '/^#([0-9a-fA-F]{1,2}){3}$/i' which allowed e.g. '#00dd' (error)
651
  // URLs only:
652
  case 'button_1_url':
653
  case 'button_2_url':
654
+ case 'button_3_url':
655
+ case 'button_4_url':
656
+ case 'button_7_url':
657
+ $ret = esc_url( $value );
658
+ break;
659
  // Basic sanitisation for all the rest:
660
  default:
661
  $ret = self::wt_cli_clean( $value );
languages/cookie-law-info.pot CHANGED
@@ -3,8 +3,8 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: GDPR Cookie Consent\n"
6
- "POT-Creation-Date: 2021-02-18 15:17+0530\n"
7
- "PO-Revision-Date: 2021-02-18 15:16+0530\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
@@ -39,19 +39,19 @@ msgstr ""
39
  #: admin/modules/cli-policy-generator/classes/class-policy-generator-ajax.php:22
40
  #: admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php:24
41
  #: admin/modules/cookie-scaner/cookie-scaner.php:297
42
- #: admin/modules/cookies/cookies.php:753 admin/modules/cookies/cookies.php:766
43
  #: includes/class-cookie-law-info-cookieyes.php:125
44
  #: includes/class-cookie-law-info-cookieyes.php:913
45
- #: public/modules/script-blocker/script-blocker.php:166
46
- #: public/modules/script-blocker/script-blocker.php:206
47
- #: public/modules/script-blocker/script-blocker.php:338
48
- #: public/modules/script-blocker/script-blocker.php:685
49
  msgid "You do not have sufficient permission to perform this operation"
50
  msgstr ""
51
 
52
  #: admin/class-cookie-law-info-admin.php:263
53
  #: admin/class-cookie-law-info-admin.php:309
54
- #: admin/modules/cookies/cookies.php:802
55
  msgid "Settings Updated."
56
  msgstr ""
57
 
@@ -149,7 +149,7 @@ msgstr ""
149
 
150
  #: admin/modules/ccpa/ccpa.php:108
151
  #: admin/modules/cookie-scaner/cookie-scaner.php:332
152
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:154
153
  msgid "Cancel"
154
  msgstr ""
155
 
@@ -264,13 +264,13 @@ msgstr ""
264
 
265
  #: admin/modules/cli-policy-generator/views/policy-generator.php:57
266
  #: admin/modules/cookie-scaner/cookie-scaner.php:920
267
- #: admin/modules/cookies/cookies.php:267
268
  #: admin/modules/cookies/views/necessary-settings.php:39
269
  #: admin/modules/cookies/views/non-necessary-settings.php:54
270
  #: admin/views/admin_necessary_cookie.php:39
271
  #: admin/views/admin_non_necessary_cookie.php:54
272
  #: public/modules/script-blocker/views/settings.php:149
273
- #: public/modules/shortcode/shortcode.php:260
274
  msgid "Description"
275
  msgstr ""
276
 
@@ -582,7 +582,8 @@ msgstr ""
582
  #: admin/modules/cookie-scaner/cookie-scaner.php:686
583
  msgid ""
584
  "To scan cookies following tables should be present on your database, please "
585
- "check if tables do exist on your database."
 
586
  msgstr ""
587
 
588
  #: admin/modules/cookie-scaner/cookie-scaner.php:916
@@ -590,18 +591,18 @@ msgid "Sl.No:"
590
  msgstr ""
591
 
592
  #: admin/modules/cookie-scaner/cookie-scaner.php:917
593
- #: admin/modules/cookies/cookies.php:261
594
  msgid "Cookie Name"
595
  msgstr ""
596
 
597
  #: admin/modules/cookie-scaner/cookie-scaner.php:918
598
- #: admin/modules/cookies/cookies.php:264
599
- #: public/modules/shortcode/shortcode.php:256
600
  msgid "Duration"
601
  msgstr ""
602
 
603
  #: admin/modules/cookie-scaner/cookie-scaner.php:919
604
- #: admin/modules/cookies/cookies.php:263
605
  #: public/modules/script-blocker/views/settings.php:147
606
  msgid "Category"
607
  msgstr ""
@@ -686,119 +687,119 @@ msgid "Term meta cannot be added to terms that are shared between taxonomies."
686
  msgstr ""
687
 
688
  #. Plugin Name of the plugin/theme
689
- #: admin/modules/cookies/cookies.php:125
690
- #: public/modules/script-blocker/script-blocker.php:648
691
  msgid "GDPR Cookie Consent"
692
  msgstr ""
693
 
694
- #: admin/modules/cookies/cookies.php:126
695
  msgid "Cookie List"
696
  msgstr ""
697
 
698
- #: admin/modules/cookies/cookies.php:127
699
- #: public/modules/shortcode/shortcode.php:248
700
  msgid "Cookie"
701
  msgstr ""
702
 
703
- #: admin/modules/cookies/cookies.php:128
704
  msgid "Add New"
705
  msgstr ""
706
 
707
- #: admin/modules/cookies/cookies.php:129
708
  msgid "Add New Cookie Type"
709
  msgstr ""
710
 
711
- #: admin/modules/cookies/cookies.php:130
712
  msgid "Edit Cookie Type"
713
  msgstr ""
714
 
715
- #: admin/modules/cookies/cookies.php:131
716
  msgid "New Cookie Type"
717
  msgstr ""
718
 
719
- #: admin/modules/cookies/cookies.php:132
720
  msgid "View Cookie Type"
721
  msgstr ""
722
 
723
- #: admin/modules/cookies/cookies.php:133
724
  msgid "Search Cookies"
725
  msgstr ""
726
 
727
- #: admin/modules/cookies/cookies.php:134
728
  msgid "Nothing found"
729
  msgstr ""
730
 
731
- #: admin/modules/cookies/cookies.php:135
732
  msgid "Nothing found in Trash"
733
  msgstr ""
734
 
735
- #: admin/modules/cookies/cookies.php:192 admin/modules/cookies/cookies.php:203
736
  msgid "Cookie ID"
737
  msgstr ""
738
 
739
- #: admin/modules/cookies/cookies.php:193
740
  msgid "Cookie Type"
741
  msgstr ""
742
 
743
- #: admin/modules/cookies/cookies.php:194
744
  msgid "Cookie Duration"
745
  msgstr ""
746
 
747
- #: admin/modules/cookies/cookies.php:195
748
  msgid "Cookie Sensitivity"
749
  msgstr ""
750
 
751
- #: admin/modules/cookies/cookies.php:214
752
  msgid "Cookie Type: (persistent, session, third party )"
753
  msgstr ""
754
 
755
- #: admin/modules/cookies/cookies.php:226
756
  msgid "Cookie Duration:"
757
  msgstr ""
758
 
759
- #: admin/modules/cookies/cookies.php:237
760
  msgid "Cookie Sensitivity: ( necessary , non-necessary )"
761
  msgstr ""
762
 
763
- #: admin/modules/cookies/cookies.php:262
764
- #: public/modules/shortcode/shortcode.php:252
765
  msgid "Type"
766
  msgstr ""
767
 
768
- #: admin/modules/cookies/cookies.php:265
769
  msgid "Sensitivity"
770
  msgstr ""
771
 
772
- #: admin/modules/cookies/cookies.php:266
773
  msgid "ID"
774
  msgstr ""
775
 
776
- #: admin/modules/cookies/cookies.php:327
777
  msgid "Cookie Category"
778
  msgstr ""
779
 
780
- #: admin/modules/cookies/cookies.php:328
781
  msgid "Add cookie category"
782
  msgstr ""
783
 
784
- #: admin/modules/cookies/cookies.php:329
785
  msgid "Edit cookie category"
786
  msgstr ""
787
 
788
- #: admin/modules/cookies/cookies.php:393 admin/modules/cookies/cookies.php:394
789
  #: public/modules/script-blocker/views/settings.php:180
790
  msgid "Non-necessary"
791
  msgstr ""
792
 
793
- #: admin/modules/cookies/cookies.php:401 admin/modules/cookies/cookies.php:402
794
  msgid "Necessary"
795
  msgstr ""
796
 
797
- #: admin/modules/cookies/cookies.php:585 admin/modules/cookies/cookies.php:612
798
  msgid "Category default state"
799
  msgstr ""
800
 
801
- #: admin/modules/cookies/cookies.php:586 admin/modules/cookies/cookies.php:614
802
  #: admin/modules/cookies/views/non-necessary-settings.php:39
803
  #: admin/views/admin_non_necessary_cookie.php:39
804
  #: public/modules/script-blocker/views/settings.php:145
@@ -806,14 +807,14 @@ msgstr ""
806
  msgid "Enabled"
807
  msgstr ""
808
 
809
- #: admin/modules/cookies/cookies.php:587 admin/modules/cookies/cookies.php:615
810
  #: admin/modules/cookies/views/non-necessary-settings.php:40
811
  #: admin/views/admin_non_necessary_cookie.php:40
812
  #: public/views/cookie-law-info_popup_content.php:8
813
  msgid "Disabled"
814
  msgstr ""
815
 
816
- #: admin/modules/cookies/cookies.php:588 admin/modules/cookies/cookies.php:616
817
  #: admin/modules/cookies/views/non-necessary-settings.php:42
818
  #: admin/views/admin_non_necessary_cookie.php:42
819
  msgid ""
@@ -821,46 +822,46 @@ msgid ""
821
  "state for cookie consent."
822
  msgstr ""
823
 
824
- #: admin/modules/cookies/cookies.php:643 admin/modules/cookies/cookies.php:666
825
  msgid "Head scripts"
826
  msgstr ""
827
 
828
- #: admin/modules/cookies/cookies.php:650 admin/modules/cookies/cookies.php:674
829
  msgid "Body scripts"
830
  msgstr ""
831
 
832
- #: admin/modules/cookies/cookies.php:695
833
  msgid "Status"
834
  msgstr ""
835
 
836
- #: admin/modules/cookies/cookies.php:709
837
  msgid "Active"
838
  msgstr ""
839
 
840
- #: admin/modules/cookies/cookies.php:712
841
  msgid ""
842
  "Turing off the category will remove it from the settings popup. Any scripts "
843
  "added under the category will not be rendered on the browser."
844
  msgstr ""
845
 
846
- #: admin/modules/cookies/cookies.php:735
847
  msgid ""
848
  "WordPress 4.4 or higher is the required version. Please consider upgrading "
849
  "the WordPress before migrating the cookie categories."
850
  msgstr ""
851
 
852
- #: admin/modules/cookies/cookies.php:825
853
  msgid ""
854
  "Clicking “Migrate cookie categories” will auto migrate your existing cookie "
855
  "categories (Necessary and Non-necessary) to our new Cookie Category "
856
  "taxonomy. This action is required to enable the cookie scanner."
857
  msgstr ""
858
 
859
- #: admin/modules/cookies/cookies.php:826
860
- msgid " What happens after migration?"
861
  msgstr ""
862
 
863
- #: admin/modules/cookies/cookies.php:828
864
  msgid ""
865
  "You no longer need to manage static cookie categories. After the migration, "
866
  "new cookie categories (Necessary, Functional, Analytics, Performance, "
@@ -869,14 +870,14 @@ msgid ""
869
  "including the custom categories."
870
  msgstr ""
871
 
872
- #: admin/modules/cookies/cookies.php:829
873
  msgid ""
874
  "If you have made any changes to the existing \"Non-necessary\" category we "
875
  "will migrate it to the newly created “Cookie Category” section. If not, we "
876
  "will delete the \"Non-necessary\" category automatically."
877
  msgstr ""
878
 
879
- #: admin/modules/cookies/cookies.php:830
880
  msgid ""
881
  "During the migration phase your existing cookie category translations will "
882
  "be lost. Hence we request you to add it manually soon after the migration. "
@@ -884,7 +885,7 @@ msgid ""
884
  "translation settings of your translator plugin."
885
  msgstr ""
886
 
887
- #: admin/modules/cookies/cookies.php:834
888
  msgid "Migrate cookie categories"
889
  msgstr ""
890
 
@@ -936,10 +937,11 @@ msgid "Enable Non-necessary Cookie"
936
  msgstr ""
937
 
938
  #: admin/modules/cookies/views/non-necessary-settings.php:32
939
- #: admin/views/admin-settings-buttons.php:73
940
- #: admin/views/admin-settings-buttons.php:148
941
- #: admin/views/admin-settings-buttons.php:304
942
- #: admin/views/admin-settings-buttons.php:311
 
943
  #: admin/views/admin-settings-general.php:38
944
  #: admin/views/admin-settings-general.php:54
945
  #: admin/views/admin-settings-general.php:74
@@ -952,10 +954,11 @@ msgid "Yes"
952
  msgstr ""
953
 
954
  #: admin/modules/cookies/views/non-necessary-settings.php:33
955
- #: admin/views/admin-settings-buttons.php:75
956
- #: admin/views/admin-settings-buttons.php:149
957
- #: admin/views/admin-settings-buttons.php:305
958
- #: admin/views/admin-settings-buttons.php:312
 
959
  #: admin/views/admin-settings-general.php:39
960
  #: admin/views/admin-settings-general.php:55
961
  #: admin/views/admin-settings-general.php:75
@@ -1001,20 +1004,22 @@ msgid ""
1001
  "settings is enabled and user has given consent."
1002
  msgstr ""
1003
 
1004
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:43
1005
- msgid "The plugin is complex to set up"
1006
  msgstr ""
1007
 
1008
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:45
1009
- msgid "Please describe which area you are facing difficulties"
1010
  msgstr ""
1011
 
1012
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:49
1013
- msgid "I found a better plugin"
1014
  msgstr ""
1015
 
1016
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:51
1017
- msgid "Which plugin?"
 
 
1018
  msgstr ""
1019
 
1020
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:55
@@ -1026,40 +1031,43 @@ msgid "Could you tell us more about that feature?"
1026
  msgstr ""
1027
 
1028
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:61
1029
- msgid "The plugin didn't work as expected"
1030
  msgstr ""
1031
 
1032
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:63
1033
- msgid "What did you expect?"
 
 
 
1034
  msgstr ""
1035
 
1036
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:67
1037
- msgid "A conflict with another plugin or theme"
1038
  msgstr ""
1039
 
1040
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:69
1041
- msgid "Which plugin or theme?"
1042
  msgstr ""
1043
 
1044
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:73
1045
- msgid "Translation issues"
1046
  msgstr ""
1047
 
1048
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:77
1049
- msgid "Incorrect/missing translation"
 
1050
  msgstr ""
1051
 
1052
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:79
1053
- msgid "Name the language"
1054
  msgstr ""
1055
 
1056
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:83
1057
- msgid ""
1058
- "Unable to translate my dynamic content e.g, cookie message, button text etc"
1059
  msgstr ""
1060
 
1061
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:85
1062
- msgid "Name the language and the translator plugin that you are using"
1063
  msgstr ""
1064
 
1065
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:91
@@ -1067,38 +1075,42 @@ msgid "Upgrade to pro"
1067
  msgstr ""
1068
 
1069
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:95
 
 
 
 
1070
  #: admin/views/admin-settings-general.php:10
1071
  #: admin/views/admin-settings-general.php:66
1072
  msgid "Other"
1073
  msgstr ""
1074
 
1075
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:97
1076
- msgid "Could you tell us a bit more?"
1077
  msgstr ""
1078
 
1079
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:117
1080
  msgid "If you have a moment, please let us know why you are deactivating:"
1081
  msgstr ""
1082
 
1083
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:144
1084
  msgid ""
1085
  "We do not collect any personal data when you submit this form. It's your "
1086
  "feedback that we value."
1087
  msgstr ""
1088
 
1089
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:145
1090
  msgid "Privacy Policy"
1091
  msgstr ""
1092
 
1093
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:152
1094
  msgid "Go to support"
1095
  msgstr ""
1096
 
1097
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:153
1098
  msgid "Submit & Deactivate"
1099
  msgstr ""
1100
 
1101
- #: admin/modules/uninstall-feedback/uninstall-feedback.php:155
1102
  msgid "I rather wouldn't say"
1103
  msgstr ""
1104
 
@@ -1185,115 +1197,129 @@ msgid "Warning: this will actually delete your current settings."
1185
  msgstr ""
1186
 
1187
  #: admin/views/admin-settings-buttons.php:10
 
1188
  msgid "Accept Button"
1189
  msgstr ""
1190
 
1191
  #: admin/views/admin-settings-buttons.php:11
1192
- #: admin/views/admin-settings-buttons.php:93
1193
- msgid "Reject Button"
1194
  msgstr ""
1195
 
1196
  #: admin/views/admin-settings-buttons.php:12
1197
- #: admin/views/admin-settings-buttons.php:163
1198
- msgid "Settings Button"
1199
  msgstr ""
1200
 
1201
  #: admin/views/admin-settings-buttons.php:13
1202
- #: admin/views/admin-settings-buttons.php:206
1203
- msgid "Read More Link"
1204
  msgstr ""
1205
 
1206
  #: admin/views/admin-settings-buttons.php:14
1207
- #: admin/views/admin-settings-buttons.php:326
1208
- msgid "Do not sell link"
1209
  msgstr ""
1210
 
1211
- #: admin/views/admin-settings-buttons.php:20
1212
- msgid "Main Button"
 
1213
  msgstr ""
1214
 
1215
- #: admin/views/admin-settings-buttons.php:21
 
1216
  msgid ""
1217
  "This button/link can be customised to either simply close the cookie bar, or "
1218
  "follow a link. You can also customise the colours and styles, and show it as "
1219
  "a link or a button."
1220
  msgstr ""
1221
 
1222
- #: admin/views/admin-settings-buttons.php:24
1223
- #: admin/views/admin-settings-buttons.php:96
1224
- #: admin/views/admin-settings-buttons.php:166
1225
  #: admin/views/admin-settings-buttons.php:220
 
1226
  msgid "Text"
1227
  msgstr ""
1228
 
1229
- #: admin/views/admin-settings-buttons.php:30
1230
- #: admin/views/admin-settings-buttons.php:102
1231
- #: admin/views/admin-settings-buttons.php:172
1232
  #: admin/views/admin-settings-buttons.php:226
1233
- #: admin/views/admin-settings-buttons.php:346
 
1234
  msgid "Text colour"
1235
  msgstr ""
1236
 
1237
- #: admin/views/admin-settings-buttons.php:38
1238
- #: admin/views/admin-settings-buttons.php:110
1239
- #: admin/views/admin-settings-buttons.php:180
1240
  #: admin/views/admin-settings-buttons.php:234
1241
- #: admin/views/admin-settings-buttons.php:335
 
1242
  msgid "Show as"
1243
  msgstr ""
1244
 
1245
- #: admin/views/admin-settings-buttons.php:40
1246
- #: admin/views/admin-settings-buttons.php:112
1247
- #: admin/views/admin-settings-buttons.php:182
1248
  #: admin/views/admin-settings-buttons.php:236
 
1249
  msgid "Button"
1250
  msgstr ""
1251
 
1252
- #: admin/views/admin-settings-buttons.php:42
1253
- #: admin/views/admin-settings-buttons.php:114
1254
- #: admin/views/admin-settings-buttons.php:184
1255
  #: admin/views/admin-settings-buttons.php:238
1256
- #: admin/views/admin-settings-buttons.php:337
 
1257
  msgid "Link"
1258
  msgstr ""
1259
 
1260
- #: admin/views/admin-settings-buttons.php:46
1261
- #: admin/views/admin-settings-buttons.php:118
1262
- #: admin/views/admin-settings-buttons.php:188
1263
  #: admin/views/admin-settings-buttons.php:242
 
1264
  msgid "Background colour"
1265
  msgstr ""
1266
 
1267
- #: admin/views/admin-settings-buttons.php:55
1268
- #: admin/views/admin-settings-buttons.php:126
 
1269
  msgid "Action"
1270
  msgstr ""
1271
 
1272
- #: admin/views/admin-settings-buttons.php:63
1273
- #: admin/views/admin-settings-buttons.php:138
1274
  #: admin/views/admin-settings-buttons.php:253
1275
  #: admin/views/admin-settings-buttons.php:260
 
1276
  msgid "URL"
1277
  msgstr ""
1278
 
1279
- #: admin/views/admin-settings-buttons.php:66
1280
- #: admin/views/admin-settings-buttons.php:141
 
1281
  msgid "Button will only link to URL if Action = Open URL"
1282
  msgstr ""
1283
 
1284
- #: admin/views/admin-settings-buttons.php:71
1285
- #: admin/views/admin-settings-buttons.php:146
 
1286
  msgid "Open URL in new window?"
1287
  msgstr ""
1288
 
1289
- #: admin/views/admin-settings-buttons.php:82
1290
- #: admin/views/admin-settings-buttons.php:153
1291
- #: admin/views/admin-settings-buttons.php:196
1292
- #: admin/views/admin-settings-buttons.php:316
 
1293
  msgid "Size"
1294
  msgstr ""
1295
 
1296
- #: admin/views/admin-settings-buttons.php:207
1297
  msgid ""
1298
  "This button/link can be used to provide a link out to your Privacy & Cookie "
1299
  "Policy. You can customise it any way you like."
@@ -1324,31 +1350,31 @@ msgstr ""
1324
  msgid "Select One"
1325
  msgstr ""
1326
 
1327
- #: admin/views/admin-settings-buttons.php:294
1328
  msgid "The currently selected page does not exist. Please select a new page."
1329
  msgstr ""
1330
 
1331
- #: admin/views/admin-settings-buttons.php:302
1332
  msgid "Minimize Cookie Bar in this page/URL?"
1333
  msgstr ""
1334
 
1335
- #: admin/views/admin-settings-buttons.php:309
1336
  msgid "Open in new window?"
1337
  msgstr ""
1338
 
1339
- #: admin/views/admin-settings-buttons.php:329
1340
  msgid "CCPA Text"
1341
  msgstr ""
1342
 
1343
- #: admin/views/admin-settings-buttons.php:338
1344
  msgid "Checkbox"
1345
  msgstr ""
1346
 
1347
- #: admin/views/admin-settings-buttons.php:340
1348
  msgid "The shortcode will be represented as a link whereever used."
1349
  msgstr ""
1350
 
1351
- #: admin/views/admin-settings-buttons.php:341
1352
  msgid ""
1353
  "The shortcode will be represented as a checkbox with select option to record "
1354
  "consent."
@@ -2047,37 +2073,37 @@ msgstr ""
2047
  msgid "Review now"
2048
  msgstr ""
2049
 
2050
- #: public/modules/script-blocker/script-blocker.php:189
2051
- #: public/modules/script-blocker/script-blocker.php:190
2052
  msgid "Script Blocker"
2053
  msgstr ""
2054
 
2055
- #: public/modules/script-blocker/script-blocker.php:215
2056
  msgid "Status updated"
2057
  msgstr ""
2058
 
2059
- #: public/modules/script-blocker/script-blocker.php:242
2060
  msgid "Advanced script rendering"
2061
  msgstr ""
2062
 
2063
- #: public/modules/script-blocker/script-blocker.php:244
2064
  #: public/modules/script-blocker/views/settings.php:7
2065
  msgid "Enable"
2066
  msgstr ""
2067
 
2068
- #: public/modules/script-blocker/script-blocker.php:245
2069
  #: public/modules/script-blocker/views/settings.php:7
2070
  msgid "Disable"
2071
  msgstr ""
2072
 
2073
- #: public/modules/script-blocker/script-blocker.php:246
2074
  msgid ""
2075
  "Advanced script rendering will render the blocked scripts using javascript "
2076
  "thus eliminating the need for a page refresh. It is also optimized for "
2077
  "caching since there is no server-side processing after obtaining the consent."
2078
  msgstr ""
2079
 
2080
- #: public/modules/script-blocker/script-blocker.php:648
2081
  msgid ""
2082
  "The script blocker within the plugin will block the pre-defined plugins such "
2083
  "as Instagram, Facebook, Twitter etc. Hence activating our plugin may affect "
@@ -2085,7 +2111,7 @@ msgid ""
2085
  "blocked plugins. <a href=\"edit.php?post_type="
2086
  msgstr ""
2087
 
2088
- #: public/modules/script-blocker/script-blocker.php:683
2089
  msgid "Invalid script id"
2090
  msgstr ""
2091
 
@@ -2142,35 +2168,35 @@ msgstr ""
2142
  msgid "Inactive"
2143
  msgstr ""
2144
 
2145
- #: public/modules/shortcode/shortcode.php:97
2146
  msgid "Your current state:"
2147
  msgstr ""
2148
 
2149
- #: public/modules/shortcode/shortcode.php:102
2150
  msgid "Consent accepted."
2151
  msgstr ""
2152
 
2153
- #: public/modules/shortcode/shortcode.php:105
2154
  msgid "Consent rejected."
2155
  msgstr ""
2156
 
2157
- #: public/modules/shortcode/shortcode.php:109
2158
  msgid "No consent given."
2159
  msgstr ""
2160
 
2161
- #: public/modules/shortcode/shortcode.php:111
2162
  msgid "Manage your consent."
2163
  msgstr ""
2164
 
2165
- #: public/modules/shortcode/shortcode.php:148
2166
  msgid "Delete Cookies"
2167
  msgstr ""
2168
 
2169
- #: public/modules/shortcode/shortcode.php:576
2170
  msgid "Close the cookie bar"
2171
  msgstr ""
2172
 
2173
- #: public/modules/shortcode/shortcode.php:576
2174
  msgid "Close and Accept"
2175
  msgstr ""
2176
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: GDPR Cookie Consent\n"
6
+ "POT-Creation-Date: 2021-03-15 19:41+0530\n"
7
+ "PO-Revision-Date: 2021-03-15 19:40+0530\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "MIME-Version: 1.0\n"
39
  #: admin/modules/cli-policy-generator/classes/class-policy-generator-ajax.php:22
40
  #: admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php:24
41
  #: admin/modules/cookie-scaner/cookie-scaner.php:297
42
+ #: admin/modules/cookies/cookies.php:774 admin/modules/cookies/cookies.php:787
43
  #: includes/class-cookie-law-info-cookieyes.php:125
44
  #: includes/class-cookie-law-info-cookieyes.php:913
45
+ #: public/modules/script-blocker/script-blocker.php:178
46
+ #: public/modules/script-blocker/script-blocker.php:218
47
+ #: public/modules/script-blocker/script-blocker.php:350
48
+ #: public/modules/script-blocker/script-blocker.php:700
49
  msgid "You do not have sufficient permission to perform this operation"
50
  msgstr ""
51
 
52
  #: admin/class-cookie-law-info-admin.php:263
53
  #: admin/class-cookie-law-info-admin.php:309
54
+ #: admin/modules/cookies/cookies.php:823
55
  msgid "Settings Updated."
56
  msgstr ""
57
 
149
 
150
  #: admin/modules/ccpa/ccpa.php:108
151
  #: admin/modules/cookie-scaner/cookie-scaner.php:332
152
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:159
153
  msgid "Cancel"
154
  msgstr ""
155
 
264
 
265
  #: admin/modules/cli-policy-generator/views/policy-generator.php:57
266
  #: admin/modules/cookie-scaner/cookie-scaner.php:920
267
+ #: admin/modules/cookies/cookies.php:262
268
  #: admin/modules/cookies/views/necessary-settings.php:39
269
  #: admin/modules/cookies/views/non-necessary-settings.php:54
270
  #: admin/views/admin_necessary_cookie.php:39
271
  #: admin/views/admin_non_necessary_cookie.php:54
272
  #: public/modules/script-blocker/views/settings.php:149
273
+ #: public/modules/shortcode/shortcode.php:262
274
  msgid "Description"
275
  msgstr ""
276
 
582
  #: admin/modules/cookie-scaner/cookie-scaner.php:686
583
  msgid ""
584
  "To scan cookies following tables should be present on your database, please "
585
+ "check if tables do exist on your database. If not exist please try to "
586
+ "deactivate and activate the plugin again."
587
  msgstr ""
588
 
589
  #: admin/modules/cookie-scaner/cookie-scaner.php:916
591
  msgstr ""
592
 
593
  #: admin/modules/cookie-scaner/cookie-scaner.php:917
594
+ #: admin/modules/cookies/cookies.php:256
595
  msgid "Cookie Name"
596
  msgstr ""
597
 
598
  #: admin/modules/cookie-scaner/cookie-scaner.php:918
599
+ #: admin/modules/cookies/cookies.php:259
600
+ #: public/modules/shortcode/shortcode.php:258
601
  msgid "Duration"
602
  msgstr ""
603
 
604
  #: admin/modules/cookie-scaner/cookie-scaner.php:919
605
+ #: admin/modules/cookies/cookies.php:258
606
  #: public/modules/script-blocker/views/settings.php:147
607
  msgid "Category"
608
  msgstr ""
687
  msgstr ""
688
 
689
  #. Plugin Name of the plugin/theme
690
+ #: admin/modules/cookies/cookies.php:122
691
+ #: public/modules/script-blocker/script-blocker.php:663
692
  msgid "GDPR Cookie Consent"
693
  msgstr ""
694
 
695
+ #: admin/modules/cookies/cookies.php:123
696
  msgid "Cookie List"
697
  msgstr ""
698
 
699
+ #: admin/modules/cookies/cookies.php:124
700
+ #: public/modules/shortcode/shortcode.php:250
701
  msgid "Cookie"
702
  msgstr ""
703
 
704
+ #: admin/modules/cookies/cookies.php:125
705
  msgid "Add New"
706
  msgstr ""
707
 
708
+ #: admin/modules/cookies/cookies.php:126
709
  msgid "Add New Cookie Type"
710
  msgstr ""
711
 
712
+ #: admin/modules/cookies/cookies.php:127
713
  msgid "Edit Cookie Type"
714
  msgstr ""
715
 
716
+ #: admin/modules/cookies/cookies.php:128
717
  msgid "New Cookie Type"
718
  msgstr ""
719
 
720
+ #: admin/modules/cookies/cookies.php:129
721
  msgid "View Cookie Type"
722
  msgstr ""
723
 
724
+ #: admin/modules/cookies/cookies.php:130
725
  msgid "Search Cookies"
726
  msgstr ""
727
 
728
+ #: admin/modules/cookies/cookies.php:131
729
  msgid "Nothing found"
730
  msgstr ""
731
 
732
+ #: admin/modules/cookies/cookies.php:132
733
  msgid "Nothing found in Trash"
734
  msgstr ""
735
 
736
+ #: admin/modules/cookies/cookies.php:187 admin/modules/cookies/cookies.php:198
737
  msgid "Cookie ID"
738
  msgstr ""
739
 
740
+ #: admin/modules/cookies/cookies.php:188
741
  msgid "Cookie Type"
742
  msgstr ""
743
 
744
+ #: admin/modules/cookies/cookies.php:189
745
  msgid "Cookie Duration"
746
  msgstr ""
747
 
748
+ #: admin/modules/cookies/cookies.php:190
749
  msgid "Cookie Sensitivity"
750
  msgstr ""
751
 
752
+ #: admin/modules/cookies/cookies.php:209
753
  msgid "Cookie Type: (persistent, session, third party )"
754
  msgstr ""
755
 
756
+ #: admin/modules/cookies/cookies.php:221
757
  msgid "Cookie Duration:"
758
  msgstr ""
759
 
760
+ #: admin/modules/cookies/cookies.php:232
761
  msgid "Cookie Sensitivity: ( necessary , non-necessary )"
762
  msgstr ""
763
 
764
+ #: admin/modules/cookies/cookies.php:257
765
+ #: public/modules/shortcode/shortcode.php:254
766
  msgid "Type"
767
  msgstr ""
768
 
769
+ #: admin/modules/cookies/cookies.php:260
770
  msgid "Sensitivity"
771
  msgstr ""
772
 
773
+ #: admin/modules/cookies/cookies.php:261
774
  msgid "ID"
775
  msgstr ""
776
 
777
+ #: admin/modules/cookies/cookies.php:326
778
  msgid "Cookie Category"
779
  msgstr ""
780
 
781
+ #: admin/modules/cookies/cookies.php:327
782
  msgid "Add cookie category"
783
  msgstr ""
784
 
785
+ #: admin/modules/cookies/cookies.php:328
786
  msgid "Edit cookie category"
787
  msgstr ""
788
 
789
+ #: admin/modules/cookies/cookies.php:412 admin/modules/cookies/cookies.php:413
790
  #: public/modules/script-blocker/views/settings.php:180
791
  msgid "Non-necessary"
792
  msgstr ""
793
 
794
+ #: admin/modules/cookies/cookies.php:420 admin/modules/cookies/cookies.php:421
795
  msgid "Necessary"
796
  msgstr ""
797
 
798
+ #: admin/modules/cookies/cookies.php:608 admin/modules/cookies/cookies.php:633
799
  msgid "Category default state"
800
  msgstr ""
801
 
802
+ #: admin/modules/cookies/cookies.php:609 admin/modules/cookies/cookies.php:635
803
  #: admin/modules/cookies/views/non-necessary-settings.php:39
804
  #: admin/views/admin_non_necessary_cookie.php:39
805
  #: public/modules/script-blocker/views/settings.php:145
807
  msgid "Enabled"
808
  msgstr ""
809
 
810
+ #: admin/modules/cookies/cookies.php:610 admin/modules/cookies/cookies.php:636
811
  #: admin/modules/cookies/views/non-necessary-settings.php:40
812
  #: admin/views/admin_non_necessary_cookie.php:40
813
  #: public/views/cookie-law-info_popup_content.php:8
814
  msgid "Disabled"
815
  msgstr ""
816
 
817
+ #: admin/modules/cookies/cookies.php:611 admin/modules/cookies/cookies.php:637
818
  #: admin/modules/cookies/views/non-necessary-settings.php:42
819
  #: admin/views/admin_non_necessary_cookie.php:42
820
  msgid ""
822
  "state for cookie consent."
823
  msgstr ""
824
 
825
+ #: admin/modules/cookies/cookies.php:664 admin/modules/cookies/cookies.php:687
826
  msgid "Head scripts"
827
  msgstr ""
828
 
829
+ #: admin/modules/cookies/cookies.php:671 admin/modules/cookies/cookies.php:695
830
  msgid "Body scripts"
831
  msgstr ""
832
 
833
+ #: admin/modules/cookies/cookies.php:716
834
  msgid "Status"
835
  msgstr ""
836
 
837
+ #: admin/modules/cookies/cookies.php:730
838
  msgid "Active"
839
  msgstr ""
840
 
841
+ #: admin/modules/cookies/cookies.php:733
842
  msgid ""
843
  "Turing off the category will remove it from the settings popup. Any scripts "
844
  "added under the category will not be rendered on the browser."
845
  msgstr ""
846
 
847
+ #: admin/modules/cookies/cookies.php:756
848
  msgid ""
849
  "WordPress 4.4 or higher is the required version. Please consider upgrading "
850
  "the WordPress before migrating the cookie categories."
851
  msgstr ""
852
 
853
+ #: admin/modules/cookies/cookies.php:846
854
  msgid ""
855
  "Clicking “Migrate cookie categories” will auto migrate your existing cookie "
856
  "categories (Necessary and Non-necessary) to our new Cookie Category "
857
  "taxonomy. This action is required to enable the cookie scanner."
858
  msgstr ""
859
 
860
+ #: admin/modules/cookies/cookies.php:847
861
+ msgid "What happens after migration?"
862
  msgstr ""
863
 
864
+ #: admin/modules/cookies/cookies.php:849
865
  msgid ""
866
  "You no longer need to manage static cookie categories. After the migration, "
867
  "new cookie categories (Necessary, Functional, Analytics, Performance, "
870
  "including the custom categories."
871
  msgstr ""
872
 
873
+ #: admin/modules/cookies/cookies.php:850
874
  msgid ""
875
  "If you have made any changes to the existing \"Non-necessary\" category we "
876
  "will migrate it to the newly created “Cookie Category” section. If not, we "
877
  "will delete the \"Non-necessary\" category automatically."
878
  msgstr ""
879
 
880
+ #: admin/modules/cookies/cookies.php:851
881
  msgid ""
882
  "During the migration phase your existing cookie category translations will "
883
  "be lost. Hence we request you to add it manually soon after the migration. "
885
  "translation settings of your translator plugin."
886
  msgstr ""
887
 
888
+ #: admin/modules/cookies/cookies.php:855
889
  msgid "Migrate cookie categories"
890
  msgstr ""
891
 
937
  msgstr ""
938
 
939
  #: admin/modules/cookies/views/non-necessary-settings.php:32
940
+ #: admin/views/admin-settings-buttons.php:74
941
+ #: admin/views/admin-settings-buttons.php:149
942
+ #: admin/views/admin-settings-buttons.php:299
943
+ #: admin/views/admin-settings-buttons.php:306
944
+ #: admin/views/admin-settings-buttons.php:402
945
  #: admin/views/admin-settings-general.php:38
946
  #: admin/views/admin-settings-general.php:54
947
  #: admin/views/admin-settings-general.php:74
954
  msgstr ""
955
 
956
  #: admin/modules/cookies/views/non-necessary-settings.php:33
957
+ #: admin/views/admin-settings-buttons.php:76
958
+ #: admin/views/admin-settings-buttons.php:150
959
+ #: admin/views/admin-settings-buttons.php:300
960
+ #: admin/views/admin-settings-buttons.php:307
961
+ #: admin/views/admin-settings-buttons.php:404
962
  #: admin/views/admin-settings-general.php:39
963
  #: admin/views/admin-settings-general.php:55
964
  #: admin/views/admin-settings-general.php:75
1004
  "settings is enabled and user has given consent."
1005
  msgstr ""
1006
 
1007
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:40
1008
+ msgid "The plugin didn't work as expected"
1009
  msgstr ""
1010
 
1011
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:42
1012
+ msgid "How can we make our plugin better?"
1013
  msgstr ""
1014
 
1015
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:46
1016
+ msgid "Issues with cookie scanner"
1017
  msgstr ""
1018
 
1019
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:49
1020
+ msgid ""
1021
+ "Describe the challenges that you faced while using our Cookie Scanner.&#10;"
1022
+ "Eg:- Scan did not find all cookies."
1023
  msgstr ""
1024
 
1025
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:55
1031
  msgstr ""
1032
 
1033
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:61
1034
+ msgid "A conflict with another plugin or theme"
1035
  msgstr ""
1036
 
1037
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:63
1038
+ msgid ""
1039
+ "Specify whether you are having issues with the back-end or front-end "
1040
+ "functionalities. Enter your site URL to help us fix the plugin/theme "
1041
+ "conflicts."
1042
  msgstr ""
1043
 
1044
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:67
1045
+ msgid "Translation issues"
1046
  msgstr ""
1047
 
1048
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:71
1049
+ msgid "Incorrect/missing translation"
1050
  msgstr ""
1051
 
1052
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:73
1053
+ msgid "Name the language and specify the string with incorrect translation."
1054
  msgstr ""
1055
 
1056
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:77
1057
+ msgid ""
1058
+ "Unable to translate my dynamic content e.g, cookie message, button text etc"
1059
  msgstr ""
1060
 
1061
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:79
1062
+ msgid "Name the language and the translator plugin that you are using"
1063
  msgstr ""
1064
 
1065
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:85
1066
+ msgid "I found a better plugin"
 
1067
  msgstr ""
1068
 
1069
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:87
1070
+ msgid "Which plugin?"
1071
  msgstr ""
1072
 
1073
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:91
1075
  msgstr ""
1076
 
1077
  #: admin/modules/uninstall-feedback/uninstall-feedback.php:95
1078
+ msgid "It’s a temporary deactivation"
1079
+ msgstr ""
1080
+
1081
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:99
1082
  #: admin/views/admin-settings-general.php:10
1083
  #: admin/views/admin-settings-general.php:66
1084
  msgid "Other"
1085
  msgstr ""
1086
 
1087
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:101
1088
+ msgid "Please describe your issue in detail."
1089
  msgstr ""
1090
 
1091
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:119
1092
  msgid "If you have a moment, please let us know why you are deactivating:"
1093
  msgstr ""
1094
 
1095
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:149
1096
  msgid ""
1097
  "We do not collect any personal data when you submit this form. It's your "
1098
  "feedback that we value."
1099
  msgstr ""
1100
 
1101
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:150
1102
  msgid "Privacy Policy"
1103
  msgstr ""
1104
 
1105
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:157
1106
  msgid "Go to support"
1107
  msgstr ""
1108
 
1109
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:158
1110
  msgid "Submit & Deactivate"
1111
  msgstr ""
1112
 
1113
+ #: admin/modules/uninstall-feedback/uninstall-feedback.php:160
1114
  msgid "I rather wouldn't say"
1115
  msgstr ""
1116
 
1197
  msgstr ""
1198
 
1199
  #: admin/views/admin-settings-buttons.php:10
1200
+ #: admin/views/admin-settings-buttons.php:21
1201
  msgid "Accept Button"
1202
  msgstr ""
1203
 
1204
  #: admin/views/admin-settings-buttons.php:11
1205
+ #: admin/views/admin-settings-buttons.php:350
1206
+ msgid "Accept All Button"
1207
  msgstr ""
1208
 
1209
  #: admin/views/admin-settings-buttons.php:12
1210
+ #: admin/views/admin-settings-buttons.php:94
1211
+ msgid "Reject Button"
1212
  msgstr ""
1213
 
1214
  #: admin/views/admin-settings-buttons.php:13
1215
+ #: admin/views/admin-settings-buttons.php:164
1216
+ msgid "Settings Button"
1217
  msgstr ""
1218
 
1219
  #: admin/views/admin-settings-buttons.php:14
1220
+ #: admin/views/admin-settings-buttons.php:207
1221
+ msgid "Read More Link"
1222
  msgstr ""
1223
 
1224
+ #: admin/views/admin-settings-buttons.php:15
1225
+ #: admin/views/admin-settings-buttons.php:321
1226
+ msgid "Do not sell link"
1227
  msgstr ""
1228
 
1229
+ #: admin/views/admin-settings-buttons.php:22
1230
+ #: admin/views/admin-settings-buttons.php:351
1231
  msgid ""
1232
  "This button/link can be customised to either simply close the cookie bar, or "
1233
  "follow a link. You can also customise the colours and styles, and show it as "
1234
  "a link or a button."
1235
  msgstr ""
1236
 
1237
+ #: admin/views/admin-settings-buttons.php:25
1238
+ #: admin/views/admin-settings-buttons.php:97
1239
+ #: admin/views/admin-settings-buttons.php:167
1240
  #: admin/views/admin-settings-buttons.php:220
1241
+ #: admin/views/admin-settings-buttons.php:354
1242
  msgid "Text"
1243
  msgstr ""
1244
 
1245
+ #: admin/views/admin-settings-buttons.php:31
1246
+ #: admin/views/admin-settings-buttons.php:103
1247
+ #: admin/views/admin-settings-buttons.php:173
1248
  #: admin/views/admin-settings-buttons.php:226
1249
+ #: admin/views/admin-settings-buttons.php:340
1250
+ #: admin/views/admin-settings-buttons.php:360
1251
  msgid "Text colour"
1252
  msgstr ""
1253
 
1254
+ #: admin/views/admin-settings-buttons.php:39
1255
+ #: admin/views/admin-settings-buttons.php:111
1256
+ #: admin/views/admin-settings-buttons.php:181
1257
  #: admin/views/admin-settings-buttons.php:234
1258
+ #: admin/views/admin-settings-buttons.php:330
1259
+ #: admin/views/admin-settings-buttons.php:368
1260
  msgid "Show as"
1261
  msgstr ""
1262
 
1263
+ #: admin/views/admin-settings-buttons.php:41
1264
+ #: admin/views/admin-settings-buttons.php:113
1265
+ #: admin/views/admin-settings-buttons.php:183
1266
  #: admin/views/admin-settings-buttons.php:236
1267
+ #: admin/views/admin-settings-buttons.php:370
1268
  msgid "Button"
1269
  msgstr ""
1270
 
1271
+ #: admin/views/admin-settings-buttons.php:43
1272
+ #: admin/views/admin-settings-buttons.php:115
1273
+ #: admin/views/admin-settings-buttons.php:185
1274
  #: admin/views/admin-settings-buttons.php:238
1275
+ #: admin/views/admin-settings-buttons.php:332
1276
+ #: admin/views/admin-settings-buttons.php:372
1277
  msgid "Link"
1278
  msgstr ""
1279
 
1280
+ #: admin/views/admin-settings-buttons.php:47
1281
+ #: admin/views/admin-settings-buttons.php:119
1282
+ #: admin/views/admin-settings-buttons.php:189
1283
  #: admin/views/admin-settings-buttons.php:242
1284
+ #: admin/views/admin-settings-buttons.php:376
1285
  msgid "Background colour"
1286
  msgstr ""
1287
 
1288
+ #: admin/views/admin-settings-buttons.php:56
1289
+ #: admin/views/admin-settings-buttons.php:127
1290
+ #: admin/views/admin-settings-buttons.php:384
1291
  msgid "Action"
1292
  msgstr ""
1293
 
1294
+ #: admin/views/admin-settings-buttons.php:64
1295
+ #: admin/views/admin-settings-buttons.php:139
1296
  #: admin/views/admin-settings-buttons.php:253
1297
  #: admin/views/admin-settings-buttons.php:260
1298
+ #: admin/views/admin-settings-buttons.php:392
1299
  msgid "URL"
1300
  msgstr ""
1301
 
1302
+ #: admin/views/admin-settings-buttons.php:67
1303
+ #: admin/views/admin-settings-buttons.php:142
1304
+ #: admin/views/admin-settings-buttons.php:395
1305
  msgid "Button will only link to URL if Action = Open URL"
1306
  msgstr ""
1307
 
1308
+ #: admin/views/admin-settings-buttons.php:72
1309
+ #: admin/views/admin-settings-buttons.php:147
1310
+ #: admin/views/admin-settings-buttons.php:400
1311
  msgid "Open URL in new window?"
1312
  msgstr ""
1313
 
1314
+ #: admin/views/admin-settings-buttons.php:83
1315
+ #: admin/views/admin-settings-buttons.php:154
1316
+ #: admin/views/admin-settings-buttons.php:197
1317
+ #: admin/views/admin-settings-buttons.php:311
1318
+ #: admin/views/admin-settings-buttons.php:408
1319
  msgid "Size"
1320
  msgstr ""
1321
 
1322
+ #: admin/views/admin-settings-buttons.php:208
1323
  msgid ""
1324
  "This button/link can be used to provide a link out to your Privacy & Cookie "
1325
  "Policy. You can customise it any way you like."
1350
  msgid "Select One"
1351
  msgstr ""
1352
 
1353
+ #: admin/views/admin-settings-buttons.php:289
1354
  msgid "The currently selected page does not exist. Please select a new page."
1355
  msgstr ""
1356
 
1357
+ #: admin/views/admin-settings-buttons.php:297
1358
  msgid "Minimize Cookie Bar in this page/URL?"
1359
  msgstr ""
1360
 
1361
+ #: admin/views/admin-settings-buttons.php:304
1362
  msgid "Open in new window?"
1363
  msgstr ""
1364
 
1365
+ #: admin/views/admin-settings-buttons.php:324
1366
  msgid "CCPA Text"
1367
  msgstr ""
1368
 
1369
+ #: admin/views/admin-settings-buttons.php:333
1370
  msgid "Checkbox"
1371
  msgstr ""
1372
 
1373
+ #: admin/views/admin-settings-buttons.php:334
1374
  msgid "The shortcode will be represented as a link whereever used."
1375
  msgstr ""
1376
 
1377
+ #: admin/views/admin-settings-buttons.php:335
1378
  msgid ""
1379
  "The shortcode will be represented as a checkbox with select option to record "
1380
  "consent."
2073
  msgid "Review now"
2074
  msgstr ""
2075
 
2076
+ #: public/modules/script-blocker/script-blocker.php:201
2077
+ #: public/modules/script-blocker/script-blocker.php:202
2078
  msgid "Script Blocker"
2079
  msgstr ""
2080
 
2081
+ #: public/modules/script-blocker/script-blocker.php:227
2082
  msgid "Status updated"
2083
  msgstr ""
2084
 
2085
+ #: public/modules/script-blocker/script-blocker.php:254
2086
  msgid "Advanced script rendering"
2087
  msgstr ""
2088
 
2089
+ #: public/modules/script-blocker/script-blocker.php:256
2090
  #: public/modules/script-blocker/views/settings.php:7
2091
  msgid "Enable"
2092
  msgstr ""
2093
 
2094
+ #: public/modules/script-blocker/script-blocker.php:257
2095
  #: public/modules/script-blocker/views/settings.php:7
2096
  msgid "Disable"
2097
  msgstr ""
2098
 
2099
+ #: public/modules/script-blocker/script-blocker.php:258
2100
  msgid ""
2101
  "Advanced script rendering will render the blocked scripts using javascript "
2102
  "thus eliminating the need for a page refresh. It is also optimized for "
2103
  "caching since there is no server-side processing after obtaining the consent."
2104
  msgstr ""
2105
 
2106
+ #: public/modules/script-blocker/script-blocker.php:663
2107
  msgid ""
2108
  "The script blocker within the plugin will block the pre-defined plugins such "
2109
  "as Instagram, Facebook, Twitter etc. Hence activating our plugin may affect "
2111
  "blocked plugins. <a href=\"edit.php?post_type="
2112
  msgstr ""
2113
 
2114
+ #: public/modules/script-blocker/script-blocker.php:698
2115
  msgid "Invalid script id"
2116
  msgstr ""
2117
 
2168
  msgid "Inactive"
2169
  msgstr ""
2170
 
2171
+ #: public/modules/shortcode/shortcode.php:99
2172
  msgid "Your current state:"
2173
  msgstr ""
2174
 
2175
+ #: public/modules/shortcode/shortcode.php:104
2176
  msgid "Consent accepted."
2177
  msgstr ""
2178
 
2179
+ #: public/modules/shortcode/shortcode.php:107
2180
  msgid "Consent rejected."
2181
  msgstr ""
2182
 
2183
+ #: public/modules/shortcode/shortcode.php:111
2184
  msgid "No consent given."
2185
  msgstr ""
2186
 
2187
+ #: public/modules/shortcode/shortcode.php:113
2188
  msgid "Manage your consent."
2189
  msgstr ""
2190
 
2191
+ #: public/modules/shortcode/shortcode.php:150
2192
  msgid "Delete Cookies"
2193
  msgstr ""
2194
 
2195
+ #: public/modules/shortcode/shortcode.php:558
2196
  msgid "Close the cookie bar"
2197
  msgstr ""
2198
 
2199
+ #: public/modules/shortcode/shortcode.php:558
2200
  msgid "Close and Accept"
2201
  msgstr ""
2202
 
public/class-cookie-law-info-public.php CHANGED
@@ -107,7 +107,11 @@ class Cookie_Law_Info_Public
107
  if( $category_enabled === false ) {
108
  return false;
109
  } else {
110
- @setcookie("cookielawinfo-checkbox-$key", $cookie_value, time() + 3600, '/');
 
 
 
 
111
  }
112
  }
113
  }
@@ -184,6 +188,7 @@ class Cookie_Law_Info_Public
184
  'js_blocking' => $js_blocking_enabled,
185
  'custom_integration' => $enable_custom_integration,
186
  'triggerDomRefresh' => $trigger_dom_reload,
 
187
  );
188
  wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/cookie-law-info-public.js', array('jquery'), $this->version, false);
189
  wp_localize_script($this->plugin_name, 'Cli_Data', $cli_cookie_datas);
@@ -514,15 +519,25 @@ class Cookie_Law_Info_Public
514
  $cookie_id = ( " " !== $cookie_title ) ? $cookie_title : $cookie->post_title;
515
 
516
  if( 'non-necessary' === $sensitivity || false === $strict) {
517
- $cookie_list[] = $cookie_id;
 
 
518
  }
519
  }
520
  }
521
  }
522
- $categories[ $slug ] = $cookie_list;
 
 
523
  }
524
 
525
  }
526
  return $categories;
527
  }
 
 
 
 
 
 
528
  }
107
  if( $category_enabled === false ) {
108
  return false;
109
  } else {
110
+ if( true === apply_filters('wt_cli_set_secure_cookies', false ) ) {
111
+ @setcookie("cookielawinfo-checkbox-$key", $cookie_value, time() + 3600, '/','',true );
112
+ } else {
113
+ @setcookie("cookielawinfo-checkbox-$key", $cookie_value, time() + 3600, '/');
114
+ }
115
  }
116
  }
117
  }
188
  'js_blocking' => $js_blocking_enabled,
189
  'custom_integration' => $enable_custom_integration,
190
  'triggerDomRefresh' => $trigger_dom_reload,
191
+ 'secure_cookies' => apply_filters('wt_cli_set_secure_cookies', false ),
192
  );
193
  wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/cookie-law-info-public.js', array('jquery'), $this->version, false);
194
  wp_localize_script($this->plugin_name, 'Cli_Data', $cli_cookie_datas);
519
  $cookie_id = ( " " !== $cookie_title ) ? $cookie_title : $cookie->post_title;
520
 
521
  if( 'non-necessary' === $sensitivity || false === $strict) {
522
+ if( false === $this->maybe_plugin_cookie( $cookie_id ) ) {
523
+ $cookie_list[] = $cookie_id;
524
+ }
525
  }
526
  }
527
  }
528
  }
529
+ if( !empty( $cookie_list ) ) {
530
+ $categories[ $slug ] = $cookie_list;
531
+ }
532
  }
533
 
534
  }
535
  return $categories;
536
  }
537
+ public function maybe_plugin_cookie( $cookie ) {
538
+ if( 'viewed_cookie_policy' === $cookie || false !== strpos( $cookie, 'cookielawinfo-checkbox') ) {
539
+ return true;
540
+ }
541
+ return false;
542
+ }
543
  }
public/js/cookie-law-info-public.js CHANGED
@@ -4,13 +4,15 @@ CLI_ACCEPT_COOKIE_EXPIRE =(typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI
4
  CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false);
5
  var CLI_Cookie={
6
  set: function (name, value, days) {
 
 
7
  if (days) {
8
  var date = new Date();
9
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
10
  var expires = "; expires=" + date.toGMTString();
11
  } else
12
  var expires = "";
13
- document.cookie = name + "=" + value + expires + "; path=/";
14
  if(days<1)
15
  {
16
  host_name=window.location.hostname;
@@ -18,10 +20,10 @@ var CLI_Cookie={
18
  if(host_name.indexOf("www")!=1)
19
  {
20
  var host_name_withoutwww=host_name.replace('www','');
21
- document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name_withoutwww+";";
22
  }
23
  host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".")-1));
24
- document.cookie = name + "=" + value + expires + "; path=/; domain="+host_name+";";
25
  }
26
  },
27
  read: function (name) {
@@ -86,9 +88,9 @@ var CLI=
86
  this.main_button=jQuery('.cli-plugin-main-button');
87
  this.main_link = jQuery('.cli-plugin-main-link');
88
  this.reject_link = jQuery('.cookie_action_close_header_reject');
89
- this.delete_link=jQuery(".cookielawinfo-cookie-delete");
90
- this.settings_button=jQuery('.cli_settings_button');
91
-
92
  if(this.settings.cookie_bar_as=='popup')
93
  {
94
  CLI_COOKIEBAR_AS_POPUP=true;
@@ -137,7 +139,13 @@ var CLI=
137
  CLI.accept_close();
138
  new_window= Boolean( CLI.settings.button_1_new_win ) ? true : false;
139
 
140
- }else if(button_action=='reject')
 
 
 
 
 
 
141
  {
142
  CLI.reject_close();
143
  new_window= Boolean( CLI.settings.button_3_new_win ) ? true : false;
@@ -403,6 +411,18 @@ var CLI=
403
  jQuery(this).css('background-color',CLI.settings.button_4_button_colour);
404
  });
405
  }
 
 
 
 
 
 
 
 
 
 
 
 
406
  },
407
  toggleBar:function()
408
  {
4
  CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false);
5
  var CLI_Cookie={
6
  set: function (name, value, days) {
7
+ var secure = "";
8
+ if ( true === Boolean( Cli_Data.secure_cookies ) ) secure = ";secure";
9
  if (days) {
10
  var date = new Date();
11
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
12
  var expires = "; expires=" + date.toGMTString();
13
  } else
14
  var expires = "";
15
+ document.cookie = name + "=" + value + secure + expires + "; path=/";
16
  if(days<1)
17
  {
18
  host_name=window.location.hostname;
20
  if(host_name.indexOf("www")!=1)
21
  {
22
  var host_name_withoutwww=host_name.replace('www','');
23
+ document.cookie = name + "=" + value + secure + expires + "; path=/; domain="+host_name_withoutwww+";";
24
  }
25
  host_name=host_name.substring(host_name.lastIndexOf(".", host_name.lastIndexOf(".")-1));
26
+ document.cookie = name + "=" + value + secure + expires + "; path=/; domain="+host_name+";";
27
  }
28
  },
29
  read: function (name) {
88
  this.main_button=jQuery('.cli-plugin-main-button');
89
  this.main_link = jQuery('.cli-plugin-main-link');
90
  this.reject_link = jQuery('.cookie_action_close_header_reject');
91
+ this.delete_link=jQuery(".cookielawinfo-cookie-delete");
92
+ this.settings_button=jQuery('.cli_settings_button');
93
+ this.accept_all_button = jQuery('.wt-cli-accept-all-btn');
94
  if(this.settings.cookie_bar_as=='popup')
95
  {
96
  CLI_COOKIEBAR_AS_POPUP=true;
139
  CLI.accept_close();
140
  new_window= Boolean( CLI.settings.button_1_new_win ) ? true : false;
141
 
142
+ }
143
+ else if( button_action == 'accept_all') {
144
+ CLI.enableAllCookies();
145
+ CLI.accept_close();
146
+ new_window=CLI.settings.button_7_new_win ? true : false;
147
+ }
148
+ else if(button_action=='reject')
149
  {
150
  CLI.reject_close();
151
  new_window= Boolean( CLI.settings.button_3_new_win ) ? true : false;
411
  jQuery(this).css('background-color',CLI.settings.button_4_button_colour);
412
  });
413
  }
414
+ /* [cookie_accept_all] */
415
+ this.accept_all_button.css('color',this.settings.button_7_link_colour);
416
+ if(this.settings.button_7_as_button)
417
+ {
418
+ this.accept_all_button.css('background-color',this.settings.button_7_button_colour);
419
+ this.accept_all_button.on('mouseenter', function(){
420
+ jQuery(this).css('background-color',CLI.settings.button_7_button_hover);
421
+ })
422
+ .on('mouseleave', function(){
423
+ jQuery(this).css('background-color',CLI.settings.button_7_button_colour);
424
+ });
425
+ }
426
  },
427
  toggleBar:function()
428
  {
public/modules/script-blocker/integrations/google-analytics-for-wordpress.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // If this file is called directly, abort.
3
+ if ( ! defined( 'WPINC' ) ) {
4
+ die;
5
+ }
6
+ add_filter( 'wt_cli_third_party_scripts', 'wt_cli_google_analytics_wordpress_script' );
7
+ function wt_cli_google_analytics_wordpress_script( $tags ) {
8
+ $tags['google-analytics-for-wordpress'] = array(
9
+ 'mi_track_user',
10
+ 'www.google-analytics.com/analytics.js',
11
+ 'google-analytics-for-wordpress/assets/js/',
12
+ );
13
+ return $tags;
14
+ }
public/modules/script-blocker/script-blocker.php CHANGED
@@ -5,33 +5,45 @@ if (!defined('WPINC')) {
5
  }
6
  global $wt_cli_integration_list;
7
 
8
- $wt_cli_integration_list = apply_filters('wt_cli_plugin_integrations', array(
9
-
10
- 'facebook-for-wordpress' => array(
11
- 'constant_or_function' => 'FacebookPixelPlugin\\FacebookForWordpress',
12
- 'label' => 'Official Facebook Pixel',
13
- 'status' => 'yes',
14
- 'description' => 'Official Facebook Pixel',
15
- 'category' => 'analytics',
16
- 'type' => 1
17
- ),
18
- 'twitter-feed' => array(
19
- 'constant_or_function' => 'CTF_VERSION',
20
- 'label' => 'Smash Balloon Twitter Feed',
21
- 'status' => 'yes',
22
- 'description' => 'Twitter Feed By Smash Baloon',
23
- 'category' => 'analytics',
24
- 'type' => 1
25
- ),
26
- 'instagram-feed' => array(
27
- 'constant_or_function' => 'SBIVER',
28
- 'label' => 'Smash Balloon Instagram Feed',
29
- 'status' => 'yes',
30
- 'description' => 'Instagram Feed By Smash Baloon',
31
- 'category' => 'advertisement',
32
- 'type' => 1
33
- ),
34
- ));
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  if (!class_exists('Cookie_Law_Info_Script_Blocker')) {
37
  class Cookie_Law_Info_Script_Blocker
@@ -60,8 +72,8 @@ if (!class_exists('Cookie_Law_Info_Script_Blocker')) {
60
  add_action( 'wt_cli_after_advanced_settings', array( $this, 'add_blocking_control'));
61
  add_action( 'wt_cli_ajax_settings_update', array( $this, 'update_js_blocking_status'),10,1);
62
 
63
- add_action('admin_notices', array( $this, 'wt_cli_admin_notices' ),10);
64
- add_action('admin_init', array($this,'save_notice_link'));
65
 
66
  // @since 1.9.6 for changing the category of each script blocker
67
  add_action('wp_ajax_cli_change_script_category', array($this, 'cli_change_script_category'));
@@ -92,7 +104,7 @@ if (!class_exists('Cookie_Law_Info_Script_Blocker')) {
92
  $title = sanitize_text_field( ( isset( $data['cliscript_title'] ) ? $data['cliscript_title'] : '' ) );
93
  $description = sanitize_text_field( ( isset( $data['cliscript_description'] ) ? $data['cliscript_description'] : '' ) );
94
  $category_id = isset( $data['cliscript_category'] ) ? $data['cliscript_category'] : '';
95
- $status = wp_validate_boolean( ( isset( $data['cliscript_status'] ) ? $data['cliscript_status'] : false ) );
96
  $term = get_term_by( 'id', $category_id, 'cookielawinfo-category' );
97
  $category_slug = '';
98
  if ( '' !== $category_id ) {
@@ -375,6 +387,9 @@ if (!class_exists('Cookie_Law_Info_Script_Blocker')) {
375
  );
376
  $data_exists = $wpdb->get_row("SELECT id FROM `$table_name` WHERE `cliscript_key`='" . $key . "'", ARRAY_A);
377
  if (!$data_exists) {
 
 
 
378
  $wpdb->insert($table_name, $data);
379
  }
380
  }
@@ -442,9 +457,9 @@ if (!class_exists('Cookie_Law_Info_Script_Blocker')) {
442
  $details = $wt_cli_integration_list[$plugin];
443
 
444
  $enabled = isset( $script_data[ $plugin ]['status'] ) ? wp_validate_boolean( $script_data[ $plugin ]['status'] ) : false;
445
- if ( ( defined($details['constant_or_function'])
446
- || function_exists($details['constant_or_function'])
447
- || class_exists($details['constant_or_function']) ) && $enabled === true ) {
448
  return true;
449
  }
450
  return false;
5
  }
6
  global $wt_cli_integration_list;
7
 
8
+ $wt_cli_integration_list = apply_filters(
9
+ 'wt_cli_plugin_integrations',
10
+ array(
11
+
12
+ 'facebook-for-wordpress' => array(
13
+ 'identifier' => 'FacebookPixelPlugin\\FacebookForWordpress',
14
+ 'label' => 'Official Facebook Pixel',
15
+ 'status' => 'yes',
16
+ 'description' => 'Official Facebook Pixel',
17
+ 'category' => 'analytics',
18
+ 'type' => 1,
19
+ ),
20
+ 'twitter-feed' => array(
21
+ 'identifier' => 'CTF_VERSION',
22
+ 'label' => 'Smash Balloon Twitter Feed',
23
+ 'status' => 'yes',
24
+ 'description' => 'Twitter Feed By Smash Baloon',
25
+ 'category' => 'analytics',
26
+ 'type' => 1,
27
+ ),
28
+ 'instagram-feed' => array(
29
+ 'identifier' => 'SBIVER',
30
+ 'label' => 'Smash Balloon Instagram Feed',
31
+ 'status' => 'yes',
32
+ 'description' => 'Instagram Feed By Smash Baloon',
33
+ 'category' => 'advertisement',
34
+ 'type' => 1,
35
+ ),
36
+ 'google-analytics-for-wordpress' => array(
37
+ 'identifier' => 'MonsterInsights',
38
+ 'label' => 'Google Analytics for WordPress by MonsterInsights',
39
+ 'status' => 'yes',
40
+ 'description' => 'Google Analytics Dashboard Plugin for WordPress by MonsterInsights',
41
+ 'category' => 'analytics',
42
+ 'type' => 1,
43
+ ),
44
+ )
45
+ );
46
+
47
 
48
  if (!class_exists('Cookie_Law_Info_Script_Blocker')) {
49
  class Cookie_Law_Info_Script_Blocker
72
  add_action( 'wt_cli_after_advanced_settings', array( $this, 'add_blocking_control'));
73
  add_action( 'wt_cli_ajax_settings_update', array( $this, 'update_js_blocking_status'),10,1);
74
 
75
+ // add_action('admin_notices', array( $this, 'wt_cli_admin_notices' ),10);
76
+ // add_action('admin_init', array($this,'save_notice_link'));
77
 
78
  // @since 1.9.6 for changing the category of each script blocker
79
  add_action('wp_ajax_cli_change_script_category', array($this, 'cli_change_script_category'));
104
  $title = sanitize_text_field( ( isset( $data['cliscript_title'] ) ? $data['cliscript_title'] : '' ) );
105
  $description = sanitize_text_field( ( isset( $data['cliscript_description'] ) ? $data['cliscript_description'] : '' ) );
106
  $category_id = isset( $data['cliscript_category'] ) ? $data['cliscript_category'] : '';
107
+ $status = (isset($data['cliscript_status']) && ( $data['cliscript_status'] === "yes" || $data['cliscript_status'] === "1") ? true : false);
108
  $term = get_term_by( 'id', $category_id, 'cookielawinfo-category' );
109
  $category_slug = '';
110
  if ( '' !== $category_id ) {
387
  );
388
  $data_exists = $wpdb->get_row("SELECT id FROM `$table_name` WHERE `cliscript_key`='" . $key . "'", ARRAY_A);
389
  if (!$data_exists) {
390
+ if( Cookie_Law_Info::maybe_first_time_install() === false ) {
391
+ $data['cliscript_status'] = false;
392
+ }
393
  $wpdb->insert($table_name, $data);
394
  }
395
  }
457
  $details = $wt_cli_integration_list[$plugin];
458
 
459
  $enabled = isset( $script_data[ $plugin ]['status'] ) ? wp_validate_boolean( $script_data[ $plugin ]['status'] ) : false;
460
+ if ( ( defined($details['identifier'])
461
+ || function_exists($details['identifier'])
462
+ || class_exists($details['identifier']) ) && $enabled === true ) {
463
  return true;
464
  }
465
  return false;
public/modules/script-blocker/views/settings.php CHANGED
@@ -158,7 +158,7 @@ $plugin_help_url = 'https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-v
158
 
159
  $plugin_data = (isset($script_data[$plugin]) ? $script_data[$plugin] : '');
160
  if (!empty($plugin_data)) {
161
- if (defined($data['constant_or_function']) || function_exists($data['constant_or_function']) || class_exists($data['constant_or_function'])) {
162
  $plugin_data['active'] = true;
163
  $enabled_plugins[$plugin] = $plugin_data;
164
  } else {
158
 
159
  $plugin_data = (isset($script_data[$plugin]) ? $script_data[$plugin] : '');
160
  if (!empty($plugin_data)) {
161
+ if (defined($data['identifier']) || function_exists($data['identifier']) || class_exists($data['identifier'])) {
162
  $plugin_data['active'] = true;
163
  $enabled_plugins[$plugin] = $plugin_data;
164
  } else {
public/modules/shortcode/shortcode.php CHANGED
@@ -53,6 +53,8 @@ class Cookie_Law_Info_Shortcode {
53
  add_shortcode( 'webtoffee_powered_by',array($this,'wf_powered_by'));
54
  add_shortcode( 'cookie_close',array($this,'cookielawinfo_shortcode_close_button')); // a shortcode [close_button]
55
  add_shortcode( 'wt_cli_manage_consent',array( $this, 'manage_consent'));
 
 
56
  }
57
 
58
  /*
@@ -187,7 +189,7 @@ class Cookie_Law_Info_Shortcode {
187
  'category'=>''
188
  ), $atts ) );
189
  $columns = explode(",",$columns);
190
-
191
  $args = array(
192
  'post_type' => CLI_POST_TYPE,
193
  /** 28/05/2013: Changing from 10 to 50 to allow longer tables of cookie data */
@@ -312,26 +314,6 @@ class Cookie_Law_Info_Shortcode {
312
  return $ret;
313
  }
314
 
315
- public function render_cookie_raw_table($cookie_post = array(), $ret)
316
- {
317
-
318
- // Get custom fields:
319
- $custom = get_post_custom( $cookie_post->ID );
320
- $post = get_post($cookie_post->ID);
321
- $cookie_type = ( isset ( $custom["_cli_cookie_type"][0] ) ) ? $custom["_cli_cookie_type"][0] : '';
322
- $cookie_duration = ( isset ( $custom["_cli_cookie_duration"][0] ) ) ? $custom["_cli_cookie_duration"][0] : '';
323
- // Output HTML:
324
- $ret .= '<tr class="cookielawinfo-row"><td class="cookielawinfo-column-1">' . $post->post_title . '</td>';
325
- $ret .= '<td class="cookielawinfo-column-2">' . $cookie_type .'</td>';
326
- $ret .= '<td class="cookielawinfo-column-3">' . $cookie_duration .'</td>';
327
- $ret .= '<td class="cookielawinfo-column-4">' . $post->post_content .'</td>';
328
- $ret .= '</tr>';
329
- return $ret;
330
- }
331
-
332
-
333
-
334
-
335
  /**
336
  * Returns HTML for a standard (green, medium sized) 'Accept' button
337
  */
@@ -592,5 +574,28 @@ class Cookie_Law_Info_Shortcode {
592
 
593
  return $manage_consent_link;
594
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
595
  }
596
  new Cookie_Law_Info_Shortcode($this);
53
  add_shortcode( 'webtoffee_powered_by',array($this,'wf_powered_by'));
54
  add_shortcode( 'cookie_close',array($this,'cookielawinfo_shortcode_close_button')); // a shortcode [close_button]
55
  add_shortcode( 'wt_cli_manage_consent',array( $this, 'manage_consent'));
56
+ add_shortcode( 'cookie_accept_all',array($this,'accept_all_button')); // a shortcode [cookie_button]
57
+
58
  }
59
 
60
  /*
189
  'category'=>''
190
  ), $atts ) );
191
  $columns = explode(",",$columns);
192
+ $posts = array();
193
  $args = array(
194
  'post_type' => CLI_POST_TYPE,
195
  /** 28/05/2013: Changing from 10 to 50 to allow longer tables of cookie data */
314
  return $ret;
315
  }
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  /**
318
  * Returns HTML for a standard (green, medium sized) 'Accept' button
319
  */
574
 
575
  return $manage_consent_link;
576
  }
577
+ /**
578
+ * Creates accept all button
579
+ *
580
+ * @return void
581
+ */
582
+ public function accept_all_button() {
583
+
584
+ $defaults = Cookie_Law_Info::get_default_settings();
585
+ $settings = wp_parse_args( Cookie_Law_Info::get_settings(), $defaults );
586
+ $class = '';
587
+ if ( $settings['button_7_as_button'] ) {
588
+ $class = ' class="wt-cli-element' . ' ' . $settings['button_7_button_size'] . ' cli-plugin-button wt-cli-accept-all-btn cookie_action_close_header cli_action_button"';
589
+ } else {
590
+ $class = ' class="wt-cli-element cli-plugin-main-button wt-cli-accept-all-btn cookie_action_close_header cli_action_button" ';
591
+ }
592
+ $url = ( $settings['button_7_action'] == 'CONSTANT_OPEN_URL' && $settings['button_7_url'] != '#' ) ? "href='$settings[button_7_url]'" : "role='button'";
593
+
594
+ $link_tag = '<a id="wt-cli-accept-all-btn" tabindex="0" ' . $url . ' data-cli_action="accept_all" ';
595
+ $link_tag .= ( $settings['button_7_new_win'] ) ? ' target="_blank" ' : '';
596
+ $link_tag .= $class . ' >' . stripslashes( $settings['button_7_text'] ) . '</a>';
597
+ return $link_tag;
598
+ }
599
+
600
  }
601
  new Cookie_Law_Info_Shortcode($this);
public/views/cookie-law-info_popup_content.php CHANGED
@@ -6,7 +6,7 @@ $default_privacy_settings = Cookie_Law_Info_Admin::get_privacy_defaults();
6
  $cli_always_enable_text = __( 'Always Enabled', 'cookie-law-info' );
7
  $cli_enable_text = __( 'Enabled', 'cookie-law-info' );
8
  $cli_disable_text = __( 'Disabled', 'cookie-law-info' );
9
- $cli_privacy_readmore = '<a class="cli-privacy-readmore" tabindex="0" role="button" data-readmore-text="' . __( 'Show more', 'cookie-law-info' ) . '" data-readless-text="' . __( 'Show less', 'cookie-law-info' ) . '"></a>';
10
  $overview_title = sanitize_text_field( stripslashes( isset( $overview['privacy_overview_title'] ) ? $overview['privacy_overview_title'] : $default_privacy_settings['privacy_overview_title'] ) );
11
  $privacy_overview_content = wp_kses_post( isset( $overview['privacy_overview_content'] ) ? $overview['privacy_overview_content'] : $default_privacy_settings['privacy_overview_content'] );
12
  $privacy_overview_content = nl2br( $privacy_overview_content );
6
  $cli_always_enable_text = __( 'Always Enabled', 'cookie-law-info' );
7
  $cli_enable_text = __( 'Enabled', 'cookie-law-info' );
8
  $cli_disable_text = __( 'Disabled', 'cookie-law-info' );
9
+ $cli_privacy_readmore = '<a class="cli-privacy-readmore" aria-label="' . __('Show more', 'cookie-law-info') . '" tabindex="0" role="button" data-readmore-text="' . __( 'Show more', 'cookie-law-info' ) . '" data-readless-text="' . __( 'Show less', 'cookie-law-info' ) . '"></a>';
10
  $overview_title = sanitize_text_field( stripslashes( isset( $overview['privacy_overview_title'] ) ? $overview['privacy_overview_title'] : $default_privacy_settings['privacy_overview_title'] ) );
11
  $privacy_overview_content = wp_kses_post( isset( $overview['privacy_overview_content'] ) ? $overview['privacy_overview_content'] : $default_privacy_settings['privacy_overview_content'] );
12
  $privacy_overview_content = nl2br( $privacy_overview_content );
readme.txt CHANGED
@@ -1,21 +1,21 @@
1
  === CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready) ===
2
  Contributors: webtoffee, cookieyesdev
3
  Donate link: https://www.webtoffee.com/plugins/
4
- Tags: eu cookie law, GDPR, CCPA, cookie law, cookie consent, eu privacy directive, privacy directive, cookies, privacy, compliance
5
  Requires at least: 4.4.0
6
- Tested up to: 5.6
7
  Requires PHP: 5.6
8
- Stable tag: 2.0.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
12
- Easily set up cookie notice and get GDPR Cookie Consent as per EU GDPR/Cookie Law regulations. The plugin supports GDPR (DSGVO, RGPD), LGPD, and CCPA Do Not Sell.
13
 
14
  GDPR CookieConsent' plugin is getting renamed as ‘CookieYes - GDPR Cookie Consent & Compliance Notice' plugin. WebToffee will continue to develop and maintain this plugin. In addition to the current features, we have integrated a free Automatic Cookie Scan service into the plugin. You need an account with CookieYes in order to use the scan service, but no worries, we will automatically create an account for you when you initiate the scan.
15
 
16
  == Description ==
17
 
18
- The CookieYes GDPR Cookie Consent & Compliance Notice plugin will assist you in making your website GDPR (RGPD, DSVGO) compliant. In addition to compliance with this GDPR WordPress plugin also supports cookie compliance in accordance with the LGPD of Brazil and California Consumer Privacy Act (CCPA) which is a state statute intended to enhance privacy rights and consumer protection for residents of California.
19
 
20
  The plugin is one of the best WordPress GDPR compliance plugins as it comes with a host of features some of which are listed below.
21
 
@@ -37,6 +37,8 @@ The plugin is one of the best WordPress GDPR compliance plugins as it comes with
37
 
38
  - The plugin can be configured to have a CCPA 'Do Not Sell My Personal Information' control to the cookie notice.
39
 
 
 
40
  - Integrates seamlessly with Official Facebook Pixel, Smash Balloon Instagram Feed & Twitter Feed.
41
 
42
 
@@ -53,7 +55,7 @@ The plugin is one of the best WordPress GDPR compliance plugins as it comes with
53
  * qTranslate and Polylang support
54
 
55
 
56
- == The plugin uses the following cookies ==
57
 
58
  - viewed_cookie_policy – Is the primary cookie that records the user consent for the usage of the cookies upon ‘accept’ and ‘reject’. It doesn’t track any personal data and is set only upon user action(accept/reject).
59
 
@@ -73,38 +75,33 @@ You can get more information and [read more about the EU Cookie Law](https://coo
73
 
74
  https://www.youtube.com/watch?v=ChjX6U5EPdE
75
 
76
- <blockquote>
77
-
78
- = GDPR COOKIE CONSENT PREMIUM VERSION FEATURES =
79
- &#9989; Manage list of cookies ( Name, CookieID, Description, Duration, Type, Category, Header Script, Footer Script).
80
- &#9989; Manage Cookie Categories.
81
- &#9989; Scan and auto block scripts Google Analytics, FB Pixel, Google tag manager, Hotjar, Instagram, etc.
82
- &#9989; Location based exclusion of cookie notice for EU countries.
83
- &#9989; Provide the users with the granular control over the cookies/scripts used by the website.
84
- &#9989; Option to renew consents when there is a change in policy.
85
- &#9989; Optionally log users’ consent and export into a CSV file.
86
- &#9989; Customize the privacy overview in the cookie banner settings popup.
87
- &#9989; Export/import cookies and related information via CSV file.
88
- &#9989; Scan and import/export the cookies.
89
- &#9989; Allow to display cookie notice settings popup where site visitors can opt-in or give consent to cookie categories.
90
- &#9989; Add CCPA 'Do Not Sell My Personal Information' control to the cookie notice.
91
- &#9989; Customisable to look just like your own website’s style: customise the colours, styles and fonts.
92
- &#9989; Put the cookie banner in either the header or the footer, as pop-up or even as widget.
93
- &#9989; Compatibility with major caching servers and plugins.
94
- &#9989; Cookie policy generator.
95
- &#9989; Cookie banner preview in admin settings.
96
- &#9989; (Optional) accept cookie notice if the user scrolls.
97
- &#9989; (Optional) automatically close the cookie bar after a delay (delay is configurable).
98
- &#9989; (Optional) cookie banner can be permanently dismissed or accessible through a “show again” tab.
99
- &#9989; (Optional) “show again” tab is fully customisable including position shown on page and styles.
100
- &#9989; “Cookie Audit” shortcode to construct a nicely-styled ‘Privacy & Cookie Policy’.
101
- &#9989; WPML, qTranslate, Polylang compatible.
102
 
103
  For complete list of features and details, Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/gdpr-cookie-consent/">GDPR Cookie Consent Premium Plugin</a> for more details
104
 
105
- </blockquote>
106
-
107
-
108
  = NOTE: INSTALLING THIS PLUGIN ALONE DOES NOT MAKE YOUR SITE GDPR COMPLIANT. SINCE EACH SITE USES DIFFERENT COOKIES, YOU NEED TO ENSURE YOU HAVE THE NECESSARY CONFIGURATIONS IN PLACE WITH A SUPPORTING COOKIE NOTICE. =
109
 
110
 
@@ -112,10 +109,6 @@ For complete list of features and details, Please visit <a rel="nofollow" href="
112
 
113
  There’s a lot of help available on the main plugin website. See the [FAQ](https://www.cookielawinfo.com/faq) on the main website and the [setup guide](https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-version-user-guide/) for GDPR cookie compliance.
114
 
115
- https://www.cookielawinfo.com/faq
116
- https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-version-user-guide/
117
- https://www.cookielawinfo.com/support
118
-
119
  = The cookie notice header isn’t displaying ? =
120
  First check you have installed the plugin and have activated it in the plugins panel.
121
  To check if it is switched on or not, go to ‘GDPR Cookie Consent > Cookie Law Settings’ and then enable the cookie law.
@@ -196,6 +189,14 @@ For every update of the plugin, you will be notified of the installed plugins pa
196
 
197
  == Changelog ==
198
 
 
 
 
 
 
 
 
 
199
  = 2.0.0 =
200
 
201
  * Introduced website cookie scanner
@@ -503,7 +504,10 @@ For every update of the plugin, you will be notified of the installed plugins pa
503
 
504
  == Upgrade Notice ==
505
 
506
- = 2.0.0 =
507
 
508
- * Introduced website cookie scanner
509
- * Introduced dynamic cookie categories
 
 
 
1
  === CookieYes | GDPR Cookie Consent & Compliance Notice (CCPA Ready) ===
2
  Contributors: webtoffee, cookieyesdev
3
  Donate link: https://www.webtoffee.com/plugins/
4
+ Tags: GDPR, CCPA, cookie notice, DSGVO, RGPD, LGPD, PIPEDA, cookies , cookie law, cookie consent, Opt-in, cookie policy, privacy, compliance
5
  Requires at least: 4.4.0
6
+ Tested up to: 5.7
7
  Requires PHP: 5.6
8
+ Stable tag: 2.0.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
12
+ Easily set up cookie notice and get GDPR Cookie Consent as per EU GDPR/Cookie Law regulations. The plugin supports GDPR (DSGVO, RGPD), LGPD, CCPA Do Not Sell, and CNIL of France.
13
 
14
  GDPR CookieConsent' plugin is getting renamed as ‘CookieYes - GDPR Cookie Consent & Compliance Notice' plugin. WebToffee will continue to develop and maintain this plugin. In addition to the current features, we have integrated a free Automatic Cookie Scan service into the plugin. You need an account with CookieYes in order to use the scan service, but no worries, we will automatically create an account for you when you initiate the scan.
15
 
16
  == Description ==
17
 
18
+ The CookieYes GDPR Cookie Consent & Compliance Notice plugin will assist you in making your website GDPR (RGPD, DSVGO) compliant. In addition to compliance with this GDPR WordPress plugin also supports cookie compliance in accordance with the LGPD of Brazil, CNIL of France, and California Consumer Privacy Act (CCPA) which is a state statute intended to enhance privacy rights and consumer protection for residents of California.
19
 
20
  The plugin is one of the best WordPress GDPR compliance plugins as it comes with a host of features some of which are listed below.
21
 
37
 
38
  - The plugin can be configured to have a CCPA 'Do Not Sell My Personal Information' control to the cookie notice.
39
 
40
+ - Assists in compliance with CNIL - A french administrative regulatory body
41
+
42
  - Integrates seamlessly with Official Facebook Pixel, Smash Balloon Instagram Feed & Twitter Feed.
43
 
44
 
55
  * qTranslate and Polylang support
56
 
57
 
58
+ == The CookieYes GDPR Cookie Consent and Compliance Notice Plugin Uses The Following Cookies ==
59
 
60
  - viewed_cookie_policy – Is the primary cookie that records the user consent for the usage of the cookies upon ‘accept’ and ‘reject’. It doesn’t track any personal data and is set only upon user action(accept/reject).
61
 
75
 
76
  https://www.youtube.com/watch?v=ChjX6U5EPdE
77
 
78
+ == CookieYes GDPR Cookie Consent & Compliance Notice Plugin Premium Version Features ==
79
+ * Manage list of cookies ( Name, CookieID, Description, Duration, Type, Category, Header Script, Footer Script).
80
+ * Manage Cookie Categories.
81
+ * Scan and auto block scripts Google Analytics, FB Pixel, Google tag manager, Hotjar, Instagram, etc.
82
+ * Location based exclusion of cookie notice for EU countries.
83
+ * Provide the users with the granular control over the cookies/scripts used by the website.
84
+ * Option to renew consents when there is a change in policy.
85
+ * Optionally log users consent and export into a CSV file.
86
+ * Customize the privacy overview in the cookie banner settings popup.
87
+ * Export/import cookies and related information via CSV file.
88
+ * Scan and import/export the cookies.
89
+ * Allow to display cookie notice settings popup where site visitors can opt-in or give consent to cookie categories.
90
+ * Add CCPA 'Do Not Sell My Personal Information' control to the cookie notice.
91
+ * Customisable to look just like your own website’s style: customise the colours, styles and fonts.
92
+ * Put the cookie banner in either the header or the footer, as pop-up or even as widget.
93
+ * Compatibility with major caching servers and plugins.
94
+ * Cookie policy generator.
95
+ * Cookie banner preview in admin settings.
96
+ * (Optional) accept cookie notice if the user scrolls.
97
+ * (Optional) automatically close the cookie bar after a delay (delay is configurable).
98
+ * (Optional) cookie banner can be permanently dismissed or accessible through a "show again" tab.
99
+ * (Optional) “show again” tab is fully customisable including position shown on page and styles.
100
+ * "Cookie Audit" shortcode to construct a nicely-styled ‘Privacy & Cookie Policy’.
101
+ * WPML, qTranslate, Polylang compatible.
 
 
102
 
103
  For complete list of features and details, Please visit <a rel="nofollow" href="https://www.webtoffee.com/product/gdpr-cookie-consent/">GDPR Cookie Consent Premium Plugin</a> for more details
104
 
 
 
 
105
  = NOTE: INSTALLING THIS PLUGIN ALONE DOES NOT MAKE YOUR SITE GDPR COMPLIANT. SINCE EACH SITE USES DIFFERENT COOKIES, YOU NEED TO ENSURE YOU HAVE THE NECESSARY CONFIGURATIONS IN PLACE WITH A SUPPORTING COOKIE NOTICE. =
106
 
107
 
109
 
110
  There’s a lot of help available on the main plugin website. See the [FAQ](https://www.cookielawinfo.com/faq) on the main website and the [setup guide](https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-version-user-guide/) for GDPR cookie compliance.
111
 
 
 
 
 
112
  = The cookie notice header isn’t displaying ? =
113
  First check you have installed the plugin and have activated it in the plugins panel.
114
  To check if it is switched on or not, go to ‘GDPR Cookie Consent > Cookie Law Settings’ and then enable the cookie law.
189
 
190
  == Changelog ==
191
 
192
+ = 2.0.1 =
193
+
194
+ * Enhancement - New shortcode [cookie_accept_all] to add accept all button to the banner
195
+ * Enhancement - MonsterInsights integration
196
+ * Enhancement - New filter `wt_cli_set_secure_cookies` to set plugin cookies as secure
197
+ * Fix - Site map issue with cookie category
198
+ * Fix - Cookie categories are not ordered properly in secondary languages
199
+
200
  = 2.0.0 =
201
 
202
  * Introduced website cookie scanner
504
 
505
  == Upgrade Notice ==
506
 
507
+ = 2.0.1 =
508
 
509
+ * Enhancement - New shortcode [cookie_accept_all] to add accept all button to the banner
510
+ * Enhancement - MonsterInsights integration
511
+ * Enhancement - New filter `wt_cli_set_secure_cookies` to set plugin cookies as secure
512
+ * Fix - Site map issue with cookie category
513
+ * Fix - Cookie categories are not ordered properly in secondary languages
wpml-config.xml CHANGED
@@ -10,6 +10,8 @@
10
  <key name="button_3_text" />
11
  <key name="button_3_url" />
12
  <key name="button_4_text" />
 
 
13
  <key name="showagain_text" />
14
  </key>
15
  <key name="cookielawinfo_privacy_overview_content_settings">
10
  <key name="button_3_text" />
11
  <key name="button_3_url" />
12
  <key name="button_4_text" />
13
+ <key name="button_6_text" />
14
+ <key name="button_7_text" />
15
  <key name="showagain_text" />
16
  </key>
17
  <key name="cookielawinfo_privacy_overview_content_settings">