Plugin Directory

Changeset 1883015


Ignore:
Timestamp:
05/29/2018 06:56:30 AM (8 years ago)
Author:
antsanchez
Message:

Improved texts

Location:
easy-cookie-law/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • easy-cookie-law/trunk/easy-cookie-law.php

    r1882661 r1883015  
    22/**
    33 * Plugin Name: Easy Cookie Law
    4  * Description: Minimal code to make sure your website repect the coockie law
     4 * Description: Minimal code to make sure your website respect the cookie law
    55 * Plugin URI: https://antsanchez.com
    6  * Version: 1.9
     6 * Version: 2.0
    77 * Author: antsanchez
    88 * Author URI: https://antsanchez.com
     
    1111 * License: GPL2 v2.0
    1212
    13     Copyright 2014  Antonio Sanchez (email : antonio@antsanchez.com)
     13    Copyright 2018  Antonio Sanchez (email : antsanchez@gmx.de)
    1414
    1515    This program is free software; you can redistribute it and/or modify
     
    303303            }
    304304        }
    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
    314335}
    315336add_action('wp_head', 'ecl_print_styles', 100);
  • easy-cookie-law/trunk/readme.txt

    r1882661 r1883015  
    44Requires at least: 3.9
    55Tested up to: 4.9.6
    6 Stable tag: 1.9
     6Stable tag: 2.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.