Changeset 1883015
- Timestamp:
- 05/29/2018 06:56:30 AM (8 years ago)
- Location:
- easy-cookie-law/trunk
- Files:
-
- 2 edited
-
easy-cookie-law.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
easy-cookie-law/trunk/easy-cookie-law.php
r1882661 r1883015 2 2 /** 3 3 * Plugin Name: Easy Cookie Law 4 * Description: Minimal code to make sure your website re pect the coockie law4 * Description: Minimal code to make sure your website respect the cookie law 5 5 * Plugin URI: https://antsanchez.com 6 * Version: 1.96 * Version: 2.0 7 7 * Author: antsanchez 8 8 * Author URI: https://antsanchez.com … … 11 11 * License: GPL2 v2.0 12 12 13 Copyright 201 4 Antonio Sanchez (email : antonio@antsanchez.com)13 Copyright 2018 Antonio Sanchez (email : antsanchez@gmx.de) 14 14 15 15 This program is free software; you can redistribute it and/or modify … … 303 303 } 304 304 } 305 306 ?> 307 <script type="text/javascript">function ecl_close_div(){document.getElementById('ecl-notice').style.display = "none";}</script> 308 <?php 309 } else { 310 ?> 311 <script type="text/javascript">document.getElementById('ecl-notice').style.display = "none";</script> 312 <?php 313 } 305 } 306 307 /** 308 Unimified JS 309 <script type="text/javascript"> 310 function ecl_close_div(){ 311 document.getElementById('ecl-notice').style.display = "none"; 312 } 313 function ecl_close_cookie() { 314 var decodedCookie = decodeURIComponent(document.cookie); 315 var ca = decodedCookie.split(';'); 316 for(var i = 0; i <ca.length; i++) { 317 var c = ca[i]; 318 while (c.charAt(0) == ' ') { 319 c = c.substring(1); 320 } 321 if (c.indexOf("easy-cookie-law=") == 0) { 322 ecl_close_div() 323 } 324 } 325 } 326 ecl_close_cookie() 327 </script> 328 **/ 329 330 ?> 331 <script type="text/javascript"> 332 function ecl_close_div(){document.getElementById("ecl-notice").style.display="none"}function ecl_close_cookie(){for(var e=decodeURIComponent(document.cookie).split(";"),o=0;o<e.length;o++){for(var c=e[o];" "==c.charAt(0);)c=c.substring(1);0==c.indexOf("easy-cookie-law=")&&ecl_close_div()}}ecl_close_cookie(); 333 </script> 334 <?php 314 335 } 315 336 add_action('wp_head', 'ecl_print_styles', 100); -
easy-cookie-law/trunk/readme.txt
r1882661 r1883015 4 4 Requires at least: 3.9 5 5 Tested up to: 4.9.6 6 Stable tag: 1.96 Stable tag: 2.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.