Plugin Directory

Changeset 3161502


Ignore:
Timestamp:
10/02/2024 12:21:54 PM (6 months ago)
Author:
cookieinformation
Message:

Version 2.0.1

Location:
cookie-information-consent-solution
Files:
132 added
4 edited

Legend:

Unmodified
Added
Removed
  • cookie-information-consent-solution/trunk/.cache

    r3155135 r3161502  
    1 a:4:{s:23:"CookieInformation\Popup";a:2:{i:0;a:4:{s:4:"name";s:18:"wp_enqueue_scripts";s:8:"callback";s:6:"script";s:8:"priority";i:10;s:5:"count";i:0;}i:1;a:4:{s:4:"name";s:20:"wp_script_attributes";s:8:"callback";s:10:"attributes";s:8:"priority";i:10;s:5:"count";i:1;}}s:23:"CookieInformation\Video";a:2:{i:0;a:4:{s:4:"name";s:11:"the_content";s:8:"callback";s:6:"filter";s:8:"priority";i:10;s:5:"count";i:1;}i:1;a:4:{s:4:"name";s:9:"wp_footer";s:8:"callback";s:11:"placeholder";s:8:"priority";i:10;s:5:"count";i:0;}}s:23:"CookieInformation\Admin";a:4:{i:0;a:4:{s:4:"name";s:19:"plugin_action_links";s:8:"callback";s:4:"link";s:8:"priority";i:10;s:5:"count";i:3;}i:1;a:4:{s:4:"name";s:21:"admin_enqueue_scripts";s:8:"callback";s:6:"styles";s:8:"priority";i:10;s:5:"count";i:1;}i:2;a:4:{s:4:"name";s:21:"admin_enqueue_scripts";s:8:"callback";s:5:"scrip";s:8:"priority";i:10;s:5:"count";i:1;}i:3;a:4:{s:4:"name";s:10:"admin_menu";s:8:"callback";s:4:"menu";s:8:"priority";i:10;s:5:"count";i:0;}}s:28:"CookieInformation\Shortcodes";a:2:{i:0;a:4:{s:4:"name";s:4:"init";s:8:"callback";s:8:"register";s:8:"priority";i:10;s:5:"count";i:0;}i:1;a:4:{s:4:"name";s:20:"wp_script_attributes";s:8:"callback";s:10:"attributes";s:8:"priority";i:10;s:5:"count";i:1;}}}
     1a:4:{s:23:"CookieInformation\Popup";a:2:{i:0;a:4:{s:4:"name";s:18:"wp_enqueue_scripts";s:8:"callback";s:6:"script";s:8:"priority";i:10;s:5:"count";i:0;}i:1;a:4:{s:4:"name";s:20:"wp_script_attributes";s:8:"callback";s:10:"attributes";s:8:"priority";i:10;s:5:"count";i:1;}}s:23:"CookieInformation\Video";a:2:{i:0;a:4:{s:4:"name";s:11:"the_content";s:8:"callback";s:6:"filter";s:8:"priority";i:10;s:5:"count";i:1;}i:1;a:4:{s:4:"name";s:9:"wp_footer";s:8:"callback";s:11:"placeholder";s:8:"priority";i:10;s:5:"count";i:0;}}s:23:"CookieInformation\Admin";a:4:{i:0;a:4:{s:4:"name";s:19:"plugin_action_links";s:8:"callback";s:4:"link";s:8:"priority";i:10;s:5:"count";i:3;}i:1;a:4:{s:4:"name";s:21:"admin_enqueue_scripts";s:8:"callback";s:6:"styles";s:8:"priority";i:10;s:5:"count";i:1;}i:2;a:4:{s:4:"name";s:21:"admin_enqueue_scripts";s:8:"callback";s:5:"scrip";s:8:"priority";i:10;s:5:"count";i:1;}i:3;a:4:{s:4:"name";s:10:"admin_menu";s:8:"callback";s:4:"menu";s:8:"priority";i:10;s:5:"count";i:0;}}s:28:"CookieInformation\Shortcodes";a:1:{i:0;a:4:{s:4:"name";s:4:"init";s:8:"callback";s:8:"register";s:8:"priority";i:10;s:5:"count";i:0;}}}
  • cookie-information-consent-solution/trunk/includes/Shortcodes.php

    r3155135 r3161502  
    66use CookieInformation\Vendors\PiotrPress\Elementor\Element;
    77use CookieInformation\Vendors\PiotrPress\WordPress\Hooks\Action;
    8 use CookieInformation\Vendors\PiotrPress\WordPress\Hooks\Filter;
    98
    109\defined( 'ABSPATH' ) or exit;
     
    2423        }
    2524
    26         public function cookiepolicy() : void {
    27             \wp_register_script( self::SCRIPT, 'https://policy.app.cookieinformation.com/cid.js', [], null );
    28             \wp_enqueue_script( self::SCRIPT );
     25        public function cookiepolicy() : string {
     26            return (string) new Element( 'script', [
     27                'id' => self::SCRIPT,
     28                'src' => 'https://policy.app.cookieinformation.com/cid.js',
     29                'data-culture' => Language::get(),
     30                'type' => 'text/javascript'
     31            ], '' );
    2932        }
    3033
     
    3235            return (string) new Element( 'div', [ 'id' => 'cicc-template' ], '' );
    3336        }
    34 
    35         #[ Filter( 'wp_script_attributes' ) ]
    36         public function attributes( array $attributes ) : array {
    37             if( $attributes[ 'id' ] === self::SCRIPT . '-js' ) {
    38                 $attributes[ 'id' ] = self::SCRIPT;
    39                 $attributes[ 'data-culture' ] = Language::get();
    40                 $attributes[ 'type' ] = 'text/javascript';
    41             }
    42             return $attributes;
    43         }
    4437    }
    4538}
  • cookie-information-consent-solution/trunk/plugin.php

    r3155135 r3161502  
    55 * Plugin URI: https://cookieinformation.com/extension/wordpress/
    66 * Description: Easily set up Google Consent Mode and custom cookie banners to comply with GDPR, ePrivacy, CCPA. Collect consent and build trust with your customers.
    7  * Version: 2.0.0
     7 * Version: 2.0.1
    88 * Requires at least: 6.0
    99 * Requires PHP: 7.4
  • cookie-information-consent-solution/trunk/readme.txt

    r3155135 r3161502  
    55Tested up to: 6.6.2
    66Requires PHP: 7.4
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    119119
    120120* A completely revamped version of the plugin, rewritten from scratch to improve performance and functionality.
     121
     122= 2.0.1 =
     123**Release date: 02.10.2024**
     124
     125* Fixed `ci_cookiepolicy` shortcode display issue.
Note: See TracChangeset for help on using the changeset viewer.