Cookie Notice by dFactory - Version 1.2.2

Version Description

  • Fix: Read more linking to default site language in WPML & Polylang
Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

Files changed (2) hide show
  1. cookie-notice.php +6 -1
  2. readme.txt +6 -5
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 regulations.
5
- Version: 1.2.1
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
@@ -157,6 +157,7 @@ class Cookie_Notice
157
  icl_register_string('Cookie Notice', 'Message in the notice', $this->options['message_text']);
158
  icl_register_string('Cookie Notice', 'Button text', $this->options['accept_text']);
159
  icl_register_string('Cookie Notice', 'Read more text', $this->options['see_more_opt']['text']);
 
160
  }
161
  }
162
 
@@ -468,8 +469,12 @@ class Cookie_Notice
468
  $this->options['message_text'] = icl_t('Cookie Notice', 'Message in the notice', $this->options['message_text']);
469
  $this->options['accept_text'] = icl_t('Cookie Notice', 'Button text', $this->options['accept_text']);
470
  $this->options['see_more_opt']['text'] = icl_t('Cookie Notice', 'Read more text', $this->options['see_more_opt']['text']);
 
471
  }
472
 
 
 
 
473
  echo '
474
  <div id="cookie-notice" class="cn-'.($this->options['position']).($this->options['css_style'] !== 'none' ? ' '.$this->options['css_style'] : '').'" style="color: '.$this->options['colors']['text'].'; background-color: '.$this->options['colors']['bar'].';">'
475
  .'<div class="cookie-notice-container">'
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 regulations.
5
+ Version: 1.2.2
6
  Author: dFactory
7
  Author URI: http://www.dfactory.eu/
8
  Plugin URI: http://www.dfactory.eu/plugins/cookie-notice/
157
  icl_register_string('Cookie Notice', 'Message in the notice', $this->options['message_text']);
158
  icl_register_string('Cookie Notice', 'Button text', $this->options['accept_text']);
159
  icl_register_string('Cookie Notice', 'Read more text', $this->options['see_more_opt']['text']);
160
+ icl_register_string('Cookie Notice', 'Custom link', $this->options['see_more_opt']['link']);
161
  }
162
  }
163
 
469
  $this->options['message_text'] = icl_t('Cookie Notice', 'Message in the notice', $this->options['message_text']);
470
  $this->options['accept_text'] = icl_t('Cookie Notice', 'Button text', $this->options['accept_text']);
471
  $this->options['see_more_opt']['text'] = icl_t('Cookie Notice', 'Read more text', $this->options['see_more_opt']['text']);
472
+ $this->options['see_more_opt']['link'] = icl_t('Cookie Notice', 'Custom link', $this->options['see_more_opt']['link']);
473
  }
474
 
475
+ if(function_exists('icl_object_id'))
476
+ $this->options['see_more_opt']['id'] = icl_object_id($this->options['see_more_opt']['id'], 'page', TRUE);
477
+
478
  echo '
479
  <div id="cookie-notice" class="cn-'.($this->options['position']).($this->options['css_style'] !== 'none' ? ' '.$this->options['css_style'] : '').'" style="color: '.$this->options['colors']['text'].'; background-color: '.$this->options['colors']['bar'].';">'
480
  .'<div class="cookie-notice-container">'
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.dfactory.eu/
4
  Tags: cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent, Bootstrap
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
- Stable tag: 1.2.1
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -48,8 +48,10 @@ No questions yet.
48
 
49
  == Changelog ==
50
 
51
- = 1.2.1 =
52
  * Fix: Read more linking to default site language in WPML & Polylang
 
 
53
  * Tweak: UI improvements for WP 3.8
54
 
55
  = 1.2.0 =
@@ -72,6 +74,5 @@ Initial release
72
 
73
  == Upgrade Notice ==
74
 
75
- = 1.2.1 =
76
- * Fix: Read more linking to default site language in WPML & Polylang
77
- * Tweak: UI improvements for WP 3.8
4
  Tags: cookie, cookies, notice, notification, notify, cookie, cookie compliance, cookie law, eu cookie, privacy, privacy directive, consent, Bootstrap
5
  Requires at least: 3.3
6
  Tested up to: 3.8.1
7
+ Stable tag: 1.2.2
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
48
 
49
  == Changelog ==
50
 
51
+ = 1.2.2 =
52
  * Fix: Read more linking to default site language in WPML & Polylang
53
+
54
+ = 1.2.1 =
55
  * Tweak: UI improvements for WP 3.8
56
 
57
  = 1.2.0 =
74
 
75
  == Upgrade Notice ==
76
 
77
+ = 1.2.2 =
78
+ * Fix: Read more linking to default site language in WPML & Polylang