WF Cookie Consent - Version 0.8.2

Version Description

Bugfixes: Custom fields for default language (en) and selected more-info page.

Download this release

Release Info

Developer wunderfarm
Plugin Icon 128x128 WF Cookie Consent
Version 0.8.2
Comparing to
See all releases

Code changes from version 0.8.1 to 0.8.2

js/cookiechoices.js CHANGED
@@ -48,25 +48,25 @@
48
 
49
  case "it":
50
 
51
- data.cookieText = "I cookie ci aiutano ad erogare servizi di qualità. Utilizzando i nostri servizi, l'utente accetta le nostre modalità d'uso dei cookie.";
52
- data.dismissText = "OK";
53
- data.linkText = "Ulteriori informazioni";
54
 
55
  break;
56
 
57
  case "fr":
58
 
59
- data.cookieText = "Les cookies nous permettent de vous proposer nos services plus facilement. En utilisant nos services, vous nous donnez expressément votre accord pour exploiter ces cookies.";
60
- data.dismissText = "OK";
61
- data.linkText = "En savoir plus";
62
 
63
  break;
64
 
65
  default:
66
 
67
- data.cookieText = "Cookies help us deliver our services. By using our services, you agree to our use of cookies.";
68
- data.dismissText = "Got it";
69
- data.linkText = "Learn more";
70
 
71
  }
72
 
48
 
49
  case "it":
50
 
51
+ data.cookieText = data.cookieText || "I cookie ci aiutano ad erogare servizi di qualità. Utilizzando i nostri servizi, l'utente accetta le nostre modalità d'uso dei cookie.";
52
+ data.dismissText = data.dismissText || "OK";
53
+ data.linkText = data.linkText || "Ulteriori informazioni";
54
 
55
  break;
56
 
57
  case "fr":
58
 
59
+ data.cookieText = data.cookieText || "Les cookies nous permettent de vous proposer nos services plus facilement. En utilisant nos services, vous nous donnez expressément votre accord pour exploiter ces cookies.";
60
+ data.dismissText = data.dismissText || "OK";
61
+ data.linkText = data.linkText || "En savoir plus";
62
 
63
  break;
64
 
65
  default:
66
 
67
+ data.cookieText = data.cookieText || "Cookies help us deliver our services. By using our services, you agree to our use of cookies.";
68
+ data.dismissText = data.dismissText || "Got it";
69
+ data.linkText = data.linkText || "Learn more";
70
 
71
  }
72
 
readme.txt CHANGED
@@ -1,18 +1,18 @@
1
  === Plugin Name ===
2
  Contributors: wunderfarm
3
  Donate link: http://wunderfarm.com/
4
- Tags: compliance, cookie law, cookies, eu cookie law, eu privacy directive, privacy, privacy directive, cookie consent, Multi language, WPML, polylang
5
  Requires at least: 3.0.1
6
  Tested up to: 4.2.2
7
- Stable tag: 0.8.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- The `wunderfarm-way` to show how your website complies with the EU Cookie Law - with multi-language support!
12
 
13
  == Description ==
14
 
15
- `WF Cookie Consent` shows the user a clear message that the site uses cookies.
16
  This plugin supports multi-language installations with the polylang-plugin from Chouby or WPML-plugin from wpml.org. It has a wide array of settings for controlling the style and contents.
17
  WF Cookie Consent is the "wunderfarm-way" to show how your website complies with the EU Cookie Law.
18
 
@@ -21,7 +21,16 @@ WF Cookie Consent is the "wunderfarm-way" to show how your website complies with
21
  1. Upload `WF Cookie Consent` to the `/wp-content/plugins/` directory
22
  2. Activate the plugin through the 'Plugins' menu in WordPress
23
 
 
 
 
 
 
 
24
  == Changelog ==
25
 
 
 
 
26
  = 0.8.1 =
27
  Support for WPML and polylang
1
  === Plugin Name ===
2
  Contributors: wunderfarm
3
  Donate link: http://wunderfarm.com/
4
+ Tags: compliance, cookie law, cookies, eu cookie law, eu privacy directive, privacy, privacy directive, cookie consent, Multi language, WPML, polylang, responsive
5
  Requires at least: 3.0.1
6
  Tested up to: 4.2.2
7
+ Stable tag: 0.8.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ The `wunderfarm-way` to show how your website complies with the EU Cookie Law - 100% responsive and with multi-language support!
12
 
13
  == Description ==
14
 
15
+ WF Cookie Consent shows the user a clear message that the site uses cookies.
16
  This plugin supports multi-language installations with the polylang-plugin from Chouby or WPML-plugin from wpml.org. It has a wide array of settings for controlling the style and contents.
17
  WF Cookie Consent is the "wunderfarm-way" to show how your website complies with the EU Cookie Law.
18
 
21
  1. Upload `WF Cookie Consent` to the `/wp-content/plugins/` directory
22
  2. Activate the plugin through the 'Plugins' menu in WordPress
23
 
24
+
25
+ == Screenshots ==
26
+ 1. Example showing the wf-cookie-consent-bar
27
+ 2. WF Cookie Consent options section
28
+ 3. Multi-language support
29
+
30
  == Changelog ==
31
 
32
+ = 0.8.2 =
33
+ Bugfixes: Custom fields for default language (en) and selected more-info page.
34
+
35
  = 0.8.1 =
36
  Support for WPML and polylang
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
wf-cookie-consent.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
- Version: 0.8.1
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
@@ -18,7 +18,7 @@
18
 
19
  function wf_cookieconsent_scripts() {
20
 
21
- wp_enqueue_script( 'wf-cookiechoices', plugin_dir_url( __FILE__ ) . '/js/cookiechoices.js', array(), '0.0.1', true );
22
 
23
  }
24
 
@@ -33,10 +33,13 @@
33
  $options = get_option('wf_cookieconsent_options');
34
  $language = wf_get_language();
35
  $linkHref = (empty($options[$language]['wf_linkhref']) ? '' : $options[$language]['wf_linkhref']);
36
- $linkText = (empty($options[$language]['wf_linkText']) ? '' : $options[$language]['wf_linkText']);
37
  $cookieText = (empty($options[$language]['wf_cookietext']) ? '' : $options[$language]['wf_cookietext']);
38
  $position = (empty($options['wf_position']) ? '' : $options['wf_position']);
39
  $dismissText = (empty($options[$language]['wf_dismisstext']) ? '' : $options[$language]['wf_dismisstext']);
 
 
 
40
 
41
  ?>
42
  <script type="text/javascript">
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
+ Version: 0.8.2
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
18
 
19
  function wf_cookieconsent_scripts() {
20
 
21
+ wp_enqueue_script( 'wf-cookiechoices', plugin_dir_url( __FILE__ ) . '/js/cookiechoices.js', array(), '0.0.2', true );
22
 
23
  }
24
 
33
  $options = get_option('wf_cookieconsent_options');
34
  $language = wf_get_language();
35
  $linkHref = (empty($options[$language]['wf_linkhref']) ? '' : $options[$language]['wf_linkhref']);
36
+ $linkText = (empty($options[$language]['wf_linktext']) ? '' : $options[$language]['wf_linktext']);
37
  $cookieText = (empty($options[$language]['wf_cookietext']) ? '' : $options[$language]['wf_cookietext']);
38
  $position = (empty($options['wf_position']) ? '' : $options['wf_position']);
39
  $dismissText = (empty($options[$language]['wf_dismisstext']) ? '' : $options[$language]['wf_dismisstext']);
40
+
41
+ if(is_numeric($linkHref))
42
+ $linkHref = get_page_link($linkHref);
43
 
44
  ?>
45
  <script type="text/javascript">