Cookie Notice by dFactory - Version 1.2.45

Version Description

  • Tweak: Improved WP Super Cache support
  • Tweak: CSS container style issue and media query for mobile
Download this release

Release Info

Developer dfactory
Plugin Icon 128x128 Cookie Notice by dFactory
Version 1.2.45
Comparing to
See all releases

Code changes from version 1.2.44 to 1.2.45

Files changed (4) hide show
  1. cookie-notice.php +14 -4
  2. css/front.css +17 -0
  3. css/front.min.css +1 -1
  4. readme.txt +9 -6
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 to comply with the EU cookie law GDPR regulations.
5
- Version: 1.2.44
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
@@ -34,7 +34,7 @@ include_once( plugin_dir_path( __FILE__ ) . 'includes/upgrade.php' );
34
  * Cookie Notice class.
35
  *
36
  * @class Cookie_Notice
37
- * @version 1.2.44
38
  */
39
  class Cookie_Notice {
40
 
@@ -77,7 +77,7 @@ class Cookie_Notice {
77
  'translate' => true,
78
  'deactivation_delete' => 'no'
79
  ),
80
- 'version' => '1.2.44'
81
  );
82
  private $positions = array();
83
  private $styles = array();
@@ -107,6 +107,7 @@ class Cookie_Notice {
107
 
108
  // actions
109
  add_action( 'init', array( $this, 'register_shortcode' ) );
 
110
  add_action( 'admin_init', array( $this, 'register_settings' ) );
111
  add_action( 'admin_menu', array( $this, 'admin_menu_options' ) );
112
  add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
@@ -126,6 +127,15 @@ class Cookie_Notice {
126
  include_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php' );
127
  }
128
 
 
 
 
 
 
 
 
 
 
129
  /**
130
  * Load plugin defaults
131
  */
@@ -634,7 +644,7 @@ class Cookie_Notice {
634
 
635
  echo '
636
  </select>
637
- <p class="description">' . __( 'The ammount of time that cookie should be stored for.', 'cookie-notice' ) . '</p>
638
  </div>
639
  </fieldset>';
640
  }
2
  /*
3
  Plugin Name: Cookie Notice
4
  Description: Cookie Notice allows you to elegantly inform users that your site uses cookies and to comply with the EU cookie law GDPR regulations.
5
+ Version: 1.2.45
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
34
  * Cookie Notice class.
35
  *
36
  * @class Cookie_Notice
37
+ * @version 1.2.45
38
  */
39
  class Cookie_Notice {
40
 
77
  'translate' => true,
78
  'deactivation_delete' => 'no'
79
  ),
80
+ 'version' => '1.2.45'
81
  );
82
  private $positions = array();
83
  private $styles = array();
107
 
108
  // actions
109
  add_action( 'init', array( $this, 'register_shortcode' ) );
110
+ add_action( 'init', array( $this, 'add_wpsc_cookie' ) );
111
  add_action( 'admin_init', array( $this, 'register_settings' ) );
112
  add_action( 'admin_menu', array( $this, 'admin_menu_options' ) );
113
  add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
127
  include_once( plugin_dir_path( __FILE__ ) . 'includes/functions.php' );
128
  }
129
 
130
+ /**
131
+ * Add WP Super Cache compatibility.
132
+ *
133
+ * @return void
134
+ */
135
+ public function add_wpsc_cookie() {
136
+ do_action( 'wpsc_add_cookie', 'cookie_notice_accepted' );
137
+ }
138
+
139
  /**
140
  * Load plugin defaults
141
  */
644
 
645
  echo '
646
  </select>
647
+ <p class="description">' . __( 'The amount of time that cookie should be stored for.', 'cookie-notice' ) . '</p>
648
  </div>
649
  </fieldset>';
650
  }
css/front.css CHANGED
@@ -23,6 +23,9 @@
23
  padding: 10px;
24
  text-align: center;
25
  width: 100%;
 
 
 
26
  }
27
 
28
  .cookie-notice-revoke-container {
@@ -31,6 +34,9 @@
31
  width: 100%;
32
  z-index: 1;
33
  visibility: hidden;
 
 
 
34
  }
35
 
36
  .cn-top .cookie-notice-revoke-container {
@@ -131,4 +137,15 @@
131
  -moz-transition: background-position 0.1s linear;
132
  -o-transition: background-position 0.1s linear;
133
  transition: background-position 0.1s linear;
 
 
 
 
 
 
 
 
 
 
 
134
  }
23
  padding: 10px;
24
  text-align: center;
25
  width: 100%;
26
+ -webkit-box-sizing: border-box;
27
+ -moz-box-sizing: border-box;
28
+ box-sizing: border-box;
29
  }
30
 
31
  .cookie-notice-revoke-container {
34
  width: 100%;
35
  z-index: 1;
36
  visibility: hidden;
37
+ -webkit-box-sizing: border-box;
38
+ -moz-box-sizing: border-box;
39
+ box-sizing: border-box;
40
  }
41
 
42
  .cn-top .cookie-notice-revoke-container {
137
  -moz-transition: background-position 0.1s linear;
138
  -o-transition: background-position 0.1s linear;
139
  transition: background-position 0.1s linear;
140
+ }
141
+
142
+ @media all and (max-width: 900px) {
143
+ .cookie-notice-container #cn-notice-text {
144
+ display: block;
145
+ margin-bottom: 5px;
146
+ }
147
+ #cookie-notice .cn-button {
148
+ margin-left: 5px;
149
+ margin-right: 5px;
150
+ }
151
  }
css/front.min.css CHANGED
@@ -1 +1 @@
1
- #cookie-notice{display:block;visibility:hidden;position:fixed;min-width:100%;height:auto;z-index:100000;font-size:13px;line-height:20px;left:0;text-align:center}.cn-top{top:0}.cn-bottom{bottom:0}.cookie-notice-container{padding:10px;text-align:center;width:100%}.cookie-notice-revoke-container{position:absolute;bottom:0;width:100%;z-index:1;visibility:hidden}.cn-top .cookie-notice-revoke-container{top:0;bottom:auto}#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;-moz-box-sizing:border-box;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,#FFFFFF,#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,#0088cc,#0044cc);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0088cc),to(#0044cc));background-image:-webkit-linear-gradient(top,#0088cc,#0044cc);background-image:-o-linear-gradient(top,#0088cc,#0044cc);background-image:linear-gradient(to bottom,#0088cc,#0044cc);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 0.1s linear;-moz-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear}
1
+ #cookie-notice{display:block;visibility:hidden;position:fixed;min-width:100%;height:auto;z-index:100000;font-size:13px;line-height:20px;left:0;text-align:center}.cn-top{top:0}.cn-bottom{bottom:0}.cookie-notice-container{padding:10px;text-align:center;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.cookie-notice-revoke-container{position:absolute;bottom:0;width:100%;z-index:1;visibility:hidden;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.cn-top .cookie-notice-revoke-container{top:0;bottom:auto}#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;-moz-box-sizing:border-box;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,#FFFFFF,#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,#0088cc,#0044cc);background-image:-webkit-gradient(linear,0 0,0 100%,from(#0088cc),to(#0044cc));background-image:-webkit-linear-gradient(top,#0088cc,#0044cc);background-image:-o-linear-gradient(top,#0088cc,#0044cc);background-image:linear-gradient(to bottom,#0088cc,#0044cc);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 0.1s linear;-moz-transition:background-position 0.1s linear;-o-transition:background-position 0.1s linear;transition:background-position 0.1s linear}@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}}
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.dfactory.eu/
4
  Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent
5
  Requires at least: 3.3
6
  Requires PHP: 5.2.4
7
- Tested up to: 4.9.6
8
- Stable tag: 1.2.44
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
@@ -19,7 +19,6 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
19
 
20
  = Features include: =
21
 
22
- * 100% GDPR compliant
23
  * Customizable cookie message
24
  * Redirects users to specified page for more cookie information
25
  * Multiple cookie expiry options
@@ -67,6 +66,10 @@ No questions yet.
67
 
68
  == Changelog ==
69
 
 
 
 
 
70
  = 1.2.44 =
71
  * Fix: The text of the revoke button ignored in shortcode
72
  * Fix: Revoke consent button not displayed automatically in top position
@@ -255,6 +258,6 @@ Initial release
255
 
256
  == Upgrade Notice ==
257
 
258
- = 1.2.44 =
259
- * Fix: The text of the revoke button ignored in shortcode
260
- * Fix: Revoke consent button not displayed automatically in top position
4
  Tags: gdpr, cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent
5
  Requires at least: 3.3
6
  Requires PHP: 5.2.4
7
+ Tested up to: 4.9.8
8
+ Stable tag: 1.2.45
9
  License: MIT License
10
  License URI: http://opensource.org/licenses/MIT
11
 
19
 
20
  = Features include: =
21
 
 
22
  * Customizable cookie message
23
  * Redirects users to specified page for more cookie information
24
  * Multiple cookie expiry options
66
 
67
  == Changelog ==
68
 
69
+ = 1.2.45 =
70
+ * Tweak: Improved WP Super Cache support
71
+ * Tweak: CSS container style issue and media query for mobile
72
+
73
  = 1.2.44 =
74
  * Fix: The text of the revoke button ignored in shortcode
75
  * Fix: Revoke consent button not displayed automatically in top position
258
 
259
  == Upgrade Notice ==
260
 
261
+ = 1.2.45 =
262
+ * Tweak: Improved WP Super Cache support
263
+ * Tweak: CSS container style issue and media query for mobile