Version Description
- Fix: Problems with iOS and OK/Reject button
- Tweak: Added Separate cookie expiry for Reject, props Carlos Buchart
Download this release
Release Info
Developer | dfactory |
Plugin | Cookie Notice by dFactory |
Version | 1.2.51 |
Comparing to | |
See all releases |
Code changes from version 1.2.50 to 1.2.51
- cookie-notice.php +55 -20
- css/front.css +4 -4
- css/front.min.css +1 -1
- js/front.js +60 -72
- js/front.min.js +1 -1
- languages/cookie-notice.pot +115 -99
- readme.txt +8 -3
cookie-notice.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Cookie Notice
|
4 |
Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and helps you comply with the EU GDPR cookie law and CCPA regulations.
|
5 |
-
Version: 1.2.
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
|
@@ -29,7 +29,7 @@ if ( ! defined( 'ABSPATH' ) )
|
|
29 |
* Cookie Notice class.
|
30 |
*
|
31 |
* @class Cookie_Notice
|
32 |
-
* @version 1.2.
|
33 |
*/
|
34 |
class Cookie_Notice {
|
35 |
|
@@ -56,6 +56,7 @@ class Cookie_Notice {
|
|
56 |
'link_target' => '_blank',
|
57 |
'link_position' => 'banner',
|
58 |
'time' => 'month',
|
|
|
59 |
'hide_effect' => 'fade',
|
60 |
'on_scroll' => false,
|
61 |
'on_scroll_offset' => 100,
|
@@ -78,7 +79,7 @@ class Cookie_Notice {
|
|
78 |
'update_notice' => true,
|
79 |
'update_delay_date' => 0
|
80 |
),
|
81 |
-
'version' => '1.2.
|
82 |
);
|
83 |
private $positions = array();
|
84 |
private $styles = array();
|
@@ -644,7 +645,8 @@ class Cookie_Notice {
|
|
644 |
add_settings_field( 'cn_redirection', __( 'Reloading', 'cookie-notice' ), array( $this, 'cn_redirection' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
645 |
add_settings_field( 'cn_on_scroll', __( 'On scroll', 'cookie-notice' ), array( $this, 'cn_on_scroll' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
646 |
add_settings_field( 'cn_on_click', __( 'On click', 'cookie-notice' ), array( $this, 'cn_on_click' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
647 |
-
add_settings_field( 'cn_time', __( '
|
|
|
648 |
add_settings_field( 'cn_script_placement', __( 'Script placement', 'cookie-notice' ), array( $this, 'cn_script_placement' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
649 |
add_settings_field( 'cn_deactivation_delete', __( 'Deactivation', 'cookie-notice' ), array( $this, 'cn_deactivation_delete' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
650 |
|
@@ -882,7 +884,30 @@ class Cookie_Notice {
|
|
882 |
|
883 |
echo '
|
884 |
</select>
|
885 |
-
<p class="description">' . __( 'The amount of time that the cookie should be stored for.', 'cookie-notice' ) . '</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
886 |
</div>
|
887 |
</fieldset>';
|
888 |
}
|
@@ -1079,6 +1104,7 @@ class Cookie_Notice {
|
|
1079 |
|
1080 |
// time
|
1081 |
$input['time'] = sanitize_text_field( isset( $input['time'] ) && in_array( $input['time'], array_keys( $this->times ) ) ? $input['time'] : $this->defaults['general']['time'] );
|
|
|
1082 |
|
1083 |
// script placement
|
1084 |
$input['script_placement'] = sanitize_text_field( isset( $input['script_placement'] ) && in_array( $input['script_placement'], array_keys( $this->script_placements ) ) ? $input['script_placement'] : $this->defaults['general']['script_placement'] );
|
@@ -1375,16 +1401,7 @@ class Cookie_Notice {
|
|
1375 |
* Load scripts and styles - frontend.
|
1376 |
*/
|
1377 |
public function wp_enqueue_scripts() {
|
1378 |
-
|
1379 |
-
wp_enqueue_script(
|
1380 |
-
'cookie-notice-front', plugins_url( 'js/front' . ( ! ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.min' : '' ) . '.js', __FILE__ ), array(), $this->defaults['version'], isset( $this->options['general']['script_placement'] ) && $this->options['general']['script_placement'] === 'footer' ? true : false
|
1381 |
-
);
|
1382 |
-
|
1383 |
-
/*
|
1384 |
-
wp_enqueue_script(
|
1385 |
-
'cookie-notice-front', plugins_url( 'js/front.js', __FILE__ ), array(), $this->defaults['version'], isset( $this->options['general']['script_placement'] ) && $this->options['general']['script_placement'] === 'footer' ? true : false
|
1386 |
-
);
|
1387 |
-
*/
|
1388 |
|
1389 |
wp_localize_script(
|
1390 |
'cookie-notice-front',
|
@@ -1396,8 +1413,8 @@ class Cookie_Notice {
|
|
1396 |
'onScrollOffset' => $this->options['general']['on_scroll_offset'],
|
1397 |
'onClick' => $this->options['general']['on_click'],
|
1398 |
'cookieName' => 'cookie_notice_accepted',
|
1399 |
-
'cookieValue' => 'true',
|
1400 |
'cookieTime' => $this->times[$this->options['general']['time']][1],
|
|
|
1401 |
'cookiePath' => ( defined( 'COOKIEPATH' ) ? (string) COOKIEPATH : '' ),
|
1402 |
'cookieDomain' => ( defined( 'COOKIE_DOMAIN' ) ? (string) COOKIE_DOMAIN : '' ),
|
1403 |
'redirection' => $this->options['general']['redirection'],
|
@@ -1410,7 +1427,6 @@ class Cookie_Notice {
|
|
1410 |
);
|
1411 |
|
1412 |
wp_enqueue_style( 'cookie-notice-front', plugins_url( 'css/front' . ( ! ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.min' : '' ) . '.css', __FILE__ ) );
|
1413 |
-
// wp_enqueue_style( 'cookie-notice-front', plugins_url( 'css/front.css', __FILE__ ) );
|
1414 |
}
|
1415 |
|
1416 |
/**
|
@@ -1440,6 +1456,26 @@ class Cookie_Notice {
|
|
1440 |
echo $scripts;
|
1441 |
}
|
1442 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1443 |
}
|
1444 |
|
1445 |
/**
|
@@ -1449,11 +1485,10 @@ function Cookie_Notice() {
|
|
1449 |
static $instance;
|
1450 |
|
1451 |
// first call to instance() initializes the plugin
|
1452 |
-
if ( $instance === null || ! ($instance instanceof Cookie_Notice) )
|
1453 |
$instance = Cookie_Notice::instance();
|
1454 |
-
}
|
1455 |
|
1456 |
return $instance;
|
1457 |
}
|
1458 |
|
1459 |
-
$cookie_notice = Cookie_Notice();
|
2 |
/*
|
3 |
Plugin Name: Cookie Notice
|
4 |
Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and helps you comply with the EU GDPR cookie law and CCPA regulations.
|
5 |
+
Version: 1.2.51
|
6 |
Author: dFactory
|
7 |
Author URI: http://www.dfactory.eu/
|
8 |
Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
|
29 |
* Cookie Notice class.
|
30 |
*
|
31 |
* @class Cookie_Notice
|
32 |
+
* @version 1.2.51
|
33 |
*/
|
34 |
class Cookie_Notice {
|
35 |
|
56 |
'link_target' => '_blank',
|
57 |
'link_position' => 'banner',
|
58 |
'time' => 'month',
|
59 |
+
'time_rejected' => 'month',
|
60 |
'hide_effect' => 'fade',
|
61 |
'on_scroll' => false,
|
62 |
'on_scroll_offset' => 100,
|
79 |
'update_notice' => true,
|
80 |
'update_delay_date' => 0
|
81 |
),
|
82 |
+
'version' => '1.2.51'
|
83 |
);
|
84 |
private $positions = array();
|
85 |
private $styles = array();
|
645 |
add_settings_field( 'cn_redirection', __( 'Reloading', 'cookie-notice' ), array( $this, 'cn_redirection' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
646 |
add_settings_field( 'cn_on_scroll', __( 'On scroll', 'cookie-notice' ), array( $this, 'cn_on_scroll' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
647 |
add_settings_field( 'cn_on_click', __( 'On click', 'cookie-notice' ), array( $this, 'cn_on_click' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
648 |
+
add_settings_field( 'cn_time', __( 'Accepted expiry', 'cookie-notice' ), array( $this, 'cn_time' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
649 |
+
add_settings_field( 'cn_time_rejected', __( 'Rejected expiry', 'cookie-notice' ), array( $this, 'cn_time_rejected' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
650 |
add_settings_field( 'cn_script_placement', __( 'Script placement', 'cookie-notice' ), array( $this, 'cn_script_placement' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
651 |
add_settings_field( 'cn_deactivation_delete', __( 'Deactivation', 'cookie-notice' ), array( $this, 'cn_deactivation_delete' ), 'cookie_notice_options', 'cookie_notice_configuration' );
|
652 |
|
884 |
|
885 |
echo '
|
886 |
</select>
|
887 |
+
<p class="description">' . __( 'The amount of time that the cookie should be stored for when user accepts the notice.', 'cookie-notice' ) . '</p>
|
888 |
+
</div>
|
889 |
+
</fieldset>';
|
890 |
+
}
|
891 |
+
|
892 |
+
/**
|
893 |
+
* Expiration time option.
|
894 |
+
*/
|
895 |
+
public function cn_time_rejected() {
|
896 |
+
echo '
|
897 |
+
<fieldset>
|
898 |
+
<div id="cn_time_rejected">
|
899 |
+
<select name="cookie_notice_options[time_rejected]">';
|
900 |
+
|
901 |
+
foreach ( $this->times as $time => $arr ) {
|
902 |
+
$time = esc_attr( $time );
|
903 |
+
|
904 |
+
echo '
|
905 |
+
<option value="' . $time . '" ' . selected( $time, $this->options['general']['time_rejected'] ) . '>' . esc_html( $arr[0] ) . '</option>';
|
906 |
+
}
|
907 |
+
|
908 |
+
echo '
|
909 |
+
</select>
|
910 |
+
<p class="description">' . __( 'The amount of time that the cookie should be stored for when the user doesn\'t accept the notice.', 'cookie-notice' ) . '</p>
|
911 |
</div>
|
912 |
</fieldset>';
|
913 |
}
|
1104 |
|
1105 |
// time
|
1106 |
$input['time'] = sanitize_text_field( isset( $input['time'] ) && in_array( $input['time'], array_keys( $this->times ) ) ? $input['time'] : $this->defaults['general']['time'] );
|
1107 |
+
$input['time_rejected'] = sanitize_text_field( isset( $input['time_rejected'] ) && in_array( $input['time_rejected'], array_keys( $this->times ) ) ? $input['time_rejected'] : $this->defaults['general']['time_rejected'] );
|
1108 |
|
1109 |
// script placement
|
1110 |
$input['script_placement'] = sanitize_text_field( isset( $input['script_placement'] ) && in_array( $input['script_placement'], array_keys( $this->script_placements ) ) ? $input['script_placement'] : $this->defaults['general']['script_placement'] );
|
1401 |
* Load scripts and styles - frontend.
|
1402 |
*/
|
1403 |
public function wp_enqueue_scripts() {
|
1404 |
+
wp_enqueue_script( 'cookie-notice-front', plugins_url( 'js/front' . ( ! ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.min' : '' ) . '.js', __FILE__ ), array(), $this->defaults['version'], isset( $this->options['general']['script_placement'] ) && $this->options['general']['script_placement'] === 'footer' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1405 |
|
1406 |
wp_localize_script(
|
1407 |
'cookie-notice-front',
|
1413 |
'onScrollOffset' => $this->options['general']['on_scroll_offset'],
|
1414 |
'onClick' => $this->options['general']['on_click'],
|
1415 |
'cookieName' => 'cookie_notice_accepted',
|
|
|
1416 |
'cookieTime' => $this->times[$this->options['general']['time']][1],
|
1417 |
+
'cookieTimeRejected' => $this->times[$this->options['general']['time_rejected']][1],
|
1418 |
'cookiePath' => ( defined( 'COOKIEPATH' ) ? (string) COOKIEPATH : '' ),
|
1419 |
'cookieDomain' => ( defined( 'COOKIE_DOMAIN' ) ? (string) COOKIE_DOMAIN : '' ),
|
1420 |
'redirection' => $this->options['general']['redirection'],
|
1427 |
);
|
1428 |
|
1429 |
wp_enqueue_style( 'cookie-notice-front', plugins_url( 'css/front' . ( ! ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '.min' : '' ) . '.css', __FILE__ ) );
|
|
|
1430 |
}
|
1431 |
|
1432 |
/**
|
1456 |
echo $scripts;
|
1457 |
}
|
1458 |
}
|
1459 |
+
|
1460 |
+
/**
|
1461 |
+
* Indicate if current page is the Cookie Policy page
|
1462 |
+
*
|
1463 |
+
* @return bool
|
1464 |
+
*/
|
1465 |
+
public function is_cookie_policy_page() {
|
1466 |
+
$see_more = $this->options['general']['see_more_opt'];
|
1467 |
+
|
1468 |
+
if ( $see_more['link_type'] !== 'page' )
|
1469 |
+
return false;
|
1470 |
+
|
1471 |
+
$cp_id = $see_more['id'];
|
1472 |
+
$cp_slug = get_post_field( 'post_name', $cp_id );
|
1473 |
+
|
1474 |
+
$current_page = sanitize_post( $GLOBALS['wp_the_query']->get_queried_object() );
|
1475 |
+
|
1476 |
+
return $current_page->post_name === $cp_slug;
|
1477 |
+
}
|
1478 |
+
|
1479 |
}
|
1480 |
|
1481 |
/**
|
1485 |
static $instance;
|
1486 |
|
1487 |
// first call to instance() initializes the plugin
|
1488 |
+
if ( $instance === null || ! ( $instance instanceof Cookie_Notice ) )
|
1489 |
$instance = Cookie_Notice::instance();
|
|
|
1490 |
|
1491 |
return $instance;
|
1492 |
}
|
1493 |
|
1494 |
+
$cookie_notice = Cookie_Notice();
|
css/front.css
CHANGED
@@ -13,15 +13,15 @@
|
|
13 |
}
|
14 |
|
15 |
#cookie-notice.cn-animated {
|
16 |
-
-webkit-animation-duration: 0.5s;
|
17 |
-
animation-duration: 0.5s;
|
18 |
-webkit-animation-fill-mode: both;
|
19 |
animation-fill-mode: both;
|
20 |
}
|
21 |
|
22 |
#cookie-notice.cn-animated.cn-effect-none {
|
23 |
-
-webkit-animation-duration:
|
24 |
-
animation-duration:
|
25 |
}
|
26 |
|
27 |
#cookie-notice .cookie-notice-container {
|
13 |
}
|
14 |
|
15 |
#cookie-notice.cn-animated {
|
16 |
+
-webkit-animation-duration: 0.5s !important;
|
17 |
+
animation-duration: 0.5s !important;
|
18 |
-webkit-animation-fill-mode: both;
|
19 |
animation-fill-mode: both;
|
20 |
}
|
21 |
|
22 |
#cookie-notice.cn-animated.cn-effect-none {
|
23 |
+
-webkit-animation-duration: 0.001s !important;
|
24 |
+
animation-duration: 0.001s !important;
|
25 |
}
|
26 |
|
27 |
#cookie-notice .cookie-notice-container {
|
css/front.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#cookie-notice{position:fixed;min-width:100%;height:auto;z-index:100000;font-size:13px;line-height:20px;left:0;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cookie-notice.cn-animated{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}#cookie-notice.cn-animated.cn-effect-none{-webkit-animation-duration
|
1 |
+
#cookie-notice{position:fixed;min-width:100%;height:auto;z-index:100000;font-size:13px;line-height:20px;left:0;text-align:center;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#cookie-notice.cn-animated{-webkit-animation-duration:.5s!important;animation-duration:.5s!important;-webkit-animation-fill-mode:both;animation-fill-mode:both}#cookie-notice.cn-animated.cn-effect-none{-webkit-animation-duration:.001s!important;animation-duration:.001s!important}#cookie-notice .cookie-notice-container{display:block}#cookie-notice.cookie-notice-hidden .cookie-notice-container{display:none}#cookie-notice .cookie-revoke-container{display:block}#cookie-notice.cookie-revoke-hidden .cookie-revoke-container{display:none}.cn-position-top{top:0}.cn-position-bottom{bottom:0}.cookie-notice-container{padding:15px;text-align:center;width:100%;z-index:2}.cookie-revoke-container{padding:15px;width:100%;z-index:1}.cn-close-icon{position:absolute;right:15px;top:50%;margin-top:-7.5px;width:15px;height:15px;opacity:.5}.cn-close-icon:hover{opacity:1}.cn-close-icon:before,.cn-close-icon:after{position:absolute;content:' ';height:15px;width:2px;background-color:#fff}.cn-close-icon:before{transform:rotate(45deg)}.cn-close-icon:after{transform:rotate(-45deg)}#cookie-notice .cn-revoke-cookie{margin:0}.cn-button.wp-default,.cn-button.wp-default:hover,.cn-button.bootstrap,.cn-button.bootstrap:hover{box-shadow:none;text-decoration:none}#cookie-notice .cn-button{margin-left:10px}.cn-button.wp-default{font-family:sans-serif;line-height:18px;padding:2px 12px;background:linear-gradient(to bottom,#FEFEFE,#F4F4F4) repeat scroll 0 0 #F3F3F3;border-color:#BBB;color:#333;text-shadow:0 1px 0 #FFF;border-radius:3px 3px 3px 3px;border-style:solid;border-width:1px;cursor:pointer;display:inline-block;font-size:12px;font-style:normal;text-decoration:none;white-space:nowrap;outline:none}.cn-button.wp-default:hover{background:linear-gradient(to bottom,#FFF,#F3F3F3) repeat scroll 0 0 #F3F3F3;border-color:#999;color:#222}.cn-button.bootstrap{font-family:sans-serif;display:inline-block;*display:inline;padding:4px 12px;margin-right:.3em;margin-bottom:0;*margin-left:.3em;line-height:20px;color:#333;text-align:center;text-shadow:0 1px 1px rgba(255,255,255,.75);font-style:normal;vertical-align:middle;cursor:pointer;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;*background-color:#04c;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-style:solid;border-width:1px;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(255,255,255,.2) inset,0 1px 2px rgba(0,0,0,.05);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);padding:2px 10px;font-size:12px;text-decoration:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;outline:none}.cn-button.bootstrap:hover{color:#fff;background-color:#04c;*background-color:#003bb3;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}#cookie-notice.cookie-notice-visible.cn-effect-none,#cookie-notice.cookie-revoke-visible.cn-effect-none{-webkit-animation-name:fadeIn;animation-name:fadeIn}#cookie-notice.cn-effect-none{-webkit-animation-name:fadeOut;animation-name:fadeOut}#cookie-notice.cookie-notice-visible.cn-effect-fade,#cookie-notice.cookie-revoke-visible.cn-effect-fade{-webkit-animation-name:fadeIn;animation-name:fadeIn}#cookie-notice.cn-effect-fade{-webkit-animation-name:fadeOut;animation-name:fadeOut}#cookie-notice.cookie-notice-visible.cn-effect-slide,#cookie-notice.cookie-revoke-visible.cn-effect-slide{-webkit-animation-name:slideInUp;animation-name:slideInUp}#cookie-notice.cn-effect-slide{-webkit-animation-name:slideOutDown;animation-name:slideOutDown}#cookie-notice.cookie-notice-visible.cn-position-top.cn-effect-slide,#cookie-notice.cookie-revoke-visible.cn-position-top.cn-effect-slide{-webkit-animation-name:slideInDown;animation-name:slideInDown}#cookie-notice.cn-position-top.cn-effect-slide{-webkit-animation-name:slideOutUp;animation-name:slideOutUp}@media all and (max-width: 900px){.cookie-notice-container #cn-notice-text{display:block;margin-bottom:5px}#cookie-notice .cn-button{margin-left:5px;margin-right:5px}}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@-webkit-keyframes fadeOut{from{opacity:1}to{opacity:0}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}@-webkit-keyframes slideInUp{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInUp{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@-webkit-keyframes slideOutDown{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes slideOutDown{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes slideInDown{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@keyframes slideInDown{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);visibility:visible}to{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}@-webkit-keyframes slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes slideOutUp{from{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}to{visibility:hidden;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}
|
js/front.js
CHANGED
@@ -6,8 +6,11 @@
|
|
6 |
|
7 |
function CustomEvent( event, params ) {
|
8 |
params = params || { bubbles: false, cancelable: false, detail: undefined };
|
|
|
9 |
var evt = document.createEvent( 'CustomEvent' );
|
|
|
10 |
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
|
|
|
11 |
return evt;
|
12 |
}
|
13 |
|
@@ -21,6 +24,7 @@
|
|
21 |
var regExp = function ( name ) {
|
22 |
return new RegExp( '(^| )' + name + '( |$)' );
|
23 |
};
|
|
|
24 |
var forEach = function ( list, fn, scope ) {
|
25 |
for ( var i = 0; i < list.length; i++ ) {
|
26 |
fn.call( scope, list[i] );
|
@@ -67,24 +71,24 @@
|
|
67 |
} );
|
68 |
}
|
69 |
|
70 |
-
if ( window.DOMTokenList && DOMTokenList.prototype.replace == null )
|
71 |
DOMTokenList.prototype.replace = ClassList.prototype.replace;
|
72 |
-
}
|
73 |
} )();
|
74 |
|
75 |
// cookieNotice
|
76 |
-
( function( window, document, undefined ) {
|
77 |
|
78 |
var cookieNotice = new function () {
|
79 |
// cookie status
|
80 |
this.cookiesAccepted = null;
|
|
|
81 |
// notice container
|
82 |
this.noticeContainer = null;
|
83 |
|
84 |
// set cookie value
|
85 |
this.setStatus = function ( cookieValue ) {
|
86 |
var _this = this;
|
87 |
-
|
88 |
// remove listening to scroll event
|
89 |
if ( cnArgs.onScroll === 'yes' )
|
90 |
window.removeEventListener( 'scroll', this.handleScroll );
|
@@ -92,17 +96,20 @@
|
|
92 |
var date = new Date(),
|
93 |
laterDate = new Date();
|
94 |
|
95 |
-
// set expiry time in seconds
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
100 |
|
101 |
// set cookie
|
102 |
-
document.cookie = cnArgs.cookieName + '=' + cookieValue + ';expires=' + laterDate.toUTCString() + ';' + ( cnArgs.cookieDomain
|
103 |
|
104 |
// update global status
|
105 |
-
this.cookiesAccepted = cookieValue === 'true'
|
106 |
|
107 |
// trigger custom event
|
108 |
var event = new CustomEvent(
|
@@ -173,22 +180,20 @@
|
|
173 |
};
|
174 |
|
175 |
// display cookie notice
|
176 |
-
this.showCookieNotice = function() {
|
177 |
var _this = this;
|
178 |
-
|
179 |
// trigger custom event
|
180 |
var event = new CustomEvent(
|
181 |
'showCookieNotice',
|
182 |
{
|
183 |
detail: {
|
184 |
-
data: cnArgs
|
185 |
}
|
186 |
}
|
187 |
);
|
188 |
|
189 |
document.dispatchEvent( event );
|
190 |
-
|
191 |
-
// console.log( 'show' );
|
192 |
|
193 |
this.noticeContainer.classList.remove( 'cookie-notice-hidden' );
|
194 |
this.noticeContainer.classList.add( 'cn-animated' );
|
@@ -198,31 +203,29 @@
|
|
198 |
this.noticeContainer.addEventListener( 'animationend', function handler() {
|
199 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
200 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
201 |
-
} );
|
202 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
203 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
204 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
205 |
-
} );
|
206 |
};
|
207 |
|
208 |
// hide cookie notice
|
209 |
this.hideCookieNotice = function () {
|
210 |
var _this = this;
|
211 |
-
|
212 |
// trigger custom event
|
213 |
var event = new CustomEvent(
|
214 |
'hideCookieNotice',
|
215 |
{
|
216 |
detail: {
|
217 |
-
data: cnArgs
|
218 |
}
|
219 |
}
|
220 |
);
|
221 |
|
222 |
document.dispatchEvent( event );
|
223 |
|
224 |
-
// console.log( 'hide' );
|
225 |
-
|
226 |
this.noticeContainer.classList.add( 'cn-animated' );
|
227 |
this.noticeContainer.classList.remove( 'cookie-notice-visible' );
|
228 |
|
@@ -231,7 +234,7 @@
|
|
231 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
232 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
233 |
_this.noticeContainer.classList.add( 'cookie-notice-hidden' );
|
234 |
-
} );
|
235 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
236 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
237 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
@@ -242,20 +245,18 @@
|
|
242 |
// display revoke notice
|
243 |
this.showRevokeNotice = function () {
|
244 |
var _this = this;
|
245 |
-
|
246 |
// trigger custom event
|
247 |
var event = new CustomEvent(
|
248 |
'showRevokeNotice',
|
249 |
{
|
250 |
detail: {
|
251 |
-
data: cnArgs
|
252 |
}
|
253 |
}
|
254 |
);
|
255 |
|
256 |
document.dispatchEvent( event );
|
257 |
-
|
258 |
-
// console.log( 'show revoke' );
|
259 |
|
260 |
this.noticeContainer.classList.remove( 'cookie-revoke-hidden' );
|
261 |
this.noticeContainer.classList.add( 'cn-animated' );
|
@@ -265,7 +266,7 @@
|
|
265 |
this.noticeContainer.addEventListener( 'animationend', function handler() {
|
266 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
267 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
268 |
-
} );
|
269 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
270 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
271 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
@@ -275,35 +276,33 @@
|
|
275 |
// hide revoke notice
|
276 |
this.hideRevokeNotice = function () {
|
277 |
var _this = this;
|
278 |
-
|
279 |
// trigger custom event
|
280 |
var event = new CustomEvent(
|
281 |
'hideRevokeNotice',
|
282 |
{
|
283 |
detail: {
|
284 |
-
data: cnArgs
|
285 |
}
|
286 |
}
|
287 |
);
|
288 |
|
289 |
document.dispatchEvent( event );
|
290 |
-
|
291 |
-
// console.log( 'hide revoke' );
|
292 |
|
293 |
this.noticeContainer.classList.add( 'cn-animated' );
|
294 |
-
this.noticeContainer.classList.remove( 'cookie-revoke-visible'
|
295 |
|
296 |
// detect animation
|
297 |
this.noticeContainer.addEventListener( 'animationend', function handler() {
|
298 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
299 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
300 |
_this.noticeContainer.classList.add( 'cookie-revoke-hidden' );
|
301 |
-
} );
|
302 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
303 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
304 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
305 |
_this.noticeContainer.classList.add( 'cookie-revoke-hidden' );
|
306 |
-
} );
|
307 |
};
|
308 |
|
309 |
// change body classes
|
@@ -323,23 +322,17 @@
|
|
323 |
|
324 |
// handle mouse scrolling
|
325 |
this.handleScroll = function () {
|
326 |
-
var scrollTop = window.pageYOffset || (document.documentElement || document.body.parentNode || document.body).scrollTop
|
327 |
|
328 |
-
|
329 |
-
|
330 |
this.setStatus( 'accept' );
|
331 |
-
|
332 |
-
// console.log( 'scroll end' );
|
333 |
-
} else {
|
334 |
-
// console.log( 'scrolling' );
|
335 |
-
}
|
336 |
};
|
337 |
-
|
338 |
// cross browser compatible closest function
|
339 |
this.getClosest = function ( elem, selector ) {
|
340 |
-
|
341 |
// element.matches() polyfill
|
342 |
-
if ( !
|
343 |
Element.prototype.matches =
|
344 |
Element.prototype.matchesSelector ||
|
345 |
Element.prototype.mozMatchesSelector ||
|
@@ -360,8 +353,8 @@
|
|
360 |
if ( elem.matches( selector ) )
|
361 |
return elem;
|
362 |
}
|
363 |
-
return null;
|
364 |
|
|
|
365 |
};
|
366 |
|
367 |
// initialize
|
@@ -378,19 +371,19 @@
|
|
378 |
this.noticeContainer.classList.add( 'cn-effect-' + cnArgs.hideEffect );
|
379 |
|
380 |
/*
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
|
395 |
// check cookies status
|
396 |
if ( this.cookiesAccepted === null ) {
|
@@ -399,19 +392,15 @@
|
|
399 |
window.addEventListener( 'scroll', function ( e ) {
|
400 |
_this.handleScroll();
|
401 |
} );
|
402 |
-
|
403 |
// handle on click
|
404 |
if ( cnArgs.onClick === 'yes' )
|
405 |
window.addEventListener( 'click', function ( e ) {
|
406 |
-
// e.preventDefault();
|
407 |
-
|
408 |
var outerContainer = _this.getClosest( e.target, '#cookie-notice' );
|
409 |
-
|
410 |
// accept notice if clicked element is not inside the container
|
411 |
-
if ( outerContainer === null )
|
412 |
_this.setStatus( 'accept' );
|
413 |
-
}
|
414 |
-
|
415 |
}, true );
|
416 |
|
417 |
this.setBodyClass( [ 'cookies-not-set' ] );
|
@@ -422,9 +411,8 @@
|
|
422 |
this.setBodyClass( [ 'cookies-set', this.cookiesAccepted === true ? 'cookies-accepted' : 'cookies-refused' ] );
|
423 |
|
424 |
// show revoke notice if enabled
|
425 |
-
if ( cnArgs.revoke_cookies == 1 && cnArgs.revoke_cookies_opt === 'automatic' )
|
426 |
this.showRevokeNotice();
|
427 |
-
}
|
428 |
}
|
429 |
|
430 |
// handle cookie buttons click
|
@@ -451,12 +439,12 @@
|
|
451 |
_this.noticeContainer.addEventListener( 'animationend', function handler() {
|
452 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
453 |
_this.showCookieNotice();
|
454 |
-
} );
|
455 |
_this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
456 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
457 |
_this.showCookieNotice();
|
458 |
-
} );
|
459 |
-
|
460 |
} else if ( _this.noticeContainer.classList.contains( 'cookie-notice-hidden' ) && _this.noticeContainer.classList.contains( 'cookie-revoke-hidden' ) ) {
|
461 |
_this.showCookieNotice();
|
462 |
}
|
6 |
|
7 |
function CustomEvent( event, params ) {
|
8 |
params = params || { bubbles: false, cancelable: false, detail: undefined };
|
9 |
+
|
10 |
var evt = document.createEvent( 'CustomEvent' );
|
11 |
+
|
12 |
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
|
13 |
+
|
14 |
return evt;
|
15 |
}
|
16 |
|
24 |
var regExp = function ( name ) {
|
25 |
return new RegExp( '(^| )' + name + '( |$)' );
|
26 |
};
|
27 |
+
|
28 |
var forEach = function ( list, fn, scope ) {
|
29 |
for ( var i = 0; i < list.length; i++ ) {
|
30 |
fn.call( scope, list[i] );
|
71 |
} );
|
72 |
}
|
73 |
|
74 |
+
if ( window.DOMTokenList && DOMTokenList.prototype.replace == null )
|
75 |
DOMTokenList.prototype.replace = ClassList.prototype.replace;
|
|
|
76 |
} )();
|
77 |
|
78 |
// cookieNotice
|
79 |
+
( function ( window, document, undefined ) {
|
80 |
|
81 |
var cookieNotice = new function () {
|
82 |
// cookie status
|
83 |
this.cookiesAccepted = null;
|
84 |
+
|
85 |
// notice container
|
86 |
this.noticeContainer = null;
|
87 |
|
88 |
// set cookie value
|
89 |
this.setStatus = function ( cookieValue ) {
|
90 |
var _this = this;
|
91 |
+
|
92 |
// remove listening to scroll event
|
93 |
if ( cnArgs.onScroll === 'yes' )
|
94 |
window.removeEventListener( 'scroll', this.handleScroll );
|
96 |
var date = new Date(),
|
97 |
laterDate = new Date();
|
98 |
|
99 |
+
// set cookie type and expiry time in seconds
|
100 |
+
if ( cookieValue === 'accept' ) {
|
101 |
+
cookieValue = 'true';
|
102 |
+
laterDate.setTime( parseInt( date.getTime() ) + parseInt( cnArgs.cookieTime ) * 1000 );
|
103 |
+
} else {
|
104 |
+
cookieValue = 'false';
|
105 |
+
laterDate.setTime( parseInt( date.getTime() ) + parseInt( cnArgs.cookieTimeRejected ) * 1000 );
|
106 |
+
}
|
107 |
|
108 |
// set cookie
|
109 |
+
document.cookie = cnArgs.cookieName + '=' + cookieValue + ';expires=' + laterDate.toUTCString() + ';' + ( !!cnArgs.cookieDomain ? 'domain=' + cnArgs.cookieDomain + ';' : '' ) + ( !!cnArgs.cookiePath ? 'path=' + cnArgs.cookiePath + ';' : '' ) + ( cnArgs.secure === '1' ? 'secure;' : '' );
|
110 |
|
111 |
// update global status
|
112 |
+
this.cookiesAccepted = cookieValue === 'true';
|
113 |
|
114 |
// trigger custom event
|
115 |
var event = new CustomEvent(
|
180 |
};
|
181 |
|
182 |
// display cookie notice
|
183 |
+
this.showCookieNotice = function () {
|
184 |
var _this = this;
|
185 |
+
|
186 |
// trigger custom event
|
187 |
var event = new CustomEvent(
|
188 |
'showCookieNotice',
|
189 |
{
|
190 |
detail: {
|
191 |
+
data: cnArgs
|
192 |
}
|
193 |
}
|
194 |
);
|
195 |
|
196 |
document.dispatchEvent( event );
|
|
|
|
|
197 |
|
198 |
this.noticeContainer.classList.remove( 'cookie-notice-hidden' );
|
199 |
this.noticeContainer.classList.add( 'cn-animated' );
|
203 |
this.noticeContainer.addEventListener( 'animationend', function handler() {
|
204 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
205 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
206 |
+
} );
|
207 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
208 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
209 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
210 |
+
} );
|
211 |
};
|
212 |
|
213 |
// hide cookie notice
|
214 |
this.hideCookieNotice = function () {
|
215 |
var _this = this;
|
216 |
+
|
217 |
// trigger custom event
|
218 |
var event = new CustomEvent(
|
219 |
'hideCookieNotice',
|
220 |
{
|
221 |
detail: {
|
222 |
+
data: cnArgs
|
223 |
}
|
224 |
}
|
225 |
);
|
226 |
|
227 |
document.dispatchEvent( event );
|
228 |
|
|
|
|
|
229 |
this.noticeContainer.classList.add( 'cn-animated' );
|
230 |
this.noticeContainer.classList.remove( 'cookie-notice-visible' );
|
231 |
|
234 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
235 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
236 |
_this.noticeContainer.classList.add( 'cookie-notice-hidden' );
|
237 |
+
} );
|
238 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
239 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
240 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
245 |
// display revoke notice
|
246 |
this.showRevokeNotice = function () {
|
247 |
var _this = this;
|
248 |
+
|
249 |
// trigger custom event
|
250 |
var event = new CustomEvent(
|
251 |
'showRevokeNotice',
|
252 |
{
|
253 |
detail: {
|
254 |
+
data: cnArgs
|
255 |
}
|
256 |
}
|
257 |
);
|
258 |
|
259 |
document.dispatchEvent( event );
|
|
|
|
|
260 |
|
261 |
this.noticeContainer.classList.remove( 'cookie-revoke-hidden' );
|
262 |
this.noticeContainer.classList.add( 'cn-animated' );
|
266 |
this.noticeContainer.addEventListener( 'animationend', function handler() {
|
267 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
268 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
269 |
+
} );
|
270 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
271 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
272 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
276 |
// hide revoke notice
|
277 |
this.hideRevokeNotice = function () {
|
278 |
var _this = this;
|
279 |
+
|
280 |
// trigger custom event
|
281 |
var event = new CustomEvent(
|
282 |
'hideRevokeNotice',
|
283 |
{
|
284 |
detail: {
|
285 |
+
data: cnArgs
|
286 |
}
|
287 |
}
|
288 |
);
|
289 |
|
290 |
document.dispatchEvent( event );
|
|
|
|
|
291 |
|
292 |
this.noticeContainer.classList.add( 'cn-animated' );
|
293 |
+
this.noticeContainer.classList.remove( 'cookie-revoke-visible' );
|
294 |
|
295 |
// detect animation
|
296 |
this.noticeContainer.addEventListener( 'animationend', function handler() {
|
297 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
298 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
299 |
_this.noticeContainer.classList.add( 'cookie-revoke-hidden' );
|
300 |
+
} );
|
301 |
this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
302 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
303 |
_this.noticeContainer.classList.remove( 'cn-animated' );
|
304 |
_this.noticeContainer.classList.add( 'cookie-revoke-hidden' );
|
305 |
+
} );
|
306 |
};
|
307 |
|
308 |
// change body classes
|
322 |
|
323 |
// handle mouse scrolling
|
324 |
this.handleScroll = function () {
|
325 |
+
var scrollTop = window.pageYOffset || ( document.documentElement || document.body.parentNode || document.body ).scrollTop
|
326 |
|
327 |
+
// accept cookie
|
328 |
+
if ( scrollTop > parseInt( cnArgs.onScrollOffset ) )
|
329 |
this.setStatus( 'accept' );
|
|
|
|
|
|
|
|
|
|
|
330 |
};
|
331 |
+
|
332 |
// cross browser compatible closest function
|
333 |
this.getClosest = function ( elem, selector ) {
|
|
|
334 |
// element.matches() polyfill
|
335 |
+
if ( !Element.prototype.matches ) {
|
336 |
Element.prototype.matches =
|
337 |
Element.prototype.matchesSelector ||
|
338 |
Element.prototype.mozMatchesSelector ||
|
353 |
if ( elem.matches( selector ) )
|
354 |
return elem;
|
355 |
}
|
|
|
356 |
|
357 |
+
return null;
|
358 |
};
|
359 |
|
360 |
// initialize
|
371 |
this.noticeContainer.classList.add( 'cn-effect-' + cnArgs.hideEffect );
|
372 |
|
373 |
/*
|
374 |
+
// add refuse class
|
375 |
+
this.noticeContainer.classList.add( cnArgs.refuse === 'yes' ? 'cn-refuse-active' : 'cn-refuse-inactive' );
|
376 |
+
|
377 |
+
// add revoke class
|
378 |
+
if ( cnArgs.revoke_cookies === '1' ) {
|
379 |
+
this.noticeContainer.classList.add( 'cn-revoke-active' );
|
380 |
+
|
381 |
+
// add revoke type class (manual or automatic)
|
382 |
+
this.noticeContainer.classList.add( 'cn-revoke-' + cnArgs.revoke_cookies_opt );
|
383 |
+
} else {
|
384 |
+
this.noticeContainer.classList.add( 'cn-revoke-inactive' );
|
385 |
+
}
|
386 |
+
*/
|
387 |
|
388 |
// check cookies status
|
389 |
if ( this.cookiesAccepted === null ) {
|
392 |
window.addEventListener( 'scroll', function ( e ) {
|
393 |
_this.handleScroll();
|
394 |
} );
|
395 |
+
|
396 |
// handle on click
|
397 |
if ( cnArgs.onClick === 'yes' )
|
398 |
window.addEventListener( 'click', function ( e ) {
|
|
|
|
|
399 |
var outerContainer = _this.getClosest( e.target, '#cookie-notice' );
|
400 |
+
|
401 |
// accept notice if clicked element is not inside the container
|
402 |
+
if ( outerContainer === null )
|
403 |
_this.setStatus( 'accept' );
|
|
|
|
|
404 |
}, true );
|
405 |
|
406 |
this.setBodyClass( [ 'cookies-not-set' ] );
|
411 |
this.setBodyClass( [ 'cookies-set', this.cookiesAccepted === true ? 'cookies-accepted' : 'cookies-refused' ] );
|
412 |
|
413 |
// show revoke notice if enabled
|
414 |
+
if ( cnArgs.revoke_cookies == 1 && cnArgs.revoke_cookies_opt === 'automatic' )
|
415 |
this.showRevokeNotice();
|
|
|
416 |
}
|
417 |
|
418 |
// handle cookie buttons click
|
439 |
_this.noticeContainer.addEventListener( 'animationend', function handler() {
|
440 |
_this.noticeContainer.removeEventListener( 'animationend', handler );
|
441 |
_this.showCookieNotice();
|
442 |
+
} );
|
443 |
_this.noticeContainer.addEventListener( 'webkitAnimationEnd', function handler() {
|
444 |
_this.noticeContainer.removeEventListener( 'webkitAnimationEnd', handler );
|
445 |
_this.showCookieNotice();
|
446 |
+
} );
|
447 |
+
// show cookie notice
|
448 |
} else if ( _this.noticeContainer.classList.contains( 'cookie-notice-hidden' ) && _this.noticeContainer.classList.contains( 'cookie-revoke-hidden' ) ) {
|
449 |
_this.showCookieNotice();
|
450 |
}
|
js/front.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){
|
1 |
+
!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),function(){function t(e){return new RegExp("(^| )"+e+"( |$)")}function e(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])}function n(e){this.element=e}n.prototype={add:function(){e(arguments,function(e){this.contains(e)||(this.element.className+=0<this.element.className.length?" "+e:e)},this)},remove:function(){e(arguments,function(e){this.element.className=this.element.className.replace(t(e),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(e){return t(e).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(a,r){var e=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(e){var t=this;"yes"===cnArgs.onScroll&&a.removeEventListener("scroll",this.handleScroll);var n=new Date,i=new Date;"accept"===e?(e="true",i.setTime(parseInt(n.getTime())+1e3*parseInt(cnArgs.cookieTime))):(e="false",i.setTime(parseInt(n.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),r.cookie=cnArgs.cookieName+"="+e+";expires="+i.toUTCString()+";"+(cnArgs.cookieDomain?"domain="+cnArgs.cookieDomain+";":"")+(cnArgs.cookiePath?"path="+cnArgs.cookiePath+";":"")+("1"===cnArgs.secure?"secure;":""),this.cookiesAccepted="true"===e;var o=new CustomEvent("setCookieNotice",{detail:{value:e,time:n,expires:i,data:cnArgs}});if(r.dispatchEvent(o),this.setBodyClass(["cookies-set","true"===e?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revoke_cookies_opt&&(this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.removeEventListener("animationend",e),t.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.removeEventListener("webkitAnimationEnd",e),t.showRevokeNotice()})),"1"===cnArgs.redirection&&("true"===e&&null===this.cookiesAccepted||e!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var s=a.location.protocol+"//",c=a.location.host+"/"+a.location.pathname;"1"===cnArgs.cache?(s=s+c.replace("//","/")+(""===a.location.search?"?":a.location.search+"&")+"cn-reloaded=1"+a.location.hash,a.location.href=s):(s=s+c.replace("//","/")+a.location.search+a.location.hash,a.location.reload(!0))}else;},this.getStatus=function(e){var t=("; "+r.cookie).split("; cookie_notice_accepted=");if(2!==t.length)return null;var n=t.pop().split(";").shift();return e?"true"===n:n},this.showCookieNotice=function(){var t=this,e=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});r.dispatchEvent(e),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.removeEventListener("animationend",e),t.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.removeEventListener("webkitAnimationEnd",e),t.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var t=this,e=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});r.dispatchEvent(e),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.removeEventListener("animationend",e),t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.removeEventListener("webkitAnimationEnd",e),t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var t=this,e=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});r.dispatchEvent(e),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.removeEventListener("animationend",e),t.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.removeEventListener("webkitAnimationEnd",e),t.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var t=this,e=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});r.dispatchEvent(e),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.removeEventListener("animationend",e),t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.removeEventListener("webkitAnimationEnd",e),t.noticeContainer.classList.remove("cn-animated"),t.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){r.body.classList.remove("cookies-revoke"),r.body.classList.remove("cookies-accepted"),r.body.classList.remove("cookies-refused"),r.body.classList.remove("cookies-set"),r.body.classList.remove("cookies-not-set");for(var t=0;t<e.length;t++)r.body.classList.add(e[t])},this.handleScroll=function(){(a.pageYOffset||(r.documentElement||r.body.parentNode||r.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;0<=--n&&t.item(n)!==this;);return-1<n});e&&e!==r;e=e.parentNode)if(e.matches(t))return e;return null},this.init=function(){var t=this;this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=r.getElementById("cookie-notice");var e=r.getElementsByClassName("cn-set-cookie"),n=r.getElementsByClassName("cn-revoke-cookie");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?("yes"===cnArgs.onScroll&&a.addEventListener("scroll",function(e){t.handleScroll()}),"yes"===cnArgs.onClick&&a.addEventListener("click",function(e){null===t.getClosest(e.target,"#cookie-notice")&&t.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),1==cnArgs.revoke_cookies&&"automatic"===cnArgs.revoke_cookies_opt&&this.showRevokeNotice());for(var i=0;i<e.length;i++)e[i].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.setStatus(this.dataset.cookieSet)});for(i=0;i<n.length;i++)n[i].addEventListener("click",function(e){e.preventDefault(),t.noticeContainer.classList.contains("cookie-revoke-visible")?(t.hideRevokeNotice(),t.noticeContainer.addEventListener("animationend",function e(){t.noticeContainer.removeEventListener("animationend",e),t.showCookieNotice()}),t.noticeContainer.addEventListener("webkitAnimationEnd",function e(){t.noticeContainer.removeEventListener("webkitAnimationEnd",e),t.showCookieNotice()})):t.noticeContainer.classList.contains("cookie-notice-hidden")&&t.noticeContainer.classList.contains("cookie-revoke-hidden")&&t.showCookieNotice()})}};a.addEventListener("load",function(){e.init()},!1)}(window,document);
|
languages/cookie-notice.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Cookie Notice\n"
|
5 |
-
"POT-Creation-Date:
|
6 |
"PO-Revision-Date: 2015-03-24 11:30+0100\n"
|
7 |
"Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
|
8 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
@@ -10,392 +10,408 @@ msgstr ""
|
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 2.
|
14 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;_n\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
-
#: ../cookie-notice.php:
|
20 |
msgid "Top"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: ../cookie-notice.php:
|
24 |
msgid "Bottom"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: ../cookie-notice.php:
|
28 |
msgid "None"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../cookie-notice.php:
|
32 |
msgid "Light"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../cookie-notice.php:
|
36 |
msgid "Dark"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../cookie-notice.php:
|
40 |
msgid "Automatic"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../cookie-notice.php:
|
44 |
msgid "Manual"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../cookie-notice.php:
|
48 |
msgid "Page link"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../cookie-notice.php:
|
52 |
msgid "Custom link"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../cookie-notice.php:
|
56 |
msgid "Banner"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../cookie-notice.php:
|
60 |
msgid "Message"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../cookie-notice.php:
|
64 |
msgid "Text color"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../cookie-notice.php:
|
68 |
msgid "Bar color"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../cookie-notice.php:
|
72 |
msgid "An hour"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../cookie-notice.php:
|
76 |
msgid "1 day"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../cookie-notice.php:
|
80 |
msgid "1 week"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: ../cookie-notice.php:
|
84 |
msgid "1 month"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../cookie-notice.php:
|
88 |
msgid "3 months"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: ../cookie-notice.php:
|
92 |
msgid "6 months"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: ../cookie-notice.php:
|
96 |
msgid "1 year"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: ../cookie-notice.php:
|
100 |
msgid "infinity"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: ../cookie-notice.php:
|
104 |
msgid "Fade"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: ../cookie-notice.php:
|
108 |
msgid "Slide"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: ../cookie-notice.php:
|
112 |
msgid "Header"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: ../cookie-notice.php:
|
116 |
msgid "Footer"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: ../cookie-notice.php:
|
120 |
msgid "We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it."
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: ../cookie-notice.php:
|
124 |
msgid "Ok"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: ../cookie-notice.php:
|
128 |
msgid "No"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: ../cookie-notice.php:
|
132 |
msgid "You can revoke your consent any time using the Revoke consent button."
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: ../cookie-notice.php:
|
136 |
msgid "Revoke consent"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: ../cookie-notice.php:
|
140 |
msgid "Privacy policy"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: ../cookie-notice.php:
|
144 |
#, php-format
|
145 |
msgid "Hey, you've been using <strong>Cookie Notice</strong> for more than %s."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: ../cookie-notice.php:
|
149 |
msgid "Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation."
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: ../cookie-notice.php:
|
153 |
msgid "Your help is much appreciated. Thank you very much"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: ../cookie-notice.php:
|
157 |
#, php-format
|
158 |
msgid "founder of <a href=\"%s\" target=\"_blank\">dFactory</a> plugins."
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: ../cookie-notice.php:
|
162 |
#, php-format
|
163 |
msgid "<a href=\"%s\" class=\"cn-dismissible-notice\" target=\"_blank\" rel=\"noopener\">Ok, you deserve it</a><br /><a href=\"javascript:void(0);\" class=\"cn-dismissible-notice cn-delay-notice\" rel=\"noopener\">Nope, maybe later</a><br /><a href=\"javascript:void(0);\" class=\"cn-dismissible-notice\" rel=\"noopener\">I already did</a>"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: ../cookie-notice.php:
|
167 |
-
#: ../cookie-notice.php:
|
168 |
msgid "Cookie Notice"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: ../cookie-notice.php:
|
172 |
msgid "Need support?"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: ../cookie-notice.php:
|
176 |
#, php-format
|
177 |
msgid "If you are having problems with this plugin, please browse it's <a href=\"%s\" target=\"_blank\">Documentation</a> or talk about them in the <a href=\"%s\" target=\"_blank\">Support forum</a>"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: ../cookie-notice.php:
|
181 |
msgid "Do you like this plugin?"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: ../cookie-notice.php:
|
185 |
#, php-format
|
186 |
msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: ../cookie-notice.php:
|
190 |
#, php-format
|
191 |
msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: ../cookie-notice.php:
|
195 |
#, php-format
|
196 |
msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: ../cookie-notice.php:
|
200 |
msgid "Reset to defaults"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: ../cookie-notice.php:
|
204 |
msgid "Configuration"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: ../cookie-notice.php:
|
208 |
msgid "Button text"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: ../cookie-notice.php:
|
212 |
msgid "Refuse consent"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#: ../cookie-notice.php:
|
216 |
msgid "Script blocking"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: ../cookie-notice.php:
|
220 |
msgid "Reloading"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: ../cookie-notice.php:
|
224 |
msgid "On scroll"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: ../cookie-notice.php:
|
228 |
-
msgid "
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
msgid "Script placement"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: ../cookie-notice.php:
|
236 |
msgid "Deactivation"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: ../cookie-notice.php:
|
240 |
msgid "Design"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: ../cookie-notice.php:
|
244 |
msgid "Position"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: ../cookie-notice.php:
|
248 |
msgid "Animation"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: ../cookie-notice.php:
|
252 |
msgid "Button style"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: ../cookie-notice.php:
|
256 |
msgid "Button class"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: ../cookie-notice.php:
|
260 |
msgid "Colors"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: ../cookie-notice.php:
|
264 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: ../cookie-notice.php:
|
268 |
msgid "Enter the cookie notice message."
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: ../cookie-notice.php:
|
272 |
msgid "The text of the option to accept the notice and make it disappear."
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: ../cookie-notice.php:
|
276 |
msgid "Enable to give to the user the possibility to refuse third party non functional cookies."
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: ../cookie-notice.php:
|
280 |
msgid "The text of the button to refuse the consent."
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: ../cookie-notice.php:
|
284 |
msgid "Head"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#: ../cookie-notice.php:
|
288 |
msgid "Body"
|
289 |
msgstr ""
|
290 |
|
291 |
-
#: ../cookie-notice.php:
|
292 |
msgid "The code to be used in your site header, before the closing head tag."
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: ../cookie-notice.php:
|
296 |
msgid "The code to be used in your site footer, before the closing body tag."
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: ../cookie-notice.php:
|
300 |
msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after the notice is accepted."
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: ../cookie-notice.php:
|
304 |
msgid "To get the user consent status use the <code>cn_cookies_accepted()</code> function."
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../cookie-notice.php:
|
308 |
msgid "Enable to give to the user the possibility to revoke their consent <i>(requires \"Refuse consent\" option enabled)</i>."
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: ../cookie-notice.php:
|
312 |
msgid "Enter the revoke message."
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: ../cookie-notice.php:
|
316 |
msgid "The text of the button to revoke the consent."
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: ../cookie-notice.php:
|
320 |
msgid "Select the method for displaying the revoke button - automatic (in the banner) or manual using <code>[cookies_revoke]</code> shortcode."
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: ../cookie-notice.php:
|
324 |
msgid "Enable to reload the page after the notice is accepted."
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: ../cookie-notice.php:
|
328 |
msgid "Enable privacy policy link."
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: ../cookie-notice.php:
|
332 |
msgid "The text of the privacy policy button."
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: ../cookie-notice.php:
|
336 |
msgid "Select where to redirect user for more information."
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: ../cookie-notice.php:
|
340 |
msgid "-- select page --"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: ../cookie-notice.php:
|
344 |
msgid "Select from one of your site's pages."
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: ../cookie-notice.php:
|
348 |
msgid "Synchronize with WordPress Privacy Policy page."
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: ../cookie-notice.php:
|
352 |
msgid "Enter the full URL starting with http(s)://"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: ../cookie-notice.php:
|
356 |
-
msgid "The amount of time that the cookie should be stored for."
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
360 |
msgid "Select where all the plugin scripts should be placed."
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: ../cookie-notice.php:
|
364 |
msgid "Select location for the notice."
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: ../cookie-notice.php:
|
368 |
msgid "Select the animation style."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../cookie-notice.php:
|
372 |
msgid "Enable to accept the notice when user scrolls."
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: ../cookie-notice.php:
|
376 |
msgid "Number of pixels user has to scroll to accept the notice and make it disappear."
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: ../cookie-notice.php:
|
|
|
|
|
|
|
|
|
380 |
msgid "Select the buttons style."
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: ../cookie-notice.php:
|
384 |
msgid "Enter additional button CSS classes separated by spaces."
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: ../cookie-notice.php:
|
388 |
msgid "Settings restored to defaults."
|
389 |
msgstr ""
|
390 |
|
391 |
-
#: ../cookie-notice.php:
|
392 |
msgid "Support"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: ../cookie-notice.php:
|
396 |
msgid "Settings"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: ../cookie-notice.php:
|
400 |
msgid "Are you sure you want to reset these settings to defaults?"
|
401 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: Cookie Notice\n"
|
5 |
+
"POT-Creation-Date: 2020-02-17 22:55+0100\n"
|
6 |
"PO-Revision-Date: 2015-03-24 11:30+0100\n"
|
7 |
"Last-Translator: Bartosz Arendt <info@dfactory.eu>\n"
|
8 |
"Language-Team: dFactory <info@dfactory.eu>\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 2.3\n"
|
14 |
"X-Poedit-KeywordsList: gettext;gettext_noop;__;_e;_n\n"
|
15 |
"X-Poedit-Basepath: .\n"
|
16 |
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../cookie-notice.php:169
|
20 |
msgid "Top"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: ../cookie-notice.php:170
|
24 |
msgid "Bottom"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: ../cookie-notice.php:174 ../cookie-notice.php:219
|
28 |
msgid "None"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: ../cookie-notice.php:175
|
32 |
msgid "Light"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../cookie-notice.php:176
|
36 |
msgid "Dark"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../cookie-notice.php:180
|
40 |
msgid "Automatic"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../cookie-notice.php:181
|
44 |
msgid "Manual"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../cookie-notice.php:185
|
48 |
msgid "Page link"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../cookie-notice.php:186
|
52 |
msgid "Custom link"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../cookie-notice.php:195
|
56 |
msgid "Banner"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../cookie-notice.php:196 ../cookie-notice.php:639
|
60 |
msgid "Message"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../cookie-notice.php:200
|
64 |
msgid "Text color"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: ../cookie-notice.php:201
|
68 |
msgid "Bar color"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../cookie-notice.php:207
|
72 |
msgid "An hour"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../cookie-notice.php:208
|
76 |
msgid "1 day"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../cookie-notice.php:209
|
80 |
msgid "1 week"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: ../cookie-notice.php:210
|
84 |
msgid "1 month"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: ../cookie-notice.php:211
|
88 |
msgid "3 months"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: ../cookie-notice.php:212
|
92 |
msgid "6 months"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: ../cookie-notice.php:213
|
96 |
msgid "1 year"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: ../cookie-notice.php:214
|
100 |
msgid "infinity"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: ../cookie-notice.php:220
|
104 |
msgid "Fade"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: ../cookie-notice.php:221
|
108 |
msgid "Slide"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: ../cookie-notice.php:225
|
112 |
msgid "Header"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: ../cookie-notice.php:226
|
116 |
msgid "Footer"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: ../cookie-notice.php:230
|
120 |
msgid "We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it."
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: ../cookie-notice.php:231
|
124 |
msgid "Ok"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: ../cookie-notice.php:232
|
128 |
msgid "No"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: ../cookie-notice.php:233
|
132 |
msgid "You can revoke your consent any time using the Revoke consent button."
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: ../cookie-notice.php:234 ../cookie-notice.php:643
|
136 |
msgid "Revoke consent"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: ../cookie-notice.php:235 ../cookie-notice.php:641
|
140 |
msgid "Privacy policy"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: ../cookie-notice.php:330
|
144 |
#, php-format
|
145 |
msgid "Hey, you've been using <strong>Cookie Notice</strong> for more than %s."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ../cookie-notice.php:330
|
149 |
msgid "Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../cookie-notice.php:330
|
153 |
msgid "Your help is much appreciated. Thank you very much"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: ../cookie-notice.php:330
|
157 |
#, php-format
|
158 |
msgid "founder of <a href=\"%s\" target=\"_blank\">dFactory</a> plugins."
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: ../cookie-notice.php:330
|
162 |
#, php-format
|
163 |
msgid "<a href=\"%s\" class=\"cn-dismissible-notice\" target=\"_blank\" rel=\"noopener\">Ok, you deserve it</a><br /><a href=\"javascript:void(0);\" class=\"cn-dismissible-notice cn-delay-notice\" rel=\"noopener\">Nope, maybe later</a><br /><a href=\"javascript:void(0);\" class=\"cn-dismissible-notice\" rel=\"noopener\">I already did</a>"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: ../cookie-notice.php:585 ../cookie-notice.php:596 ../cookie-notice.php:599
|
167 |
+
#: ../cookie-notice.php:1220
|
168 |
msgid "Cookie Notice"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../cookie-notice.php:601
|
172 |
msgid "Need support?"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: ../cookie-notice.php:602
|
176 |
#, php-format
|
177 |
msgid "If you are having problems with this plugin, please browse it's <a href=\"%s\" target=\"_blank\">Documentation</a> or talk about them in the <a href=\"%s\" target=\"_blank\">Support forum</a>"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: ../cookie-notice.php:604
|
181 |
msgid "Do you like this plugin?"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: ../cookie-notice.php:605
|
185 |
#, php-format
|
186 |
msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: ../cookie-notice.php:606
|
190 |
#, php-format
|
191 |
msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: ../cookie-notice.php:607
|
195 |
#, php-format
|
196 |
msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: ../cookie-notice.php:622
|
200 |
msgid "Reset to defaults"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: ../cookie-notice.php:638
|
204 |
msgid "Configuration"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: ../cookie-notice.php:640
|
208 |
msgid "Button text"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: ../cookie-notice.php:642
|
212 |
msgid "Refuse consent"
|
213 |
msgstr ""
|
214 |
|
215 |
+
#: ../cookie-notice.php:644
|
216 |
msgid "Script blocking"
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: ../cookie-notice.php:645
|
220 |
msgid "Reloading"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: ../cookie-notice.php:646
|
224 |
msgid "On scroll"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: ../cookie-notice.php:647
|
228 |
+
msgid "On click"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: ../cookie-notice.php:648
|
232 |
+
msgid "Accepted expiry"
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: ../cookie-notice.php:649
|
236 |
+
msgid "Rejected expiry"
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: ../cookie-notice.php:650
|
240 |
msgid "Script placement"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: ../cookie-notice.php:651
|
244 |
msgid "Deactivation"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: ../cookie-notice.php:654
|
248 |
msgid "Design"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: ../cookie-notice.php:655
|
252 |
msgid "Position"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: ../cookie-notice.php:656
|
256 |
msgid "Animation"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: ../cookie-notice.php:657
|
260 |
msgid "Button style"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: ../cookie-notice.php:658
|
264 |
msgid "Button class"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: ../cookie-notice.php:659
|
268 |
msgid "Colors"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: ../cookie-notice.php:674
|
272 |
msgid "Enable if you want all plugin data to be deleted on deactivation."
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: ../cookie-notice.php:686
|
276 |
msgid "Enter the cookie notice message."
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: ../cookie-notice.php:699
|
280 |
msgid "The text of the option to accept the notice and make it disappear."
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: ../cookie-notice.php:710
|
284 |
msgid "Enable to give to the user the possibility to refuse third party non functional cookies."
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: ../cookie-notice.php:714
|
288 |
msgid "The text of the button to refuse the consent."
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: ../cookie-notice.php:732
|
292 |
msgid "Head"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: ../cookie-notice.php:733
|
296 |
msgid "Body"
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: ../cookie-notice.php:736
|
300 |
msgid "The code to be used in your site header, before the closing head tag."
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: ../cookie-notice.php:740
|
304 |
msgid "The code to be used in your site footer, before the closing body tag."
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: ../cookie-notice.php:744
|
308 |
msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after the notice is accepted."
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: ../cookie-notice.php:744
|
312 |
msgid "To get the user consent status use the <code>cn_cookies_accepted()</code> function."
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: ../cookie-notice.php:755
|
316 |
msgid "Enable to give to the user the possibility to revoke their consent <i>(requires \"Refuse consent\" option enabled)</i>."
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: ../cookie-notice.php:758
|
320 |
msgid "Enter the revoke message."
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: ../cookie-notice.php:760
|
324 |
msgid "The text of the button to revoke the consent."
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: ../cookie-notice.php:768
|
328 |
msgid "Select the method for displaying the revoke button - automatic (in the banner) or manual using <code>[cookies_revoke]</code> shortcode."
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: ../cookie-notice.php:779
|
332 |
msgid "Enable to reload the page after the notice is accepted."
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: ../cookie-notice.php:802
|
336 |
msgid "Enable privacy policy link."
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: ../cookie-notice.php:805
|
340 |
msgid "The text of the privacy policy button."
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: ../cookie-notice.php:817
|
344 |
msgid "Select where to redirect user for more information."
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: ../cookie-notice.php:820
|
348 |
msgid "-- select page --"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: ../cookie-notice.php:831
|
352 |
msgid "Select from one of your site's pages."
|
353 |
msgstr ""
|
354 |
|
355 |
+
#: ../cookie-notice.php:837
|
356 |
msgid "Synchronize with WordPress Privacy Policy page."
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: ../cookie-notice.php:844
|
360 |
msgid "Enter the full URL starting with http(s)://"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: ../cookie-notice.php:887
|
364 |
+
msgid "The amount of time that the cookie should be stored for when user accepts the notice."
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: ../cookie-notice.php:910
|
368 |
+
msgid "The amount of time that the cookie should be stored for when the user doesn't accept the notice."
|
369 |
+
msgstr ""
|
370 |
+
|
371 |
+
#: ../cookie-notice.php:928
|
372 |
msgid "Select where all the plugin scripts should be placed."
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: ../cookie-notice.php:948
|
376 |
msgid "Select location for the notice."
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: ../cookie-notice.php:969
|
380 |
msgid "Select the animation style."
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: ../cookie-notice.php:980
|
384 |
msgid "Enable to accept the notice when user scrolls."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: ../cookie-notice.php:983
|
388 |
msgid "Number of pixels user has to scroll to accept the notice and make it disappear."
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: ../cookie-notice.php:994
|
392 |
+
msgid "Enable to accept the notice on any click on the page."
|
393 |
+
msgstr ""
|
394 |
+
|
395 |
+
#: ../cookie-notice.php:1014
|
396 |
msgid "Select the buttons style."
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: ../cookie-notice.php:1027
|
400 |
msgid "Enter additional button CSS classes separated by spaces."
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: ../cookie-notice.php:1166
|
404 |
msgid "Settings restored to defaults."
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: ../cookie-notice.php:1303
|
408 |
msgid "Support"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: ../cookie-notice.php:1320
|
412 |
msgid "Settings"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: ../cookie-notice.php:1392
|
416 |
msgid "Are you sure you want to reset these settings to defaults?"
|
417 |
msgstr ""
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: gdpr, ccpa, cookie, cookies, notice, notification, notify, cookie, cookie
|
|
5 |
Requires at least: 3.3
|
6 |
Requires PHP: 5.2.4
|
7 |
Tested up to: 5.3.2
|
8 |
-
Stable tag: 1.2.
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
@@ -68,6 +68,10 @@ No questions yet.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
71 |
= 1.2.50 =
|
72 |
* Fix: The body css class always set to "cookies-refused"
|
73 |
* Tweak: Improve IE & Safari CustomEvent and ClassList support
|
@@ -284,5 +288,6 @@ Initial release
|
|
284 |
|
285 |
== Upgrade Notice ==
|
286 |
|
287 |
-
= 1.2.
|
288 |
-
* Fix:
|
|
5 |
Requires at least: 3.3
|
6 |
Requires PHP: 5.2.4
|
7 |
Tested up to: 5.3.2
|
8 |
+
Stable tag: 1.2.51
|
9 |
License: MIT License
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 1.2.51 =
|
72 |
+
* Fix: Problems with iOS and OK/Reject button
|
73 |
+
* Tweak: Added Separate cookie expiry for Reject, props Carlos Buchart
|
74 |
+
|
75 |
= 1.2.50 =
|
76 |
* Fix: The body css class always set to "cookies-refused"
|
77 |
* Tweak: Improve IE & Safari CustomEvent and ClassList support
|
288 |
|
289 |
== Upgrade Notice ==
|
290 |
|
291 |
+
= 1.2.51 =
|
292 |
+
* Fix: Problems with iOS and OK/Reject button
|
293 |
+
* Tweak: Added Separate cookie expiry for Reject, props Carlos Buchart
|