Changeset 3331555 for cookieadmin
- Timestamp:
- 07/21/2025 02:11:04 PM (8 months ago)
- Location:
- cookieadmin/trunk
- Files:
-
- 5 edited
-
assets/js/consent.js (modified) (5 diffs)
-
assets/js/cookie.js (modified) (1 diff)
-
cookieadmin.php (modified) (1 diff)
-
init.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cookieadmin/trunk/assets/js/consent.js
r3328224 r3331555 445 445 document.querySelector(".cookieadmin_save_btn").addEventListener("click", function(){ 446 446 447 document.getElementsByClassName("cookieadmin_cookie_modal")[0].style.display = "none"; 448 if(cookieadmin_show_reconsent){ 449 document.getElementsByClassName("cookieadmin_re_consent")[0].style.display = "block"; 450 } 451 447 452 var prefer = {}; 448 453 … … 464 469 465 470 cookieadmin_toggle_overlay(); 466 document.getElementsByClassName("cookieadmin_cookie_modal")[0].style.display = "none"; 467 468 if(cookieadmin_show_reconsent){ 469 document.getElementsByClassName("cookieadmin_re_consent")[0].style.display = "block"; 470 } 471 471 472 472 cookieadmin_set_consent(prefer, days); 473 473 … … 487 487 e.addEventListener("click", function(){ 488 488 // console.log(e); 489 490 document.getElementsByClassName("cookieadmin_cookie_modal")[0].style.display = "none"; 491 document.getElementsByClassName("cookieadmin_law_container")[0].style.display = "none"; 492 if(cookieadmin_show_reconsent){ 493 document.getElementsByClassName("cookieadmin_re_consent")[0].style.display = "block"; 494 } 489 495 490 496 if(e.id.includes("modal")){ … … 492 498 } 493 499 494 document.getElementsByClassName("cookieadmin_cookie_modal")[0].style.display = "none";495 if(cookieadmin_show_reconsent){496 document.getElementsByClassName("cookieadmin_re_consent")[0].style.display = "block";497 }498 document.getElementsByClassName("cookieadmin_law_container")[0].style.display = "none";499 500 var prefer2 = e.classList.contains("cookieadmin_reject_btn") ? {reject: "true"} : {accept: "true"}; 500 501 … … 576 577 577 578 function cookieadmin_get_base_path() { 578 const parts = window.location.pathname.split('/'); 579 return '/' + (parts[1] || '') + '/'; 580 } 579 580 if(window.location.pathname.trim() != '/'){ 581 const parts = window.location.pathname.split('/'); 582 return '/' + (parts[1] || '') + '/'; 583 } 584 return '/'; 585 } -
cookieadmin/trunk/assets/js/cookie.js
r3328224 r3331555 522 522 row += '<td>' + cookie_info.description + '</td>'; 523 523 row += '<td>' + cookie_info.duration + '</td>'; 524 row += '<td> <span class="dashicons dashicons-edit cookieadmin_edit_icon" id="edit_'+cookie_info. name+'"></span> <span class="dashicons dashicons-trash cookieadmin_delete_icon"></span> </td>';524 row += '<td> <span class="dashicons dashicons-edit cookieadmin_edit_icon" id="edit_'+cookie_info.id+'"></span> <span class="dashicons dashicons-trash cookieadmin_delete_icon" id="edit_'+cookie_info.id+'"></span> </td>'; 525 525 row += '</tr>'; 526 526 -
cookieadmin/trunk/cookieadmin.php
r3328224 r3331555 1 1 <?php 2 2 /* 3 Plugin Name: CookieAdmin - Cookie Consent andBanner3 Plugin Name: CookieAdmin - Cookie Consent Banner 4 4 Plugin URI: https://cookieadmin.net 5 5 Description: CookieAdmin provides easy to configure cookie consent banner with GDPR and CCPA law support. 6 Version: 1.0. 26 Version: 1.0.3 7 7 Author: Softaculous 8 8 Author URI: https://www.softaculous.com -
cookieadmin/trunk/init.php
r3328224 r3331555 11 11 define('COOKIEADMIN_BASE', plugin_basename(COOKIEADMIN_FILE)); 12 12 define('COOKIEADMIN_DIR', plugin_dir_path(__FILE__)); 13 define('COOKIEADMIN_VERSION', '1.0. 2');13 define('COOKIEADMIN_VERSION', '1.0.3'); 14 14 define('COOKIEADMIN_URL', plugins_url('', COOKIEADMIN_FILE)); 15 15 define('COOKIEADMIN_PLUGIN_URL', plugin_dir_url(__FILE__)); -
cookieadmin/trunk/readme.txt
r3328224 r3331555 1 === CookieAdmin - Cookie Consent andBanner ===1 === CookieAdmin - Cookie Consent Banner === 2 2 Contributors: softaculous 3 3 Tags: cookie, notice, banner, consent, gdpr 4 4 Requires at least: 4.4 5 Tested up to: 6.8 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.0 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: LGPLv2.1 9 9 License URI: http://www.gnu.org/licenses/lgpl-2.1.html … … 13 13 == Description == 14 14 15 CookieAdmin is a n easy to use Cookie consent banner plugin which allows you to display a banner on the frontendfor your visitors to choose which cookies they would like to use.15 CookieAdmin is a Lightweight, Bloat-free & easy to use Cookie consent banner plugin which allows you to display a personalized banner on your website for your visitors to choose which cookies they would like to use. 16 16 17 17 Admins can customize the UI of the consent banner for the frontend to match with their website / brand identity. … … 43 43 == Changelog == 44 44 45 = 1.0.3 = 46 * [Bug Fix] In some cases, the consent banner was displayed even after accepting the cookies. This is fixed. 47 * [Bug Fix] Minor UI fixes 48 45 49 = 1.0.2 = 46 50 * Initial Release
Note: See TracChangeset
for help on using the changeset viewer.