Plugin Directory

Changeset 3293219


Ignore:
Timestamp:
05/14/2025 11:29:02 AM (11 months ago)
Author:
uniconsent
Message:

Version 1.5.7

Location:
uniconsent-cmp
Files:
5 edited
24 copied

Legend:

Unmodified
Added
Removed
  • uniconsent-cmp/tags/1.5.7/README.txt

    r3258809 r3293219  
    1 === UniConsent CMP for IAB TCF GPP Consent Mode ===
    2 Version: 1.5.6
     1=== UniConsent Cookie Consent CMP ===
     2Version: 1.5.7
    33Contributors: uniconsent
    44Tags: cookies, cookie banner, gdpr, cpra, eprivacy, cookie consent, iab, cmp
     
    66Tested up to: 6.6
    77Requires PHP: 7.4
    8 Stable tag: 1.5.6
     8Stable tag: 1.5.7
    99
    1010== Description ==
    1111
     12Leading Consent Management Platform for GDPR, CCPA, COPPA, PIPL, LGPD, POPIA Compliance. UniConsent GDPR, CCPA/CPRA, COPPA, LGPD, POPIA Compliance Solution Privacy Manager Simplify Global Privacy Regulations Compliance.
     13
    1214**UniConsent CMP is a certified EU IAB TCF Consent Management Platform.**
    1315
     
    1618**UniConsent CMP is a certified Google Consent Mode CMP**
    1719
    18 **Microsoft UET Consent Mode**
    19 
    20 Leading Consent Management Platform for GDPR Compliance, CCPA Compliance, COPPA, LGPD Compliance. UniConsent GDPR, CCPA/CPRA, COPPA, LGPD Compliance Solution Privacy Manager Simplify Global Privacy Regulations Compliance.
    21 
    22 [UniConsent CMP](https://www.uniconsent.com/) implements the IAB Transparency and Consent Framework for GDPR and Google Ad Manager/Adsense Consent Guidance. Most publishers have seen revenue increased substantially right after implemented and switched to UniConsent.
     20**Microsoft UET Consent Mode Support**
     21
     22**Bing Ads Consent Mode Support **
     23
     24[UniConsent](https://www.uniconsent.com/) implements the IAB Transparency and Consent Framework for GDPR and Google Ad Manager/Adsense Consent Guidance. Most publishers have seen revenue increased substantially right after implemented and switched to UniConsent.
    2325
    2426Looking for UniConsent GDPR CMP for other platform, please check [Universal Consent Manager for GDPR and CCPA Compliance](https://www.uniconsent.com/).
     
    116118== Changelog ==
    117119
     120= 1.5.7 =
     121* Fix warning for PHP 8.2+
     122
    118123= 1.5.6 =
    119124* Microsoft UET Consent Mode
  • uniconsent-cmp/tags/1.5.7/admin/class-unic-admin-pages.php

    r3258809 r3293219  
    216216                    <tr class="table-top-row" valign="top">
    217217                        <th scope="row">
    218                             <?php _e( 'Display GDPR CMP', 'uniconsent' ); ?>
     218                            <?php _e( 'GDPR Policy Region', 'uniconsent' ); ?>
    219219                        </th>
    220220                        <td class="col-2">
     
    295295                <div class='logo'>
    296296                    <div>
    297                         <h3>UniConsent for GDPR/CPRA Compliance</h3>
     297                        <h3>UniConsent Cookie Consent CMP</h3>
    298298                        <ul>
    299299                            <li><strong>Certified EU IAB TCF 2.2 CMP</strong>
     
    305305                            <li><strong>40+ Languages support</strong>
    306306                            <li><strong>GPP, TCF, USP Consent signals</strong>
    307                             <li><strong>Fix errors in Google's report</strong>
    308307                            <li><strong>For GDPR, CCPA, LGPD, PDPA, CPRA, PIPL</strong>
    309308                            <li><strong>More popup UI choices and easy mode</strong>
     
    312311                            <li><strong>Data analytics and inisght dashboard</strong>
    313312                            <li><strong>One-tag Implementation</strong>
    314                             <li><strong>Use Custom Domain</strong>
    315                             <li><strong>Google GAM/Google Adsense/Google Adx/Amazon APS support</strong>
     313                            <li><strong>Google GAM/Google Adsense/Google Adx/Amazon APS Support</strong>
    316314                            <li><strong>Prebid.js and Header bidding support</strong>
    317315                            <li><strong>Cookie ePrivacy consent support</strong>
     
    319317                            <li><strong>Javascript and cookie blocking</strong>
    320318                            <li><strong>Consent rate analytics and insight</strong>
    321                             <li><strong>24/7 Technical support</strong>
    322                             <li><strong>Service Level Agreement</strong>
    323319                            <li><strong>Support: support@uniconsent.com</strong>
    324320                        </ul>
  • uniconsent-cmp/tags/1.5.7/includes/class-unic-cmp.php

    r3258809 r3293219  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.5.6';
     22            $this->version = '1.5.7';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/tags/1.5.7/public/class-unic-public.php

    r3147308 r3293219  
    33 * *
    44 *  * @link https://www.uniconsent.com/
    5  *  * @copyright Copyright (c) 2018 - 2023 Transfon Ltd.
     5 *  * @copyright Copyright (c) 2018 - 2025 Transfon Ltd.
    66 *  * @license https://www.uniconsent.com/wordpress/
    77 *
     
    1515
    1616    private $version;
     17
     18    private $unic_values;
    1719
    1820    private $unic_default_language;
     
    3638        $unic_init = $this->get_unic_init_values();
    3739
    38 $unic_template_v1 = <<<UNIC
    39 window._unic_start = true;
    40 window.__cmp = window.__cmp || function () {
    41     window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    42     window.__cmp.commandQueue.push(arguments);
    43 };
    44 window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    45 window.__cmp.receiveMessage = function (event) {
    46     var data = event && event.data && event.data.__cmpCall;
    47 
    48     if (data) {
    49         var callId = data.callId,
    50             command = data.command,
    51             parameter = data.parameter;
    52 
    53         window.__cmp.commandQueue.push({
    54             callId: callId,
    55             command: command,
    56             parameter: parameter,
    57             event: event
    58         });
    59     }
    60 };
    61 var listen = window.attachEvent || window.addEventListener;
    62 var eventMethod = window.attachEvent ? "onmessage" : "message";
    63 listen(eventMethod, function (event) {
    64     window.__cmp.receiveMessage(event);
    65 }, false);
    66 function addLocatorFrame() {
    67     if (!window.frames['__cmpLocator']) {
    68         if (document.body) {
    69             var frame = document.createElement('iframe');
    70             frame.style.display = 'none';
    71             frame.name = '__cmpLocator';
    72             document.body.appendChild(frame);
    73         } else {
    74             setTimeout(addLocatorFrame, 5);
    75         }
    76     }
    77 }
    78 addLocatorFrame();
    79 window.__uspapi = window.__uspapi || function() {
    80     window.__uspapi.commandQueue = window.__uspapi.commandQueue || [];
    81     window.__uspapi.commandQueue.push(arguments);
    82 };
    83 
    84 window.__uspapi.receiveMessage = function(event) {
    85     var data = event && event.data && event.data.__uspapiCall;
    86 
    87     if (data) {
    88         var callId = data.callId,
    89             command = data.command,
    90             parameter = data.parameter;
    91 
    92         window.__uspapi.commandQueue.push({
    93             callId: callId,
    94             command: command,
    95             parameter: parameter,
    96             event: event
    97         });
    98     }
    99 };
    100 
    101 if (window.attachEvent) {
    102     window.attachEvent("onmessage", function(event) {
    103         window.__uspapi.receiveMessage(event);
    104     }, false);
    105 } else {
    106     window.addEventListener("message", function(event) {
    107         window.__uspapi.receiveMessage(event);
    108     }, false);
    109 }
    110 
    111 function addLocatorFrameUSP() {
    112     if (!window.frames['__uspapiLocator']) {
    113         if (document.body) {
    114             var frame = document.createElement('iframe');
    115             frame.style.display = 'none';
    116             frame.name = '__uspapiLocator';
    117             document.body.appendChild(frame);
    118         } else {
    119             setTimeout(addLocatorFrameUSP, 5);
    120         }
    121     }
    122 }
    123 
    124 addLocatorFrameUSP();
    125 UNIC;
    126 
    12740$unic_stub_v2 = <<<UNIC
    12841<script type="text/javascript">
     
    14356            echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    14457
    145         } else if(strpos($unic_license, 'key-') > -1) {
    146             $unic_license = str_replace('key-', '', $unic_license);
    147             $unic_license = substr($unic_license,0,10);
    148             echo "<script>\n";
    149             echo $unic_template_v1."\n";
    150             echo "</script>\n";
    151             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/t/".$unic_license.".cmp.js'></script>\n";
    152 
    15358        } else if($unic_enable_iab == 'v2') {
    15459            $unic_license = '85d3bd683e';
     
    16065
    16166        } else {
    162             $unic_license = '69a3449348';
     67            $unic_license = '85d3bd683e';
    16368            echo "<script>\n";
    164             echo "window.__unic_config = window.__unic_config || {}; window.__unic_config = ".$unic_init.";\n";
    165             echo $unic_template_v1."\n";
     69            echo "window.__unic_config_v2 = ".$unic_init.";\n";
    16670            echo "</script>\n";
    167             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/t/".$unic_license.".cmp.js'></script>\n";
     71            echo $unic_stub_v2."\n";
     72            echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    16873        }
    16974       
     
    17580
    17681        $unic_license = esc_attr(get_option( 'unic_license' ));
    177         if(strpos($unic_license, 'key-') > -1) {
    178             $unic_init_vals['unic_license'] = str_replace('key-', '', $unic_license);
    179             $unic_init_vals['unic_license'] = substr($unic_license,0,10);
    180             $unic_init_vals['version'] = 1;
    181         } else if(strpos($unic_license, 'license-') > -1) {
     82        if(strpos($unic_license, 'license-') > -1) {
    18283            $unic_init_vals['unic_license'] = str_replace('license-', '', $unic_license);
    18384            $unic_init_vals['unic_license'] = substr($unic_license,0,10);
     
    210111            $unic_company = esc_attr(get_option( 'unic_company' ));
    211112            if(!$unic_company) {
    212                 $unic_company = 'Current website';
     113                $unic_company = '';
    213114            }
    214115            $unic_init_vals['unic_company'] = $unic_company;
  • uniconsent-cmp/tags/1.5.7/uniconsent-cmp.php

    r3258809 r3293219  
    22
    33/**
    4 * Plugin Name: UniConsent CMP for IAB TCF GPP Consent Mode
     4* Plugin Name: UniConsent Cookie Consent CMP
    55* Plugin URI: https://www.uniconsent.com/wordpress
    6 * Description: UniConsent CMP implements the Google Consent Mode, IAB TCF 2.2, IAB GPP for GDPR Google Ad Manager/Prebid.js/Amazon APS and increase advertising revenue.
    7 * Version: 1.5.6
     6* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
     7* Version: 1.5.7
    88* Author: UniConsent
    99* Author URI: https://www.uniconsent.com/
     
    1515}
    1616
    17 define( 'UNIC_CMP_VERSION', '1.5.6' );
     17define( 'UNIC_CMP_VERSION', '1.5.7' );
    1818
    1919function activate_unic_cmp() {
  • uniconsent-cmp/trunk/README.txt

    r3258809 r3293219  
    1 === UniConsent CMP for IAB TCF GPP Consent Mode ===
    2 Version: 1.5.6
     1=== UniConsent Cookie Consent CMP ===
     2Version: 1.5.7
    33Contributors: uniconsent
    44Tags: cookies, cookie banner, gdpr, cpra, eprivacy, cookie consent, iab, cmp
     
    66Tested up to: 6.6
    77Requires PHP: 7.4
    8 Stable tag: 1.5.6
     8Stable tag: 1.5.7
    99
    1010== Description ==
    1111
     12Leading Consent Management Platform for GDPR, CCPA, COPPA, PIPL, LGPD, POPIA Compliance. UniConsent GDPR, CCPA/CPRA, COPPA, LGPD, POPIA Compliance Solution Privacy Manager Simplify Global Privacy Regulations Compliance.
     13
    1214**UniConsent CMP is a certified EU IAB TCF Consent Management Platform.**
    1315
     
    1618**UniConsent CMP is a certified Google Consent Mode CMP**
    1719
    18 **Microsoft UET Consent Mode**
    19 
    20 Leading Consent Management Platform for GDPR Compliance, CCPA Compliance, COPPA, LGPD Compliance. UniConsent GDPR, CCPA/CPRA, COPPA, LGPD Compliance Solution Privacy Manager Simplify Global Privacy Regulations Compliance.
    21 
    22 [UniConsent CMP](https://www.uniconsent.com/) implements the IAB Transparency and Consent Framework for GDPR and Google Ad Manager/Adsense Consent Guidance. Most publishers have seen revenue increased substantially right after implemented and switched to UniConsent.
     20**Microsoft UET Consent Mode Support**
     21
     22**Bing Ads Consent Mode Support **
     23
     24[UniConsent](https://www.uniconsent.com/) implements the IAB Transparency and Consent Framework for GDPR and Google Ad Manager/Adsense Consent Guidance. Most publishers have seen revenue increased substantially right after implemented and switched to UniConsent.
    2325
    2426Looking for UniConsent GDPR CMP for other platform, please check [Universal Consent Manager for GDPR and CCPA Compliance](https://www.uniconsent.com/).
     
    116118== Changelog ==
    117119
     120= 1.5.7 =
     121* Fix warning for PHP 8.2+
     122
    118123= 1.5.6 =
    119124* Microsoft UET Consent Mode
  • uniconsent-cmp/trunk/admin/class-unic-admin-pages.php

    r3258809 r3293219  
    216216                    <tr class="table-top-row" valign="top">
    217217                        <th scope="row">
    218                             <?php _e( 'Display GDPR CMP', 'uniconsent' ); ?>
     218                            <?php _e( 'GDPR Policy Region', 'uniconsent' ); ?>
    219219                        </th>
    220220                        <td class="col-2">
     
    295295                <div class='logo'>
    296296                    <div>
    297                         <h3>UniConsent for GDPR/CPRA Compliance</h3>
     297                        <h3>UniConsent Cookie Consent CMP</h3>
    298298                        <ul>
    299299                            <li><strong>Certified EU IAB TCF 2.2 CMP</strong>
     
    305305                            <li><strong>40+ Languages support</strong>
    306306                            <li><strong>GPP, TCF, USP Consent signals</strong>
    307                             <li><strong>Fix errors in Google's report</strong>
    308307                            <li><strong>For GDPR, CCPA, LGPD, PDPA, CPRA, PIPL</strong>
    309308                            <li><strong>More popup UI choices and easy mode</strong>
     
    312311                            <li><strong>Data analytics and inisght dashboard</strong>
    313312                            <li><strong>One-tag Implementation</strong>
    314                             <li><strong>Use Custom Domain</strong>
    315                             <li><strong>Google GAM/Google Adsense/Google Adx/Amazon APS support</strong>
     313                            <li><strong>Google GAM/Google Adsense/Google Adx/Amazon APS Support</strong>
    316314                            <li><strong>Prebid.js and Header bidding support</strong>
    317315                            <li><strong>Cookie ePrivacy consent support</strong>
     
    319317                            <li><strong>Javascript and cookie blocking</strong>
    320318                            <li><strong>Consent rate analytics and insight</strong>
    321                             <li><strong>24/7 Technical support</strong>
    322                             <li><strong>Service Level Agreement</strong>
    323319                            <li><strong>Support: support@uniconsent.com</strong>
    324320                        </ul>
  • uniconsent-cmp/trunk/includes/class-unic-cmp.php

    r3258809 r3293219  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.5.6';
     22            $this->version = '1.5.7';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/trunk/public/class-unic-public.php

    r3147308 r3293219  
    33 * *
    44 *  * @link https://www.uniconsent.com/
    5  *  * @copyright Copyright (c) 2018 - 2023 Transfon Ltd.
     5 *  * @copyright Copyright (c) 2018 - 2025 Transfon Ltd.
    66 *  * @license https://www.uniconsent.com/wordpress/
    77 *
     
    1515
    1616    private $version;
     17
     18    private $unic_values;
    1719
    1820    private $unic_default_language;
     
    3638        $unic_init = $this->get_unic_init_values();
    3739
    38 $unic_template_v1 = <<<UNIC
    39 window._unic_start = true;
    40 window.__cmp = window.__cmp || function () {
    41     window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    42     window.__cmp.commandQueue.push(arguments);
    43 };
    44 window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    45 window.__cmp.receiveMessage = function (event) {
    46     var data = event && event.data && event.data.__cmpCall;
    47 
    48     if (data) {
    49         var callId = data.callId,
    50             command = data.command,
    51             parameter = data.parameter;
    52 
    53         window.__cmp.commandQueue.push({
    54             callId: callId,
    55             command: command,
    56             parameter: parameter,
    57             event: event
    58         });
    59     }
    60 };
    61 var listen = window.attachEvent || window.addEventListener;
    62 var eventMethod = window.attachEvent ? "onmessage" : "message";
    63 listen(eventMethod, function (event) {
    64     window.__cmp.receiveMessage(event);
    65 }, false);
    66 function addLocatorFrame() {
    67     if (!window.frames['__cmpLocator']) {
    68         if (document.body) {
    69             var frame = document.createElement('iframe');
    70             frame.style.display = 'none';
    71             frame.name = '__cmpLocator';
    72             document.body.appendChild(frame);
    73         } else {
    74             setTimeout(addLocatorFrame, 5);
    75         }
    76     }
    77 }
    78 addLocatorFrame();
    79 window.__uspapi = window.__uspapi || function() {
    80     window.__uspapi.commandQueue = window.__uspapi.commandQueue || [];
    81     window.__uspapi.commandQueue.push(arguments);
    82 };
    83 
    84 window.__uspapi.receiveMessage = function(event) {
    85     var data = event && event.data && event.data.__uspapiCall;
    86 
    87     if (data) {
    88         var callId = data.callId,
    89             command = data.command,
    90             parameter = data.parameter;
    91 
    92         window.__uspapi.commandQueue.push({
    93             callId: callId,
    94             command: command,
    95             parameter: parameter,
    96             event: event
    97         });
    98     }
    99 };
    100 
    101 if (window.attachEvent) {
    102     window.attachEvent("onmessage", function(event) {
    103         window.__uspapi.receiveMessage(event);
    104     }, false);
    105 } else {
    106     window.addEventListener("message", function(event) {
    107         window.__uspapi.receiveMessage(event);
    108     }, false);
    109 }
    110 
    111 function addLocatorFrameUSP() {
    112     if (!window.frames['__uspapiLocator']) {
    113         if (document.body) {
    114             var frame = document.createElement('iframe');
    115             frame.style.display = 'none';
    116             frame.name = '__uspapiLocator';
    117             document.body.appendChild(frame);
    118         } else {
    119             setTimeout(addLocatorFrameUSP, 5);
    120         }
    121     }
    122 }
    123 
    124 addLocatorFrameUSP();
    125 UNIC;
    126 
    12740$unic_stub_v2 = <<<UNIC
    12841<script type="text/javascript">
     
    14356            echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    14457
    145         } else if(strpos($unic_license, 'key-') > -1) {
    146             $unic_license = str_replace('key-', '', $unic_license);
    147             $unic_license = substr($unic_license,0,10);
    148             echo "<script>\n";
    149             echo $unic_template_v1."\n";
    150             echo "</script>\n";
    151             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/t/".$unic_license.".cmp.js'></script>\n";
    152 
    15358        } else if($unic_enable_iab == 'v2') {
    15459            $unic_license = '85d3bd683e';
     
    16065
    16166        } else {
    162             $unic_license = '69a3449348';
     67            $unic_license = '85d3bd683e';
    16368            echo "<script>\n";
    164             echo "window.__unic_config = window.__unic_config || {}; window.__unic_config = ".$unic_init.";\n";
    165             echo $unic_template_v1."\n";
     69            echo "window.__unic_config_v2 = ".$unic_init.";\n";
    16670            echo "</script>\n";
    167             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/t/".$unic_license.".cmp.js'></script>\n";
     71            echo $unic_stub_v2."\n";
     72            echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    16873        }
    16974       
     
    17580
    17681        $unic_license = esc_attr(get_option( 'unic_license' ));
    177         if(strpos($unic_license, 'key-') > -1) {
    178             $unic_init_vals['unic_license'] = str_replace('key-', '', $unic_license);
    179             $unic_init_vals['unic_license'] = substr($unic_license,0,10);
    180             $unic_init_vals['version'] = 1;
    181         } else if(strpos($unic_license, 'license-') > -1) {
     82        if(strpos($unic_license, 'license-') > -1) {
    18283            $unic_init_vals['unic_license'] = str_replace('license-', '', $unic_license);
    18384            $unic_init_vals['unic_license'] = substr($unic_license,0,10);
     
    210111            $unic_company = esc_attr(get_option( 'unic_company' ));
    211112            if(!$unic_company) {
    212                 $unic_company = 'Current website';
     113                $unic_company = '';
    213114            }
    214115            $unic_init_vals['unic_company'] = $unic_company;
  • uniconsent-cmp/trunk/uniconsent-cmp.php

    r3258809 r3293219  
    22
    33/**
    4 * Plugin Name: UniConsent CMP for IAB TCF GPP Consent Mode
     4* Plugin Name: UniConsent Cookie Consent CMP
    55* Plugin URI: https://www.uniconsent.com/wordpress
    6 * Description: UniConsent CMP implements the Google Consent Mode, IAB TCF 2.2, IAB GPP for GDPR Google Ad Manager/Prebid.js/Amazon APS and increase advertising revenue.
    7 * Version: 1.5.6
     6* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
     7* Version: 1.5.7
    88* Author: UniConsent
    99* Author URI: https://www.uniconsent.com/
     
    1515}
    1616
    17 define( 'UNIC_CMP_VERSION', '1.5.6' );
     17define( 'UNIC_CMP_VERSION', '1.5.7' );
    1818
    1919function activate_unic_cmp() {
Note: See TracChangeset for help on using the changeset viewer.