Plugin Directory

Changeset 1983766


Ignore:
Timestamp:
12/01/2018 06:43:23 PM (7 years ago)
Author:
damiroquai
Message:

added version 1.1.3

Location:
klaro-consent-manager
Files:
1 added
3 edited
15 copied

Legend:

Unmodified
Added
Removed
  • klaro-consent-manager/tags/1.1.3/js/klaro-config.js

    r1976352 r1983766  
    104104     
    105105}
     106
     107/**
     108 * Delete a cookie
     109 * @param {String} cname, cookie name
     110 */
     111function deleteCookie(cname) {
     112    var d = new Date(); //Create an date object
     113    d.setTime(d.getTime() - (1000*60*60*24)); //Set the time to the past. 1000 milliseonds = 1 second
     114    var expires = "expires=" + d.toGMTString(); //Compose the expirartion date
     115   // window.document.cookie = cname+"="+"; "+expires;//Set the cookie with name and the expiration date
     116    //window.document.cookie = cname + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
     117    window.document.cookie = cname +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
     118 
     119}
     120
     121function deleteACookie(){
     122   // var cname = window.document.getElementById('klaro').value;//Get the cookie name from the cname input element
     123   var cname = klaroID;
     124    deleteCookie(cname);//Call the deleteCookie to delete the cookie
     125    //window.location.reload();//Reload the page
     126}
     127
  • klaro-consent-manager/tags/1.1.3/klaro.php

    r1977582 r1983766  
    44    Plugin URI: http://wordpress.transformnews.com/klaro-consent-manager
    55    Description: Simple consent manager.
    6     Version: 1.1.2
     6    Version: 1.1.3
    77    Author: m.r.d.a
    88    Author URI: http://wordpress.transformnews.com/
     
    1313
    1414defined('ABSPATH') or die("Cannot access pages directly.");
    15 define( 'KLARO_VERSION', '1.1.2' );
     15define( 'KLARO_VERSION', '1.1.3' );
    1616
    1717class KlaroBackend
     
    912912       
    913913        else if ($a['type'] == 'reset' ) {
    914             return '<a href="#" onclick="klaro.getManager().resetConsent();location.reload()">'. __('Reset your consents','klaro-consent-manager').'</a>';
     914            //return '<a href="#" onclick="klaro.getManager().resetConsent();location.reload()">'. __('Reset your consents','klaro-consent-manager').'</a>';
     915            return '<a href="#" onclick="deleteACookie(),klaro.getManager().resetConsent();location.reload()">'. __('Reset your consents','klaro-consent-manager').'</a>';
    915916        }
    916917    }
  • klaro-consent-manager/tags/1.1.3/readme.txt

    r1977582 r1983766  
    55Requires at least: 3.5.1
    66Tested up to: 4.9.8
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99
     
    48484.  screenshot-4.png shows applications (scripts and cookies) settings.
    49495.  screenshot-5.png shows application in edit mode.
     506.  screenshot-6.png shows application in public mode.
    5051
    5152
    5253== Changelog ==
     54= 1.1.3 =
     55* Fixed reset Klaro
    5356= 1.1 =
    5457* Second version of Klaro Content Manager plugin.
  • klaro-consent-manager/trunk/js/klaro-config.js

    r1976352 r1983766  
    104104     
    105105}
     106
     107/**
     108 * Delete a cookie
     109 * @param {String} cname, cookie name
     110 */
     111function deleteCookie(cname) {
     112    var d = new Date(); //Create an date object
     113    d.setTime(d.getTime() - (1000*60*60*24)); //Set the time to the past. 1000 milliseonds = 1 second
     114    var expires = "expires=" + d.toGMTString(); //Compose the expirartion date
     115   // window.document.cookie = cname+"="+"; "+expires;//Set the cookie with name and the expiration date
     116    //window.document.cookie = cname + '=;expires=Thu, 01 Jan 1970 00:00:01 GMT;';
     117    window.document.cookie = cname +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
     118 
     119}
     120
     121function deleteACookie(){
     122   // var cname = window.document.getElementById('klaro').value;//Get the cookie name from the cname input element
     123   var cname = klaroID;
     124    deleteCookie(cname);//Call the deleteCookie to delete the cookie
     125    //window.location.reload();//Reload the page
     126}
     127
  • klaro-consent-manager/trunk/klaro.php

    r1977582 r1983766  
    44    Plugin URI: http://wordpress.transformnews.com/klaro-consent-manager
    55    Description: Simple consent manager.
    6     Version: 1.1.2
     6    Version: 1.1.3
    77    Author: m.r.d.a
    88    Author URI: http://wordpress.transformnews.com/
     
    1313
    1414defined('ABSPATH') or die("Cannot access pages directly.");
    15 define( 'KLARO_VERSION', '1.1.2' );
     15define( 'KLARO_VERSION', '1.1.3' );
    1616
    1717class KlaroBackend
     
    912912       
    913913        else if ($a['type'] == 'reset' ) {
    914             return '<a href="#" onclick="klaro.getManager().resetConsent();location.reload()">'. __('Reset your consents','klaro-consent-manager').'</a>';
     914            //return '<a href="#" onclick="klaro.getManager().resetConsent();location.reload()">'. __('Reset your consents','klaro-consent-manager').'</a>';
     915            return '<a href="#" onclick="deleteACookie(),klaro.getManager().resetConsent();location.reload()">'. __('Reset your consents','klaro-consent-manager').'</a>';
    915916        }
    916917    }
  • klaro-consent-manager/trunk/readme.txt

    r1977582 r1983766  
    55Requires at least: 3.5.1
    66Tested up to: 4.9.8
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99
     
    48484.  screenshot-4.png shows applications (scripts and cookies) settings.
    49495.  screenshot-5.png shows application in edit mode.
     506.  screenshot-6.png shows application in public mode.
    5051
    5152
    5253== Changelog ==
     54= 1.1.3 =
     55* Fixed reset Klaro
    5356= 1.1 =
    5457* Second version of Klaro Content Manager plugin.
Note: See TracChangeset for help on using the changeset viewer.