Plugin Directory

Changeset 3281956


Ignore:
Timestamp:
04/25/2025 02:34:47 PM (11 months ago)
Author:
codingfreaks
Message:

Update 1.0.3

Location:
codingfreaks-cookiemanager/trunk
Files:
19 added
2 edited

Legend:

Unmodified
Added
Removed
  • codingfreaks-cookiemanager/trunk/Readme.txt

    r3122237 r3281956  
    44Tags: GDPR, Cookie, Cookie Notice, DSGVO, Consent
    55Requires at least: 6.4
    6 Tested up to: 6.6
    7 Stable tag: 1.0.1
     6Tested up to: 6.8
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242[Visit the Demo Website](https://cookiedemo.coding-freaks.com/)
    43 [Visit the QuickStart Guide](https://cookieapi.coding-freaks.com/plugin/wordpress)
     43[Visit the QuickStart Guide](https://coding-freaks.com/tutorials/docs/cookie-docs/setup-a-cookiebanner/)
     44[Product Website](https://coding-freaks.com/web-cookie-management-plugin)
    4445
    4546
     
    7475== Changelog ==
    7576
    76 = v1.0.4 =
    77 * Refactoring of the Renderutility to use Regex GDPR Compliant Replacement
    78 
    79 = v1.0.3 =
    80 * Using WP Functions refactoring
    81 
    82 
    8377= v1.0.2 =
    84 * Added Colorpicker for Theme
     78* New API Service for Cookie-Manager and Auto-Configuration feature
    8579
    8680= v1.0.1 =
  • codingfreaks-cookiemanager/trunk/codingfreaks-cookiemanager.php

    r3122237 r3281956  
    22/**
    33 * Plugin Name: CodingFreaks Cookiemanager
    4  * Plugin URI: https://cookieapi.coding-freaks.com
     4 * Plugin URI: https://coding-freaks.com
    55 * Description: CodingFreaks Cookiemanager
    6  * Version: 1.0.1
     6 * Version: 1.0.3
    77 * Author: Florian Eibisberger
    88 * Author URI: https://coding-freaks.com
     
    1111 */
    1212
     13//https://github.com/shewa12/svn-guide-to-upload-wp-plugin
    1314
    1415use CodingFreaks\Cookiemanager\Classes\Helpers;
     
    1819if ( ! defined( 'ABSPATH' ) ) exit;
    1920//Used for static text in the plugin
    20 $codingfreaksCookiemanagerApiURL = "https://cookieapi.coding-freaks.com"; //Beta Endpoint for Wordpress Plugin Feature Testing
     21$codingfreaksCookiemanagerApiURL = "https://coding-freaks.com"; //Beta Endpoint for Wordpress Plugin Feature Testing
    2122
    2223
     
    5051    $url = plugin_dir_url(__FILE__) . 'build/';
    5152    $css_files = glob($dir . '*.css');
    52     $js_files = glob($dir . '*.js');
    53 
     53    //$js_files = glob($dir . '*.js');
     54    $js_files = array_filter(glob($dir . '*.js'), function($file) {
     55        return basename($file) !== 'codingfreaks-cookie.js';
     56    });
    5457    foreach ($css_files as $index => $file) {
    5558        $file_url = $url . basename($file);
     
    5962    foreach ($js_files as $index => $file) {
    6063        $file_url = $url . basename($file);
    61         wp_enqueue_script('codingfreaks-cookie-plugin-js-' . $index, $file_url, array(), '1.0', true);
     64        wp_enqueue_script_module('codingfreaks-cookie-plugin-js-' . $index, $file_url, array(), '1.0', true);
    6265    }
    6366
     
    7376    //use helper function validate config
    7477    if (  $GLOBALS["codingfreakscookiemanagerhelpers"]->isExtensionConfigValid($options)) {
    75         // Register the frontend script
     78        /* Register the frontend script by CDN
    7679        wp_register_script('codingfreaks-cookie-consent-script', $options['codingfreaks_plugin_setting_api_endpoint'].'/cdn/consent/cf-cookie-'.$options['codingfreaks_plugin_setting_api_key'].'.js',[],'1.0',[
     80            "strategy" => "async",
     81        ]);
     82        */
     83        // Register the frontend script by local file
     84        wp_register_script('codingfreaks-cookie-consent-script', '/wp-content/plugins/codingfreaks-cookiemanager/build/codingfreaks-cookie.js',[],'1.0',[
    7785            "strategy" => "async",
    7886        ]);
Note: See TracChangeset for help on using the changeset viewer.