EU Cookie Law - Version 1.1

Version Description

  • Fixed cookie storing bug
  • Added in CSS support for IE
Download this release

Release Info

Developer pleer
Plugin Icon 128x128 EU Cookie Law
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

Files changed (4) hide show
  1. class-frontend.php +2 -3
  2. eu-cookie-law.php +4 -4
  3. peadig-eucookie.css +10 -2
  4. readme.txt +18 -10
class-frontend.php CHANGED
@@ -54,9 +54,8 @@ function peadig_eucookie_bar(){
54
  });
55
  $('#pea_cook_btn').click(function() {
56
  var today = new Date();
57
- var expire = new Date();
58
- var expireTimer = <?php echo $expireTimer?>;
59
- document.cookie = "peadigCookie=set;";
60
  $(".pea_cook_wrapper").fadeOut("fast");
61
  });
62
  });
54
  });
55
  $('#pea_cook_btn').click(function() {
56
  var today = new Date();
57
+ var expire = new Date() + <?php echo $expireTimer?>;
58
+ document.cookie = "peadigCookie=set; expires=" + expire;
 
59
  $(".pea_cook_wrapper").fadeOut("fast");
60
  });
61
  });
eu-cookie-law.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /*
3
  Plugin Name: EU Cookie Law
4
- Plugin URI: http://pleer.co.uk/wordpress/plugins/eu-cookie-law/
5
  Description: Inserts a bar within your website to warn users about the EU cookie law, with a popup for more information. Clicking accept will remove the bar for a selected amount of time
6
- Version: 1.0
7
  Author: Shane Jones & Alex Moss
8
- Author URI: http://pleer.co.uk/
9
- Contributors: pleer, ShaneJones
10
 
11
  Copyright (C) 2010-2012, Shane Jones & Alex Moss
12
  All rights reserved.
1
  <?php
2
  /*
3
  Plugin Name: EU Cookie Law
4
+ Plugin URI: http://3doordigital.com/wordpress/plugins/eu-cookie-law/
5
  Description: Inserts a bar within your website to warn users about the EU cookie law, with a popup for more information. Clicking accept will remove the bar for a selected amount of time
6
+ Version: 1.1
7
  Author: Shane Jones & Alex Moss
8
+ Author URI: http://3doordigital.com/
9
+ Contributors: alexmoss, pleer, ShaneJones
10
 
11
  Copyright (C) 2010-2012, Shane Jones & Alex Moss
12
  All rights reserved.
peadig-eucookie.css CHANGED
@@ -1,6 +1,10 @@
1
  .pea_cook_wrapper {
2
  position: fixed;
3
  background-color: rgba(0,0,0,0.85);
 
 
 
 
4
  padding: 8px 21px;
5
  margin: 0;
6
  -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;
@@ -100,10 +104,14 @@ button.pea_cook_btn {
100
  .pea_cook_more_info_popover_inner {
101
  margin: 40px auto;
102
  min-width: 50%;
103
- background-color: rgba(0,0,0,0.75);
104
  min-height: 200px;
105
  padding: 50px;
106
- max-width:60%;
 
 
 
 
 
107
  }
108
  .pea_cook_more_info_popover_inner a {
109
  color: #fff;
1
  .pea_cook_wrapper {
2
  position: fixed;
3
  background-color: rgba(0,0,0,0.85);
4
+ /* For IE 5.5 - 7 */
5
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000, endColorstr=#cc000000);
6
+ /* For IE 8*/
7
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000, endColorstr=#cc000000)";
8
  padding: 8px 21px;
9
  margin: 0;
10
  -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;
104
  .pea_cook_more_info_popover_inner {
105
  margin: 40px auto;
106
  min-width: 50%;
 
107
  min-height: 200px;
108
  padding: 50px;
109
+ max-width:60%;
110
+ background-color: rgba(0,0,0,0.75);
111
+ /* For IE 5.5 - 7*/
112
+ filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000, endColorstr=#cc000000);
113
+ /* For IE 8*/
114
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000, endColorstr=#cc000000)";
115
  }
116
  .pea_cook_more_info_popover_inner a {
117
  color: #fff;
readme.txt CHANGED
@@ -1,17 +1,17 @@
1
  === Plugin Name ===
2
- Contributors: pleer, ShaneJones
3
  Plugin Name: EU Cookie Law
4
- Plugin URI: http://pleer.co.uk/wordpress/plugins/eu-cookie-law/
5
- Donate link: http://pleer.co.uk/go/eu-cookie-paypal/
6
  Description: Inserts a bar within your website to warn users about the EU cookie law, with a popup for more information. Clicking accept will remove the bar for a selected amount of time.
7
- Version: 1.0
8
  Author: Alex Moss and Shane Jones
9
- Author URI: http://pleer.co.uk/
10
- Link: http://pleer.co.uk/wordpress/plugins/facebook-comments/
11
  Tags: eu cookie, cookies, law, analytics
12
  Requires at least: 2.7
13
  Tested up to: 3.4
14
- Stable tag: 1.0
15
 
16
  == Description ==
17
 
@@ -19,8 +19,8 @@ Inserts a bar within your website to warn users about the EU cookie law, with a
19
 
20
  Simply install the plugin and follow the instructions on the Settings page.
21
 
22
- * [EU Cookie Law](http://pleer.co.uk/wordpress/plugins/eu-cookie-law/) Plugin homepage.
23
- * More [WordPress Plugins](http://pleer.co.uk/wordpress/plugins/).
24
 
25
 
26
  == Installation ==
@@ -30,4 +30,12 @@ This section describes how to install the plugin and get it working.
30
  1. Upload `eu-cookie-law` directory to the `/wp-content/plugins/` directory
31
  2. Activate the plugin through the 'Plugins' menu in WordPress
32
  3. Go to the EU Cookie settings page
33
- 4. Go through the steps and hit update!
 
 
 
 
 
 
 
 
1
  === Plugin Name ===
2
+ Contributors: alexmoss, pleer, ShaneJones
3
  Plugin Name: EU Cookie Law
4
+ Plugin URI: http://3doordigital.com/wordpress/plugins/eu-cookie-law/
5
+ Donate link: http://3doordigital.com/go/eu-cookie-paypal/
6
  Description: Inserts a bar within your website to warn users about the EU cookie law, with a popup for more information. Clicking accept will remove the bar for a selected amount of time.
7
+ Version: 1.1
8
  Author: Alex Moss and Shane Jones
9
+ Author URI: http://3doordigital.com/
10
+ Link: http://3doordigital.com/wordpress/plugins/facebook-comments/
11
  Tags: eu cookie, cookies, law, analytics
12
  Requires at least: 2.7
13
  Tested up to: 3.4
14
+ Stable tag: 1.1
15
 
16
  == Description ==
17
 
19
 
20
  Simply install the plugin and follow the instructions on the Settings page.
21
 
22
+ * [EU Cookie Law](http://3doordigital.com/wordpress/plugins/eu-cookie-law/) Plugin homepage.
23
+ * More [WordPress Plugins](http://3doordigital.com/wordpress/plugins/).
24
 
25
 
26
  == Installation ==
30
  1. Upload `eu-cookie-law` directory to the `/wp-content/plugins/` directory
31
  2. Activate the plugin through the 'Plugins' menu in WordPress
32
  3. Go to the EU Cookie settings page
33
+ 4. Go through the steps and hit update!
34
+
35
+
36
+ == Changelog ==
37
+
38
+ = 1.1 =
39
+
40
+ * Fixed cookie storing bug
41
+ * Added in CSS support for IE