Changeset 1983766
- Timestamp:
- 12/01/2018 06:43:23 PM (7 years ago)
- Location:
- klaro-consent-manager
- Files:
-
- 1 added
- 3 edited
- 15 copied
-
assets/screenshot-6.png (added)
-
tags/1.1.3 (copied) (copied from klaro-consent-manager/trunk)
-
tags/1.1.3/css (copied) (copied from klaro-consent-manager/trunk/css)
-
tags/1.1.3/css/klaro-admin.css (copied) (copied from klaro-consent-manager/trunk/css/klaro-admin.css)
-
tags/1.1.3/index.php (copied) (copied from klaro-consent-manager/trunk/index.php)
-
tags/1.1.3/js (copied) (copied from klaro-consent-manager/trunk/js)
-
tags/1.1.3/js/klaro-admin.js (copied) (copied from klaro-consent-manager/trunk/js/klaro-admin.js)
-
tags/1.1.3/js/klaro-config.js (copied) (copied from klaro-consent-manager/trunk/js/klaro-config.js) (1 diff)
-
tags/1.1.3/klaro.php (copied) (copied from klaro-consent-manager/trunk/klaro.php) (3 diffs)
-
tags/1.1.3/languages (copied) (copied from klaro-consent-manager/trunk/languages)
-
tags/1.1.3/languages/klaro-consent-manager-hr.mo (copied) (copied from klaro-consent-manager/trunk/languages/klaro-consent-manager-hr.mo)
-
tags/1.1.3/languages/klaro-consent-manager-hr.po (copied) (copied from klaro-consent-manager/trunk/languages/klaro-consent-manager-hr.po)
-
tags/1.1.3/languages/klaro-consent-manager.mo (copied) (copied from klaro-consent-manager/trunk/languages/klaro-consent-manager.mo)
-
tags/1.1.3/languages/klaro-consent-manager.po (copied) (copied from klaro-consent-manager/trunk/languages/klaro-consent-manager.po)
-
tags/1.1.3/readme.txt (copied) (copied from klaro-consent-manager/trunk/readme.txt) (2 diffs)
-
tags/1.1.3/uninstall.php (copied) (copied from klaro-consent-manager/trunk/uninstall.php)
-
trunk/js/klaro-config.js (modified) (1 diff)
-
trunk/klaro.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
klaro-consent-manager/tags/1.1.3/js/klaro-config.js
r1976352 r1983766 104 104 105 105 } 106 107 /** 108 * Delete a cookie 109 * @param {String} cname, cookie name 110 */ 111 function 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 121 function 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 4 4 Plugin URI: http://wordpress.transformnews.com/klaro-consent-manager 5 5 Description: Simple consent manager. 6 Version: 1.1. 26 Version: 1.1.3 7 7 Author: m.r.d.a 8 8 Author URI: http://wordpress.transformnews.com/ … … 13 13 14 14 defined('ABSPATH') or die("Cannot access pages directly."); 15 define( 'KLARO_VERSION', '1.1. 2' );15 define( 'KLARO_VERSION', '1.1.3' ); 16 16 17 17 class KlaroBackend … … 912 912 913 913 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>'; 915 916 } 916 917 } -
klaro-consent-manager/tags/1.1.3/readme.txt
r1977582 r1983766 5 5 Requires at least: 3.5.1 6 6 Tested up to: 4.9.8 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv2 or later 9 9 … … 48 48 4. screenshot-4.png shows applications (scripts and cookies) settings. 49 49 5. screenshot-5.png shows application in edit mode. 50 6. screenshot-6.png shows application in public mode. 50 51 51 52 52 53 == Changelog == 54 = 1.1.3 = 55 * Fixed reset Klaro 53 56 = 1.1 = 54 57 * Second version of Klaro Content Manager plugin. -
klaro-consent-manager/trunk/js/klaro-config.js
r1976352 r1983766 104 104 105 105 } 106 107 /** 108 * Delete a cookie 109 * @param {String} cname, cookie name 110 */ 111 function 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 121 function 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 4 4 Plugin URI: http://wordpress.transformnews.com/klaro-consent-manager 5 5 Description: Simple consent manager. 6 Version: 1.1. 26 Version: 1.1.3 7 7 Author: m.r.d.a 8 8 Author URI: http://wordpress.transformnews.com/ … … 13 13 14 14 defined('ABSPATH') or die("Cannot access pages directly."); 15 define( 'KLARO_VERSION', '1.1. 2' );15 define( 'KLARO_VERSION', '1.1.3' ); 16 16 17 17 class KlaroBackend … … 912 912 913 913 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>'; 915 916 } 916 917 } -
klaro-consent-manager/trunk/readme.txt
r1977582 r1983766 5 5 Requires at least: 3.5.1 6 6 Tested up to: 4.9.8 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv2 or later 9 9 … … 48 48 4. screenshot-4.png shows applications (scripts and cookies) settings. 49 49 5. screenshot-5.png shows application in edit mode. 50 6. screenshot-6.png shows application in public mode. 50 51 51 52 52 53 == Changelog == 54 = 1.1.3 = 55 * Fixed reset Klaro 53 56 = 1.1 = 54 57 * Second version of Klaro Content Manager plugin.
Note: See TracChangeset
for help on using the changeset viewer.