Plugin Directory

Changeset 3331555 for cookieadmin


Ignore:
Timestamp:
07/21/2025 02:11:04 PM (8 months ago)
Author:
softaculous
Message:

New version 1.0.3

Location:
cookieadmin/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cookieadmin/trunk/assets/js/consent.js

    r3328224 r3331555  
    445445    document.querySelector(".cookieadmin_save_btn").addEventListener("click", function(){
    446446       
     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       
    447452        var prefer = {};
    448453
     
    464469       
    465470        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
    472472        cookieadmin_set_consent(prefer, days);
    473473       
     
    487487        e.addEventListener("click", function(){
    488488            // 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            }
    489495           
    490496            if(e.id.includes("modal")){
     
    492498            }
    493499           
    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";
    499500            var prefer2 = e.classList.contains("cookieadmin_reject_btn") ? {reject: "true"} : {accept: "true"};
    500501           
     
    576577
    577578function 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  
    522522                row += '<td>' + cookie_info.description + '</td>';
    523523                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>';
    525525                row += '</tr>';
    526526               
  • cookieadmin/trunk/cookieadmin.php

    r3328224 r3331555  
    11<?php
    22/*
    3 Plugin Name: CookieAdmin - Cookie Consent and Banner
     3Plugin Name: CookieAdmin - Cookie Consent Banner
    44Plugin URI: https://cookieadmin.net
    55Description: CookieAdmin provides easy to configure cookie consent banner with GDPR and CCPA law support.
    6 Version: 1.0.2
     6Version: 1.0.3
    77Author: Softaculous
    88Author URI: https://www.softaculous.com
  • cookieadmin/trunk/init.php

    r3328224 r3331555  
    1111define('COOKIEADMIN_BASE', plugin_basename(COOKIEADMIN_FILE));
    1212define('COOKIEADMIN_DIR', plugin_dir_path(__FILE__));
    13 define('COOKIEADMIN_VERSION', '1.0.2');
     13define('COOKIEADMIN_VERSION', '1.0.3');
    1414define('COOKIEADMIN_URL', plugins_url('', COOKIEADMIN_FILE));
    1515define('COOKIEADMIN_PLUGIN_URL', plugin_dir_url(__FILE__));
  • cookieadmin/trunk/readme.txt

    r3328224 r3331555  
    1 === CookieAdmin - Cookie Consent and Banner ===
     1=== CookieAdmin - Cookie Consent Banner ===
    22Contributors: softaculous
    33Tags: cookie, notice, banner, consent, gdpr
    44Requires at least: 4.4
    5 Tested up to: 6.8
     5Tested up to: 6.8.2
    66Requires PHP: 7.0
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: LGPLv2.1
    99License URI: http://www.gnu.org/licenses/lgpl-2.1.html
     
    1313== Description ==
    1414
    15 CookieAdmin is an easy to use Cookie consent banner plugin which allows you to display a banner on the frontend for your visitors to choose which cookies they would like to use.
     15CookieAdmin 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.
    1616
    1717Admins can customize the UI of the consent banner for the frontend to match with their website / brand identity.
     
    4343== Changelog ==
    4444
     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
    4549= 1.0.2 =
    4650* Initial Release
Note: See TracChangeset for help on using the changeset viewer.