Version Description
- Bug fix: Do not sell option appears before Accept all button option on the admin settings.
- Enhancement: Translation support for "Do not sell" link text.
- Enhancement: Added escaping to input attributes.
Download this release
Release Info
Developer | webtoffee |
Plugin | Cookie Law / GDPR Info |
Version | 2.0.4 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.4
- admin/class-cookie-law-info-admin.php +2 -2
- admin/modules/ccpa/ccpa.php +3 -0
- admin/modules/cli-policy-generator/views/policy-generator.php +2 -2
- admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php +9 -9
- admin/modules/cookie-scaner/views/scan-results.php +3 -3
- admin/modules/cookies/cookies.php +40 -17
- admin/modules/cookies/views/non-necessary-settings.php +1 -1
- admin/modules/uninstall-feedback/uninstall-feedback.php +8 -8
- admin/partials/cookie-law-info-admin_settings.php +3 -3
- admin/partials/cookie-law-info-privacy_overview.php +1 -1
- admin/views/admin-settings-advanced.php +1 -1
- admin/views/admin-settings-buttons.php +25 -25
- admin/views/admin-settings-general.php +2 -2
- admin/views/admin-settings-help.php +3 -3
- admin/views/admin-settings-messagebar.php +9 -9
- admin/views/goto-pro.php +4 -4
- cookie-law-info.php +2 -2
- includes/class-cookie-law-info-cookieyes.php +2 -2
- includes/class-cookie-law-info-review_request.php +5 -5
- includes/class-cookie-law-info.php +17 -4
- public/modules/script-blocker/views/settings.php +9 -9
- public/modules/shortcode/shortcode.php +22 -28
- public/views/cookie-law-info_bar.php +1 -1
- public/views/cookie-law-info_popup_content.php +4 -4
- readme.txt +11 -3
admin/class-cookie-law-info-admin.php
CHANGED
@@ -435,7 +435,7 @@ class Cookie_Law_Info_Admin {
|
|
435 |
// Are on latest version
|
436 |
return true;
|
437 |
}
|
438 |
-
echo 'VERSION: ' . $version . '<br /> V2: ' . CLI_LATEST_VERSION_NUMBER;
|
439 |
// If you got this far then you're on an inbetween version
|
440 |
return false;
|
441 |
}
|
@@ -458,7 +458,7 @@ class Cookie_Law_Info_Admin {
|
|
458 |
if ( $option['value'] == $selected ) {
|
459 |
echo ' selected="selected"';
|
460 |
}
|
461 |
-
echo '>' . $option['text'] . '</option>';
|
462 |
}
|
463 |
}
|
464 |
|
435 |
// Are on latest version
|
436 |
return true;
|
437 |
}
|
438 |
+
echo 'VERSION: ' . esc_html( $version ). '<br /> V2: ' . CLI_LATEST_VERSION_NUMBER;
|
439 |
// If you got this far then you're on an inbetween version
|
440 |
return false;
|
441 |
}
|
458 |
if ( $option['value'] == $selected ) {
|
459 |
echo ' selected="selected"';
|
460 |
}
|
461 |
+
echo '>' . esc_html( $option['text'] ) . '</option>';
|
462 |
}
|
463 |
}
|
464 |
|
admin/modules/ccpa/ccpa.php
CHANGED
@@ -114,6 +114,9 @@ class Cookie_Law_Info_CCPA
|
|
114 |
}
|
115 |
}
|
116 |
public function wt_cli_ccpa_optout_callback() {
|
|
|
|
|
|
|
117 |
|
118 |
$ccpa_data = '';
|
119 |
$ccpa_enabled = $this->ccpa_enabled;
|
114 |
}
|
115 |
}
|
116 |
public function wt_cli_ccpa_optout_callback() {
|
117 |
+
|
118 |
+
$cookie_options = Cookie_Law_Info::get_settings();
|
119 |
+
$this->ccpa_text = Cookie_Law_Info::sanitise_settings('button_6_text', ( isset( $cookie_options['button_6_text'] ) ? $cookie_options['button_6_text'] : 'Do not sell my personal information' ) );
|
120 |
|
121 |
$ccpa_data = '';
|
122 |
$ccpa_enabled = $this->ccpa_enabled;
|
admin/modules/cli-policy-generator/views/policy-generator.php
CHANGED
@@ -82,12 +82,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
82 |
<?php _e('Update existing Cookie Policy page','cookie-law-info');?>
|
83 |
</a>
|
84 |
|
85 |
-
<input type="hidden" name="cli_pg_policy_pageid" value="<?php echo $policy_pageid ? $policy_pageid : 0 ?>">
|
86 |
<a name="cli_pg_save_newpage" class="button-primary cli_pg_main_buttons">
|
87 |
<span class="dashicons dashicons-welcome-add-page" style="line-height: 28px;"></span>
|
88 |
<?php _e('Create Cookie Policy page','cookie-law-info');?>
|
89 |
</a>
|
90 |
-
<a name="cli_pg_live_preview" class="button-secondary cli_pg_main_buttons" href="<?php echo $preview_url
|
91 |
<span class="dashicons dashicons-external" style="line-height: 28px;"></span>
|
92 |
<?php _e('Live preview','cookie-law-info');?>
|
93 |
</a>
|
82 |
<?php _e('Update existing Cookie Policy page','cookie-law-info');?>
|
83 |
</a>
|
84 |
|
85 |
+
<input type="hidden" name="cli_pg_policy_pageid" value="<?php echo $policy_pageid ? esc_attr( $policy_pageid ) : 0 ?>">
|
86 |
<a name="cli_pg_save_newpage" class="button-primary cli_pg_main_buttons">
|
87 |
<span class="dashicons dashicons-welcome-add-page" style="line-height: 28px;"></span>
|
88 |
<?php _e('Create Cookie Policy page','cookie-law-info');?>
|
89 |
</a>
|
90 |
+
<a name="cli_pg_live_preview" class="button-secondary cli_pg_main_buttons" href="<?php echo esc_url( $preview_url ); ?>" target="_blank">
|
91 |
<span class="dashicons dashicons-external" style="line-height: 28px;"></span>
|
92 |
<?php _e('Live preview','cookie-law-info');?>
|
93 |
</a>
|
admin/modules/cookie-scaner/classes/class-cookie-law-info-cookie-scanner-ajax.php
CHANGED
@@ -454,7 +454,7 @@ class Cookie_Law_Info_Cookie_Scanner_Ajax extends Cookie_Law_Info_Cookie_Scaner
|
|
454 |
if ( empty( $cli_post->post_content ) ) {
|
455 |
$post_data = array(
|
456 |
'ID' => $cli_post->ID,
|
457 |
-
'post_content' => $cookie['description'],
|
458 |
);
|
459 |
wp_update_post( $post_data );
|
460 |
}
|
@@ -466,19 +466,19 @@ class Cookie_Law_Info_Cookie_Scanner_Ajax extends Cookie_Law_Info_Cookie_Scaner
|
|
466 |
$added++;
|
467 |
$cookie_data = array(
|
468 |
'post_type' => CLI_POST_TYPE,
|
469 |
-
'post_title' => $cookie['cookie_id'],
|
470 |
-
'post_content' => $cookie['description'],
|
471 |
'post_status' => 'publish',
|
472 |
'ping_status' => 'closed',
|
473 |
-
'post_excerpt' => $cookie['cookie_id'],
|
474 |
'post_author' => 1,
|
475 |
);
|
476 |
$post_id = wp_insert_post( $cookie_data );
|
477 |
-
|
478 |
-
update_post_meta( $post_id, '_cli_cookie_duration', $cookie['expiry'] );
|
479 |
update_post_meta( $post_id, '_cli_cookie_sensitivity', 'non-necessary' );
|
480 |
-
update_post_meta( $post_id, '_cli_cookie_slugid', $cookie['cookie_id'] );
|
481 |
-
wp_set_object_terms( $post_id, array( $cookie['category'] ), 'cookielawinfo-category', true );
|
482 |
|
483 |
// Import Categories.
|
484 |
$category = get_term_by( 'name', $cookie['category'], 'cookielawinfo-category' );
|
@@ -490,7 +490,7 @@ class Cookie_Law_Info_Cookie_Scanner_Ajax extends Cookie_Law_Info_Cookie_Scaner
|
|
490 |
|
491 |
// Check if catgory has description.
|
492 |
if ( empty( $category_description ) ) {
|
493 |
-
$description = $cookie['cli_cookie_category_description'];
|
494 |
$category_slug = $category->slug;
|
495 |
$cookie_audit_shortcode = sprintf( '[cookie_audit category="%s" style="winter" columns="cookie,duration,description"]', $category_slug );
|
496 |
$description .= "\n";
|
454 |
if ( empty( $cli_post->post_content ) ) {
|
455 |
$post_data = array(
|
456 |
'ID' => $cli_post->ID,
|
457 |
+
'post_content' => wp_kses_post( trim( wp_unslash( $cookie['description'] ) ) ),
|
458 |
);
|
459 |
wp_update_post( $post_data );
|
460 |
}
|
466 |
$added++;
|
467 |
$cookie_data = array(
|
468 |
'post_type' => CLI_POST_TYPE,
|
469 |
+
'post_title' => sanitize_text_field( wp_unslash( $cookie['cookie_id'] ) ),
|
470 |
+
'post_content' => wp_kses_post( trim( wp_unslash( $cookie['description'] ) ) ),
|
471 |
'post_status' => 'publish',
|
472 |
'ping_status' => 'closed',
|
473 |
+
'post_excerpt' => sanitize_text_field( wp_unslash( $cookie['cookie_id'] ) ),
|
474 |
'post_author' => 1,
|
475 |
);
|
476 |
$post_id = wp_insert_post( $cookie_data );
|
477 |
+
|
478 |
+
update_post_meta( $post_id, '_cli_cookie_duration', sanitize_text_field( wp_unslash( $cookie['expiry'] ) ) );
|
479 |
update_post_meta( $post_id, '_cli_cookie_sensitivity', 'non-necessary' );
|
480 |
+
update_post_meta( $post_id, '_cli_cookie_slugid', sanitize_text_field( wp_unslash( $cookie['cookie_id'] ) ) );
|
481 |
+
wp_set_object_terms( $post_id, array( sanitize_text_field( wp_unslash( $cookie['category'] ) ) ), 'cookielawinfo-category', true );
|
482 |
|
483 |
// Import Categories.
|
484 |
$category = get_term_by( 'name', $cookie['category'], 'cookielawinfo-category' );
|
490 |
|
491 |
// Check if catgory has description.
|
492 |
if ( empty( $category_description ) ) {
|
493 |
+
$description = wp_kses_post( trim( wp_unslash( $cookie['cli_cookie_category_description'] ) ) );
|
494 |
$category_slug = $category->slug;
|
495 |
$cookie_audit_shortcode = sprintf( '[cookie_audit category="%s" style="winter" columns="cookie,duration,description"]', $category_slug );
|
496 |
$description .= "\n";
|
admin/modules/cookie-scaner/views/scan-results.php
CHANGED
@@ -38,10 +38,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
38 |
<div class="wt-cli-scan-result-summary">
|
39 |
<ul class="wt-cli-scan-result-summary-list">
|
40 |
<li>
|
41 |
-
<b><?php _e( 'Total URLs', 'cookie-law-info' ); ?></b>: <span class="wt-cli-cookie-scan-count"> <?php echo $scan_results['total_urls']; ?></span><br />
|
42 |
</li>
|
43 |
<li>
|
44 |
-
<b><?php _e( 'Total cookies', 'cookie-law-info' ); ?></b>: <span class="wt-cli-cookie-scan-count"> <?php echo $scan_results['total_cookies']; ?></span><br />
|
45 |
</li>
|
46 |
</ul>
|
47 |
</div>
|
@@ -64,7 +64,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
64 |
?>
|
65 |
</p>
|
66 |
|
67 |
-
<a class="button-primary cli_import" data-scan-id="<?php echo $scan_results['scan_id']; ?>" style="margin-left:5px;"><?php _e( 'Add to cookie list', 'cookie-law-info' ); ?></a>
|
68 |
|
69 |
</div>
|
70 |
<?php endif; ?>
|
38 |
<div class="wt-cli-scan-result-summary">
|
39 |
<ul class="wt-cli-scan-result-summary-list">
|
40 |
<li>
|
41 |
+
<b><?php _e( 'Total URLs', 'cookie-law-info' ); ?></b>: <span class="wt-cli-cookie-scan-count"> <?php echo esc_html( $scan_results['total_urls'] ); ?></span><br />
|
42 |
</li>
|
43 |
<li>
|
44 |
+
<b><?php _e( 'Total cookies', 'cookie-law-info' ); ?></b>: <span class="wt-cli-cookie-scan-count"> <?php echo esc_html( $scan_results['total_cookies'] ); ?></span><br />
|
45 |
</li>
|
46 |
</ul>
|
47 |
</div>
|
64 |
?>
|
65 |
</p>
|
66 |
|
67 |
+
<a class="button-primary cli_import" data-scan-id="<?php echo esc_attr( $scan_results['scan_id'] ); ?>" style="margin-left:5px;"><?php _e( 'Add to cookie list', 'cookie-law-info' ); ?></a>
|
68 |
|
69 |
</div>
|
70 |
<?php endif; ?>
|
admin/modules/cookies/cookies.php
CHANGED
@@ -196,7 +196,7 @@ class Cookie_Law_Info_Cookies {
|
|
196 |
$cookie_slugid = ( isset( $custom['_cli_cookie_slugid'][0] ) ) ? $custom['_cli_cookie_slugid'][0] : '';
|
197 |
?>
|
198 |
<label><?php echo __( 'Cookie ID', 'cookie-law-info' ); ?></label>
|
199 |
-
<input name="_cli_cookie_slugid" value="<?php echo sanitize_text_field( $cookie_slugid ); ?>" style="width:95%;" />
|
200 |
<?php
|
201 |
}
|
202 |
|
@@ -207,7 +207,7 @@ class Cookie_Law_Info_Cookies {
|
|
207 |
$cookie_type = ( isset( $custom['_cli_cookie_type'][0] ) ) ? $custom['_cli_cookie_type'][0] : '';
|
208 |
?>
|
209 |
<label><?php echo __( 'Cookie Type: (persistent, session, third party )', 'cookie-law-info' ); ?></label>
|
210 |
-
<input name="_cli_cookie_type" value="<?php echo sanitize_text_field( $cookie_type ); ?>" style="width:95%;" />
|
211 |
<?php
|
212 |
}
|
213 |
|
@@ -219,7 +219,7 @@ class Cookie_Law_Info_Cookies {
|
|
219 |
?>
|
220 |
|
221 |
<label><?php echo __( 'Cookie Duration:', 'cookie-law-info' ); ?></label>
|
222 |
-
<input name="_cli_cookie_duration" value="<?php echo sanitize_text_field( $cookie_duration ); ?>" style="width:95%;" />
|
223 |
<?php
|
224 |
}
|
225 |
|
@@ -230,7 +230,7 @@ class Cookie_Law_Info_Cookies {
|
|
230 |
$cookie_sensitivity = ( isset( $custom['_cli_cookie_sensitivity'][0] ) ) ? $custom['_cli_cookie_sensitivity'][0] : '';
|
231 |
?>
|
232 |
<label><?php echo __( 'Cookie Sensitivity: ( necessary , non-necessary )', 'cookie-law-info' ); ?></label>
|
233 |
-
<input name="_cli_cookie_sensitivity" value="<?php echo sanitize_text_field( $cookie_sensitivity ); ?>" style="width:95%;" />
|
234 |
<?php
|
235 |
}
|
236 |
|
@@ -238,16 +238,16 @@ class Cookie_Law_Info_Cookies {
|
|
238 |
public function save_custom_metaboxes() {
|
239 |
global $post;
|
240 |
if ( isset( $_POST['_cli_cookie_type'] ) ) {
|
241 |
-
update_post_meta( $post->ID, '_cli_cookie_type', sanitize_text_field( $_POST['_cli_cookie_type'] ) );
|
242 |
}
|
243 |
-
if ( isset( $_POST['
|
244 |
-
update_post_meta( $post->ID, '_cli_cookie_duration', sanitize_text_field( $_POST['_cli_cookie_duration'] ) );
|
245 |
}
|
246 |
if ( isset( $_POST['_cli_cookie_sensitivity'] ) ) {
|
247 |
-
update_post_meta( $post->ID, '_cli_cookie_sensitivity', sanitize_text_field( $_POST['_cli_cookie_sensitivity'] ) );
|
248 |
}
|
249 |
if ( isset( $_POST['_cli_cookie_slugid'] ) ) {
|
250 |
-
update_post_meta( $post->ID, '_cli_cookie_slugid', sanitize_text_field( $_POST['_cli_cookie_slugid'] ) );
|
251 |
}
|
252 |
}
|
253 |
public function manage_edit_columns( $columns ) {
|
@@ -272,7 +272,7 @@ class Cookie_Law_Info_Cookies {
|
|
272 |
case 'description':
|
273 |
$content_post = get_post( $post_id );
|
274 |
if ( $content_post ) {
|
275 |
-
echo $content_post->post_content;
|
276 |
} else {
|
277 |
echo '---';
|
278 |
}
|
@@ -280,13 +280,13 @@ class Cookie_Law_Info_Cookies {
|
|
280 |
case 'type':
|
281 |
$custom = get_post_custom();
|
282 |
if ( isset( $custom['_cli_cookie_type'][0] ) ) {
|
283 |
-
echo $custom['_cli_cookie_type'][0];
|
284 |
}
|
285 |
break;
|
286 |
case 'category':
|
287 |
$term_list = wp_get_post_terms( $post->ID, 'cookielawinfo-category', array( 'fields' => 'names' ) );
|
288 |
if ( ! empty( $term_list ) ) {
|
289 |
-
echo $term_list[0];
|
290 |
} else {
|
291 |
echo '<i>---</i>';
|
292 |
}
|
@@ -295,19 +295,19 @@ class Cookie_Law_Info_Cookies {
|
|
295 |
case 'duration':
|
296 |
$custom = get_post_custom();
|
297 |
if ( isset( $custom['_cli_cookie_duration'][0] ) ) {
|
298 |
-
echo $custom['_cli_cookie_duration'][0];
|
299 |
}
|
300 |
break;
|
301 |
case 'sensitivity':
|
302 |
$custom = get_post_custom();
|
303 |
if ( isset( $custom['_cli_cookie_sensitivity'][0] ) ) {
|
304 |
-
echo $custom['_cli_cookie_sensitivity'][0];
|
305 |
}
|
306 |
break;
|
307 |
case 'slugid':
|
308 |
$custom = get_post_custom();
|
309 |
if ( isset( $custom['_cli_cookie_slugid'][0] ) ) {
|
310 |
-
echo $custom['_cli_cookie_slugid'][0];
|
311 |
}
|
312 |
break;
|
313 |
}
|
@@ -646,7 +646,7 @@ class Cookie_Law_Info_Cookies {
|
|
646 |
*/
|
647 |
public function cookie_save_defaultstate( $term_id ) {
|
648 |
if ( isset( $_POST['CLIdefaultstate'] ) ) {
|
649 |
-
$term_CLIdefaultstate = sanitize_text_field( $_POST['CLIdefaultstate'] );
|
650 |
|
651 |
if ( $term_CLIdefaultstate ) {
|
652 |
$this->update_term_meta( $term_id, 'CLIdefaultstate', $term_CLIdefaultstate );
|
@@ -738,7 +738,7 @@ class Cookie_Law_Info_Cookies {
|
|
738 |
}
|
739 |
public function save_status_meta( $term_id ) {
|
740 |
if ( isset( $_POST['_cli_cookie_status'] ) ) {
|
741 |
-
$term_cli_cookie_status = sanitize_text_field( $_POST['_cli_cookie_status'] );
|
742 |
if ( $term_cli_cookie_status ) {
|
743 |
$this->update_term_meta( $term_id, '_cli_cookie_status', $term_cli_cookie_status );
|
744 |
}
|
@@ -1152,5 +1152,28 @@ class Cookie_Law_Info_Cookies {
|
|
1152 |
}
|
1153 |
return $categories;
|
1154 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1155 |
}
|
1156 |
Cookie_Law_Info_Cookies::get_instance();
|
196 |
$cookie_slugid = ( isset( $custom['_cli_cookie_slugid'][0] ) ) ? $custom['_cli_cookie_slugid'][0] : '';
|
197 |
?>
|
198 |
<label><?php echo __( 'Cookie ID', 'cookie-law-info' ); ?></label>
|
199 |
+
<input name="_cli_cookie_slugid" value="<?php echo esc_attr( sanitize_text_field( $cookie_slugid ) ); ?>" style="width:95%;" />
|
200 |
<?php
|
201 |
}
|
202 |
|
207 |
$cookie_type = ( isset( $custom['_cli_cookie_type'][0] ) ) ? $custom['_cli_cookie_type'][0] : '';
|
208 |
?>
|
209 |
<label><?php echo __( 'Cookie Type: (persistent, session, third party )', 'cookie-law-info' ); ?></label>
|
210 |
+
<input name="_cli_cookie_type" value="<?php echo esc_attr( sanitize_text_field( $cookie_type ) ); ?>" style="width:95%;" />
|
211 |
<?php
|
212 |
}
|
213 |
|
219 |
?>
|
220 |
|
221 |
<label><?php echo __( 'Cookie Duration:', 'cookie-law-info' ); ?></label>
|
222 |
+
<input name="_cli_cookie_duration" value="<?php echo esc_attr( sanitize_text_field( $cookie_duration ) ); ?>" style="width:95%;" />
|
223 |
<?php
|
224 |
}
|
225 |
|
230 |
$cookie_sensitivity = ( isset( $custom['_cli_cookie_sensitivity'][0] ) ) ? $custom['_cli_cookie_sensitivity'][0] : '';
|
231 |
?>
|
232 |
<label><?php echo __( 'Cookie Sensitivity: ( necessary , non-necessary )', 'cookie-law-info' ); ?></label>
|
233 |
+
<input name="_cli_cookie_sensitivity" value="<?php echo esc_attr( sanitize_text_field( $cookie_sensitivity ) ); ?>" style="width:95%;" />
|
234 |
<?php
|
235 |
}
|
236 |
|
238 |
public function save_custom_metaboxes() {
|
239 |
global $post;
|
240 |
if ( isset( $_POST['_cli_cookie_type'] ) ) {
|
241 |
+
update_post_meta( $post->ID, '_cli_cookie_type', sanitize_text_field( wp_unslash( $_POST['_cli_cookie_type'] ) ) );
|
242 |
}
|
243 |
+
if ( isset( $_POST['_cli_cookie_duration'] ) ) {
|
244 |
+
update_post_meta( $post->ID, '_cli_cookie_duration', sanitize_text_field( wp_unslash( $_POST['_cli_cookie_duration'] ) ) );
|
245 |
}
|
246 |
if ( isset( $_POST['_cli_cookie_sensitivity'] ) ) {
|
247 |
+
update_post_meta( $post->ID, '_cli_cookie_sensitivity', sanitize_text_field( wp_unslash( $_POST['_cli_cookie_sensitivity'] ) ) );
|
248 |
}
|
249 |
if ( isset( $_POST['_cli_cookie_slugid'] ) ) {
|
250 |
+
update_post_meta( $post->ID, '_cli_cookie_slugid', sanitize_text_field( wp_unslash( $_POST['_cli_cookie_slugid'] ) ) );
|
251 |
}
|
252 |
}
|
253 |
public function manage_edit_columns( $columns ) {
|
272 |
case 'description':
|
273 |
$content_post = get_post( $post_id );
|
274 |
if ( $content_post ) {
|
275 |
+
echo wp_kses_post( wp_unslash( $content_post->post_content ) );
|
276 |
} else {
|
277 |
echo '---';
|
278 |
}
|
280 |
case 'type':
|
281 |
$custom = get_post_custom();
|
282 |
if ( isset( $custom['_cli_cookie_type'][0] ) ) {
|
283 |
+
echo esc_html( wp_unslash( $custom['_cli_cookie_type'][0] ) );
|
284 |
}
|
285 |
break;
|
286 |
case 'category':
|
287 |
$term_list = wp_get_post_terms( $post->ID, 'cookielawinfo-category', array( 'fields' => 'names' ) );
|
288 |
if ( ! empty( $term_list ) ) {
|
289 |
+
echo esc_html( wp_unslash( $term_list[0] ) );
|
290 |
} else {
|
291 |
echo '<i>---</i>';
|
292 |
}
|
295 |
case 'duration':
|
296 |
$custom = get_post_custom();
|
297 |
if ( isset( $custom['_cli_cookie_duration'][0] ) ) {
|
298 |
+
echo esc_html( wp_unslash( $custom['_cli_cookie_duration'][0] ) );
|
299 |
}
|
300 |
break;
|
301 |
case 'sensitivity':
|
302 |
$custom = get_post_custom();
|
303 |
if ( isset( $custom['_cli_cookie_sensitivity'][0] ) ) {
|
304 |
+
echo esc_html( wp_unslash( $custom['_cli_cookie_sensitivity'][0] ) );
|
305 |
}
|
306 |
break;
|
307 |
case 'slugid':
|
308 |
$custom = get_post_custom();
|
309 |
if ( isset( $custom['_cli_cookie_slugid'][0] ) ) {
|
310 |
+
echo esc_html( wp_unslash( $custom['_cli_cookie_slugid'][0] ) );
|
311 |
}
|
312 |
break;
|
313 |
}
|
646 |
*/
|
647 |
public function cookie_save_defaultstate( $term_id ) {
|
648 |
if ( isset( $_POST['CLIdefaultstate'] ) ) {
|
649 |
+
$term_CLIdefaultstate = sanitize_text_field( wp_unslash( $_POST['CLIdefaultstate'] ) );
|
650 |
|
651 |
if ( $term_CLIdefaultstate ) {
|
652 |
$this->update_term_meta( $term_id, 'CLIdefaultstate', $term_CLIdefaultstate );
|
738 |
}
|
739 |
public function save_status_meta( $term_id ) {
|
740 |
if ( isset( $_POST['_cli_cookie_status'] ) ) {
|
741 |
+
$term_cli_cookie_status = sanitize_text_field( wp_unslash( $_POST['_cli_cookie_status'] ) );
|
742 |
if ( $term_cli_cookie_status ) {
|
743 |
$this->update_term_meta( $term_id, '_cli_cookie_status', $term_cli_cookie_status );
|
744 |
}
|
1152 |
}
|
1153 |
return $categories;
|
1154 |
}
|
1155 |
+
/**
|
1156 |
+
* Get allowed HTML for the cookie scripts
|
1157 |
+
*
|
1158 |
+
* @return array
|
1159 |
+
*/
|
1160 |
+
public function get_allowed_html() {
|
1161 |
+
return apply_filters(
|
1162 |
+
'wt_cli_allowed_html',
|
1163 |
+
array_merge(
|
1164 |
+
wp_kses_allowed_html( 'post' ),
|
1165 |
+
array(
|
1166 |
+
'script' => array(
|
1167 |
+
'type' => array(),
|
1168 |
+
'src' => array(),
|
1169 |
+
'charset' => array(),
|
1170 |
+
'async' => array(),
|
1171 |
+
'defer' => array(),
|
1172 |
+
),
|
1173 |
+
'noscript' => array(),
|
1174 |
+
)
|
1175 |
+
)
|
1176 |
+
);
|
1177 |
+
}
|
1178 |
}
|
1179 |
Cookie_Law_Info_Cookies::get_instance();
|
admin/modules/cookies/views/non-necessary-settings.php
CHANGED
@@ -46,7 +46,7 @@ if (!defined('WPINC')) {
|
|
46 |
<tr>
|
47 |
<td>
|
48 |
<label for="wt_cli_non_necessary_title"><?php _e('Title', 'cookie-law-info'); ?></label>
|
49 |
-
<input type="text" id="wt_cli_non_necessary_title" name="wt_cli_non_necessary_title" value="<?php echo sanitize_text_field(stripslashes( $settings['title'])); ?>" class="cli-textbox" />
|
50 |
</td>
|
51 |
</tr>
|
52 |
<tr>
|
46 |
<tr>
|
47 |
<td>
|
48 |
<label for="wt_cli_non_necessary_title"><?php _e('Title', 'cookie-law-info'); ?></label>
|
49 |
+
<input type="text" id="wt_cli_non_necessary_title" name="wt_cli_non_necessary_title" value="<?php echo esc_attr( sanitize_text_field( stripslashes( $settings['title'] ) ) ); ?>" class="cli-textbox" />
|
50 |
</td>
|
51 |
</tr>
|
52 |
<tr>
|
admin/modules/uninstall-feedback/uninstall-feedback.php
CHANGED
@@ -113,12 +113,12 @@ class Cookie_Law_Info_Uninstall_Feedback {
|
|
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 ) :
|
@@ -129,7 +129,7 @@ class Cookie_Law_Info_Uninstall_Feedback {
|
|
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'] ) . '"' : '' );
|
@@ -150,13 +150,13 @@ class Cookie_Law_Info_Uninstall_Feedback {
|
|
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>
|
113 |
}
|
114 |
$reasons = $this->get_uninstall_reasons();
|
115 |
?>
|
116 |
+
<div class="<?php echo esc_attr( $this->plugin_id ); ?>-modal" id="<?php echo esc_attr( $this->plugin_id ); ?>-modal">
|
117 |
+
<div class="<?php echo esc_attr( $this->plugin_id ); ?>-modal-wrap">
|
118 |
+
<div class="<?php echo esc_attr( $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 esc_attr( $this->plugin_id ); ?>-modal-body">
|
122 |
<ul class="reasons">
|
123 |
<?php
|
124 |
foreach ( $reasons as $reason ) :
|
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 esc_attr( $this->plugin_id ) . '-sub-reasons'; ?>">
|
133 |
<?php
|
134 |
foreach ( $childs as $child ) :
|
135 |
$data_type = ( isset( $child['type'] ) ? 'data-type="' . esc_attr( $child['type'] ) . '"' : '' );
|
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 esc_attr( $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 esc_attr( $this->plugin_id ); ?>-model-submit"><?php _e( 'Submit & Deactivate', 'cookie-law-info' ); ?></button>
|
159 |
+
<button class="button-secondary <?php echo esc_attr( $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>
|
admin/partials/cookie-law-info-admin_settings.php
CHANGED
@@ -36,7 +36,7 @@ $all_pages=get_pages($args_for_get_pages);
|
|
36 |
<tr valign="middle" class="cli_bar_on" style="<?php echo $the_options['is_on'] == true ? '' : 'display:none;';?>">
|
37 |
<td style="padding-left: 10px;">
|
38 |
<div class="wt-cli-gdpr-plugin-status wt-cli-gdpr-plugin-status-active">
|
39 |
-
<img id="cli-plugin-status-icon" src="<?php echo $cli_img_path;?>add.svg" />
|
40 |
<span><?php _e('Cookie bar is currently active', 'cookie-law-info'); ?></span>
|
41 |
</div>
|
42 |
</td>
|
@@ -44,7 +44,7 @@ $all_pages=get_pages($args_for_get_pages);
|
|
44 |
<tr valign="middle" class="cli_bar_off" style="<?php echo $the_options['is_on'] == true ? 'display:none;' : '';?>">
|
45 |
<td style="padding-left: 10px;">
|
46 |
<div class="wt-cli-gdpr-plugin-status wt-cli-gdpr-plugin-status-active">
|
47 |
-
<img id="cli-plugin-status-icon" src="<?php echo $cli_img_path;?>cross.png" />
|
48 |
<span><?php _e('Cookie bar is currently inactive', 'cookie-law-info'); ?></span>
|
49 |
</div>
|
50 |
</td>
|
@@ -53,7 +53,7 @@ $all_pages=get_pages($args_for_get_pages);
|
|
53 |
</div>
|
54 |
<div class="wt-cli-gdpr-plugin-branding">
|
55 |
<div class="wt-cli-gdpr-plugin-branding-logo">
|
56 |
-
<
|
57 |
</div>
|
58 |
<div class="wt-cli-gdpr-plugin-branding-tagline">
|
59 |
|
36 |
<tr valign="middle" class="cli_bar_on" style="<?php echo $the_options['is_on'] == true ? '' : 'display:none;';?>">
|
37 |
<td style="padding-left: 10px;">
|
38 |
<div class="wt-cli-gdpr-plugin-status wt-cli-gdpr-plugin-status-active">
|
39 |
+
<img id="cli-plugin-status-icon" src="<?php echo esc_url( $cli_img_path );?>add.svg" />
|
40 |
<span><?php _e('Cookie bar is currently active', 'cookie-law-info'); ?></span>
|
41 |
</div>
|
42 |
</td>
|
44 |
<tr valign="middle" class="cli_bar_off" style="<?php echo $the_options['is_on'] == true ? 'display:none;' : '';?>">
|
45 |
<td style="padding-left: 10px;">
|
46 |
<div class="wt-cli-gdpr-plugin-status wt-cli-gdpr-plugin-status-active">
|
47 |
+
<img id="cli-plugin-status-icon" src="<?php echo esc_url( $cli_img_path );?>cross.png" />
|
48 |
<span><?php _e('Cookie bar is currently inactive', 'cookie-law-info'); ?></span>
|
49 |
</div>
|
50 |
</td>
|
53 |
</div>
|
54 |
<div class="wt-cli-gdpr-plugin-branding">
|
55 |
<div class="wt-cli-gdpr-plugin-branding-logo">
|
56 |
+
<img src="<?php echo esc_url( $cli_img_path );?>logo-cookieyes.svg" alt="CookieYes Logo">
|
57 |
</div>
|
58 |
<div class="wt-cli-gdpr-plugin-branding-tagline">
|
59 |
|
admin/partials/cookie-law-info-privacy_overview.php
CHANGED
@@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
30 |
<tr valign="top">
|
31 |
<td>
|
32 |
<label for="privacy_overview_title"><?php _e('Title', 'cookie-law-info'); ?></label>
|
33 |
-
<input type="text" name="privacy_overview_title" value="<?php echo sanitize_text_field( stripslashes( $privacy_title ) ); ?>" class="cli-textbox" />
|
34 |
</td>
|
35 |
</tr>
|
36 |
<tr valign="top">
|
30 |
<tr valign="top">
|
31 |
<td>
|
32 |
<label for="privacy_overview_title"><?php _e('Title', 'cookie-law-info'); ?></label>
|
33 |
+
<input type="text" name="privacy_overview_title" value="<?php echo esc_attr( sanitize_text_field( stripslashes( $privacy_title ) ) ); ?>" class="cli-textbox" />
|
34 |
</td>
|
35 |
</tr>
|
36 |
<tr valign="top">
|
admin/views/admin-settings-advanced.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
-
<div class="cookie-law-info-tab-content" data-id="<?php echo $target_id;?>">
|
8 |
<h3><?php _e('Advanced','cookie-law-info'); ?></h3>
|
9 |
<p><?php _e('Sometimes themes apply settings that clash with plugins. If that happens, try adjusting these settings.', 'cookie-law-info'); ?></p>
|
10 |
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id );?>">
|
8 |
<h3><?php _e('Advanced','cookie-law-info'); ?></h3>
|
9 |
<p><?php _e('Sometimes themes apply settings that clash with plugins. If that happens, try adjusting these settings.', 'cookie-law-info'); ?></p>
|
10 |
|
admin/views/admin-settings-buttons.php
CHANGED
@@ -4,7 +4,7 @@ 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-all-button"><a><?php _e('Accept All Button', 'cookie-law-info'); ?></a></li>
|
@@ -24,14 +24,14 @@ if ( ! defined( 'WPINC' ) ) {
|
|
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>
|
@@ -47,7 +47,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
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>
|
@@ -63,7 +63,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
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( 'Specify the URL to redirect users on accept button click. e.g. Entering the cookie policy page URL will redirect users to the cookie policy page after giving consent.', 'cookie-law-info' ); ?></span>
|
68 |
</td>
|
69 |
</tr>
|
@@ -97,14 +97,14 @@ if ( ! defined( 'WPINC' ) ) {
|
|
97 |
<tr valign="top">
|
98 |
<th scope="row"><label for="button_3_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
|
99 |
<td>
|
100 |
-
<input type="text" name="button_3_text_field" value="<?php echo stripslashes( $the_options['button_3_text'] ); ?>" />
|
101 |
</td>
|
102 |
</tr>
|
103 |
<tr valign="top">
|
104 |
<th scope="row"><label for="button_3_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
105 |
<td>
|
106 |
<?php
|
107 |
-
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" />';
|
108 |
?>
|
109 |
</td>
|
110 |
</tr>
|
@@ -120,7 +120,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
120 |
<th scope="row"><label for="button_3_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
121 |
<td>
|
122 |
<?php
|
123 |
-
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" />';
|
124 |
?>
|
125 |
</td>
|
126 |
</tr>
|
@@ -139,7 +139,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
139 |
<tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
|
140 |
<th scope="row"><label for="button_3_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
|
141 |
<td>
|
142 |
-
<input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo $the_options['button_3_url']; ?>" />
|
143 |
<span class="cli_form_help"><?php _e( 'Specify the URL to redirect users on reject button click. e.g. Entering the cookie policy page URL will redirect users to the cookie policy page after rejecting cookies.', 'cookie-law-info' ); ?></span>
|
144 |
</td>
|
145 |
</tr>
|
@@ -168,14 +168,14 @@ if ( ! defined( 'WPINC' ) ) {
|
|
168 |
<tr valign="top">
|
169 |
<th scope="row"><label for="button_4_text_field"><?php _e('Text', 'cookie-law-info' ); ?></label></th>
|
170 |
<td>
|
171 |
-
<input type="text" name="button_4_text_field" value="<?php echo stripslashes( $the_options['button_4_text'] ); ?>" />
|
172 |
</td>
|
173 |
</tr>
|
174 |
<tr valign="top">
|
175 |
<th scope="row"><label for="button_4_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
176 |
<td>
|
177 |
<?php
|
178 |
-
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" />';
|
179 |
?>
|
180 |
</td>
|
181 |
</tr>
|
@@ -191,7 +191,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
191 |
<th scope="row"><label for="button_4_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
192 |
<td>
|
193 |
<?php
|
194 |
-
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" />';
|
195 |
?>
|
196 |
</td>
|
197 |
</tr>
|
@@ -206,7 +206,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
206 |
<?php
|
207 |
if ( Cookie_Law_Info_Admin::module_exists( 'cli-policy-generator' ) ) {
|
208 |
?>
|
209 |
-
<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' ); ?>
|
210 |
</p>
|
211 |
<?php
|
212 |
}
|
@@ -216,14 +216,14 @@ if ( ! defined( 'WPINC' ) ) {
|
|
216 |
<tr valign="top">
|
217 |
<th scope="row"><label for="button_2_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
|
218 |
<td>
|
219 |
-
<input type="text" name="button_2_text_field" value="<?php echo stripslashes( $the_options['button_2_text'] ); ?>" />
|
220 |
</td>
|
221 |
</tr>
|
222 |
<tr valign="top">
|
223 |
<th scope="row"><label for="button_2_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
224 |
<td>
|
225 |
<?php
|
226 |
-
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" />';
|
227 |
?>
|
228 |
</td>
|
229 |
</tr>
|
@@ -239,7 +239,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
239 |
<th scope="row"><label for="button_2_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
240 |
<td>
|
241 |
<?php
|
242 |
-
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" />';
|
243 |
?>
|
244 |
</td>
|
245 |
</tr>
|
@@ -256,7 +256,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
256 |
<tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="url">
|
257 |
<th scope="row"><label for="button_2_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
|
258 |
<td>
|
259 |
-
<input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo $the_options['button_2_url']; ?>" />
|
260 |
</td>
|
261 |
</tr>
|
262 |
<tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="page">
|
@@ -267,7 +267,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
267 |
<?php
|
268 |
foreach ( $all_pages as $page ) {
|
269 |
?>
|
270 |
-
<option value="<?php echo $page->ID; ?>" <?php echo ( $the_options['button_2_page'] == $page->ID ? 'selected' : '' ); ?>> <?php echo $page->post_title; ?> </option>;
|
271 |
<?php
|
272 |
}
|
273 |
?>
|
@@ -306,7 +306,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
306 |
</tr>
|
307 |
</table><!-- end custom button -->
|
308 |
</div>
|
309 |
-
<div class="cli_sub_tab_content
|
310 |
<h3><?php _e( 'Do not sell', 'cookie-law-info' ); ?> <code>[wt_cli_ccpa_optout]</code></h3>
|
311 |
<p><?php _e( 'Customise the appearance of CCPA notice. Enabling ‘Show CCPA notice’ displays the notice on the consent bar and records prior consent from the user. Alternatively, insert CCPA shortcode [wt_cli_ccpa_optout] to render CCPA notice in a specific page of your site, preferably, cookie policy page.', 'cookie-law-info' ); ?></p>
|
312 |
|
@@ -314,7 +314,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
314 |
<tr valign="top">
|
315 |
<th scope="row"><label for="button_6_text_field"><?php _e( 'CCPA Text', 'cookie-law-info' ); ?></label></th>
|
316 |
<td>
|
317 |
-
<input type="text" name="button_6_text_field" value="<?php echo stripslashes( $the_options['button_6_text'] ); ?>" />
|
318 |
</td>
|
319 |
</tr>
|
320 |
<tr valign="top">
|
@@ -331,7 +331,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
331 |
<th scope="row"><label for="button_6_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
332 |
<td>
|
333 |
<?php
|
334 |
-
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" />';
|
335 |
?>
|
336 |
</td>
|
337 |
</tr>
|
@@ -344,14 +344,14 @@ if ( ! defined( 'WPINC' ) ) {
|
|
344 |
<tr valign="top">
|
345 |
<th scope="row"><label for="button_7_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
|
346 |
<td>
|
347 |
-
<input type="text" name="button_7_text_field" value="<?php echo stripslashes( $the_options['button_7_text'] ); ?>" />
|
348 |
</td>
|
349 |
</tr>
|
350 |
<tr valign="top">
|
351 |
<th scope="row"><label for="button_7_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
352 |
<td>
|
353 |
<?php
|
354 |
-
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" />';
|
355 |
?>
|
356 |
</td>
|
357 |
</tr>
|
@@ -367,7 +367,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
367 |
<th scope="row"><label for="button_7_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
368 |
<td>
|
369 |
<?php
|
370 |
-
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" />';
|
371 |
?>
|
372 |
</td>
|
373 |
</tr>
|
@@ -382,7 +382,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
382 |
<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">
|
383 |
<th scope="row"><label for="button_7_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
|
384 |
<td>
|
385 |
-
<input type="text" name="button_7_url_field" id="button_7_url_field" value="<?php echo $the_options['button_7_url']; ?>" />
|
386 |
<span class="cli_form_help"><?php _e( 'Button will only link to URL if Action = Open URL', 'cookie-law-info' ); ?></span>
|
387 |
</td>
|
388 |
</tr>
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id ); ?>">
|
8 |
|
9 |
<ul class="cli_sub_tab">
|
10 |
<li style="border-left:none; padding-left: 0px;" data-target="accept-all-button"><a><?php _e('Accept All Button', 'cookie-law-info'); ?></a></li>
|
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 esc_attr( 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="' . esc_attr( $the_options['button_1_link_colour'] ) . '" class="my-color-field" />';
|
35 |
?>
|
36 |
</td>
|
37 |
</tr>
|
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="' . esc_attr( $the_options['button_1_button_colour'] ) . '" class="my-color-field" />';
|
51 |
?>
|
52 |
</td>
|
53 |
</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 esc_attr( $the_options['button_1_url'] ); ?>" />
|
67 |
<span class="cli_form_help"><?php _e( 'Specify the URL to redirect users on accept button click. e.g. Entering the cookie policy page URL will redirect users to the cookie policy page after giving consent.', 'cookie-law-info' ); ?></span>
|
68 |
</td>
|
69 |
</tr>
|
97 |
<tr valign="top">
|
98 |
<th scope="row"><label for="button_3_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
|
99 |
<td>
|
100 |
+
<input type="text" name="button_3_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_3_text'] ) ); ?>" />
|
101 |
</td>
|
102 |
</tr>
|
103 |
<tr valign="top">
|
104 |
<th scope="row"><label for="button_3_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
105 |
<td>
|
106 |
<?php
|
107 |
+
echo '<input type="text" name="button_3_link_colour_field" id="cli-colour-link-button-3" value="' . esc_attr( $the_options['button_3_link_colour'] ) . '" class="my-color-field" />';
|
108 |
?>
|
109 |
</td>
|
110 |
</tr>
|
120 |
<th scope="row"><label for="button_3_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
121 |
<td>
|
122 |
<?php
|
123 |
+
echo '<input type="text" name="button_3_button_colour_field" id="cli-colour-btn-button-3" value="' . esc_attr( $the_options['button_3_button_colour'] ) . '" class="my-color-field" />';
|
124 |
?>
|
125 |
</td>
|
126 |
</tr>
|
139 |
<tr valign="top" class="cli-plugin-row" cli_frm_tgl-id="cli_reject_action" cli_frm_tgl-val="CONSTANT_OPEN_URL">
|
140 |
<th scope="row"><label for="button_3_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
|
141 |
<td>
|
142 |
+
<input type="text" name="button_3_url_field" id="button_3_url_field" value="<?php echo esc_url( $the_options['button_3_url'] ); ?>" />
|
143 |
<span class="cli_form_help"><?php _e( 'Specify the URL to redirect users on reject button click. e.g. Entering the cookie policy page URL will redirect users to the cookie policy page after rejecting cookies.', 'cookie-law-info' ); ?></span>
|
144 |
</td>
|
145 |
</tr>
|
168 |
<tr valign="top">
|
169 |
<th scope="row"><label for="button_4_text_field"><?php _e('Text', 'cookie-law-info' ); ?></label></th>
|
170 |
<td>
|
171 |
+
<input type="text" name="button_4_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_4_text'] ) ); ?>" />
|
172 |
</td>
|
173 |
</tr>
|
174 |
<tr valign="top">
|
175 |
<th scope="row"><label for="button_4_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
176 |
<td>
|
177 |
<?php
|
178 |
+
echo '<input type="text" name="button_4_link_colour_field" id="cli-colour-link-button-4" value="' . esc_attr( $the_options['button_4_link_colour'] ) . '" class="my-color-field" />';
|
179 |
?>
|
180 |
</td>
|
181 |
</tr>
|
191 |
<th scope="row"><label for="button_4_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
192 |
<td>
|
193 |
<?php
|
194 |
+
echo '<input type="text" name="button_4_button_colour_field" id="cli-colour-btn-button-4" value="' . esc_attr( $the_options['button_4_button_colour'] ) . '" class="my-color-field" />';
|
195 |
?>
|
196 |
</td>
|
197 |
</tr>
|
206 |
<?php
|
207 |
if ( Cookie_Law_Info_Admin::module_exists( 'cli-policy-generator' ) ) {
|
208 |
?>
|
209 |
+
<p><?php _e( 'Click', 'cookie-law-info' ); ?> <a href="<?php echo esc_url( 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' ); ?>
|
210 |
</p>
|
211 |
<?php
|
212 |
}
|
216 |
<tr valign="top">
|
217 |
<th scope="row"><label for="button_2_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
|
218 |
<td>
|
219 |
+
<input type="text" name="button_2_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_2_text'] ) ); ?>" />
|
220 |
</td>
|
221 |
</tr>
|
222 |
<tr valign="top">
|
223 |
<th scope="row"><label for="button_2_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
224 |
<td>
|
225 |
<?php
|
226 |
+
echo '<input type="text" name="button_2_link_colour_field" id="cli-colour-link-button-1" value="' . esc_attr( $the_options['button_2_link_colour'] ) . '" class="my-color-field" />';
|
227 |
?>
|
228 |
</td>
|
229 |
</tr>
|
239 |
<th scope="row"><label for="button_2_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
240 |
<td>
|
241 |
<?php
|
242 |
+
echo '<input type="text" name="button_2_button_colour_field" id="cli-colour-btn-button-1" value="' . esc_attr( $the_options['button_2_button_colour'] ) . '" class="my-color-field" />';
|
243 |
?>
|
244 |
</td>
|
245 |
</tr>
|
256 |
<tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="url">
|
257 |
<th scope="row"><label for="button_2_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
|
258 |
<td>
|
259 |
+
<input type="text" name="button_2_url_field" id="button_2_url_field" value="<?php echo esc_url( $the_options['button_2_url'] ); ?>" />
|
260 |
</td>
|
261 |
</tr>
|
262 |
<tr valign="top" cli_frm_tgl-id="cli_readmore_url_type" cli_frm_tgl-val="page">
|
267 |
<?php
|
268 |
foreach ( $all_pages as $page ) {
|
269 |
?>
|
270 |
+
<option value="<?php echo esc_attr( $page->ID ); ?>" <?php echo ( $the_options['button_2_page'] == $page->ID ? 'selected' : '' ); ?>> <?php echo esc_html( $page->post_title ); ?> </option>;
|
271 |
<?php
|
272 |
}
|
273 |
?>
|
306 |
</tr>
|
307 |
</table><!-- end custom button -->
|
308 |
</div>
|
309 |
+
<div class="cli_sub_tab_content" data-id="do-not-sell-button">
|
310 |
<h3><?php _e( 'Do not sell', 'cookie-law-info' ); ?> <code>[wt_cli_ccpa_optout]</code></h3>
|
311 |
<p><?php _e( 'Customise the appearance of CCPA notice. Enabling ‘Show CCPA notice’ displays the notice on the consent bar and records prior consent from the user. Alternatively, insert CCPA shortcode [wt_cli_ccpa_optout] to render CCPA notice in a specific page of your site, preferably, cookie policy page.', 'cookie-law-info' ); ?></p>
|
312 |
|
314 |
<tr valign="top">
|
315 |
<th scope="row"><label for="button_6_text_field"><?php _e( 'CCPA Text', 'cookie-law-info' ); ?></label></th>
|
316 |
<td>
|
317 |
+
<input type="text" name="button_6_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_6_text'] ) ); ?>" />
|
318 |
</td>
|
319 |
</tr>
|
320 |
<tr valign="top">
|
331 |
<th scope="row"><label for="button_6_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
332 |
<td>
|
333 |
<?php
|
334 |
+
echo '<input type="text" name="button_6_link_colour_field" id="cli-colour-link-button-6" value="' . esc_attr( $the_options['button_6_link_colour'] ) . '" class="my-color-field" />';
|
335 |
?>
|
336 |
</td>
|
337 |
</tr>
|
344 |
<tr valign="top">
|
345 |
<th scope="row"><label for="button_7_text_field"><?php _e( 'Text', 'cookie-law-info' ); ?></label></th>
|
346 |
<td>
|
347 |
+
<input type="text" name="button_7_text_field" value="<?php echo esc_attr( stripslashes( $the_options['button_7_text'] ) ); ?>" />
|
348 |
</td>
|
349 |
</tr>
|
350 |
<tr valign="top">
|
351 |
<th scope="row"><label for="button_7_link_colour_field"><?php _e( 'Text colour', 'cookie-law-info' ); ?></label></th>
|
352 |
<td>
|
353 |
<?php
|
354 |
+
echo '<input type="text" name="button_7_link_colour_field" id="cli-colour-link-button-7" value="' . esc_attr( $the_options['button_7_link_colour'] ) . '" class="my-color-field" />';
|
355 |
?>
|
356 |
</td>
|
357 |
</tr>
|
367 |
<th scope="row"><label for="button_7_button_colour_field"><?php _e( 'Background colour', 'cookie-law-info' ); ?></label></th>
|
368 |
<td>
|
369 |
<?php
|
370 |
+
echo '<input type="text" name="button_7_button_colour_field" id="cli-colour-btn-button-7" value="' . esc_attr( $the_options['button_7_button_colour'] ) . '" class="my-color-field" />';
|
371 |
?>
|
372 |
</td>
|
373 |
</tr>
|
382 |
<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">
|
383 |
<th scope="row"><label for="button_7_url_field"><?php _e( 'URL', 'cookie-law-info' ); ?></label></th>
|
384 |
<td>
|
385 |
+
<input type="text" name="button_7_url_field" id="button_7_url_field" value="<?php echo esc_url( $the_options['button_7_url'] ); ?>" />
|
386 |
<span class="cli_form_help"><?php _e( 'Button will only link to URL if Action = Open URL', 'cookie-law-info' ); ?></span>
|
387 |
</td>
|
388 |
</tr>
|
admin/views/admin-settings-general.php
CHANGED
@@ -4,7 +4,7 @@ if (!defined('WPINC')) {
|
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
-
<div class="cookie-law-info-tab-content" data-id="<?php echo $target_id; ?>">
|
8 |
<ul class="cli_sub_tab">
|
9 |
<li style="border-left:none; padding-left: 0px;" data-target="cookie-bar"><a><?php _e('General', 'cookie-law-info'); ?></a></li>
|
10 |
<li data-target="other"><a><?php _e('Other', 'cookie-law-info'); ?></a></li>
|
@@ -42,7 +42,7 @@ if (!defined('WPINC')) {
|
|
42 |
<tr valign="top" cli_frm_tgl-id="cli_bar_autohide" cli_frm_tgl-val="true">
|
43 |
<th scope="row"><label for="show_once_field"><?php _e('Milliseconds until hidden', 'cookie-law-info'); ?></label></th>
|
44 |
<td>
|
45 |
-
<input type="text" name="show_once_field" value="<?php echo $the_options['show_once'] ?>" />
|
46 |
<span class="cli_form_help"><?php _e('Specify milliseconds (not seconds)', 'cookie-law-info'); ?> e.g. 8000 = 8 <?php _e('seconds', 'cookie-law-info'); ?></span>
|
47 |
</td>
|
48 |
</tr>
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id ); ?>">
|
8 |
<ul class="cli_sub_tab">
|
9 |
<li style="border-left:none; padding-left: 0px;" data-target="cookie-bar"><a><?php _e('General', 'cookie-law-info'); ?></a></li>
|
10 |
<li data-target="other"><a><?php _e('Other', 'cookie-law-info'); ?></a></li>
|
42 |
<tr valign="top" cli_frm_tgl-id="cli_bar_autohide" cli_frm_tgl-val="true">
|
43 |
<th scope="row"><label for="show_once_field"><?php _e('Milliseconds until hidden', 'cookie-law-info'); ?></label></th>
|
44 |
<td>
|
45 |
+
<input type="text" name="show_once_field" value="<?php echo esc_attr( $the_options['show_once'] ); ?>" />
|
46 |
<span class="cli_form_help"><?php _e('Specify milliseconds (not seconds)', 'cookie-law-info'); ?> e.g. 8000 = 8 <?php _e('seconds', 'cookie-law-info'); ?></span>
|
47 |
</td>
|
48 |
</tr>
|
admin/views/admin-settings-help.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
-
<div class="cookie-law-info-tab-content" data-id="<?php echo $target_id;?>">
|
8 |
<ul class="cli_sub_tab">
|
9 |
<li style="border-left:none; padding-left: 0px;" data-target="shortcodes"><a><?php _e('Shortcodes', 'cookie-law-info'); ?></a></li>
|
10 |
<li data-target="help-links"><a><?php _e('Help Links', 'cookie-law-info'); ?></a></li>
|
@@ -103,7 +103,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
103 |
<h3><?php _e('Help Links', 'cookie-law-info'); ?></h3>
|
104 |
<ul class="cli-help-links">
|
105 |
<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">
|
@@ -111,7 +111,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
111 |
</a>
|
112 |
</li>
|
113 |
<li>
|
114 |
-
<img src="<?php echo $admin_img_path;?>support.png">
|
115 |
<h3><?php _e('Help and Support', 'cookie-law-info'); ?></h3>
|
116 |
<p><?php _e('We would love to help you on any queries or issues.', 'cookie-law-info'); ?></p>
|
117 |
<a target="_blank" href="https://wordpress.org/support/plugin/cookie-law-info/" class="button button-primary">
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id );?>">
|
8 |
<ul class="cli_sub_tab">
|
9 |
<li style="border-left:none; padding-left: 0px;" data-target="shortcodes"><a><?php _e('Shortcodes', 'cookie-law-info'); ?></a></li>
|
10 |
<li data-target="help-links"><a><?php _e('Help Links', 'cookie-law-info'); ?></a></li>
|
103 |
<h3><?php _e('Help Links', 'cookie-law-info'); ?></h3>
|
104 |
<ul class="cli-help-links">
|
105 |
<li>
|
106 |
+
<img src="<?php echo esc_url( $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">
|
111 |
</a>
|
112 |
</li>
|
113 |
<li>
|
114 |
+
<img src="<?php echo esc_url( $admin_img_path );?>support.png">
|
115 |
<h3><?php _e('Help and Support', 'cookie-law-info'); ?></h3>
|
116 |
<p><?php _e('We would love to help you on any queries or issues.', 'cookie-law-info'); ?></p>
|
117 |
<a target="_blank" href="https://wordpress.org/support/plugin/cookie-law-info/" class="button button-primary">
|
admin/views/admin-settings-messagebar.php
CHANGED
@@ -4,7 +4,7 @@ if (!defined('WPINC')) {
|
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
-
<div class="cookie-law-info-tab-content" data-id="<?php echo $target_id; ?>">
|
8 |
<ul class="cli_sub_tab">
|
9 |
<li style="border-left:none; padding-left: 0px;" data-target="cookie-message"><a><?php _e('Cookie bar', 'cookie-law-info'); ?></a></li>
|
10 |
<li data-target="show-again-tab"><a><?php _e('Revisit consent', 'cookie-law-info'); ?></a></li>
|
@@ -16,7 +16,7 @@ if (!defined('WPINC')) {
|
|
16 |
<tr valign="top">
|
17 |
<th scope="row"><label for="bar_heading_text_field"><?php _e('Message Heading', 'cookie-law-info'); ?></label></th>
|
18 |
<td>
|
19 |
-
<input type="text" name="bar_heading_text_field" value="<?php echo stripslashes($the_options['bar_heading_text']) ?>" />
|
20 |
<span class="cli_form_help"><?php _e('Input text to have a heading for the cookie consent bar. Leave it blank if you do not need one.', 'cookie-law-info'); ?>
|
21 |
</span>
|
22 |
</td>
|
@@ -37,7 +37,7 @@ if (!defined('WPINC')) {
|
|
37 |
<?php
|
38 |
/** RICHARDASHBY EDIT */
|
39 |
//echo '<input type="text" name="background_field" id="cli-colour-background" value="' .$the_options['background']. '" />';
|
40 |
-
echo '<input type="text" name="background_field" id="cli-colour-background" value="' . $the_options['background'] . '" class="my-color-field" data-default-color="#fff" />';
|
41 |
?>
|
42 |
</td>
|
43 |
</tr>
|
@@ -46,7 +46,7 @@ if (!defined('WPINC')) {
|
|
46 |
<td>
|
47 |
<?php
|
48 |
/** RICHARDASHBY EDIT */
|
49 |
-
echo '<input type="text" name="text_field" id="cli-colour-text" value="' . $the_options['text'] . '" class="my-color-field" data-default-color="#000" />';
|
50 |
?>
|
51 |
</td>
|
52 |
</tr>
|
@@ -54,7 +54,7 @@ if (!defined('WPINC')) {
|
|
54 |
<th scope="row"><label for="font_family_field"><?php _e('Font', 'cookie-law-info'); ?></label></th>
|
55 |
<td>
|
56 |
<select name="font_family_field" class="vvv_combobox">
|
57 |
-
<?php $this->print_combobox_options($this->get_fonts(), $the_options['font_family']) ?>
|
58 |
</select>
|
59 |
</td>
|
60 |
</tr>
|
@@ -74,8 +74,8 @@ if (!defined('WPINC')) {
|
|
74 |
<td>
|
75 |
<?php $widget_position = $the_options['widget_position']; ?>
|
76 |
<select name="widget_position_field" id="widget_position_field" class="vvv_combobox">
|
77 |
-
<option value="left" <?php echo $widget_position == 'left' ? 'selected' : '';
|
78 |
-
<option value="right" <?php echo $widget_position == 'right' ? 'selected' : '';
|
79 |
</select>
|
80 |
</td>
|
81 |
</tr>
|
@@ -194,7 +194,7 @@ if (!defined('WPINC')) {
|
|
194 |
<tr valign="top">
|
195 |
<th scope="row"><label id="wt-cli-revisit-consent-margin-label" for="showagain_x_position_field" data-cli-right-text="<?php _e('From Right Margin', 'cookie-law-info'); ?>" data-cli-left-text="<?php _e('From Left Margin', 'cookie-law-info'); ?>"><?php _e('From Left Margin', 'cookie-law-info'); ?></label></th>
|
196 |
<td>
|
197 |
-
<input type="text" name="showagain_x_position_field" value="<?php echo $the_options['showagain_x_position'] ?>" />
|
198 |
<span class="cli_form_help"><?php _e('Specify the widget distance from margin in ‘px’ or ‘%’ . e.g. 100px or 30%', 'cookie-law-info'); ?></span>
|
199 |
</td>
|
200 |
</tr>
|
@@ -206,7 +206,7 @@ if (!defined('WPINC')) {
|
|
206 |
<tr valign="top">
|
207 |
<th scope="row"><label for="showagain_text"><?php _e('Text on the widget', 'cookie-law-info'); ?></label></th>
|
208 |
<td>
|
209 |
-
<input type="text" name="showagain_text_field" value="<?php echo $the_options['showagain_text'] ?>" />
|
210 |
<span class="cli_form_help"><?php _e('Input a text to appear on the revisit consent widget.', 'cookie-law-info'); ?></span>
|
211 |
</td>
|
212 |
</tr>
|
4 |
die;
|
5 |
}
|
6 |
?>
|
7 |
+
<div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id ); ?>">
|
8 |
<ul class="cli_sub_tab">
|
9 |
<li style="border-left:none; padding-left: 0px;" data-target="cookie-message"><a><?php _e('Cookie bar', 'cookie-law-info'); ?></a></li>
|
10 |
<li data-target="show-again-tab"><a><?php _e('Revisit consent', 'cookie-law-info'); ?></a></li>
|
16 |
<tr valign="top">
|
17 |
<th scope="row"><label for="bar_heading_text_field"><?php _e('Message Heading', 'cookie-law-info'); ?></label></th>
|
18 |
<td>
|
19 |
+
<input type="text" name="bar_heading_text_field" value="<?php echo esc_attr( stripslashes( $the_options['bar_heading_text'] ) ); ?>" />
|
20 |
<span class="cli_form_help"><?php _e('Input text to have a heading for the cookie consent bar. Leave it blank if you do not need one.', 'cookie-law-info'); ?>
|
21 |
</span>
|
22 |
</td>
|
37 |
<?php
|
38 |
/** RICHARDASHBY EDIT */
|
39 |
//echo '<input type="text" name="background_field" id="cli-colour-background" value="' .$the_options['background']. '" />';
|
40 |
+
echo '<input type="text" name="background_field" id="cli-colour-background" value="' . esc_attr( $the_options['background'] ) . '" class="my-color-field" data-default-color="#fff" />';
|
41 |
?>
|
42 |
</td>
|
43 |
</tr>
|
46 |
<td>
|
47 |
<?php
|
48 |
/** RICHARDASHBY EDIT */
|
49 |
+
echo '<input type="text" name="text_field" id="cli-colour-text" value="' . esc_attr( $the_options['text'] ) . '" class="my-color-field" data-default-color="#000" />';
|
50 |
?>
|
51 |
</td>
|
52 |
</tr>
|
54 |
<th scope="row"><label for="font_family_field"><?php _e('Font', 'cookie-law-info'); ?></label></th>
|
55 |
<td>
|
56 |
<select name="font_family_field" class="vvv_combobox">
|
57 |
+
<?php $this->print_combobox_options( $this->get_fonts(), $the_options['font_family'] ) ?>
|
58 |
</select>
|
59 |
</td>
|
60 |
</tr>
|
74 |
<td>
|
75 |
<?php $widget_position = $the_options['widget_position']; ?>
|
76 |
<select name="widget_position_field" id="widget_position_field" class="vvv_combobox">
|
77 |
+
<option value="left" <?php echo $widget_position == 'left' ? 'selected' : ''; ?>><?php echo __( 'Left', 'cookie-law-info' ); ?></option>
|
78 |
+
<option value="right" <?php echo $widget_position == 'right' ? 'selected' : ''; ?>><?php echo __( 'Right', 'cookie-law-info' ); ?></option>
|
79 |
</select>
|
80 |
</td>
|
81 |
</tr>
|
194 |
<tr valign="top">
|
195 |
<th scope="row"><label id="wt-cli-revisit-consent-margin-label" for="showagain_x_position_field" data-cli-right-text="<?php _e('From Right Margin', 'cookie-law-info'); ?>" data-cli-left-text="<?php _e('From Left Margin', 'cookie-law-info'); ?>"><?php _e('From Left Margin', 'cookie-law-info'); ?></label></th>
|
196 |
<td>
|
197 |
+
<input type="text" name="showagain_x_position_field" value="<?php echo esc_attr( $the_options['showagain_x_position'] ) ?>" />
|
198 |
<span class="cli_form_help"><?php _e('Specify the widget distance from margin in ‘px’ or ‘%’ . e.g. 100px or 30%', 'cookie-law-info'); ?></span>
|
199 |
</td>
|
200 |
</tr>
|
206 |
<tr valign="top">
|
207 |
<th scope="row"><label for="showagain_text"><?php _e('Text on the widget', 'cookie-law-info'); ?></label></th>
|
208 |
<td>
|
209 |
+
<input type="text" name="showagain_text_field" value="<?php echo esc_attr( $the_options['showagain_text'] ) ?>" />
|
210 |
<span class="cli_form_help"><?php _e('Input a text to appear on the revisit consent widget.', 'cookie-law-info'); ?></span>
|
211 |
</td>
|
212 |
</tr>
|
admin/views/goto-pro.php
CHANGED
@@ -59,24 +59,24 @@
|
|
59 |
<div class="cli_gopro_block" style="margin-top: 43px;">
|
60 |
<!----sidebar starts----->
|
61 |
<div class="wt-ier-sidebar-wrapper" style="padding:35px 50px;">
|
62 |
-
<img src="<?php echo CLI_PLUGIN_URL . 'images/crown.svg'; ?>" class="wt-ier-sidebar-img">
|
63 |
<h3 class="wt-ier-sidebar-title wt-ier-center"><?php echo __('Get access to advanced features for GDPR compliance.','cookie-law-info'); ?></h3>
|
64 |
<div class="wt-ier-row">
|
65 |
<div class="wt-ier-col-12 wt-ier-col-md-6 wt-ier-border-md-right">
|
66 |
<div class="wt-ier-flex wt-ier-v-center ">
|
67 |
-
<img src="<?php echo CLI_PLUGIN_URL . 'images/money-back-badge.svg'; ?>" class="wt-ier-icon">
|
68 |
<p class="wt-ier-sidebar-p"><?php echo __('30 Day Money Back Guarantee','cookie-law-info'); ?></p>
|
69 |
</div>
|
70 |
</div>
|
71 |
<div class="wt-ier-col-12 wt-ier-col-md-6">
|
72 |
<div class="wt-ier-flex wt-ier-v-center">
|
73 |
-
<img src="<?php echo CLI_PLUGIN_URL . 'images/support.svg'; ?>" class="wt-ier-icon">
|
74 |
<p class="wt-ier-sidebar-p"><?php echo __('Fast and Superior Support','cookie-law-info'); ?></p>
|
75 |
</div>
|
76 |
</div>
|
77 |
</div>
|
78 |
<div class="wt-ier-center wt-ier-pt-4">
|
79 |
-
<a href="https://www.webtoffee.com/product/gdpr-cookie-consent/?utm_source=free_plugin_sidebar&utm_medium=gdpr_basic&utm_campaign=GDPR&utm_content=<?php echo CLI_VERSION;?>" class="wt-ier-green-btn" target="_blank"><?php echo __('Upgrade to Premium','cookie-law-info'); ?></a>
|
80 |
</div>
|
81 |
</div>
|
82 |
<!----sidebar ends----->
|
59 |
<div class="cli_gopro_block" style="margin-top: 43px;">
|
60 |
<!----sidebar starts----->
|
61 |
<div class="wt-ier-sidebar-wrapper" style="padding:35px 50px;">
|
62 |
+
<img src="<?php echo esc_url( CLI_PLUGIN_URL . 'images/crown.svg' ); ?>" class="wt-ier-sidebar-img">
|
63 |
<h3 class="wt-ier-sidebar-title wt-ier-center"><?php echo __('Get access to advanced features for GDPR compliance.','cookie-law-info'); ?></h3>
|
64 |
<div class="wt-ier-row">
|
65 |
<div class="wt-ier-col-12 wt-ier-col-md-6 wt-ier-border-md-right">
|
66 |
<div class="wt-ier-flex wt-ier-v-center ">
|
67 |
+
<img src="<?php echo esc_url( CLI_PLUGIN_URL . 'images/money-back-badge.svg' ); ?>" class="wt-ier-icon">
|
68 |
<p class="wt-ier-sidebar-p"><?php echo __('30 Day Money Back Guarantee','cookie-law-info'); ?></p>
|
69 |
</div>
|
70 |
</div>
|
71 |
<div class="wt-ier-col-12 wt-ier-col-md-6">
|
72 |
<div class="wt-ier-flex wt-ier-v-center">
|
73 |
+
<img src="<?php echo esc_url( CLI_PLUGIN_URL . 'images/support.svg' ); ?>" class="wt-ier-icon">
|
74 |
<p class="wt-ier-sidebar-p"><?php echo __('Fast and Superior Support','cookie-law-info'); ?></p>
|
75 |
</div>
|
76 |
</div>
|
77 |
</div>
|
78 |
<div class="wt-ier-center wt-ier-pt-4">
|
79 |
+
<a href="https://www.webtoffee.com/product/gdpr-cookie-consent/?utm_source=free_plugin_sidebar&utm_medium=gdpr_basic&utm_campaign=GDPR&utm_content=<?php echo esc_url( CLI_VERSION );?>" class="wt-ier-green-btn" target="_blank"><?php echo __('Upgrade to Premium','cookie-law-info'); ?></a>
|
80 |
</div>
|
81 |
</div>
|
82 |
<!----sidebar ends----->
|
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.
|
20 |
* Author: WebToffee
|
21 |
* Author URI: https://www.webtoffee.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.
|
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.4
|
20 |
* Author: WebToffee
|
21 |
* Author URI: https://www.webtoffee.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.4' );
|
73 |
|
74 |
function wt_cookie_law_info_update_message( $data, $response )
|
75 |
{
|
includes/class-cookie-law-info-cookieyes.php
CHANGED
@@ -269,7 +269,7 @@ if ( ! class_exists( 'Cookie_Law_Info_Cookieyes' ) ) {
|
|
269 |
</div>
|
270 |
<div class="wt-cli-modal-body">
|
271 |
<form id="wt-cli-ckyes-form-password-reset">
|
272 |
-
<input type="email" name="ckyes-reset-email" class="wt-cli-form-input" placeholder="<?php echo __('Email','cookie-law-info'); ?>" value="<?php echo $this->get_user_email();
|
273 |
<div class="wt-cli-action-container">
|
274 |
<button id="wt-cli-ckyes-password-reset-btn" class="wt-cli-action button button-primary"><?php echo __( 'Send password reset email', 'cookie-law-info' ); // phpcs:ignore WordPress.Security.EscapeOutput ?></button>
|
275 |
</div>
|
@@ -283,7 +283,7 @@ if ( ! class_exists( 'Cookie_Law_Info_Cookieyes' ) ) {
|
|
283 |
<div class="wt-cli-modal-body">
|
284 |
<p><?php echo sprintf( __( 'Enter your email to create an account with CookieYes. By clicking “Connect”, your CookieYes account will be created automatically and you can start scanning your website for cookies right away!', 'cookie-law-info' ), $this->get_user_email() ); // phpcs:ignore WordPress.Security.EscapeOutput ?></p>
|
285 |
<form id="wt-cli-ckyes-form-register">
|
286 |
-
<input type="email" name="ckyes-email" class="wt-cli-form-input" placeholder="<?php echo __('Email','cookie-law-info'); ?>" value="<?php echo $this->get_user_email();
|
287 |
<div class="wt-cli-action-container">
|
288 |
<div class="wt-cli-action-group">
|
289 |
<button id="wt-cli-ckyes-register-btn" class="wt-cli-action button button-primary"><?php echo __( 'Connect', 'cookie-law-info' ); // phpcs:ignore WordPress.Security.EscapeOutput ?></button>
|
269 |
</div>
|
270 |
<div class="wt-cli-modal-body">
|
271 |
<form id="wt-cli-ckyes-form-password-reset">
|
272 |
+
<input type="email" name="ckyes-reset-email" class="wt-cli-form-input" placeholder="<?php echo __('Email','cookie-law-info'); ?>" value="<?php echo esc_attr( $this->get_user_email() ); ?>" />
|
273 |
<div class="wt-cli-action-container">
|
274 |
<button id="wt-cli-ckyes-password-reset-btn" class="wt-cli-action button button-primary"><?php echo __( 'Send password reset email', 'cookie-law-info' ); // phpcs:ignore WordPress.Security.EscapeOutput ?></button>
|
275 |
</div>
|
283 |
<div class="wt-cli-modal-body">
|
284 |
<p><?php echo sprintf( __( 'Enter your email to create an account with CookieYes. By clicking “Connect”, your CookieYes account will be created automatically and you can start scanning your website for cookies right away!', 'cookie-law-info' ), $this->get_user_email() ); // phpcs:ignore WordPress.Security.EscapeOutput ?></p>
|
285 |
<form id="wt-cli-ckyes-form-register">
|
286 |
+
<input type="email" name="ckyes-email" class="wt-cli-form-input" placeholder="<?php echo __('Email','cookie-law-info'); ?>" value = "<?php echo esc_attr( $this->get_user_email() ); ?>" />
|
287 |
<div class="wt-cli-action-container">
|
288 |
<div class="wt-cli-action-group">
|
289 |
<button id="wt-cli-ckyes-register-btn" class="wt-cli-action button button-primary"><?php echo __( 'Connect', 'cookie-law-info' ); // phpcs:ignore WordPress.Security.EscapeOutput ?></button>
|
includes/class-cookie-law-info-review_request.php
CHANGED
@@ -122,11 +122,11 @@ class Cookie_Law_Info_Review_Request
|
|
122 |
{
|
123 |
$this->update_banner_state(1); /* update banner active state */
|
124 |
?>
|
125 |
-
<div class="<?php echo $this->banner_css_class; ?> notice-info notice is-dismissible">
|
126 |
<?php
|
127 |
if ($this->webtoffee_logo_url != "") {
|
128 |
?>
|
129 |
-
<h3 style="margin: 10px 0;"><?php echo $this->plugin_title; ?></h3>
|
130 |
<?php
|
131 |
}
|
132 |
?>
|
@@ -134,11 +134,11 @@ class Cookie_Law_Info_Review_Request
|
|
134 |
<?php echo $this->banner_message; ?>
|
135 |
</p>
|
136 |
<p>
|
137 |
-
<a class="button button-secondary" style="color:#333; border-color:#ccc; background:#efefef;" data-type="later"><?php echo $this->later_btn_text; ?></a>
|
138 |
-
<a class="button button-primary" data-type="review"><?php echo $this->review_btn_text; ?></a>
|
139 |
</p>
|
140 |
<div class="wt-cli-review-footer" style="position: relative;">
|
141 |
-
<span class="wt-cli-footer-icon" style="position: absolute;right: 0;bottom: 10px;"><img src="<?php echo $this->webtoffee_logo_url; ?>" style="max-width:100px;"></span>
|
142 |
</div>
|
143 |
</div>
|
144 |
<?php
|
122 |
{
|
123 |
$this->update_banner_state(1); /* update banner active state */
|
124 |
?>
|
125 |
+
<div class="<?php echo esc_attr( $this->banner_css_class ); ?> notice-info notice is-dismissible">
|
126 |
<?php
|
127 |
if ($this->webtoffee_logo_url != "") {
|
128 |
?>
|
129 |
+
<h3 style="margin: 10px 0;"><?php echo esc_html( $this->plugin_title ); ?></h3>
|
130 |
<?php
|
131 |
}
|
132 |
?>
|
134 |
<?php echo $this->banner_message; ?>
|
135 |
</p>
|
136 |
<p>
|
137 |
+
<a class="button button-secondary" style="color:#333; border-color:#ccc; background:#efefef;" data-type="later"><?php echo esc_html( $this->later_btn_text ); ?></a>
|
138 |
+
<a class="button button-primary" data-type="review"><?php echo esc_html( $this->review_btn_text ); ?></a>
|
139 |
</p>
|
140 |
<div class="wt-cli-review-footer" style="position: relative;">
|
141 |
+
<span class="wt-cli-footer-icon" style="position: absolute;right: 0;bottom: 10px;"><img src="<?php echo esc_url( $this->webtoffee_logo_url ); ?>" style="max-width:100px;"></span>
|
142 |
</div>
|
143 |
</div>
|
144 |
<?php
|
includes/class-cookie-law-info.php
CHANGED
@@ -78,7 +78,7 @@ class Cookie_Law_Info {
|
|
78 |
}
|
79 |
else
|
80 |
{
|
81 |
-
$this->version = '2.0.
|
82 |
}
|
83 |
$this->plugin_name = 'cookie-law-info';
|
84 |
|
@@ -342,7 +342,7 @@ class Cookie_Law_Info {
|
|
342 |
$v=__($v, 'cookie-law-info');
|
343 |
}
|
344 |
?>
|
345 |
-
<a class="nav-tab" href="#<?php echo $k
|
346 |
<?php
|
347 |
}
|
348 |
}
|
@@ -354,7 +354,7 @@ class Cookie_Law_Info {
|
|
354 |
public static function envelope_settings_tabcontent($target_id,$view_file="",$html="")
|
355 |
{
|
356 |
?>
|
357 |
-
<div class="cookie-law-info-tab-content" data-id="<?php echo $target_id;?>">
|
358 |
<?php
|
359 |
if($view_file!="" && file_exists($view_file))
|
360 |
{
|
@@ -677,6 +677,8 @@ class Cookie_Law_Info {
|
|
677 |
global $wpdb;
|
678 |
$args = array(
|
679 |
'post_type' => CLI_POST_TYPE,
|
|
|
|
|
680 |
'meta_query' => array(
|
681 |
array(
|
682 |
'key' => '_cli_cookie_sensitivity',
|
@@ -983,7 +985,7 @@ class Cookie_Law_Info {
|
|
983 |
|
984 |
$js_blocking_enabled = false;
|
985 |
$js_option = self::get_js_option();
|
986 |
-
if( $js_option === true ) {
|
987 |
$js_blocking_enabled = true;
|
988 |
}
|
989 |
return apply_filters('wt_cli_enable_js_blocking',$js_blocking_enabled);
|
@@ -1031,5 +1033,16 @@ class Cookie_Law_Info {
|
|
1031 |
}
|
1032 |
return false;
|
1033 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1034 |
|
1035 |
}
|
78 |
}
|
79 |
else
|
80 |
{
|
81 |
+
$this->version = '2.0.4';
|
82 |
}
|
83 |
$this->plugin_name = 'cookie-law-info';
|
84 |
|
342 |
$v=__($v, 'cookie-law-info');
|
343 |
}
|
344 |
?>
|
345 |
+
<a class="nav-tab" href="#<?php echo esc_attr( $k ); ?>"><?php echo esc_html( $v ); ?></a>
|
346 |
<?php
|
347 |
}
|
348 |
}
|
354 |
public static function envelope_settings_tabcontent($target_id,$view_file="",$html="")
|
355 |
{
|
356 |
?>
|
357 |
+
<div class="cookie-law-info-tab-content" data-id="<?php echo esc_attr( $target_id );?>">
|
358 |
<?php
|
359 |
if($view_file!="" && file_exists($view_file))
|
360 |
{
|
677 |
global $wpdb;
|
678 |
$args = array(
|
679 |
'post_type' => CLI_POST_TYPE,
|
680 |
+
'posts_per_page' => -1,
|
681 |
+
'suppress_filters' => false,
|
682 |
'meta_query' => array(
|
683 |
array(
|
684 |
'key' => '_cli_cookie_sensitivity',
|
985 |
|
986 |
$js_blocking_enabled = false;
|
987 |
$js_option = self::get_js_option();
|
988 |
+
if( $js_option === true && !self::is_divi_enabled() ) {
|
989 |
$js_blocking_enabled = true;
|
990 |
}
|
991 |
return apply_filters('wt_cli_enable_js_blocking',$js_blocking_enabled);
|
1033 |
}
|
1034 |
return false;
|
1035 |
}
|
1036 |
+
|
1037 |
+
/**
|
1038 |
+
* Check whether DIVI builder is active or not
|
1039 |
+
*
|
1040 |
+
* @since 2.0.4
|
1041 |
+
* @return bool
|
1042 |
+
*/
|
1043 |
+
public static function is_divi_enabled() {
|
1044 |
+
|
1045 |
+
return isset($_GET['et_fb']) ? true : false;
|
1046 |
+
}
|
1047 |
|
1048 |
}
|
public/modules/script-blocker/views/settings.php
CHANGED
@@ -123,7 +123,7 @@ $plugin_help_url = 'https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-v
|
|
123 |
<?php endif; ?>
|
124 |
<div class="notice-info notice">
|
125 |
<p><label><?php echo $cli_icon; ?></label>
|
126 |
-
<?php echo $script_blocker_text; ?> <?php echo $cli_notice_text; ?></p>
|
127 |
</div>
|
128 |
<form method="post" name="script_blocker_form">
|
129 |
<?php
|
@@ -131,13 +131,13 @@ $plugin_help_url = 'https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-v
|
|
131 |
wp_nonce_field($this->module_id);
|
132 |
}
|
133 |
?>
|
134 |
-
<input type="hidden" id="cli_script_blocker_state" name="cli_script_blocker_state" class="styled" value="<?php echo $action_value; ?>" />
|
135 |
<input type="hidden" id="cli_update_script_blocker" name="cli_update_script_blocker" />
|
136 |
</form>
|
137 |
<div class="wt-cli-notice wt-cli-info">
|
138 |
<?php echo sprintf(wp_kses(__('Below is the list of plugins currently supported for auto blocking. Plugins marked inactive are either not installed or activated on your website. Enabled plugins will be blocked by default on the front-end of your website prior to obtaining user consent and rendered respectively based on consent. <a href="%s" target="_blank">Read more.</a>', 'cookie-law-info'), array('a' => array('href' => array(), 'target' => array()))), esc_url($plugin_help_url)); ?>
|
139 |
</div>
|
140 |
-
<table class="cli_script_items widefat <?php echo $script_blocker_class; ?>" cellspacing="0">
|
141 |
<thead>
|
142 |
<tr>
|
143 |
<th><?php echo __('No', 'cookie-law-info'); ?></th>
|
@@ -181,11 +181,11 @@ $plugin_help_url = 'https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-v
|
|
181 |
$plugins_status_text = ($plugin_status === false ? __('Inactive', 'cookie-law-info') : '');
|
182 |
$plugins_status_class = ($plugin_status === false ? 'wt-cli-plugin-inactive' : 'wt-cli-plugin-active');
|
183 |
?>
|
184 |
-
<tr class="<?php echo $plugins_status_class; ?>" data-script-id="<?php echo esc_attr($script_id) ?>">
|
185 |
-
<td><?php echo $count; ?></td>
|
186 |
-
<td><?php echo $title; ?>
|
187 |
<?php if (!empty($plugins_status_text)) : ?>
|
188 |
-
<span style="color:#dc3232; margin-left:3px;">( <?php echo $plugins_status_text; ?> )</span>
|
189 |
<?php endif; ?>
|
190 |
</td>
|
191 |
<td>
|
@@ -200,12 +200,12 @@ $plugin_help_url = 'https://www.webtoffee.com/gdpr-cookie-consent-plugin-basic-v
|
|
200 |
<select name="cliscript_category" id="cliscript_category">
|
201 |
<option value="0">--Select Category--</option>
|
202 |
<?php foreach ($terms as $key => $term) : ?>
|
203 |
-
<option value="<?php echo $key; ?>" <?php echo selected($plugin_data['category'], $key, false) ?>><?php echo $term['title']; ?></option>
|
204 |
<?php endforeach; ?>
|
205 |
</select>
|
206 |
</td>
|
207 |
<?php endif; ?>
|
208 |
-
<td><?php echo $description; ?></td>
|
209 |
</tr>
|
210 |
<?php endforeach;
|
211 |
endif; ?>
|
123 |
<?php endif; ?>
|
124 |
<div class="notice-info notice">
|
125 |
<p><label><?php echo $cli_icon; ?></label>
|
126 |
+
<?php echo esc_html( $script_blocker_text ); ?> <?php echo $cli_notice_text; ?></p>
|
127 |
</div>
|
128 |
<form method="post" name="script_blocker_form">
|
129 |
<?php
|
131 |
wp_nonce_field($this->module_id);
|
132 |
}
|
133 |
?>
|
134 |
+
<input type="hidden" id="cli_script_blocker_state" name="cli_script_blocker_state" class="styled" value="<?php echo esc_attr( $action_value ); ?>" />
|
135 |
<input type="hidden" id="cli_update_script_blocker" name="cli_update_script_blocker" />
|
136 |
</form>
|
137 |
<div class="wt-cli-notice wt-cli-info">
|
138 |
<?php echo sprintf(wp_kses(__('Below is the list of plugins currently supported for auto blocking. Plugins marked inactive are either not installed or activated on your website. Enabled plugins will be blocked by default on the front-end of your website prior to obtaining user consent and rendered respectively based on consent. <a href="%s" target="_blank">Read more.</a>', 'cookie-law-info'), array('a' => array('href' => array(), 'target' => array()))), esc_url($plugin_help_url)); ?>
|
139 |
</div>
|
140 |
+
<table class="cli_script_items widefat <?php echo esc_attr( $script_blocker_class ); ?>" cellspacing="0">
|
141 |
<thead>
|
142 |
<tr>
|
143 |
<th><?php echo __('No', 'cookie-law-info'); ?></th>
|
181 |
$plugins_status_text = ($plugin_status === false ? __('Inactive', 'cookie-law-info') : '');
|
182 |
$plugins_status_class = ($plugin_status === false ? 'wt-cli-plugin-inactive' : 'wt-cli-plugin-active');
|
183 |
?>
|
184 |
+
<tr class="<?php echo esc_attr( $plugins_status_class ); ?>" data-script-id="<?php echo esc_attr($script_id) ?>">
|
185 |
+
<td><?php echo esc_html( $count ); ?></td>
|
186 |
+
<td><?php echo esc_html( $title ); ?>
|
187 |
<?php if (!empty($plugins_status_text)) : ?>
|
188 |
+
<span style="color:#dc3232; margin-left:3px;">( <?php echo esc_html( $plugins_status_text ); ?> )</span>
|
189 |
<?php endif; ?>
|
190 |
</td>
|
191 |
<td>
|
200 |
<select name="cliscript_category" id="cliscript_category">
|
201 |
<option value="0">--Select Category--</option>
|
202 |
<?php foreach ($terms as $key => $term) : ?>
|
203 |
+
<option value="<?php echo esc_attr( $key ); ?>" <?php echo selected($plugin_data['category'], $key, false) ?>><?php echo esc_html( $term['title'] ); ?></option>
|
204 |
<?php endforeach; ?>
|
205 |
</select>
|
206 |
</td>
|
207 |
<?php endif; ?>
|
208 |
+
<td><?php echo esc_html( $description ); ?></td>
|
209 |
</tr>
|
210 |
<?php endforeach;
|
211 |
endif; ?>
|
public/modules/shortcode/shortcode.php
CHANGED
@@ -271,34 +271,28 @@ class Cookie_Law_Info_Shortcode {
|
|
271 |
}
|
272 |
|
273 |
// Get custom fields:
|
274 |
-
if($posts)
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
$ret .= '<td class="cookielawinfo-column-4">' . $post->post_content .'</td>';
|
297 |
-
}
|
298 |
-
$ret = apply_filters('cli_new_column_values_to_audit_table',$ret, $custom);
|
299 |
-
$ret .= '</tr>';
|
300 |
-
}
|
301 |
-
}
|
302 |
$ret .= '</tbody></table>';
|
303 |
if(count($posts)>0)
|
304 |
{
|
271 |
}
|
272 |
|
273 |
// Get custom fields:
|
274 |
+
if ( $posts ) {
|
275 |
+
foreach ( $posts as $post ) {
|
276 |
+
$custom = get_post_custom( $post->ID );
|
277 |
+
$cookie_type = ( isset( $custom['_cli_cookie_type'][0] ) ) ? esc_html( sanitize_text_field( $custom['_cli_cookie_type'][0] ) ) : '';
|
278 |
+
$cookie_duration = ( isset( $custom['_cli_cookie_duration'][0] ) ) ? esc_html( sanitize_text_field( $custom['_cli_cookie_duration'][0] ) ) : '';
|
279 |
+
$ret .= '<tr class="cookielawinfo-row">';
|
280 |
+
if ( in_array( 'cookie', $columns ) ) {
|
281 |
+
$ret .= '<td class="cookielawinfo-column-1">' . esc_html( sanitize_text_field( $post->post_title ) ) . '</td>';
|
282 |
+
}
|
283 |
+
if ( in_array( 'type', $columns ) ) {
|
284 |
+
$ret .= '<td class="cookielawinfo-column-2">' . $cookie_type . '</td>';
|
285 |
+
}
|
286 |
+
if ( in_array( 'duration', $columns ) ) {
|
287 |
+
$ret .= '<td class="cookielawinfo-column-3">' . $cookie_duration . '</td>';
|
288 |
+
}
|
289 |
+
if ( in_array( 'description', $columns ) ) {
|
290 |
+
$ret .= '<td class="cookielawinfo-column-4">' . wp_kses_post( $post->post_content ). '</td>';
|
291 |
+
}
|
292 |
+
$ret = apply_filters( 'cli_new_column_values_to_audit_table', $ret, $custom );
|
293 |
+
$ret .= '</tr>';
|
294 |
+
}
|
295 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
$ret .= '</tbody></table>';
|
297 |
if(count($posts)>0)
|
298 |
{
|
public/views/cookie-law-info_bar.php
CHANGED
@@ -37,7 +37,7 @@ if ( file_exists( $pop_content_html_file ) ) {
|
|
37 |
</div>
|
38 |
<?php if ( apply_filters( 'wt_cli_enable_ckyes_branding', true ) === true ) : ?>
|
39 |
<div class="wt-cli-ckyes-footer-section">
|
40 |
-
<div class="wt-cli-ckyes-brand-logo"><?php echo __( 'Powered by', 'cookie-law-info' ); ?> <a href="https://www.cookieyes.com/"><img src="<?php echo CLI_PLUGIN_URL . 'public/images/logo-cookieyes.svg'; ?>" alt="CookieYes Logo"></a></div>
|
41 |
</div>
|
42 |
<?php endif; ?>
|
43 |
|
37 |
</div>
|
38 |
<?php if ( apply_filters( 'wt_cli_enable_ckyes_branding', true ) === true ) : ?>
|
39 |
<div class="wt-cli-ckyes-footer-section">
|
40 |
+
<div class="wt-cli-ckyes-brand-logo"><?php echo __( 'Powered by', 'cookie-law-info' ); ?> <a href="https://www.cookieyes.com/"><img src="<?php echo esc_url( CLI_PLUGIN_URL . 'public/images/logo-cookieyes.svg' ); ?>" alt="CookieYes Logo"></a></div>
|
41 |
</div>
|
42 |
<?php endif; ?>
|
43 |
|
public/views/cookie-law-info_popup_content.php
CHANGED
@@ -37,9 +37,9 @@ $js_blocking_enabled = Cookie_Law_Info::wt_cli_is_js_blocking_active();
|
|
37 |
|
38 |
if ( isset( $overview_title ) === true && $overview_title !== '' ) {
|
39 |
if ( has_filter( 'wt_cli_change_privacy_overview_title_tag' ) ) {
|
40 |
-
echo apply_filters( 'wt_cli_change_privacy_overview_title_tag', $overview_title, '<h4>', '</h4>' );
|
41 |
} else {
|
42 |
-
echo '<h4>' . $overview_title . '</h4>';
|
43 |
}
|
44 |
}
|
45 |
?>
|
@@ -94,13 +94,13 @@ $js_blocking_enabled = Cookie_Law_Info::wt_cli_is_js_blocking_active();
|
|
94 |
<?php if ( $category_enabled === true ) : ?>
|
95 |
<div class="cli-tab-section">
|
96 |
<div class="cli-tab-header">
|
97 |
-
<a role="button" tabindex="0" class="cli-nav-link cli-settings-mobile" data-target="<?php echo $key; ?>" data-toggle="cli-toggle-tab">
|
98 |
<?php echo $cookie_title; ?>
|
99 |
</a>
|
100 |
<?php echo $cli_switch; ?>
|
101 |
</div>
|
102 |
<div class="cli-tab-content">
|
103 |
-
<div class="cli-tab-pane cli-fade" data-id="<?php echo $key; ?>">
|
104 |
<p><?php echo do_shortcode( $category_description, 'cookielawinfo-category' ); ?></p>
|
105 |
</div>
|
106 |
</div>
|
37 |
|
38 |
if ( isset( $overview_title ) === true && $overview_title !== '' ) {
|
39 |
if ( has_filter( 'wt_cli_change_privacy_overview_title_tag' ) ) {
|
40 |
+
echo apply_filters( 'wt_cli_change_privacy_overview_title_tag', esc_html( $overview_title ), '<h4>', '</h4>' );
|
41 |
} else {
|
42 |
+
echo '<h4>' . esc_html( $overview_title ) . '</h4>';
|
43 |
}
|
44 |
}
|
45 |
?>
|
94 |
<?php if ( $category_enabled === true ) : ?>
|
95 |
<div class="cli-tab-section">
|
96 |
<div class="cli-tab-header">
|
97 |
+
<a role="button" tabindex="0" class="cli-nav-link cli-settings-mobile" data-target="<?php echo esc_attr( $key ); ?>" data-toggle="cli-toggle-tab">
|
98 |
<?php echo $cookie_title; ?>
|
99 |
</a>
|
100 |
<?php echo $cli_switch; ?>
|
101 |
</div>
|
102 |
<div class="cli-tab-content">
|
103 |
+
<div class="cli-tab-pane cli-fade" data-id="<?php echo esc_attr( $key ); ?>">
|
104 |
<p><?php echo do_shortcode( $category_description, 'cookielawinfo-category' ); ?></p>
|
105 |
</div>
|
106 |
</div>
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: GDPR, CCPA, cookie notice, DSGVO, RGPD, LGPD, PIPEDA, cookies , cookie law
|
|
5 |
Requires at least: 4.4.0
|
6 |
Tested up to: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.0.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
@@ -189,6 +189,12 @@ For every update of the plugin, you will be notified of the installed plugins pa
|
|
189 |
|
190 |
== Changelog ==
|
191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
= 2.0.3 =
|
193 |
|
194 |
* Enhancement - Default cookie banner message update.
|
@@ -513,6 +519,8 @@ For every update of the plugin, you will be notified of the installed plugins pa
|
|
513 |
|
514 |
== Upgrade Notice ==
|
515 |
|
516 |
-
= 2.0.
|
517 |
|
518 |
-
*
|
|
|
|
5 |
Requires at least: 4.4.0
|
6 |
Tested up to: 5.7
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.0.4
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
189 |
|
190 |
== Changelog ==
|
191 |
|
192 |
+
= 2.0.4 =
|
193 |
+
|
194 |
+
* Bug fix: Do not sell option appears before Accept all button option on the admin settings.
|
195 |
+
* Enhancement: Translation support for "Do not sell" link text.
|
196 |
+
* Enhancement: Added escaping to input attributes.
|
197 |
+
|
198 |
= 2.0.3 =
|
199 |
|
200 |
* Enhancement - Default cookie banner message update.
|
519 |
|
520 |
== Upgrade Notice ==
|
521 |
|
522 |
+
= 2.0.4 =
|
523 |
|
524 |
+
* Bug fix: Do not sell option appears before Accept all button option on the admin settings.
|
525 |
+
* Enhancement: Translation support for "Do not sell" link text.
|
526 |
+
* Enhancement: Added escaping to input attributes.
|