Changeset 3161502
- Timestamp:
- 10/02/2024 12:21:54 PM (6 months ago)
- 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;}}}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: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 6 6 use CookieInformation\Vendors\PiotrPress\Elementor\Element; 7 7 use CookieInformation\Vendors\PiotrPress\WordPress\Hooks\Action; 8 use CookieInformation\Vendors\PiotrPress\WordPress\Hooks\Filter;9 8 10 9 \defined( 'ABSPATH' ) or exit; … … 24 23 } 25 24 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 ], '' ); 29 32 } 30 33 … … 32 35 return (string) new Element( 'div', [ 'id' => 'cicc-template' ], '' ); 33 36 } 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 }44 37 } 45 38 } -
cookie-information-consent-solution/trunk/plugin.php
r3155135 r3161502 5 5 * Plugin URI: https://cookieinformation.com/extension/wordpress/ 6 6 * 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. 07 * Version: 2.0.1 8 8 * Requires at least: 6.0 9 9 * Requires PHP: 7.4 -
cookie-information-consent-solution/trunk/readme.txt
r3155135 r3161502 5 5 Tested up to: 6.6.2 6 6 Requires PHP: 7.4 7 Stable tag: 2.0. 07 Stable tag: 2.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 119 119 120 120 * 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.