WF Cookie Consent - Version 1.1.3

Version Description

Improved performance by loading a minified js file. Added rel="noopener" to the link referring to the policy page.

Download this release

Release Info

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

Code changes from version 1.1.2 to 1.1.3

js/cookiechoices.js CHANGED
@@ -132,6 +132,7 @@
132
  _setElementText(infoLink, linkText);
133
  infoLink.href = linkHref;
134
  infoLink.target = '_blank';
 
135
  infoLink.style.marginLeft = '8px';
136
  return infoLink;
137
  }
132
  _setElementText(infoLink, linkText);
133
  infoLink.href = linkHref;
134
  infoLink.target = '_blank';
135
+ infoLink.rel = 'noopener';
136
  infoLink.style.marginLeft = '8px';
137
  return infoLink;
138
  }
js/cookiechoices.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(){var e="displayCookieConsent",t="cookieChoiceInfo",n="cookieChoiceDismiss",o="cookieChoiceDismissIcon";function i(){var e=window._wfCookieConsentSettings;void 0!==e&&void 0!==e.wf_linkhref&&(e.styles="position:fixed; width:100%; background-color:#EEEEEE; background-color:rgba(238, 238, 238, 0.9); margin:0; left:0; "+e.wf_position+":0; padding:4px; z-index:1000; text-align:center;",s(h(e.wf_cookietext),h(e.wf_dismisstext),h(e.wf_linktext),e.wf_linkhref,e.styles,!1))}function a(e,n,i,a,d){var p,s=d,u=document.createElement("div"),h=document.createElement("div");return h.style.cssText="padding-right: 50px;",u.id=t,u.style.cssText=s,h.appendChild(c(e)),i&&a&&h.appendChild(l(i,a)),h.appendChild(r(n)),u.appendChild(h),u.appendChild(((p=document.createElement("a")).id=o,p.href="#",p.style.cssText="width: 50px; height: 100%; background-size: 20px; display: inline-block; position: absolute; right: 0px; top: 0px; background-position: 34% 50%; background-color: #CCCCCC; background-color: rgba(204, 204, 204, 0.6); background-repeat: no-repeat; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5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?e.textContent=t:e.innerText=t}function c(e){var t=document.createElement("span");return d(t,e),t}function r(e){var t=document.createElement("a");return d(t,e),t.id=n,t.href="#",t.style.marginLeft="24px",t}function l(e,t){var n=document.createElement("a");return d(n,e),n.href=t,n.target="_blank",n.rel="noopener",n.style.marginLeft="8px",n}function p(){var t;return(t=new Date).setFullYear(t.getFullYear()+1),document.cookie=e+"=y;path=/; expires="+t.toGMTString(),u(),!1}function s(i,d,s,h,m,f){if(!document.cookie.match(new RegExp(e+"=([^;]+)"))){u();var g=f?function(e,n,o,i){var a=document.createElement("div");a.id=t;var d=document.createElement("div");d.style.cssText="position:fixed;width:100%;height:100%;z-index:999;top:0;left:0;opacity:0.5;filter:alpha(opacity=50);background-color:#ccc;";var p=document.createElement("div");p.style.cssText="position:relative;left:-50%;margin-top:-25%;background-color:#fff;padding:20px;box-shadow:4px 4px 25px #888;";var s=document.createElement("div");s.style.cssText="z-index:1000;position:fixed;left:50%;top:50%";var u=r(n);return u.style.display="block",u.style.textAlign="right",u.style.marginTop="8px",p.appendChild(c(e)),o&&i&&p.appendChild(l(o,i)),p.appendChild(u),s.appendChild(p),a.appendChild(d),a.appendChild(s),a}(i,d,s,h):a(i,d,s,h,m),C=document.createDocumentFragment();C.appendChild(g),document.body.appendChild(C.cloneNode(!0)),document.getElementById(n).onclick=p,document.getElementById(o).onclick=p}}function u(){var e=document.getElementById(t);null!=e&&e.parentNode.removeChild(e)}function h(e){var t=document.createElement("textarea");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}document.addEventListener?document.addEventListener("DOMContentLoaded",i):document.attachEvent("onreadystatechange",function(e){"complete"===document.readyState&&i()})}();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wunderfarm.com
4
  Tags: compliance, cookie law, cookielaw, cookies, cookiebar, policy, bar, eu cookie law, cookie law banner, cookiechoices, eu privacy directive, privacy, privacy directive, cookie consent, cookieconsent, Multi language, WPML, polylang, responsive, admin, code, content, embed, google, html, integration, javascript, links, login, marketing, page, pages, plugin, simple, text, url, wordpress, law, lightweight,
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9
7
- Stable tag: 1.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -29,6 +29,9 @@ WF Cookie Consent is the "wunderfarm-way" to show how your website complies with
29
 
30
  == Changelog ==
31
 
 
 
 
32
  = 1.1.2 =
33
  Added a direct link to generate a cookie policy.
34
 
4
  Tags: compliance, cookie law, cookielaw, cookies, cookiebar, policy, bar, eu cookie law, cookie law banner, cookiechoices, eu privacy directive, privacy, privacy directive, cookie consent, cookieconsent, Multi language, WPML, polylang, responsive, admin, code, content, embed, google, html, integration, javascript, links, login, marketing, page, pages, plugin, simple, text, url, wordpress, law, lightweight,
5
  Requires at least: 3.0.1
6
  Tested up to: 4.9
7
+ Stable tag: 1.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
29
 
30
  == Changelog ==
31
 
32
+ = 1.1.3 =
33
+ Improved performance by loading a minified js file. Added rel="noopener" to the link referring to the policy page.
34
+
35
  = 1.1.2 =
36
  Added a direct link to generate a cookie policy.
37
 
wf-cookie-consent.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
- Version: 1.1.2
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
@@ -19,7 +19,7 @@ define ('WFCOOKIECONSENT_IUBENDA_HELP_URL', 'https://www.iubenda.com/en/help/pos
19
  * Enqueue JS
20
  */
21
  function wf_cookieconsent_scripts() {
22
- wp_enqueue_script('wf-cookie-consent-cookiechoices', plugin_dir_url( __FILE__ ) . 'js/cookiechoices.js', array(), false, true);
23
  }
24
  add_action( 'wp_enqueue_scripts', 'wf_cookieconsent_scripts' );
25
 
3
  Plugin Name: WF Cookie Consent
4
  Plugin URI: http://www.wunderfarm.com/plugins/wf-cookie-consent
5
  Description: The wunderfarm-way to show how your website complies with the EU Cookie Law.
6
+ Version: 1.1.3
7
  License: GNU General Public License v2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Author: wunderfarm
19
  * Enqueue JS
20
  */
21
  function wf_cookieconsent_scripts() {
22
+ wp_enqueue_script('wf-cookie-consent-cookiechoices', plugin_dir_url( __FILE__ ) . 'js/cookiechoices.min.js', array(), false, true);
23
  }
24
  add_action( 'wp_enqueue_scripts', 'wf_cookieconsent_scripts' );
25