Cookie Notice by dFactory - Version 1.2.39

Version Description

  • New: Option to reload the page after cookies are accepted
Download this release

Release Info

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

Code changes from version 1.2.38 to 1.2.39

Files changed (4) hide show
  1. cookie-notice.php +33 -17
  2. js/front.js +17 -1
  3. languages/cookie-notice.pot +84 -76
  4. readme.txt +9 -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.38
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.38
38
  */
39
  class Cookie_Notice {
40
 
@@ -50,6 +50,7 @@ class Cookie_Notice {
50
  'refuse_text' => '',
51
  'refuse_opt' => 'no',
52
  'refuse_code' => '',
 
53
  'see_more' => 'no',
54
  'link_target' => '_blank',
55
  'time' => 'month',
@@ -70,7 +71,7 @@ class Cookie_Notice {
70
  'translate' => true,
71
  'deactivation_delete' => 'no'
72
  ),
73
- 'version' => '1.2.38'
74
  );
75
  private $positions = array();
76
  private $styles = array();
@@ -296,6 +297,7 @@ class Cookie_Notice {
296
  add_settings_field( 'cn_link_target', __( 'Link target', 'cookie-notice' ), array( $this, 'cn_link_target' ), 'cookie_notice_options', 'cookie_notice_configuration' );
297
  add_settings_field( 'cn_refuse_opt', __( 'Refuse button', 'cookie-notice' ), array( $this, 'cn_refuse_opt' ), 'cookie_notice_options', 'cookie_notice_configuration' );
298
  add_settings_field( 'cn_refuse_code', __( 'Script blocking', 'cookie-notice' ), array( $this, 'cn_refuse_code' ), 'cookie_notice_options', 'cookie_notice_configuration' );
 
299
  add_settings_field( 'cn_on_scroll', __( 'On scroll', 'cookie-notice' ), array( $this, 'cn_on_scroll' ), 'cookie_notice_options', 'cookie_notice_configuration' );
300
  add_settings_field( 'cn_time', __( 'Cookie expiry', 'cookie-notice' ), array( $this, 'cn_time' ), 'cookie_notice_options', 'cookie_notice_configuration' );
301
  add_settings_field( 'cn_script_placement', __( 'Script placement', 'cookie-notice' ), array( $this, 'cn_script_placement' ), 'cookie_notice_options', 'cookie_notice_configuration' );
@@ -362,7 +364,7 @@ class Cookie_Notice {
362
  </div>
363
  </fieldset>';
364
  }
365
-
366
  /**
367
  * Non functional cookies code.
368
  */
@@ -374,6 +376,14 @@ class Cookie_Notice {
374
  </div>';
375
  }
376
 
 
 
 
 
 
 
 
 
377
  /**
378
  * Read more link option.
379
  */
@@ -596,7 +606,6 @@ class Cookie_Notice {
596
  return $input;
597
 
598
  if ( isset( $_POST['save_cookie_notice_options'] ) ) {
599
-
600
  // position
601
  $input['position'] = sanitize_text_field( isset( $input['position'] ) && in_array( $input['position'], array_keys( $this->positions ) ) ? $input['position'] : $this->defaults['general']['position'] );
602
 
@@ -629,7 +638,10 @@ class Cookie_Notice {
629
 
630
  // on scroll
631
  $input['on_scroll'] = (bool) isset( $input['on_scroll'] ) ? 'yes' : 'no';
632
-
 
 
 
633
  // on scroll offset
634
  $input['on_scroll_offset'] = absint( isset( $input['on_scroll_offset'] ) && $input['on_scroll_offset'] !== '' ? $input['on_scroll_offset'] : $this->defaults['general']['on_scroll_offset'] );
635
 
@@ -716,7 +728,7 @@ class Cookie_Notice {
716
  . '<div class="cookie-notice-container"><span id="cn-notice-text">'. $options['message_text'] .'</span>'
717
  . '<a href="#" id="cn-accept-cookie" data-cookie-set="accept" class="cn-set-cookie ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['accept_text'] . '</a>'
718
  . ($options['refuse_opt'] === 'yes' ? '<a href="#" id="cn-refuse-cookie" data-cookie-set="refuse" class="cn-set-cookie ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['refuse_text'] . '</a>' : '' )
719
- . ($options['see_more'] === 'yes' ? '<a href="' . ($options['see_more_opt']['link_type'] === 'custom' ? $options['see_more_opt']['link'] : get_permalink( $options['see_more_opt']['id'] )) . '" target="' . $options['link_target'] . '" id="cn-more-info" class="' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['see_more_opt']['text'] . '</a>' : '') . '
720
  </div>
721
  </div>';
722
 
@@ -833,16 +845,20 @@ class Cookie_Notice {
833
  );
834
 
835
  wp_localize_script(
836
- 'cookie-notice-front', 'cnArgs', array(
837
- 'ajaxurl' => admin_url( 'admin-ajax.php' ),
838
- 'hideEffect' => $this->options['general']['hide_effect'],
839
- 'onScroll' => $this->options['general']['on_scroll'],
840
- 'onScrollOffset' => $this->options['general']['on_scroll_offset'],
841
- 'cookieName' => self::$cookie['name'],
842
- 'cookieValue' => self::$cookie['value'],
843
- 'cookieTime' => $this->times[$this->options['general']['time']][1],
844
- 'cookiePath' => ( defined( 'COOKIEPATH' ) ? COOKIEPATH : '' ),
845
- 'cookieDomain' => ( defined( 'COOKIE_DOMAIN' ) ? COOKIE_DOMAIN : '' )
 
 
 
 
846
  )
847
  );
848
 
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.39
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.39
38
  */
39
  class Cookie_Notice {
40
 
50
  'refuse_text' => '',
51
  'refuse_opt' => 'no',
52
  'refuse_code' => '',
53
+ 'redirection' => false,
54
  'see_more' => 'no',
55
  'link_target' => '_blank',
56
  'time' => 'month',
71
  'translate' => true,
72
  'deactivation_delete' => 'no'
73
  ),
74
+ 'version' => '1.2.39'
75
  );
76
  private $positions = array();
77
  private $styles = array();
297
  add_settings_field( 'cn_link_target', __( 'Link target', 'cookie-notice' ), array( $this, 'cn_link_target' ), 'cookie_notice_options', 'cookie_notice_configuration' );
298
  add_settings_field( 'cn_refuse_opt', __( 'Refuse button', 'cookie-notice' ), array( $this, 'cn_refuse_opt' ), 'cookie_notice_options', 'cookie_notice_configuration' );
299
  add_settings_field( 'cn_refuse_code', __( 'Script blocking', 'cookie-notice' ), array( $this, 'cn_refuse_code' ), 'cookie_notice_options', 'cookie_notice_configuration' );
300
+ add_settings_field( 'cn_redirection', __( 'Reloading', 'cookie-notice' ), array( $this, 'cn_redirection' ), 'cookie_notice_options', 'cookie_notice_configuration' );
301
  add_settings_field( 'cn_on_scroll', __( 'On scroll', 'cookie-notice' ), array( $this, 'cn_on_scroll' ), 'cookie_notice_options', 'cookie_notice_configuration' );
302
  add_settings_field( 'cn_time', __( 'Cookie expiry', 'cookie-notice' ), array( $this, 'cn_time' ), 'cookie_notice_options', 'cookie_notice_configuration' );
303
  add_settings_field( 'cn_script_placement', __( 'Script placement', 'cookie-notice' ), array( $this, 'cn_script_placement' ), 'cookie_notice_options', 'cookie_notice_configuration' );
364
  </div>
365
  </fieldset>';
366
  }
367
+
368
  /**
369
  * Non functional cookies code.
370
  */
376
  </div>';
377
  }
378
 
379
+ /**
380
+ * Redirection on cookie accept.
381
+ */
382
+ public function cn_redirection() {
383
+ echo '
384
+ <label><input id="cn_redirection" type="checkbox" name="cookie_notice_options[redirection]" value="1" ' . checked( true, $this->options['general']['redirection'], false ) . ' />' . __( 'Enable to reload the page after cookies are accepted.', 'cookie-notice' ) . '</label>';
385
+ }
386
+
387
  /**
388
  * Read more link option.
389
  */
606
  return $input;
607
 
608
  if ( isset( $_POST['save_cookie_notice_options'] ) ) {
 
609
  // position
610
  $input['position'] = sanitize_text_field( isset( $input['position'] ) && in_array( $input['position'], array_keys( $this->positions ) ) ? $input['position'] : $this->defaults['general']['position'] );
611
 
638
 
639
  // on scroll
640
  $input['on_scroll'] = (bool) isset( $input['on_scroll'] ) ? 'yes' : 'no';
641
+
642
+ // on scroll
643
+ $input['redirection'] = isset( $input['redirection'] );
644
+
645
  // on scroll offset
646
  $input['on_scroll_offset'] = absint( isset( $input['on_scroll_offset'] ) && $input['on_scroll_offset'] !== '' ? $input['on_scroll_offset'] : $this->defaults['general']['on_scroll_offset'] );
647
 
728
  . '<div class="cookie-notice-container"><span id="cn-notice-text">'. $options['message_text'] .'</span>'
729
  . '<a href="#" id="cn-accept-cookie" data-cookie-set="accept" class="cn-set-cookie ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['accept_text'] . '</a>'
730
  . ($options['refuse_opt'] === 'yes' ? '<a href="#" id="cn-refuse-cookie" data-cookie-set="refuse" class="cn-set-cookie ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['refuse_text'] . '</a>' : '' )
731
+ . ($options['see_more'] === 'yes' ? '<a href="' . ($options['see_more_opt']['link_type'] === 'custom' ? $options['see_more_opt']['link'] : get_permalink( $options['see_more_opt']['id'] )) . '" target="' . $options['link_target'] . '" id="cn-more-info" class="cn-more-info ' . $options['button_class'] . ($options['css_style'] !== 'none' ? ' ' . $options['css_style'] : '') . '">' . $options['see_more_opt']['text'] . '</a>' : '') . '
732
  </div>
733
  </div>';
734
 
845
  );
846
 
847
  wp_localize_script(
848
+ 'cookie-notice-front',
849
+ 'cnArgs',
850
+ array(
851
+ 'ajaxurl' => admin_url( 'admin-ajax.php' ),
852
+ 'hideEffect' => $this->options['general']['hide_effect'],
853
+ 'onScroll' => $this->options['general']['on_scroll'],
854
+ 'onScrollOffset' => $this->options['general']['on_scroll_offset'],
855
+ 'cookieName' => self::$cookie['name'],
856
+ 'cookieValue' => self::$cookie['value'],
857
+ 'cookieTime' => $this->times[$this->options['general']['time']][1],
858
+ 'cookiePath' => ( defined( 'COOKIEPATH' ) ? COOKIEPATH : '' ),
859
+ 'cookieDomain' => ( defined( 'COOKIE_DOMAIN' ) ? COOKIE_DOMAIN : '' ),
860
+ 'redirection' => $this->options['general']['redirection'],
861
+ 'cache' => defined( 'WP_CACHE' ) && WP_CACHE
862
  )
863
  );
864
 
js/front.js CHANGED
@@ -2,7 +2,6 @@
2
 
3
  // set Cookie Notice
4
  $.fn.setCookieNotice = function ( cookie_value ) {
5
-
6
  var cnTime = new Date(),
7
  cnLater = new Date(),
8
  cnDomNode = $( '#cookie-notice' ),
@@ -35,6 +34,23 @@
35
  } else {
36
  cnSelf.removeCookieNotice();
37
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  };
39
 
40
  // remove Cookie Notice
2
 
3
  // set Cookie Notice
4
  $.fn.setCookieNotice = function ( cookie_value ) {
 
5
  var cnTime = new Date(),
6
  cnLater = new Date(),
7
  cnDomNode = $( '#cookie-notice' ),
34
  } else {
35
  cnSelf.removeCookieNotice();
36
  }
37
+
38
+ if ( cookie_value && cnArgs.redirection === '1' ) {
39
+ var url = window.location.protocol + '//',
40
+ hostname = window.location.host + '/' + window.location.pathname;
41
+
42
+ if ( cnArgs.cache === '1' ) {
43
+ url = url + hostname.replace( '//', '/' ) + ( window.location.search === '' ? '?' : window.location.search + '&' ) + 'cn-reloaded=1' + window.location.hash;
44
+
45
+ window.location.href = url;
46
+ } else {
47
+ url = url + hostname.replace( '//', '/' ) + window.location.search + window.location.hash;
48
+
49
+ window.location.reload( true );
50
+ }
51
+
52
+ return;
53
+ }
54
  };
55
 
56
  // remove Cookie Notice
languages/cookie-notice.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Cookie Notice\n"
5
- "POT-Creation-Date: 2017-02-02 14:21+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,309 +10,317 @@ 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 1.8.11\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:126
20
  msgid "Top"
21
  msgstr ""
22
 
23
- #: ../cookie-notice.php:127
24
  msgid "Bottom"
25
  msgstr ""
26
 
27
- #: ../cookie-notice.php:131 ../cookie-notice.php:162
28
  msgid "None"
29
  msgstr ""
30
 
31
- #: ../cookie-notice.php:132
32
  msgid "WordPress"
33
  msgstr ""
34
 
35
- #: ../cookie-notice.php:133
36
  msgid "Bootstrap"
37
  msgstr ""
38
 
39
- #: ../cookie-notice.php:137
40
  msgid "Custom link"
41
  msgstr ""
42
 
43
- #: ../cookie-notice.php:138
44
  msgid "Page link"
45
  msgstr ""
46
 
47
- #: ../cookie-notice.php:147
48
  msgid "Text color"
49
  msgstr ""
50
 
51
- #: ../cookie-notice.php:148
52
  msgid "Bar color"
53
  msgstr ""
54
 
55
- #: ../cookie-notice.php:152
56
  msgid "1 day"
57
  msgstr ""
58
 
59
- #: ../cookie-notice.php:153
60
  msgid "1 week"
61
  msgstr ""
62
 
63
- #: ../cookie-notice.php:154
64
  msgid "1 month"
65
  msgstr ""
66
 
67
- #: ../cookie-notice.php:155
68
  msgid "3 months"
69
  msgstr ""
70
 
71
- #: ../cookie-notice.php:156
72
  msgid "6 months"
73
  msgstr ""
74
 
75
- #: ../cookie-notice.php:157
76
  msgid "1 year"
77
  msgstr ""
78
 
79
- #: ../cookie-notice.php:158
80
  msgid "infinity"
81
  msgstr ""
82
 
83
- #: ../cookie-notice.php:163
84
  msgid "Fade"
85
  msgstr ""
86
 
87
- #: ../cookie-notice.php:164
88
  msgid "Slide"
89
  msgstr ""
90
 
91
- #: ../cookie-notice.php:168
92
  msgid "Header"
93
  msgstr ""
94
 
95
- #: ../cookie-notice.php:169
96
  msgid "Footer"
97
  msgstr ""
98
 
99
- #: ../cookie-notice.php:175
100
  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."
101
  msgstr ""
102
 
103
- #: ../cookie-notice.php:176
104
  msgid "Ok"
105
  msgstr ""
106
 
107
- #: ../cookie-notice.php:177
108
  msgid "No"
109
  msgstr ""
110
 
111
- #: ../cookie-notice.php:178
112
  msgid "Read more"
113
  msgstr ""
114
 
115
- #: ../cookie-notice.php:238 ../cookie-notice.php:250 ../cookie-notice.php:253
116
  msgid "Cookie Notice"
117
  msgstr ""
118
 
119
- #: ../cookie-notice.php:255
120
  msgid "Need support?"
121
  msgstr ""
122
 
123
- #: ../cookie-notice.php:256
124
  #, php-format
125
  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>"
126
  msgstr ""
127
 
128
- #: ../cookie-notice.php:258
129
  msgid "Do you like this plugin?"
130
  msgstr ""
131
 
132
- #: ../cookie-notice.php:259
133
  #, php-format
134
  msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
135
  msgstr ""
136
 
137
- #: ../cookie-notice.php:260
138
  #, php-format
139
  msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
140
  msgstr ""
141
 
142
- #: ../cookie-notice.php:261
143
  #, php-format
144
  msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
145
  msgstr ""
146
 
147
- #: ../cookie-notice.php:276
148
  msgid "Reset to defaults"
149
  msgstr ""
150
 
151
- #: ../cookie-notice.php:292
152
  msgid "Configuration"
153
  msgstr ""
154
 
155
- #: ../cookie-notice.php:293
156
  msgid "Message"
157
  msgstr ""
158
 
159
- #: ../cookie-notice.php:294
160
  msgid "Button text"
161
  msgstr ""
162
 
163
- #: ../cookie-notice.php:295
164
  msgid "More info link"
165
  msgstr ""
166
 
167
- #: ../cookie-notice.php:296
168
  msgid "Link target"
169
  msgstr ""
170
 
171
- #: ../cookie-notice.php:297
172
  msgid "Refuse button"
173
  msgstr ""
174
 
175
- #: ../cookie-notice.php:298
176
  msgid "Script blocking"
177
  msgstr ""
178
 
179
- #: ../cookie-notice.php:299
 
 
 
 
180
  msgid "On scroll"
181
  msgstr ""
182
 
183
- #: ../cookie-notice.php:300
184
  msgid "Cookie expiry"
185
  msgstr ""
186
 
187
- #: ../cookie-notice.php:301
188
  msgid "Script placement"
189
  msgstr ""
190
 
191
- #: ../cookie-notice.php:302
192
  msgid "Deactivation"
193
  msgstr ""
194
 
195
- #: ../cookie-notice.php:305
196
  msgid "Design"
197
  msgstr ""
198
 
199
- #: ../cookie-notice.php:306
200
  msgid "Position"
201
  msgstr ""
202
 
203
- #: ../cookie-notice.php:307
204
  msgid "Animation"
205
  msgstr ""
206
 
207
- #: ../cookie-notice.php:308
208
  msgid "Button style"
209
  msgstr ""
210
 
211
- #: ../cookie-notice.php:309
212
  msgid "Colors"
213
  msgstr ""
214
 
215
- #: ../cookie-notice.php:323
216
  msgid "Enable if you want all plugin data to be deleted on deactivation."
217
  msgstr ""
218
 
219
- #: ../cookie-notice.php:333
220
  msgid "Enter the cookie notice message."
221
  msgstr ""
222
 
223
- #: ../cookie-notice.php:344
224
  msgid "The text of the option to accept the usage of the cookies and make the notification disappear."
225
  msgstr ""
226
 
227
- #: ../cookie-notice.php:354
228
  msgid "Give to the user the possibility to refuse third party non functional cookies."
229
  msgstr ""
230
 
231
- #: ../cookie-notice.php:359
232
  msgid "The text of the option to refuse the usage of the cookies."
233
  msgstr ""
234
 
235
- #: ../cookie-notice.php:373
236
  msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after cookies are accepted."
237
  msgstr ""
238
 
239
- #: ../cookie-notice.php:373
240
  msgid "To get the cookie notice status use <code>cn_cookies_accepted()</code> function."
241
  msgstr ""
242
 
243
- #: ../cookie-notice.php:396
 
 
 
 
244
  msgid "Enable Read more link."
245
  msgstr ""
246
 
247
- #: ../cookie-notice.php:397
248
  #, php-format
249
  msgid "Need a Cookie Policy? Generate one with <a href=\"%s\" target=\"_blank\" title=\"iubenda\">iubenda</a>"
250
  msgstr ""
251
 
252
- #: ../cookie-notice.php:403
253
  msgid "The text of the more info button."
254
  msgstr ""
255
 
256
- #: ../cookie-notice.php:417
257
  msgid "Select where to redirect user for more information about cookies."
258
  msgstr ""
259
 
260
- #: ../cookie-notice.php:420
261
  msgid "-- select page --"
262
  msgstr ""
263
 
264
- #: ../cookie-notice.php:431
265
  msgid "Select from one of your site's pages"
266
  msgstr ""
267
 
268
- #: ../cookie-notice.php:435
269
  msgid "Enter the full URL starting with http://"
270
  msgstr ""
271
 
272
- #: ../cookie-notice.php:455
273
  msgid "Select the link target for more info page."
274
  msgstr ""
275
 
276
- #: ../cookie-notice.php:475
277
  msgid "The ammount of time that cookie should be stored for."
278
  msgstr ""
279
 
280
- #: ../cookie-notice.php:489
281
  msgid "Select where all the plugin scripts should be placed."
282
  msgstr ""
283
 
284
- #: ../cookie-notice.php:507
285
  msgid "Select location for your cookie notice."
286
  msgstr ""
287
 
288
- #: ../cookie-notice.php:526
289
  msgid "Cookie notice acceptance animation."
290
  msgstr ""
291
 
292
- #: ../cookie-notice.php:536
293
  msgid "Enable cookie notice acceptance when users scroll."
294
  msgstr ""
295
 
296
- #: ../cookie-notice.php:540
297
  msgid "Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear."
298
  msgstr ""
299
 
300
- #: ../cookie-notice.php:560
301
  msgid "Choose buttons style."
302
  msgstr ""
303
 
304
- #: ../cookie-notice.php:665
305
  msgid "Settings restored to defaults."
306
  msgstr ""
307
 
308
- #: ../cookie-notice.php:766
309
  msgid "Support"
310
  msgstr ""
311
 
312
- #: ../cookie-notice.php:785
313
  msgid "Settings"
314
  msgstr ""
315
 
316
- #: ../cookie-notice.php:819
317
  msgid "Are you sure you want to reset these settings to defaults?"
318
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Cookie Notice\n"
5
+ "POT-Creation-Date: 2017-08-28 10:32+0200\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 1.8.12\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:127
20
  msgid "Top"
21
  msgstr ""
22
 
23
+ #: ../cookie-notice.php:128
24
  msgid "Bottom"
25
  msgstr ""
26
 
27
+ #: ../cookie-notice.php:132 ../cookie-notice.php:163
28
  msgid "None"
29
  msgstr ""
30
 
31
+ #: ../cookie-notice.php:133
32
  msgid "WordPress"
33
  msgstr ""
34
 
35
+ #: ../cookie-notice.php:134
36
  msgid "Bootstrap"
37
  msgstr ""
38
 
39
+ #: ../cookie-notice.php:138
40
  msgid "Custom link"
41
  msgstr ""
42
 
43
+ #: ../cookie-notice.php:139
44
  msgid "Page link"
45
  msgstr ""
46
 
47
+ #: ../cookie-notice.php:148
48
  msgid "Text color"
49
  msgstr ""
50
 
51
+ #: ../cookie-notice.php:149
52
  msgid "Bar color"
53
  msgstr ""
54
 
55
+ #: ../cookie-notice.php:153
56
  msgid "1 day"
57
  msgstr ""
58
 
59
+ #: ../cookie-notice.php:154
60
  msgid "1 week"
61
  msgstr ""
62
 
63
+ #: ../cookie-notice.php:155
64
  msgid "1 month"
65
  msgstr ""
66
 
67
+ #: ../cookie-notice.php:156
68
  msgid "3 months"
69
  msgstr ""
70
 
71
+ #: ../cookie-notice.php:157
72
  msgid "6 months"
73
  msgstr ""
74
 
75
+ #: ../cookie-notice.php:158
76
  msgid "1 year"
77
  msgstr ""
78
 
79
+ #: ../cookie-notice.php:159
80
  msgid "infinity"
81
  msgstr ""
82
 
83
+ #: ../cookie-notice.php:164
84
  msgid "Fade"
85
  msgstr ""
86
 
87
+ #: ../cookie-notice.php:165
88
  msgid "Slide"
89
  msgstr ""
90
 
91
+ #: ../cookie-notice.php:169
92
  msgid "Header"
93
  msgstr ""
94
 
95
+ #: ../cookie-notice.php:170
96
  msgid "Footer"
97
  msgstr ""
98
 
99
+ #: ../cookie-notice.php:176
100
  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."
101
  msgstr ""
102
 
103
+ #: ../cookie-notice.php:177
104
  msgid "Ok"
105
  msgstr ""
106
 
107
+ #: ../cookie-notice.php:178
108
  msgid "No"
109
  msgstr ""
110
 
111
+ #: ../cookie-notice.php:179
112
  msgid "Read more"
113
  msgstr ""
114
 
115
+ #: ../cookie-notice.php:239 ../cookie-notice.php:251 ../cookie-notice.php:254
116
  msgid "Cookie Notice"
117
  msgstr ""
118
 
119
+ #: ../cookie-notice.php:256
120
  msgid "Need support?"
121
  msgstr ""
122
 
123
+ #: ../cookie-notice.php:257
124
  #, php-format
125
  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>"
126
  msgstr ""
127
 
128
+ #: ../cookie-notice.php:259
129
  msgid "Do you like this plugin?"
130
  msgstr ""
131
 
132
+ #: ../cookie-notice.php:260
133
  #, php-format
134
  msgid "<a href=\"%s\" target=\"_blank\">Rate it 5</a> on WordPress.org"
135
  msgstr ""
136
 
137
+ #: ../cookie-notice.php:261
138
  #, php-format
139
  msgid "Blog about it & link to the <a href=\"%s\" target=\"_blank\">plugin page</a>."
140
  msgstr ""
141
 
142
+ #: ../cookie-notice.php:262
143
  #, php-format
144
  msgid "Check out our other <a href=\"%s\" target=\"_blank\">WordPress plugins</a>."
145
  msgstr ""
146
 
147
+ #: ../cookie-notice.php:277
148
  msgid "Reset to defaults"
149
  msgstr ""
150
 
151
+ #: ../cookie-notice.php:293
152
  msgid "Configuration"
153
  msgstr ""
154
 
155
+ #: ../cookie-notice.php:294
156
  msgid "Message"
157
  msgstr ""
158
 
159
+ #: ../cookie-notice.php:295
160
  msgid "Button text"
161
  msgstr ""
162
 
163
+ #: ../cookie-notice.php:296
164
  msgid "More info link"
165
  msgstr ""
166
 
167
+ #: ../cookie-notice.php:297
168
  msgid "Link target"
169
  msgstr ""
170
 
171
+ #: ../cookie-notice.php:298
172
  msgid "Refuse button"
173
  msgstr ""
174
 
175
+ #: ../cookie-notice.php:299
176
  msgid "Script blocking"
177
  msgstr ""
178
 
179
+ #: ../cookie-notice.php:300
180
+ msgid "Reloading"
181
+ msgstr ""
182
+
183
+ #: ../cookie-notice.php:301
184
  msgid "On scroll"
185
  msgstr ""
186
 
187
+ #: ../cookie-notice.php:302
188
  msgid "Cookie expiry"
189
  msgstr ""
190
 
191
+ #: ../cookie-notice.php:303
192
  msgid "Script placement"
193
  msgstr ""
194
 
195
+ #: ../cookie-notice.php:304
196
  msgid "Deactivation"
197
  msgstr ""
198
 
199
+ #: ../cookie-notice.php:307
200
  msgid "Design"
201
  msgstr ""
202
 
203
+ #: ../cookie-notice.php:308
204
  msgid "Position"
205
  msgstr ""
206
 
207
+ #: ../cookie-notice.php:309
208
  msgid "Animation"
209
  msgstr ""
210
 
211
+ #: ../cookie-notice.php:310
212
  msgid "Button style"
213
  msgstr ""
214
 
215
+ #: ../cookie-notice.php:311
216
  msgid "Colors"
217
  msgstr ""
218
 
219
+ #: ../cookie-notice.php:325
220
  msgid "Enable if you want all plugin data to be deleted on deactivation."
221
  msgstr ""
222
 
223
+ #: ../cookie-notice.php:335
224
  msgid "Enter the cookie notice message."
225
  msgstr ""
226
 
227
+ #: ../cookie-notice.php:346
228
  msgid "The text of the option to accept the usage of the cookies and make the notification disappear."
229
  msgstr ""
230
 
231
+ #: ../cookie-notice.php:356
232
  msgid "Give to the user the possibility to refuse third party non functional cookies."
233
  msgstr ""
234
 
235
+ #: ../cookie-notice.php:361
236
  msgid "The text of the option to refuse the usage of the cookies."
237
  msgstr ""
238
 
239
+ #: ../cookie-notice.php:375
240
  msgid "Enter non functional cookies Javascript code here (for e.g. Google Analitycs) to be used after cookies are accepted."
241
  msgstr ""
242
 
243
+ #: ../cookie-notice.php:375
244
  msgid "To get the cookie notice status use <code>cn_cookies_accepted()</code> function."
245
  msgstr ""
246
 
247
+ #: ../cookie-notice.php:384
248
+ msgid "Enable to reload the page after cookies are accepted."
249
+ msgstr ""
250
+
251
+ #: ../cookie-notice.php:406
252
  msgid "Enable Read more link."
253
  msgstr ""
254
 
255
+ #: ../cookie-notice.php:407
256
  #, php-format
257
  msgid "Need a Cookie Policy? Generate one with <a href=\"%s\" target=\"_blank\" title=\"iubenda\">iubenda</a>"
258
  msgstr ""
259
 
260
+ #: ../cookie-notice.php:413
261
  msgid "The text of the more info button."
262
  msgstr ""
263
 
264
+ #: ../cookie-notice.php:427
265
  msgid "Select where to redirect user for more information about cookies."
266
  msgstr ""
267
 
268
+ #: ../cookie-notice.php:430
269
  msgid "-- select page --"
270
  msgstr ""
271
 
272
+ #: ../cookie-notice.php:441
273
  msgid "Select from one of your site's pages"
274
  msgstr ""
275
 
276
+ #: ../cookie-notice.php:445
277
  msgid "Enter the full URL starting with http://"
278
  msgstr ""
279
 
280
+ #: ../cookie-notice.php:465
281
  msgid "Select the link target for more info page."
282
  msgstr ""
283
 
284
+ #: ../cookie-notice.php:485
285
  msgid "The ammount of time that cookie should be stored for."
286
  msgstr ""
287
 
288
+ #: ../cookie-notice.php:499
289
  msgid "Select where all the plugin scripts should be placed."
290
  msgstr ""
291
 
292
+ #: ../cookie-notice.php:517
293
  msgid "Select location for your cookie notice."
294
  msgstr ""
295
 
296
+ #: ../cookie-notice.php:536
297
  msgid "Cookie notice acceptance animation."
298
  msgstr ""
299
 
300
+ #: ../cookie-notice.php:546
301
  msgid "Enable cookie notice acceptance when users scroll."
302
  msgstr ""
303
 
304
+ #: ../cookie-notice.php:550
305
  msgid "Number of pixels user has to scroll to accept the usage of the cookies and make the notification disappear."
306
  msgstr ""
307
 
308
+ #: ../cookie-notice.php:570
309
  msgid "Choose buttons style."
310
  msgstr ""
311
 
312
+ #: ../cookie-notice.php:677
313
  msgid "Settings restored to defaults."
314
  msgstr ""
315
 
316
+ #: ../cookie-notice.php:778
317
  msgid "Support"
318
  msgstr ""
319
 
320
+ #: ../cookie-notice.php:797
321
  msgid "Settings"
322
  msgstr ""
323
 
324
+ #: ../cookie-notice.php:831
325
  msgid "Are you sure you want to reset these settings to defaults?"
326
  msgstr ""
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dfactory
3
  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: 4.7.2
7
- Stable tag: 1.2.38
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
@@ -25,11 +25,13 @@ For more information, check out plugin page at [dFactory](http://www.dfactory.eu
25
  * Option to accept cookies on scroll
26
  * Option to set on scroll offset
27
  * Option to refuse functional cookies
 
28
  * Select the position of the cookie message box
29
  * Animate the message box after cookie is accepted
30
  * Select bottons style from None, WordPress and Bootstrap
31
  * Set the text and bar background colors
32
  * WPML and Polylang compatible
 
33
  * .pot file for translations included
34
 
35
  = Usage: =
@@ -60,6 +62,9 @@ No questions yet.
60
 
61
  == Changelog ==
62
 
 
 
 
63
  = 1.2.38 =
64
  * Tweak: Move frontend cookie js functions before the document ready call, thanks to [fgreinus](https://github.com/fgreinus)
65
  * Tweak: Adjust functional javascript code handling
@@ -221,6 +226,5 @@ Initial release
221
 
222
  == Upgrade Notice ==
223
 
224
- = 1.2.38 =
225
- * Tweak: Move frontend cookie js functions before the document ready call
226
- * Tweak: Adjust functional javascript code handling
3
  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: 4.8.1
7
+ Stable tag: 1.2.39
8
  License: MIT License
9
  License URI: http://opensource.org/licenses/MIT
10
 
25
  * Option to accept cookies on scroll
26
  * Option to set on scroll offset
27
  * Option to refuse functional cookies
28
+ * Option to reload the page after cookies are accepted
29
  * Select the position of the cookie message box
30
  * Animate the message box after cookie is accepted
31
  * Select bottons style from None, WordPress and Bootstrap
32
  * Set the text and bar background colors
33
  * WPML and Polylang compatible
34
+ * SEO friendly
35
  * .pot file for translations included
36
 
37
  = Usage: =
62
 
63
  == Changelog ==
64
 
65
+ = 1.2.39 =
66
+ * New: Option to reload the page after cookies are accepted
67
+
68
  = 1.2.38 =
69
  * Tweak: Move frontend cookie js functions before the document ready call, thanks to [fgreinus](https://github.com/fgreinus)
70
  * Tweak: Adjust functional javascript code handling
226
 
227
  == Upgrade Notice ==
228
 
229
+ = 1.2.39 =
230
+ * New: Option to reload the page after cookies are accepted