GDPR Cookie Compliance - Version 1.2.1

Version Description

  • Improved admin-ajax.php loading by transient
  • Fixed checkbox labels by WCAG 2.0
  • Added 'gdpr-infobar-visible' class to the body if the infobar is visible
Download this release

Release Info

Developer MooveAgency
Plugin Icon 128x128 GDPR Cookie Compliance
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

controllers/moove-controller.php CHANGED
@@ -228,61 +228,90 @@ class Moove_GDPR_Controller {
228
  $strict = intval( $_POST['strict'] ) && intval( $_POST['strict'] ) === 1 ? true : false;
229
  $thirdparty = intval( $_POST['thirdparty'] ) && intval( $_POST['thirdparty'] ) === 1 ? true : false;
230
  $advanced = intval( $_POST['advanced'] ) && intval( $_POST['advanced'] ) === 1 ? true : false;
231
- $return_scripts = '';
232
- $gdpr_default_content = new Moove_GDPR_Content();
233
- $option_name = $gdpr_default_content->moove_gdpr_get_option_name();
234
- $modal_options = get_option( $option_name );
235
 
236
- $third_party_scripts = array();
237
- $scripts_array = array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  'header' => '',
239
  'body' => '',
240
  'footer' => ''
241
  );
242
- if ( $strict === true ) :
243
- if ( $thirdparty ) :
244
-
245
- ob_start();
246
- $third_party_scripts = isset( $modal_options['moove_gdpr_third_party_header_scripts'] ) && $modal_options['moove_gdpr_third_party_header_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_third_party_header_scripts'] ) : '';
247
- $third_party_scripts = apply_filters( 'moove_gdpr_third_party_header_assets', $third_party_scripts );
248
- echo $third_party_scripts;
249
- $scripts_array['header'] .= ob_get_clean();
250
-
251
- ob_start();
252
- $third_party_scripts = isset( $modal_options['moove_gdpr_third_party_body_scripts'] ) && $modal_options['moove_gdpr_third_party_body_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_third_party_body_scripts'] ) : '';
253
- $third_party_scripts = apply_filters( 'moove_gdpr_third_party_body_assets', $third_party_scripts );
254
- echo $third_party_scripts;
255
- $scripts_array['body'] .= ob_get_clean();
256
 
 
257
 
258
- ob_start();
259
- $third_party_scripts = isset( $modal_options['moove_gdpr_third_party_footer_scripts'] ) && $modal_options['moove_gdpr_third_party_footer_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_third_party_footer_scripts'] ) : '';
260
- $third_party_scripts = apply_filters( 'moove_gdpr_third_party_footer_assets', $third_party_scripts );
261
- echo $third_party_scripts;
262
- $scripts_array['footer'] .= ob_get_clean();
263
 
 
 
 
 
 
264
  endif;
265
 
 
266
  if ( $advanced ) :
267
- ob_start();
268
- $advanced_scripts = isset( $modal_options['moove_gdpr_advanced_cookies_header_scripts'] ) && $modal_options['moove_gdpr_advanced_cookies_header_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_advanced_cookies_header_scripts'] ) : '';
269
- $advanced_scripts = apply_filters( 'moove_gdpr_advanced_cookies_header_assets', $advanced_scripts );
270
- echo $advanced_scripts;
271
- $scripts_array['header'] .= ob_get_clean();
272
-
273
- ob_start();
274
- $advanced_scripts = isset( $modal_options['moove_gdpr_advanced_cookies_body_scripts'] ) && $modal_options['moove_gdpr_advanced_cookies_body_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_advanced_cookies_body_scripts'] ) : '';
275
- $advanced_scripts = apply_filters( 'moove_gdpr_advanced_cookies_body_assets', $advanced_scripts );
276
- echo $advanced_scripts;
277
- $scripts_array['body'] .= ob_get_clean();
278
-
279
-
280
- ob_start();
281
- $advanced_scripts = isset( $modal_options['moove_gdpr_advanced_cookies_footer_scripts'] ) && $modal_options['moove_gdpr_advanced_cookies_footer_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_advanced_cookies_footer_scripts'] ) : '';
282
- $advanced_scripts = apply_filters( 'moove_gdpr_advanced_cookies_footer_assets', $advanced_scripts );
283
- echo $advanced_scripts;
284
- $scripts_array['footer'] .= ob_get_clean();
285
-
286
  endif;
287
  else :
288
  if (isset($_SERVER['HTTP_COOKIE'])) {
@@ -295,7 +324,6 @@ class Moove_GDPR_Controller {
295
  }
296
  }
297
  endif;
298
-
299
  echo json_encode( $scripts_array );
300
  die();
301
  }
228
  $strict = intval( $_POST['strict'] ) && intval( $_POST['strict'] ) === 1 ? true : false;
229
  $thirdparty = intval( $_POST['thirdparty'] ) && intval( $_POST['thirdparty'] ) === 1 ? true : false;
230
  $advanced = intval( $_POST['advanced'] ) && intval( $_POST['advanced'] ) === 1 ? true : false;
 
 
 
 
231
 
232
+ $transient_key = 'gdpr_cookie_cache';
233
+ $transient = get_transient( $transient_key );
234
+
235
+ if ( ! empty( $transient ) ) :
236
+ $transient_from_cache = json_decode( $transient, true );
237
+ else :
238
+ $gdpr_default_content = new Moove_GDPR_Content();
239
+ $option_name = $gdpr_default_content->moove_gdpr_get_option_name();
240
+ $modal_options = get_option( $option_name );
241
+
242
+ $cache_array = array();
243
+
244
+ // THIRD PARTY - SCRIPT CACHE
245
+ ob_start();
246
+ $third_party_scripts = isset( $modal_options['moove_gdpr_third_party_header_scripts'] ) && $modal_options['moove_gdpr_third_party_header_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_third_party_header_scripts'] ) : '';
247
+ $third_party_scripts = apply_filters( 'moove_gdpr_third_party_header_assets', $third_party_scripts );
248
+ echo $third_party_scripts;
249
+ $cache_array['thirdparty']['header'] .= ob_get_clean();
250
+
251
+ ob_start();
252
+ $third_party_scripts = isset( $modal_options['moove_gdpr_third_party_body_scripts'] ) && $modal_options['moove_gdpr_third_party_body_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_third_party_body_scripts'] ) : '';
253
+ $third_party_scripts = apply_filters( 'moove_gdpr_third_party_body_assets', $third_party_scripts );
254
+ echo $third_party_scripts;
255
+ $cache_array['thirdparty']['body'] .= ob_get_clean();
256
+
257
+ ob_start();
258
+ $third_party_scripts = isset( $modal_options['moove_gdpr_third_party_footer_scripts'] ) && $modal_options['moove_gdpr_third_party_footer_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_third_party_footer_scripts'] ) : '';
259
+ $third_party_scripts = apply_filters( 'moove_gdpr_third_party_footer_assets', $third_party_scripts );
260
+ echo $third_party_scripts;
261
+ $cache_array['thirdparty']['footer'] .= ob_get_clean();
262
+
263
+
264
+ // ADVANCED - SCRIPT CACHE
265
+ ob_start();
266
+ $advanced_scripts = isset( $modal_options['moove_gdpr_advanced_cookies_header_scripts'] ) && $modal_options['moove_gdpr_advanced_cookies_header_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_advanced_cookies_header_scripts'] ) : '';
267
+ $advanced_scripts = apply_filters( 'moove_gdpr_advanced_cookies_header_assets', $advanced_scripts );
268
+ echo $advanced_scripts;
269
+ $cache_array['advanced']['header'] .= ob_get_clean();
270
+
271
+ ob_start();
272
+ $advanced_scripts = isset( $modal_options['moove_gdpr_advanced_cookies_body_scripts'] ) && $modal_options['moove_gdpr_advanced_cookies_body_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_advanced_cookies_body_scripts'] ) : '';
273
+ $advanced_scripts = apply_filters( 'moove_gdpr_advanced_cookies_body_assets', $advanced_scripts );
274
+ echo $advanced_scripts;
275
+ $cache_array['advanced']['body'] .= ob_get_clean();
276
+
277
+
278
+ ob_start();
279
+ $advanced_scripts = isset( $modal_options['moove_gdpr_advanced_cookies_footer_scripts'] ) && $modal_options['moove_gdpr_advanced_cookies_footer_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_advanced_cookies_footer_scripts'] ) : '';
280
+ $advanced_scripts = apply_filters( 'moove_gdpr_advanced_cookies_footer_assets', $advanced_scripts );
281
+ echo $advanced_scripts;
282
+ $cache_array['advanced']['footer'] .= ob_get_clean();
283
+
284
+ $cache_json = json_encode( $cache_array, true );
285
+
286
+ set_transient( $transient_key, $cache_json, 86400 );
287
+ $transient_from_cache = $cache_array;
288
+ endif;
289
+
290
+ $scripts_array = array(
291
+ 'cache' => ! empty( $transient ),
292
  'header' => '',
293
  'body' => '',
294
  'footer' => ''
295
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
 
297
+ if ( $strict === true ) :
298
 
299
+ if ( $thirdparty ) :
 
 
 
 
300
 
301
+ if ( isset( $transient_from_cache['thirdparty'] ) ) :
302
+ $scripts_array['header'] .= $transient_from_cache['thirdparty']['header'];
303
+ $scripts_array['body'] .= $transient_from_cache['thirdparty']['body'];
304
+ $scripts_array['footer'] .= $transient_from_cache['thirdparty']['footer'];
305
+ endif;
306
  endif;
307
 
308
+
309
  if ( $advanced ) :
310
+ if ( isset( $transient_from_cache['advanced'] ) ) :
311
+ $scripts_array['header'] .= $transient_from_cache['advanced']['header'];
312
+ $scripts_array['body'] .= $transient_from_cache['advanced']['body'];
313
+ $scripts_array['footer'] .= $transient_from_cache['advanced']['footer'];
314
+ endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  endif;
316
  else :
317
  if (isset($_SERVER['HTTP_COOKIE'])) {
324
  }
325
  }
326
  endif;
 
327
  echo json_encode( $scripts_array );
328
  die();
329
  }
dist/scripts/main.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.postscribe=e():t.postscribe=e()}(this,function(){return function(t){function e(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var r=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default},function(t,e,o){"use strict";function r(){}function n(){var t=h.shift();if(t){var e=l.last(t);e.afterDequeue(),t.stream=i.apply(void 0,t),e.afterStreamStart()}}function i(t,e,o){function i(t){t=o.beforeWrite(t),m.write(t),o.afterWrite(t)}m=new d.default(t,o),m.id=f++,m.name=o.name||m.id,a.streams[m.name]=m;var c=t.ownerDocument,p={close:c.close,open:c.open,write:c.write,writeln:c.writeln};s(c,{close:r,open:r,write:function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return i(e.join(""))},writeln:function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return i(e.join("")+"\n")}});var l=m.win.onerror||r;return m.win.onerror=function(t,e,r){o.error({msg:t+" - "+e+": "+r}),l.apply(m.win,[t,e,r])},m.write(e,function(){s(c,p),m.win.onerror=l,o.done(),m=null,n()}),m}function a(t,e,o){if(l.isFunction(o))o={done:o};else if("clear"===o)return h=[],m=null,void(f=0);o=l.defaults(o,u),t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t;var i=[t,e,o];return t.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=r}},o.beforeEnqueue(i),h.push(i),m||n(),t.postscribe}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t};e.default=a;var c=o(2),d=function(t){return t&&t.__esModule?t:{default:t}}(c),p=o(4),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(p),u={afterAsync:r,afterDequeue:r,afterStreamStart:r,afterWrite:r,autoFix:!0,beforeEnqueue:r,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:r,error:function(t){throw new Error(t.msg)},releaseAsync:!1},f=0,h=[],m=null;s(a,{streams:{},queue:h,WriteStream:d.default})},function(t,e,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){var o=l+e,r=t.getAttribute(o);return p.existy(r)?String(r):r}function i(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=l+e;p.existy(o)&&""!==o?t.setAttribute(r,o):t.removeAttribute(r)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},s=o(3),c=function(t){return t&&t.__esModule?t:{default:t}}(s),d=o(4),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(d),l="data-ps-",u="ps-style",f="ps-script",h=function(){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.root=e,this.options=o,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new c.default("",{autoFix:o.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();p.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,o=void 0,r=void 0,n=[];(e=this.parser.readToken())&&!(o=p.isScript(e))&&!(r=p.isStyle(e));)(e=this.options.beforeWriteToken(e))&&n.push(e);n.length>0&&this._writeStaticTokens(n),o&&this._handleScriptToken(e),r&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,this._walkChunk(),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,o=[],r=[],n=[],i=t.length,a=0;a<i;a++){var s=t[a],c=s.toString();if(o.push(c),s.attrs){if(!/^noscript$/i.test(s.tagName)){var d=e++;r.push(c.replace(/(\/?>)/," "+l+"id="+d+" $1")),s.attrs.id!==f&&s.attrs.id!==u&&n.push("atomicTag"===s.type?"":"<"+s.tagName+" "+l+"proxyof="+d+(s.unary?" />":">"))}}else r.push(c),n.push("endTag"===s.type?c:"")}return{tokens:t,raw:o.join(""),actual:r.join(""),proxy:n.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];p.existy(t=e.shift());){var o=1===t.nodeType;if(!(o&&n(t,"proxyof"))){o&&(this.actuals[n(t,"id")]=t,i(t,"id"));var r=t.parentNode&&n(t.parentNode,"proxyof");r&&this.actuals[r].appendChild(t)}e.unshift.apply(e,p.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,o=this.parser.clear();o&&this.writeQueue.unshift(o),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,u),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),p.eachKey(t.attrs,function(t,o){e.setAttribute(t,o)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');var o=this.doc.getElementById(e);o&&o.parentNode.replaceChild(t,o)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var o=this._buildScript(t),r=this._shouldRelease(o),n=this.options.afterAsync;t.src&&(o.src=t.src,this._scriptLoadHandler(o,r?n:function(){e(),n()}));try{this._insertCursor(o,f),o.src&&!r||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return p.eachKey(t.attrs,function(t,o){e.setAttribute(t,o)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function o(){t=t.onload=t.onreadystatechange=t.onerror=null}function r(){o(),null!=e&&e(),e=null}function n(t){o(),s(t),null!=e&&e(),e=null}function i(t,e){var o=t["on"+e];null!=o&&(t["_on"+e]=o)}var s=this.options.error;i(t,"load"),i(t,"error"),a(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){n({msg:"onload handler failed "+e+" @ "+t.src})}r()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void n({msg:"onerror handler failed "+e+" @ "+t.src})}n({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&r()}})},t.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e.default=h},function(t,e,o){!function(e,o){t.exports=function(){return function(t){function e(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var r=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default},function(t,e,o){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=o(2),a=r(i),s=o(3),c=r(s),d=o(6),p=function(t){return t&&t.__esModule?t:{default:t}}(d),l=o(5),u={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},f=function(){function t(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.stream=o;var i=!1,s={};for(var c in a)a.hasOwnProperty(c)&&(r.autoFix&&(s[c+"Fix"]=!0),i=i||s[c+"Fix"]);i?(this._readToken=(0,p.default)(this,s,function(){return e._readTokenImpl()}),this._peekToken=(0,p.default)(this,s,function(){return e._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in u)if(u.hasOwnProperty(t)&&u[t].test(this.stream)){var e=c[t](this.stream);if(e)return"startTag"===e.type&&/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&&!1===t[e.type](e))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();e.default=f,f.tokenToString=function(t){return t.toString()},f.escapeAttributes=function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=(0,l.escapeQuotes)(t[o],null));return e},f.supports=a;for(var h in a)a.hasOwnProperty(h)&&(f.browserHasFlaw=f.browserHasFlaw||!a[h]&&h)},function(t,e){"use strict";e.__esModule=!0;var o=!1,r=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,e.tagSoup=o=n.innerHTML!==i}catch(t){e.tagSoup=o=!1}try{n.innerHTML="<P><i><P></P></i></P>",e.selfClose=r=2===n.childNodes.length}catch(t){e.selfClose=r=!1}n=null,e.tagSoup=o,e.selfClose=r},function(t,e,o){"use strict";function r(t){var e=t.indexOf("--\x3e");if(e>=0)return new d.CommentToken(t.substr(4,e-1),e+3)}function n(t){var e=t.indexOf("<");return new d.CharsToken(e>=0?e:t.length)}function i(t){if(-1!==t.indexOf(">")){var e=t.match(p.startTag);if(e){var o=function(){var t={},o={},r=e[2];return e[2].replace(p.attr,function(e,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",o[arguments[5]]=!0):t[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":t[n]="",r=r.replace(e,"")}),{v:new d.StartTagToken(e[1],e[0].length,t,o,!!e[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===o?"undefined":c(o)))return o.v}}}function a(t){var e=i(t);if(e){var o=t.slice(e.length);if(o.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){var r=o.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(r)return new d.AtomicTagToken(e.tagName,r[0].length+e.length,e.attrs,e.booleanAttrs,r[1])}}}function s(t){var e=t.match(p.endTag);if(e)return new d.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.comment=r,e.chars=n,e.startTag=i,e.atomicTag=a,e.endTag=s;var d=o(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var n=o(5),i=(e.Token=function t(e,o){r(this,t),this.type=e,this.length=o,this.text=""},e.CommentToken=function(){function t(e,o){r(this,t),this.type="comment",this.length=o||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),e.CharsToken=function(){function t(e){r(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}(),e.TagToken=function(){function t(e,o,n,i,a){r(this,t),this.type=e,this.length=n,this.text="",this.tagName=o,this.attrs=i,this.booleanAttrs=a,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o="<"+t.tagName;for(var r in t.attrs)if(t.attrs.hasOwnProperty(r)){o+=" "+r;var i=t.attrs[r];void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[r]||(o+='="'+(0,n.escapeQuotes)(i)+'"')}return t.rest&&(o+=" "+t.rest),o+=t.unary&&!t.html5Unary?"/>":">",void 0!==e&&null!==e&&(o+=e+"</"+t.tagName+">"),o},t}());e.StartTagToken=function(){function t(e,o,n,i,a,s){r(this,t),this.type="startTag",this.length=o,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=a,this.rest=s}return t.prototype.toString=function(){return i.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,o,n,i,a){r(this,t),this.type="atomicTag",this.length=o,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=a}return t.prototype.toString=function(){return i.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,o){r(this,t),this.type="endTag",this.length=o,this.text="",this.tagName=e}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,e){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}e.__esModule=!0,e.escapeQuotes=o},function(t,e){"use strict";function o(t){return t&&"startTag"===t.type&&(t.unary=s.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function r(t,e){var r=t.stream,n=o(e());return t.stream=r,n}function n(t,e){var o=e.pop();t.prepend("</"+o.tagName+">")}function i(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,o=0;e=this[o];o++)if(e.tagName===t)return!0;return!1},t}function a(t,e,a){function s(){var e=r(t,a);e&&p[e.type]&&p[e.type](e)}var d=i(),p={startTag:function(o){var r=o.tagName;"TR"===r.toUpperCase()&&d.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),s()):e.selfCloseFix&&c.test(r)&&d.containsTagName(r)?d.lastTagNameEq(r)?n(t,d):(t.prepend("</"+o.tagName+">"),s()):o.unary||d.push(o)},endTag:function(o){d.last()?e.tagSoupFix&&!d.lastTagNameEq(o.tagName)?n(t,d):d.pop():e.tagSoupFix&&(a(),s())}};return function(){return s(),o(a())}}e.__esModule=!0,e.default=a;var s=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(t,e){"use strict";function o(t){return void 0!==t&&null!==t}function r(t){return"function"==typeof t}function n(t,e,o){var r=void 0,n=t&&t.length||0;for(r=0;r<n;r++)e.call(o,t[r],r)}function i(t,e,o){for(var r in t)t.hasOwnProperty(r)&&e.call(o,r,t[r])}function a(t,e){return t=t||{},i(e,function(e,r){o(t[e])||(t[e]=r)}),t}function s(t){try{return Array.prototype.slice.call(t)}catch(o){var e=function(){var e=[];return n(t,function(t){e.push(t)}),{v:e}}();if("object"===(void 0===e?"undefined":u(e)))return e.v}}function c(t){return t[t.length-1]}function d(t,e){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(e))}function p(t){return d(t,"script")}function l(t){return d(t,"style")}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.existy=o,e.isFunction=r,e.each=n,e.eachKey=i,e.defaults=a,e.toArray=s,e.last=c,e.isTag=d,e.isScript=p,e.isStyle=l}])}),function(t){var e={common:{init:function(){"use strict";function e(){var t=c("moove_gdpr_popup"),e={};return e.strict="0",e.thirdparty="0",e.advanced="0",t&&(t=JSON.parse(t),e.strict=t.strict,e.thirdparty=t.thirdparty,e.advanced=t.advanced),e}function o(t){s("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1"}),365),r("enabled-all")}function r(o){var r=e(),n=!1,a=moove_frontend_gdpr_scripts.enabled_default.third_party,s=moove_frontend_gdpr_scripts.enabled_default.advanced;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==a||1==s){c("moove_gdpr_popup");1!=a&&1!=s||(f={},f.strict=1,f.thirdparty=a,f.advanced=s),f&&(parseInt(r.strict)-parseInt(f.strict)<0&&(n=!0),parseInt(r.thirdparty)-parseInt(f.thirdparty)<0&&(n=!0),parseInt(r.advanced)-parseInt(f.advanced)<0&&(n=!0))}if(n)location.reload(!0);else{d(c("moove_gdpr_popup")),i(),t("#moove_gdpr_save_popup_settings_button").show()}}function n(e){e&&(1===parseInt(e.strict)?t("#moove_gdpr_strict_cookies").is(":checked")||(t("#moove_gdpr_strict_cookies").click(),t("#third_party_cookies fieldset").removeClass("fl-disabled"),t("#moove_gdpr_performance_cookies").prop("disabled",!1),t("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#advanced-cookies fieldset").removeClass("fl-disabled"),t("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#moove_gdpr_advanced_cookies").prop("disabled",!1)):t("#moove_gdpr_strict_cookies").is(":checked")&&(t("#moove_gdpr_strict_cookies").click(),t("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),t("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1)),1===parseInt(e.thirdparty)?t("#moove_gdpr_performance_cookies").is(":checked")||t("#moove_gdpr_performance_cookies").click():t("#moove_gdpr_performance_cookies").is(":checked")&&t("#moove_gdpr_performance_cookies").click(),1===parseInt(e.advanced)?t("#moove_gdpr_advanced_cookies").is(":checked")||t("#moove_gdpr_advanced_cookies").click():t("#moove_gdpr_advanced_cookies").is(":checked")&&t("#moove_gdpr_advanced_cookies").click())}function i(){t("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden")}function a(){t("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),t("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide()}function s(t,e,o){var r;if(o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3),r="; expires="+n.toGMTString()}else r="";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+r+"; path=/"}function c(t){for(var e=encodeURIComponent(t)+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(e))return decodeURIComponent(n.substring(e.length,n.length))}return null}function d(o){if(f=e(),o){var r=o;o=JSON.parse(o);e();if(!1!==h){var n=JSON.parse(h);1===parseInt(n.thirdparty)&&1===parseInt(o.thirdparty)&&(o.thirdparty="0"),1===parseInt(n.advanced)&&1===parseInt(o.advanced)&&(o.advanced="0")}t.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced},function(e){h=r;var o=JSON.parse(e);o.header&&postscribe(document.head,o.header),o.body&&t(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)})}else a()}function p(){var e=!0;t("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){t(this).is(":checked")||(e=!1)}),e?t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):t(".moove-gdpr-button-holder .moove-gdpr-modal-save-settings").is(":visible")?t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").show().addClass("button-visible")}function l(){for(var t=document.cookie.split("; "),e=0;e<t.length;e++)for(var o=window.location.hostname.split(".");o.length>0;){var r=encodeURIComponent(t[e].split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+o.join(".")+" ; path=",n=location.pathname.split("/");for(document.cookie=r+"/";n.length>0;)document.cookie=r+n.join("/"),n.pop();o.shift()}}function u(){var e=c("moove_gdpr_popup");l();var o="0",r="0",n="0",a=!1;e&&(e=JSON.parse(e),o=e.strict,r=e.advanced,n=e.thirdparty),t("#moove_gdpr_strict_cookies").length>0?t("#moove_gdpr_strict_cookies").is(":checked")?(o="1",a=!0):o="0":o="1",t("#moove_gdpr_performance_cookies").is(":checked")?(n="1",a=!0):n="0",t("#moove_gdpr_advanced_cookies").is(":checked")?(r="1",a=!0):r="0",!e&&a?(s("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365),i(),t("#moove_gdpr_save_popup_settings_button").show()):e&&s("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365);var e=c("moove_gdpr_popup");e&&(e=JSON.parse(e),"0"==e.strict&&"0"==e.advanced&&"0"==e.thirdparty&&l())}t.fn.moove_gdpr_read_cookies=function(t){var e=c("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced),o};var f=e(),h=!1;if(t.fn.moove_gdpr_save_cookie=function(e){var o=c("moove_gdpr_popup"),r=t(window).scrollTop();if(!o){if(e.thirdParty)var i="1";else var i="0";if(e.advanced)var a="1";else var a="0";if(e.scrollEnable){var d=e.scrollEnable;t(window).scroll(function(){t(this).scrollTop()-r>d&&("undefined"===e.thirdparty&&"undefined"===e.advanced||(s("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:i,advanced:a}),365),o=JSON.parse(o),n(o)))})}else"undefined"===e.thirdparty&&"undefined"===e.advanced||(s("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:i,advanced:a}),365),o=JSON.parse(o),n(o));o=c("moove_gdpr_popup"),o&&(o=JSON.parse(o),jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced},function(e){var o=JSON.parse(e);o.header&&postscribe(document.head,o.header),o.body&&t(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)}))}},"undefined"==typeof lity){var m=moove_frontend_gdpr_scripts.plugin_dir+"/dist/scripts/lity.js",v=moove_frontend_gdpr_scripts.plugin_dir+"/dist/styles/lity.css";postscribe(document.body,'<script src="'+m+'"><\/script>'),postscribe(document.head,'<link href="'+v+'" rel="stylesheet">')}var _="",g=!1;if(window.location.hash){var y=window.location.hash.substring(1);"moove_gdpr_cookie_modal"===y&&(g=!0,setTimeout(function(){_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()},500))}if(window.location.hash){var y=window.location.hash.substring(1);"gdpr_cookie_modal"===y&&(g=!0,setTimeout(function(){_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()},500))}!function(){var o=(location.pathname,t(window).scrollTop());t("#moove_gdpr_save_popup_settings_button").show();var r=moove_frontend_gdpr_scripts.enabled_default.third_party,i=moove_frontend_gdpr_scripts.enabled_default.advanced,s=!1;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==r||1==i){var p=c("moove_gdpr_popup");if(p){var u=e();"0"==u.strict&&"0"==u.advanced&&"0"==u.thirdparty&&(l(),a())}else void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll?t(window).scroll(function(){!s&&t(this).scrollTop()-o>200&&(p={strict:1,thirdparty:r,advanced:i},n(p),p=JSON.stringify(p),a(),s=!0,d(p))}):(p={strict:1,thirdparty:r,advanced:i},n(p),p=JSON.stringify(p),a());d(p)}else a()}(),t(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(e){e.preventDefault(),g=!0,_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()}),t(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(e){e.preventDefault(),g=!0,_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()}),t(document).on("click","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(t){t.preventDefault(),i()}),t(document).on("click",".moove-gdpr-modal-close",function(e){e.preventDefault(),t(".lity .lity-close").click(),t(document).moove_lity_close()}),t(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(e){e.preventDefault(),e.stopPropagation(),t("#moove-gdpr-menu li").removeClass("menu-item-selected"),t(this).parent().addClass("menu-item-selected"),t(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),t(t(this).attr("href")).show(),t(t(this).attr("data-href")).show()}),t(document).on("lity:close",function(e,o){t(document).moove_lity_close()}),t.fn.moove_lity_close=function(e){g&&(u(),t("body").removeClass("moove_gdpr_overflow"),g=!1)},t.fn.moove_lity_open=function(e){if(g){t("body").addClass("moove_gdpr_overflow");var o=c("moove_gdpr_popup");t(".moove-gdpr-status-bar input[type=checkbox]").each(function(){t(this).is(":checked")?t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),o&&(o=JSON.parse(o),n(o)),t(".moove-gdpr-modal-save-settings").hide().removeClass("button-visible"),p()}},t(document).on("lity:open",function(e,o){t(document).moove_lity_open()}),t(document).on("click",".fl-disabled",function(e){t("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?(t("#moove_gdpr_strict_cookies").click(),t(this).click()):t(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),t(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(e){t(".moove-gdpr-modal-save-settings").show().addClass("button-visible"),t(".moove-gdpr-modal-allow-all").hide().removeClass("button-visible");var o=t(this).closest(".moove-gdpr-tab-main").attr("id");t(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),t(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),t("#moove-gdpr-menu .menu-item-"+o).toggleClass("menu-item-off"),t(this).is(":checked")?t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),t(this).is("#moove_gdpr_strict_cookies")&&(t(this).is(":checked")?(t("#third_party_cookies fieldset").removeClass("fl-disabled"),t("#moove_gdpr_performance_cookies").prop("disabled",!1),t("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#advanced-cookies fieldset").removeClass("fl-disabled"),t("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#moove_gdpr_advanced_cookies").prop("disabled",!1)):(t("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),t("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1))),p()}),t(document).on("click",".moove-gdpr-modal-allow-all",function(e){e.preventDefault(),t("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var e=t(this);e.is(":checked")||e.click()}),o("enable_all enable-all-button"),t(".lity .lity-close").click(),i(),t(document).moove_lity_close()}),t(document).on("click",".moove-gdpr-infobar-allow-all",function(t){t.preventDefault(),o("enable_all allow-btn")}),t(document).on("click",".moove-gdpr-modal-save-settings",function(e){e.preventDefault(),u(),t(".lity .lity-close").click(),t(document).moove_lity_close(),r("modal-save-settings")})},finalize:function(){}}},o={fire:function(t,o,r){var n,i=e;o=void 0===o?"init":o,n=""!==t,n=n&&i[t],(n=n&&"function"==typeof i[t][o])&&i[t][o](r)},loadEvents:function(){o.fire("common"),t.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(t,e){o.fire(e),o.fire(e,"finalize")}),o.fire("common","finalize")}};t(document).ready(o.loadEvents)}(jQuery);
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.postscribe=e():t.postscribe=e()}(this,function(){return function(t){function e(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var r=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default},function(t,e,o){"use strict";function r(){}function n(){var t=h.shift();if(t){var e=l.last(t);e.afterDequeue(),t.stream=i.apply(void 0,t),e.afterStreamStart()}}function i(t,e,o){function i(t){t=o.beforeWrite(t),m.write(t),o.afterWrite(t)}m=new d.default(t,o),m.id=f++,m.name=o.name||m.id,a.streams[m.name]=m;var c=t.ownerDocument,p={close:c.close,open:c.open,write:c.write,writeln:c.writeln};s(c,{close:r,open:r,write:function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return i(e.join(""))},writeln:function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];return i(e.join("")+"\n")}});var l=m.win.onerror||r;return m.win.onerror=function(t,e,r){o.error({msg:t+" - "+e+": "+r}),l.apply(m.win,[t,e,r])},m.write(e,function(){s(c,p),m.win.onerror=l,o.done(),m=null,n()}),m}function a(t,e,o){if(l.isFunction(o))o={done:o};else if("clear"===o)return h=[],m=null,void(f=0);o=l.defaults(o,u),t=/^#/.test(t)?window.document.getElementById(t.substr(1)):t.jquery?t[0]:t;var i=[t,e,o];return t.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=r}},o.beforeEnqueue(i),h.push(i),m||n(),t.postscribe}e.__esModule=!0;var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t};e.default=a;var c=o(2),d=function(t){return t&&t.__esModule?t:{default:t}}(c),p=o(4),l=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(p),u={afterAsync:r,afterDequeue:r,afterStreamStart:r,afterWrite:r,autoFix:!0,beforeEnqueue:r,beforeWriteToken:function(t){return t},beforeWrite:function(t){return t},done:r,error:function(t){throw new Error(t.msg)},releaseAsync:!1},f=0,h=[],m=null;s(a,{streams:{},queue:h,WriteStream:d.default})},function(t,e,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){var o=l+e,r=t.getAttribute(o);return p.existy(r)?String(r):r}function i(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=l+e;p.existy(o)&&""!==o?t.setAttribute(r,o):t.removeAttribute(r)}e.__esModule=!0;var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(t[r]=o[r])}return t},s=o(3),c=function(t){return t&&t.__esModule?t:{default:t}}(s),d=o(4),p=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(d),l="data-ps-",u="ps-style",f="ps-script",h=function(){function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.root=e,this.options=o,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new c.default("",{autoFix:o.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();p.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,o=void 0,r=void 0,n=[];(e=this.parser.readToken())&&!(o=p.isScript(e))&&!(r=p.isStyle(e));)(e=this.options.beforeWriteToken(e))&&n.push(e);n.length>0&&this._writeStaticTokens(n),o&&this._handleScriptToken(e),r&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,this._walkChunk(),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,o=[],r=[],n=[],i=t.length,a=0;a<i;a++){var s=t[a],c=s.toString();if(o.push(c),s.attrs){if(!/^noscript$/i.test(s.tagName)){var d=e++;r.push(c.replace(/(\/?>)/," "+l+"id="+d+" $1")),s.attrs.id!==f&&s.attrs.id!==u&&n.push("atomicTag"===s.type?"":"<"+s.tagName+" "+l+"proxyof="+d+(s.unary?" />":">"))}}else r.push(c),n.push("endTag"===s.type?c:"")}return{tokens:t,raw:o.join(""),actual:r.join(""),proxy:n.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];p.existy(t=e.shift());){var o=1===t.nodeType;if(!(o&&n(t,"proxyof"))){o&&(this.actuals[n(t,"id")]=t,i(t,"id"));var r=t.parentNode&&n(t.parentNode,"proxyof");r&&this.actuals[r].appendChild(t)}e.unshift.apply(e,p.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,o=this.parser.clear();o&&this.writeQueue.unshift(o),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",t=this.options.beforeWriteToken(t),t&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,u),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),p.eachKey(t.attrs,function(t,o){e.setAttribute(t,o)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('<span id="'+e+'"/>');var o=this.doc.getElementById(e);o&&o.parentNode.replaceChild(t,o)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){return t!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},t.prototype._writeScriptToken=function(t,e){var o=this._buildScript(t),r=this._shouldRelease(o),n=this.options.afterAsync;t.src&&(o.src=t.src,this._scriptLoadHandler(o,r?n:function(){e(),n()}));try{this._insertCursor(o,f),o.src&&!r||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return p.eachKey(t.attrs,function(t,o){e.setAttribute(t,o)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function o(){t=t.onload=t.onreadystatechange=t.onerror=null}function r(){o(),null!=e&&e(),e=null}function n(t){o(),s(t),null!=e&&e(),e=null}function i(t,e){var o=t["on"+e];null!=o&&(t["_on"+e]=o)}var s=this.options.error;i(t,"load"),i(t,"error"),a(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){n({msg:"onload handler failed "+e+" @ "+t.src})}r()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void n({msg:"onerror handler failed "+e+" @ "+t.src})}n({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&r()}})},t.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e.default=h},function(t,e,o){!function(e,o){t.exports=function(){return function(t){function e(r){if(o[r])return o[r].exports;var n=o[r]={exports:{},id:r,loaded:!1};return t[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="",e(0)}([function(t,e,o){"use strict";var r=o(1),n=function(t){return t&&t.__esModule?t:{default:t}}(r);t.exports=n.default},function(t,e,o){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=o(2),a=r(i),s=o(3),c=r(s),d=o(6),p=function(t){return t&&t.__esModule?t:{default:t}}(d),l=o(5),u={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},f=function(){function t(){var e=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.stream=o;var i=!1,s={};for(var c in a)a.hasOwnProperty(c)&&(r.autoFix&&(s[c+"Fix"]=!0),i=i||s[c+"Fix"]);i?(this._readToken=(0,p.default)(this,s,function(){return e._readTokenImpl()}),this._peekToken=(0,p.default)(this,s,function(){return e._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return t.prototype.append=function(t){this.stream+=t},t.prototype.prepend=function(t){this.stream=t+this.stream},t.prototype._readTokenImpl=function(){var t=this._peekTokenImpl();if(t)return this.stream=this.stream.slice(t.length),t},t.prototype._peekTokenImpl=function(){for(var t in u)if(u.hasOwnProperty(t)&&u[t].test(this.stream)){var e=c[t](this.stream);if(e)return"startTag"===e.type&&/script|style/i.test(e.tagName)?null:(e.text=this.stream.substr(0,e.length),e)}},t.prototype.peekToken=function(){return this._peekToken()},t.prototype.readToken=function(){return this._readToken()},t.prototype.readTokens=function(t){for(var e=void 0;e=this.readToken();)if(t[e.type]&&!1===t[e.type](e))return},t.prototype.clear=function(){var t=this.stream;return this.stream="",t},t.prototype.rest=function(){return this.stream},t}();e.default=f,f.tokenToString=function(t){return t.toString()},f.escapeAttributes=function(t){var e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=(0,l.escapeQuotes)(t[o],null));return e},f.supports=a;for(var h in a)a.hasOwnProperty(h)&&(f.browserHasFlaw=f.browserHasFlaw||!a[h]&&h)},function(t,e){"use strict";e.__esModule=!0;var o=!1,r=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,e.tagSoup=o=n.innerHTML!==i}catch(t){e.tagSoup=o=!1}try{n.innerHTML="<P><i><P></P></i></P>",e.selfClose=r=2===n.childNodes.length}catch(t){e.selfClose=r=!1}n=null,e.tagSoup=o,e.selfClose=r},function(t,e,o){"use strict";function r(t){var e=t.indexOf("--\x3e");if(e>=0)return new d.CommentToken(t.substr(4,e-1),e+3)}function n(t){var e=t.indexOf("<");return new d.CharsToken(e>=0?e:t.length)}function i(t){if(-1!==t.indexOf(">")){var e=t.match(p.startTag);if(e){var o=function(){var t={},o={},r=e[2];return e[2].replace(p.attr,function(e,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(t[arguments[5]]="",o[arguments[5]]=!0):t[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":t[n]="",r=r.replace(e,"")}),{v:new d.StartTagToken(e[1],e[0].length,t,o,!!e[3],r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===o?"undefined":c(o)))return o.v}}}function a(t){var e=i(t);if(e){var o=t.slice(e.length);if(o.match(new RegExp("</\\s*"+e.tagName+"\\s*>","i"))){var r=o.match(new RegExp("([\\s\\S]*?)</\\s*"+e.tagName+"\\s*>","i"));if(r)return new d.AtomicTagToken(e.tagName,r[0].length+e.length,e.attrs,e.booleanAttrs,r[1])}}}function s(t){var e=t.match(p.endTag);if(e)return new d.EndTagToken(e[1],e[0].length)}e.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.comment=r,e.chars=n,e.startTag=i,e.atomicTag=a,e.endTag=s;var d=o(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(t,e,o){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0,e.EndTagToken=e.AtomicTagToken=e.StartTagToken=e.TagToken=e.CharsToken=e.CommentToken=e.Token=void 0;var n=o(5),i=(e.Token=function t(e,o){r(this,t),this.type=e,this.length=o,this.text=""},e.CommentToken=function(){function t(e,o){r(this,t),this.type="comment",this.length=o||(e?e.length:0),this.text="",this.content=e}return t.prototype.toString=function(){return"\x3c!--"+this.content},t}(),e.CharsToken=function(){function t(e){r(this,t),this.type="chars",this.length=e,this.text=""}return t.prototype.toString=function(){return this.text},t}(),e.TagToken=function(){function t(e,o,n,i,a){r(this,t),this.type=e,this.length=n,this.text="",this.tagName=o,this.attrs=i,this.booleanAttrs=a,this.unary=!1,this.html5Unary=!1}return t.formatTag=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o="<"+t.tagName;for(var r in t.attrs)if(t.attrs.hasOwnProperty(r)){o+=" "+r;var i=t.attrs[r];void 0!==t.booleanAttrs&&void 0!==t.booleanAttrs[r]||(o+='="'+(0,n.escapeQuotes)(i)+'"')}return t.rest&&(o+=" "+t.rest),o+=t.unary&&!t.html5Unary?"/>":">",void 0!==e&&null!==e&&(o+=e+"</"+t.tagName+">"),o},t}());e.StartTagToken=function(){function t(e,o,n,i,a,s){r(this,t),this.type="startTag",this.length=o,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=a,this.rest=s}return t.prototype.toString=function(){return i.formatTag(this)},t}(),e.AtomicTagToken=function(){function t(e,o,n,i,a){r(this,t),this.type="atomicTag",this.length=o,this.text="",this.tagName=e,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=a}return t.prototype.toString=function(){return i.formatTag(this,this.content)},t}(),e.EndTagToken=function(){function t(e,o){r(this,t),this.type="endTag",this.length=o,this.text="",this.tagName=e}return t.prototype.toString=function(){return"</"+this.tagName+">"},t}()},function(t,e){"use strict";function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?t.replace(/([^"]*)"/g,function(t,e){return/\\/.test(e)?e+'"':e+'\\"'}):e}e.__esModule=!0,e.escapeQuotes=o},function(t,e){"use strict";function o(t){return t&&"startTag"===t.type&&(t.unary=s.test(t.tagName)||t.unary,t.html5Unary=!/\/>$/.test(t.text)),t}function r(t,e){var r=t.stream,n=o(e());return t.stream=r,n}function n(t,e){var o=e.pop();t.prepend("</"+o.tagName+">")}function i(){var t=[];return t.last=function(){return this[this.length-1]},t.lastTagNameEq=function(t){var e=this.last();return e&&e.tagName&&e.tagName.toUpperCase()===t.toUpperCase()},t.containsTagName=function(t){for(var e,o=0;e=this[o];o++)if(e.tagName===t)return!0;return!1},t}function a(t,e,a){function s(){var e=r(t,a);e&&p[e.type]&&p[e.type](e)}var d=i(),p={startTag:function(o){var r=o.tagName;"TR"===r.toUpperCase()&&d.lastTagNameEq("TABLE")?(t.prepend("<TBODY>"),s()):e.selfCloseFix&&c.test(r)&&d.containsTagName(r)?d.lastTagNameEq(r)?n(t,d):(t.prepend("</"+o.tagName+">"),s()):o.unary||d.push(o)},endTag:function(o){d.last()?e.tagSoupFix&&!d.lastTagNameEq(o.tagName)?n(t,d):d.pop():e.tagSoupFix&&(a(),s())}};return function(){return s(),o(a())}}e.__esModule=!0,e.default=a;var s=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(t,e){"use strict";function o(t){return void 0!==t&&null!==t}function r(t){return"function"==typeof t}function n(t,e,o){var r=void 0,n=t&&t.length||0;for(r=0;r<n;r++)e.call(o,t[r],r)}function i(t,e,o){for(var r in t)t.hasOwnProperty(r)&&e.call(o,r,t[r])}function a(t,e){return t=t||{},i(e,function(e,r){o(t[e])||(t[e]=r)}),t}function s(t){try{return Array.prototype.slice.call(t)}catch(o){var e=function(){var e=[];return n(t,function(t){e.push(t)}),{v:e}}();if("object"===(void 0===e?"undefined":u(e)))return e.v}}function c(t){return t[t.length-1]}function d(t,e){return!(!t||"startTag"!==t.type&&"atomicTag"!==t.type||!("tagName"in t)||!~t.tagName.toLowerCase().indexOf(e))}function p(t){return d(t,"script")}function l(t){return d(t,"style")}e.__esModule=!0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.existy=o,e.isFunction=r,e.each=n,e.eachKey=i,e.defaults=a,e.toArray=s,e.last=c,e.isTag=d,e.isScript=p,e.isStyle=l}])}),function(t){var e={common:{init:function(){"use strict";function e(){var t=c("moove_gdpr_popup"),e={};return e.strict="0",e.thirdparty="0",e.advanced="0",t&&(t=JSON.parse(t),e.strict=t.strict,e.thirdparty=t.thirdparty,e.advanced=t.advanced),e}function o(t){s("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1"}),365),r("enabled-all")}function r(o){var r=e(),n=!1,a=moove_frontend_gdpr_scripts.enabled_default.third_party,s=moove_frontend_gdpr_scripts.enabled_default.advanced;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==a||1==s){c("moove_gdpr_popup");1!=a&&1!=s||(f={},f.strict=1,f.thirdparty=a,f.advanced=s),f&&(parseInt(r.strict)-parseInt(f.strict)<0&&(n=!0),parseInt(r.thirdparty)-parseInt(f.thirdparty)<0&&(n=!0),parseInt(r.advanced)-parseInt(f.advanced)<0&&(n=!0))}if(n)location.reload(!0);else{d(c("moove_gdpr_popup")),i(),t("#moove_gdpr_save_popup_settings_button").show()}}function n(e){e&&(1===parseInt(e.strict)?t("#moove_gdpr_strict_cookies").is(":checked")||(t("#moove_gdpr_strict_cookies").click(),t("#third_party_cookies fieldset").removeClass("fl-disabled"),t("#moove_gdpr_performance_cookies").prop("disabled",!1),t("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#advanced-cookies fieldset").removeClass("fl-disabled"),t("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#moove_gdpr_advanced_cookies").prop("disabled",!1)):t("#moove_gdpr_strict_cookies").is(":checked")&&(t("#moove_gdpr_strict_cookies").click(),t("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),t("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1)),1===parseInt(e.thirdparty)?t("#moove_gdpr_performance_cookies").is(":checked")||t("#moove_gdpr_performance_cookies").click():t("#moove_gdpr_performance_cookies").is(":checked")&&t("#moove_gdpr_performance_cookies").click(),1===parseInt(e.advanced)?t("#moove_gdpr_advanced_cookies").is(":checked")||t("#moove_gdpr_advanced_cookies").click():t("#moove_gdpr_advanced_cookies").is(":checked")&&t("#moove_gdpr_advanced_cookies").click())}function i(){t("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),t("body").removeClass("gdpr-infobar-visible")}function a(){t("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),t("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),t("body").addClass("gdpr-infobar-visible")}function s(t,e,o){var r;if(o){var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3),r="; expires="+n.toGMTString()}else r="";document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+r+"; path=/"}function c(t){for(var e=encodeURIComponent(t)+"=",o=document.cookie.split(";"),r=0;r<o.length;r++){for(var n=o[r];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(e))return decodeURIComponent(n.substring(e.length,n.length))}return null}function d(o){if(f=e(),o){var r=o;o=JSON.parse(o);e();if(!1!==h){var n=JSON.parse(h);1===parseInt(n.thirdparty)&&1===parseInt(o.thirdparty)&&(o.thirdparty="0"),1===parseInt(n.advanced)&&1===parseInt(o.advanced)&&(o.advanced="0")}t.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced},function(e){h=r;var o=JSON.parse(e);o.header&&postscribe(document.head,o.header),o.body&&t(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)})}else a()}function p(){var e=!0;t("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){t(this).is(":checked")||(e=!1)}),e?t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):t(".moove-gdpr-button-holder .moove-gdpr-modal-save-settings").is(":visible")?t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").hide().removeClass("button-visible"):t(".moove-gdpr-button-holder .moove-gdpr-modal-allow-all").show().addClass("button-visible")}function l(){for(var t=document.cookie.split("; "),e=0;e<t.length;e++)for(var o=window.location.hostname.split(".");o.length>0;){var r=encodeURIComponent(t[e].split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+o.join(".")+" ; path=",n=location.pathname.split("/");for(document.cookie=r+"/";n.length>0;)document.cookie=r+n.join("/"),n.pop();o.shift()}}function u(){var e=c("moove_gdpr_popup");l();var o="0",r="0",n="0",a=!1;e&&(e=JSON.parse(e),o=e.strict,r=e.advanced,n=e.thirdparty),t("#moove_gdpr_strict_cookies").length>0?t("#moove_gdpr_strict_cookies").is(":checked")?(o="1",a=!0):o="0":o="1",t("#moove_gdpr_performance_cookies").is(":checked")?(n="1",a=!0):n="0",t("#moove_gdpr_advanced_cookies").is(":checked")?(r="1",a=!0):r="0",!e&&a?(s("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365),i(),t("#moove_gdpr_save_popup_settings_button").show()):e&&s("moove_gdpr_popup",JSON.stringify({strict:o,thirdparty:n,advanced:r}),365);var e=c("moove_gdpr_popup");e&&(e=JSON.parse(e),"0"==e.strict&&"0"==e.advanced&&"0"==e.thirdparty&&l())}t.fn.moove_gdpr_read_cookies=function(t){var e=c("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced),o};var f=e(),h=!1;if(t.fn.moove_gdpr_save_cookie=function(e){var o=c("moove_gdpr_popup"),r=t(window).scrollTop();if(!o){if(e.thirdParty)var i="1";else var i="0";if(e.advanced)var a="1";else var a="0";if(e.scrollEnable){var d=e.scrollEnable;t(window).scroll(function(){t(this).scrollTop()-r>d&&("undefined"===e.thirdparty&&"undefined"===e.advanced||(s("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:i,advanced:a}),365),o=JSON.parse(o),n(o)))})}else"undefined"===e.thirdparty&&"undefined"===e.advanced||(s("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:i,advanced:a}),365),o=JSON.parse(o),n(o));o=c("moove_gdpr_popup"),o&&(o=JSON.parse(o),jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced},function(e){var o=JSON.parse(e);o.header&&postscribe(document.head,o.header),o.body&&t(o.body).prependTo(document.body),o.footer&&postscribe(document.body,o.footer)}))}},"undefined"==typeof lity){var m=moove_frontend_gdpr_scripts.plugin_dir+"/dist/scripts/lity.js",v=moove_frontend_gdpr_scripts.plugin_dir+"/dist/styles/lity.css";postscribe(document.body,'<script src="'+m+'"><\/script>'),postscribe(document.head,'<link href="'+v+'" rel="stylesheet">')}var _="",g=!1;if(window.location.hash){var y=window.location.hash.substring(1);"moove_gdpr_cookie_modal"===y&&(g=!0,setTimeout(function(){_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()},500))}if(window.location.hash){var y=window.location.hash.substring(1);"gdpr_cookie_modal"===y&&(g=!0,setTimeout(function(){_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()},500))}!function(){var o=(location.pathname,t(window).scrollTop());t("#moove_gdpr_save_popup_settings_button").show();var r=moove_frontend_gdpr_scripts.enabled_default.third_party,i=moove_frontend_gdpr_scripts.enabled_default.advanced,s=!1;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==r||1==i){var p=c("moove_gdpr_popup");if(p){var u=e();"0"==u.strict&&"0"==u.advanced&&"0"==u.thirdparty&&(l(),a())}else void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll?t(window).scroll(function(){!s&&t(this).scrollTop()-o>200&&(p={strict:1,thirdparty:r,advanced:i},n(p),p=JSON.stringify(p),a(),s=!0,d(p))}):(p={strict:1,thirdparty:r,advanced:i},n(p),p=JSON.stringify(p),a());d(p)}else a()}(),t(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(e){e.preventDefault(),g=!0,_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()}),t(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(e){e.preventDefault(),g=!0,_=lity("#moove_gdpr_cookie_modal"),t(".lity").addClass("moove_gdpr_cookie_modal_open"),t(document).moove_lity_open()}),t(document).on("click","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(t){t.preventDefault(),i()}),t(document).on("click",".moove-gdpr-modal-close",function(e){e.preventDefault(),t(".lity .lity-close").click(),t(document).moove_lity_close()}),t(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(e){e.preventDefault(),e.stopPropagation(),t("#moove-gdpr-menu li").removeClass("menu-item-selected"),t(this).parent().addClass("menu-item-selected"),t(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),t(t(this).attr("href")).show(),t(t(this).attr("data-href")).show()}),t(document).on("lity:close",function(e,o){t(document).moove_lity_close()}),t.fn.moove_lity_close=function(e){g&&(u(),t("body").removeClass("moove_gdpr_overflow"),g=!1)},t.fn.moove_lity_open=function(e){if(g){t("body").addClass("moove_gdpr_overflow");var o=c("moove_gdpr_popup");t(".moove-gdpr-status-bar input[type=checkbox]").each(function(){t(this).is(":checked")?t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),o&&(o=JSON.parse(o),n(o)),t(".moove-gdpr-modal-save-settings").hide().removeClass("button-visible"),p()}},t(document).on("lity:open",function(e,o){t(document).moove_lity_open()}),t(document).on("click",".fl-disabled",function(e){t("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?(t("#moove_gdpr_strict_cookies").click(),t(this).click()):t(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),t(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(e){t(".moove-gdpr-modal-save-settings").show().addClass("button-visible"),t(".moove-gdpr-modal-allow-all").hide().removeClass("button-visible");var o=t(this).closest(".moove-gdpr-tab-main").attr("id");t(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),t(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),t("#moove-gdpr-menu .menu-item-"+o).toggleClass("menu-item-off"),t(this).is(":checked")?t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():t(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),t(this).is("#moove_gdpr_strict_cookies")&&(t(this).is(":checked")?(t("#third_party_cookies fieldset").removeClass("fl-disabled"),t("#moove_gdpr_performance_cookies").prop("disabled",!1),t("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#advanced-cookies fieldset").removeClass("fl-disabled"),t("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),t("#moove_gdpr_advanced_cookies").prop("disabled",!1)):(t("#third_party_cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),t("#advanced-cookies fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),t("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1))),p()}),t(document).on("click",".moove-gdpr-modal-allow-all",function(e){e.preventDefault(),t("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var e=t(this);e.is(":checked")||e.click()}),o("enable_all enable-all-button"),t(".lity .lity-close").click(),i(),t(document).moove_lity_close()}),t(document).on("click",".moove-gdpr-infobar-allow-all",function(t){t.preventDefault(),o("enable_all allow-btn")}),t(document).on("click",".moove-gdpr-modal-save-settings",function(e){e.preventDefault(),u(),t(".lity .lity-close").click(),t(document).moove_lity_close(),r("modal-save-settings")})},finalize:function(){}}},o={fire:function(t,o,r){var n,i=e;o=void 0===o?"init":o,n=""!==t,n=n&&i[t],(n=n&&"function"==typeof i[t][o])&&i[t][o](r)},loadEvents:function(){o.fire("common"),t.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(t,e){o.fire(e),o.fire(e,"finalize")}),o.fire("common","finalize")}};t(document).ready(o.loadEvents)}(jQuery);
gdpr-modules/modal/content-sections/advanced.php CHANGED
@@ -6,9 +6,9 @@
6
  <div class="moove-gdpr-status-bar">
7
  <form>
8
  <fieldset class="<?php echo $content->fieldset; ?>">
9
- <label class="switch">
10
- <span class='gdpr-acc-link'><?php _e('disable','gdpr-cookie-compliance'); ?></span>
11
- <input type="checkbox" value="check" id="moove_gdpr_advanced_cookies" <?php echo $content->is_checked; ?>>
12
  <span class="slider round" data-text-enable="<?php echo $content->text_enable; ?>" data-text-disabled="<?php echo $content->text_disable; ?>"></span>
13
  </label>
14
  </fieldset>
6
  <div class="moove-gdpr-status-bar">
7
  <form>
8
  <fieldset class="<?php echo $content->fieldset; ?>">
9
+ <label class='gdpr-acc-link' for="moove_gdpr_advanced_cookies" ><?php _e('disable','gdpr-cookie-compliance'); ?></label>
10
+ <label class="switch">
11
+ <input type="checkbox" value="check" name="moove_gdpr_advanced_cookies" id="moove_gdpr_advanced_cookies" <?php echo $content->is_checked; ?>>
12
  <span class="slider round" data-text-enable="<?php echo $content->text_enable; ?>" data-text-disabled="<?php echo $content->text_disable; ?>"></span>
13
  </label>
14
  </fieldset>
gdpr-modules/modal/content-sections/strictly.php CHANGED
@@ -9,9 +9,9 @@
9
  <div class="moove-gdpr-status-bar <?php echo $content->checkbox_state; ?>">
10
  <form>
11
  <fieldset>
12
- <label class="switch">
13
- <span class='gdpr-acc-link'><?php _e('disable','gdpr-cookie-compliance'); ?></span>
14
- <input type="checkbox" <?php echo $content->is_checked; ?> value="check" id="moove_gdpr_strict_cookies">
15
  <span class="slider round" data-text-enable="<?php echo $content->text_enable; ?>" data-text-disabled="<?php echo $content->text_disable; ?>"></span>
16
  </label>
17
  </fieldset>
9
  <div class="moove-gdpr-status-bar <?php echo $content->checkbox_state; ?>">
10
  <form>
11
  <fieldset>
12
+ <label class='gdpr-acc-link' for="moove_gdpr_strict_cookies" ><?php _e('disable','gdpr-cookie-compliance'); ?></label>
13
+ <label class="switch">
14
+ <input type="checkbox" <?php echo $content->is_checked; ?> value="check" name="moove_gdpr_strict_cookies" id="moove_gdpr_strict_cookies">
15
  <span class="slider round" data-text-enable="<?php echo $content->text_enable; ?>" data-text-disabled="<?php echo $content->text_disable; ?>"></span>
16
  </label>
17
  </fieldset>
gdpr-modules/modal/content-sections/third_party.php CHANGED
@@ -6,9 +6,9 @@
6
  <div class="moove-gdpr-status-bar">
7
  <form>
8
  <fieldset class="<?php echo $content->fieldset; ?>">
9
- <label class="switch">
10
- <span class='gdpr-acc-link'><?php _e('disable','gdpr-cookie-compliance'); ?></span>
11
- <input type="checkbox" value="check" id="moove_gdpr_performance_cookies" <?php echo $content->is_checked; ?>>
12
  <span class="slider round" data-text-enable="<?php echo $content->text_enable; ?>" data-text-disabled="<?php echo $content->text_disable; ?>"></span>
13
  </label>
14
  </fieldset>
6
  <div class="moove-gdpr-status-bar">
7
  <form>
8
  <fieldset class="<?php echo $content->fieldset; ?>">
9
+ <label class='gdpr-acc-link' for="moove_gdpr_performance_cookies" ><?php _e('disable','gdpr-cookie-compliance'); ?></label>
10
+ <label class="switch">
11
+ <input type="checkbox" value="check" name="moove_gdpr_performance_cookies" id="moove_gdpr_performance_cookies" <?php echo $content->is_checked; ?>>
12
  <span class="slider round" data-text-enable="<?php echo $content->text_enable; ?>" data-text-disabled="<?php echo $content->text_disable; ?>"></span>
13
  </label>
14
  </fieldset>
moove-actions.php CHANGED
@@ -30,6 +30,12 @@ class Moove_GDPR_Actions {
30
  $this->moove_register_scripts();
31
  $this->moove_register_ajax_actions();
32
  add_action( 'plugins_loaded', array( &$this, 'moove_gdpr_load_textdomain' ) );
 
 
 
 
 
 
33
  }
34
 
35
  /**
30
  $this->moove_register_scripts();
31
  $this->moove_register_ajax_actions();
32
  add_action( 'plugins_loaded', array( &$this, 'moove_gdpr_load_textdomain' ) );
33
+ add_action( 'gdpr_cookie_filter_settings', array( &$this, 'gdpr_remove_cached_scripts' ) );
34
+ }
35
+
36
+ public function gdpr_remove_cached_scripts() {
37
+ $transient_key = 'gdpr_cookie_cache';
38
+ delete_transient( $transient_key );
39
  }
40
 
41
  /**
moove-content.php CHANGED
@@ -17,35 +17,11 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
17
  * @author Gaspar Nemes
18
  */
19
  class Moove_GDPR_Content {
20
- /**
21
- * Global variable used in options
22
- *
23
- * @var array
24
- */
25
- var $gdpr_options;
26
-
27
- /**
28
- * Global variable used for translations
29
- *
30
- * @var array
31
- */
32
- var $wpml_lang_options;
33
  /**
34
  * Construct
35
  */
36
- function __construct() {
37
- $this->moove_register_content_elements();
38
- $options_name = $this->moove_gdpr_get_option_name();
39
- $gdpr_options = get_option( $options_name );
40
- $this->wpml_lang_options = $this->moove_gdpr_get_wpml_lang();
41
- $this->gdpr_options = $gdpr_options;
42
- }
43
- /**
44
- * Register actions
45
- *
46
- * @return void
47
- */
48
- public function moove_register_content_elements() {
49
 
50
  }
51
 
@@ -76,8 +52,11 @@ class Moove_GDPR_Content {
76
  */
77
  public function moove_gdpr_get_strict_necessary_warning() {
78
  $_content = '';
79
- $lang_options = &$this->wpml_lang_options;
80
- if ( ! isset( $this->gdpr_options[ 'moove_gdpr_strictly_necessary_cookies_warning'. $lang_options ] ) ) :
 
 
 
81
  $_content = __( 'If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.','gdpr-cookie-compliance' );
82
  endif;
83
  return $_content;
@@ -125,8 +104,10 @@ class Moove_GDPR_Content {
125
  */
126
  public function moove_gdpr_get_secondary_notice() {
127
  $_content = '';
128
- $lang_options = &$this->wpml_lang_options;
129
- if ( ! isset( $this->gdpr_options[ 'moove_gdpr_modal_strictly_secondary_notice'. $lang_options ] ) ) :
 
 
130
  $_content = __( 'Please enable Strictly Necessary Cookies first so that we can save your preferences!','gdpr-cookie-compliance' );
131
  endif;
132
  return $_content;
17
  * @author Gaspar Nemes
18
  */
19
  class Moove_GDPR_Content {
20
+
 
 
 
 
 
 
 
 
 
 
 
 
21
  /**
22
  * Construct
23
  */
24
+ function __construct() {
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  }
27
 
52
  */
53
  public function moove_gdpr_get_strict_necessary_warning() {
54
  $_content = '';
55
+ $options_name = $this->moove_gdpr_get_option_name();
56
+ $gdpr_options = get_option( $options_name );
57
+ $wpml_lang_options = $this->moove_gdpr_get_wpml_lang();
58
+
59
+ if ( ! isset( $gdpr_options[ 'moove_gdpr_strictly_necessary_cookies_warning'. $wpml_lang_options ] ) ) :
60
  $_content = __( 'If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.','gdpr-cookie-compliance' );
61
  endif;
62
  return $_content;
104
  */
105
  public function moove_gdpr_get_secondary_notice() {
106
  $_content = '';
107
+ $options_name = $this->moove_gdpr_get_option_name();
108
+ $gdpr_options = get_option( $options_name );
109
+ $wpml_lang_options = $this->moove_gdpr_get_wpml_lang();
110
+ if ( ! isset( $gdpr_options[ 'moove_gdpr_modal_strictly_secondary_notice'. $wpml_lang_options ] ) ) :
111
  $_content = __( 'Please enable Strictly Necessary Cookies first so that we can save your preferences!','gdpr-cookie-compliance' );
112
  endif;
113
  return $_content;
moove-gdpr.php CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
6
  * Plugin Name: GDPR Cookie Compliance
7
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
8
  * Description: GDPR is an EU wide legislation that specifies how user data should be handled. This plugin has settings that can assist you with GDPR cookie compliance requirements.
9
- * Version: 1.2.0
10
  * Author: Moove Agency
11
  * Domain Path: /languages
12
  * Author URI: https://www.mooveagency.com
@@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
14
  * Text Domain: gdpr-cookie-compliance
15
  */
16
 
17
- define( 'MOOVE_GDPR_VERSION', '1.2.0' );
18
 
19
  register_activation_hook( __FILE__ , 'moove_gdpr_activate' );
20
  register_deactivation_hook( __FILE__ , 'moove_gdpr_deactivate' );
6
  * Plugin Name: GDPR Cookie Compliance
7
  * Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
8
  * Description: GDPR is an EU wide legislation that specifies how user data should be handled. This plugin has settings that can assist you with GDPR cookie compliance requirements.
9
+ * Version: 1.2.1
10
  * Author: Moove Agency
11
  * Domain Path: /languages
12
  * Author URI: https://www.mooveagency.com
14
  * Text Domain: gdpr-cookie-compliance
15
  */
16
 
17
+ define( 'MOOVE_GDPR_VERSION', '1.2.1' );
18
 
19
  register_activation_hook( __FILE__ , 'moove_gdpr_activate' );
20
  register_deactivation_hook( __FILE__ , 'moove_gdpr_deactivate' );
readme.txt CHANGED
@@ -12,27 +12,38 @@ GDPR is an EU wide legislation that specifies how user data should be handled. T
12
 
13
  == Description ==
14
 
15
- **What is GDPR?**
16
 
17
  General Data Protection Regulation (GDPR) is a European regulation to strengthen and unify the data protection of EU citizens. ([https://www.eugdpr.org/](https://www.eugdpr.org/))
18
 
19
- **How this plugin works**
20
 
21
  * This plugin is designed to help you prepare your website for the GDPR regulations related to cookies but IT WILL NOT MAKE IT FULLY COMPLIANT - this plugin is just a template and needs to be setup by your developer in order to work properly.
22
  * Once installed, the plugin gives you a template that you can customise; you can modify all text and colours to suit your needs.
23
  * You can also allow users to enable and disable cookies on your site, however, this will require bespoke development work as every site is unique and uses different cookies.
24
 
25
- **Key features**
26
 
27
  * Full customisation - upload your brand colours, logo, fonts and modify all text
28
  * Flexible - decide which scripts will be loaded by default or only when the user gives consent
29
  * Two layouts - choose from two unique layouts
 
 
 
 
 
30
 
31
- **Demo Video**
32
 
33
- You can view a demo of the plugin here: [GDPR Cookie Compliance Plugin by Moove Agency](https://vimeo.com/255655268)
34
 
35
- **Custom Layout**
 
 
 
 
 
 
36
 
37
  * You can also create your own custom front-end layout of the Pop-up Settings screen.
38
  * Simply copy the "gdpr-modules" folder from the plugin directory to your theme directory.
@@ -40,7 +51,7 @@ You can view a demo of the plugin here: [GDPR Cookie Compliance Plugin by Moove
40
  * Any customisation should be implemented by experienced developers only.
41
  * We won't be able to provide personalised advice or support for customisations.
42
 
43
- **Disclaimer**
44
 
45
  * This plugin will require technical support from your developer to ensure that it is implemented correctly on your website.
46
  * This is a general plugin with basic functionality. We advise that you to seek independent legal advice on this topic.
@@ -66,7 +77,7 @@ https://www.example.com/your-internal-page/#gdpr_cookie_modal
66
  Our plugin loads the script with Javascript, and that’s why you can’t find it in the view-source page. You can use the developer console in Chrome browser (Inspect Element feature) and find the scripts.
67
 
68
  = Can I use custom code or hooks with your plugin? =
69
- Yes. We have implemented hooks that allow you to implement custom scripts, for some examples see the list of pre-defined hooks here: https://wordpress.org/support/topic/conditional-php-script/
70
 
71
  = Does the plugin support subdomains? =
72
  Unfortunately not, subdomains are treated as separate domains by browsers and we’re unable to change the cookies stored by another domain. If your multisite setup use subdomain version, each subsite will be recognised as a separate domain by the browser and will create cookies for each subdomain.
@@ -114,6 +125,11 @@ Unfortunately no. This plugin is just a template and needs to be setup by your d
114
 
115
  == Changelog ==
116
 
 
 
 
 
 
117
  = 1.2.0 =
118
  * Fixed modules view
119
 
12
 
13
  == Description ==
14
 
15
+ ### What is GDPR?
16
 
17
  General Data Protection Regulation (GDPR) is a European regulation to strengthen and unify the data protection of EU citizens. ([https://www.eugdpr.org/](https://www.eugdpr.org/))
18
 
19
+ ### How this plugin works
20
 
21
  * This plugin is designed to help you prepare your website for the GDPR regulations related to cookies but IT WILL NOT MAKE IT FULLY COMPLIANT - this plugin is just a template and needs to be setup by your developer in order to work properly.
22
  * Once installed, the plugin gives you a template that you can customise; you can modify all text and colours to suit your needs.
23
  * You can also allow users to enable and disable cookies on your site, however, this will require bespoke development work as every site is unique and uses different cookies.
24
 
25
+ ### Key features
26
 
27
  * Full customisation - upload your brand colours, logo, fonts and modify all text
28
  * Flexible - decide which scripts will be loaded by default or only when the user gives consent
29
  * Two layouts - choose from two unique layouts
30
+ * Simple & Intuitive
31
+ * **[Premium]** Full-screen layout - If it's enabled, the infobar will be display in full screen mode, and force the user to accept the cookies, or to change / overview the settings.
32
+ * **[Premium]** Export & import settings
33
+ * **[Premium]** WordPress Multisite extension - You can manage the settings globally, clone from one site to another
34
+ * **[Premium]** Accept cookies on scroll
35
 
36
+ > Note: some features are part of the **Premium Add-on**. You can [get GDPR Premium Add-on here](https://www.mooveagency.com/wordpress-plugins/)!
37
 
38
+ ### Demo Video
39
 
40
+ You can view a demo of the plugin here:
41
+
42
+ [vimeo https://vimeo.com/255655268]
43
+
44
+ [GDPR Cookie Compliance Plugin by Moove Agency](https://vimeo.com/255655268)
45
+
46
+ ### Custom Layout
47
 
48
  * You can also create your own custom front-end layout of the Pop-up Settings screen.
49
  * Simply copy the "gdpr-modules" folder from the plugin directory to your theme directory.
51
  * Any customisation should be implemented by experienced developers only.
52
  * We won't be able to provide personalised advice or support for customisations.
53
 
54
+ #### Disclaimer
55
 
56
  * This plugin will require technical support from your developer to ensure that it is implemented correctly on your website.
57
  * This is a general plugin with basic functionality. We advise that you to seek independent legal advice on this topic.
77
  Our plugin loads the script with Javascript, and that’s why you can’t find it in the view-source page. You can use the developer console in Chrome browser (Inspect Element feature) and find the scripts.
78
 
79
  = Can I use custom code or hooks with your plugin? =
80
+ Yes. We have implemented hooks that allow you to implement custom scripts, for some examples see the list of pre-defined hooks here: [https://wordpress.org/support/topic/conditional-php-script/](https://wordpress.org/support/topic/conditional-php-script/)
81
 
82
  = Does the plugin support subdomains? =
83
  Unfortunately not, subdomains are treated as separate domains by browsers and we’re unable to change the cookies stored by another domain. If your multisite setup use subdomain version, each subsite will be recognised as a separate domain by the browser and will create cookies for each subdomain.
125
 
126
  == Changelog ==
127
 
128
+ = 1.2.1 =
129
+ * Improved admin-ajax.php loading by transient
130
+ * Fixed checkbox labels by WCAG 2.0
131
+ * Added 'gdpr-infobar-visible' class to the body if the infobar is visible
132
+
133
  = 1.2.0 =
134
  * Fixed modules view
135