Plugin Directory

Changeset 3308091


Ignore:
Timestamp:
06/08/2025 03:11:00 PM (10 months ago)
Author:
uniconsent
Message:

Version 1.5.10

Location:
uniconsent-cmp
Files:
5 edited
48 copied

Legend:

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

    r3293244 r3308091  
    11=== UniConsent Cookie Consent CMP - Consent Manager ===
    2 Version: 1.5.9
     2Version: 1.5.10
    33Contributors: uniconsent
    44Tags: cmp, cookie banner, cookie consent, iab, cookie
     
    66Tested up to: 6.8.1
    77Requires PHP: 7.4
    8 Stable tag: 1.5.9
     8Stable tag: 1.5.10
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • uniconsent-cmp/tags/1.5.10/includes/class-unic-cmp.php

    r3293244 r3308091  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.5.9';
     22            $this->version = '1.5.10';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/tags/1.5.10/public/class-unic-public.php

    r3293244 r3308091  
    3939
    4040$unic_stub_v2 = <<<UNIC
    41 <script type="text/javascript">
     41<script data-nowprocket type="text/javascript">
    4242!function(){var i,r,o;i="__tcfapiLocator",r=[],(o=window.frames[i])||(function e(){var t=window.document,a=!!o;if(!a)if(t.body){var n=t.createElement("iframe");n.style.cssText="display:none",n.name=i,t.body.appendChild(n)}else setTimeout(e,50);return!a}(),window.__tcfapi=function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];if(!t.length)return r;if("setGdprApplies"===t[0])3<t.length&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0));else if("ping"===t[0]){var n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof t[2]&&t[2](n,!0)}else r.push(t)},window.addEventListener("message",function(n){var i="string"==typeof n.data,e={};try{e=i?JSON.parse(n.data):n.data}catch(e){}var r=e.__tcfapiCall;r&&window.__tcfapi(r.command,r.version,function(e,t){var a={__tcfapiReturn:{returnValue:e,success:t,callId:r.callId}};i&&(a=JSON.stringify(a)),n.source.postMessage(a,"*")},r.parameter)},!1))}();
    4343!function(){var i,n,s;i="__uspapiLocator",n=[],(s=window.frames[i])||(function a(){var e=window.document,n=!!s;if(!s)if(e.body){var t=e.createElement("iframe");t.style.cssText="display:none",t.name=i,e.body.appendChild(t)}else setTimeout(a,50);return!n}(),window.__uspapi=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];if(!a.length)return n;"ping"===a[0]?"function"==typeof a[2]&&a[2]({cmpLoaded:!1,cmpStatus:"stub"},!0):n.push(a)},window.addEventListener("message",function(t){var i="string"==typeof t.data,a={};try{a=i?JSON.parse(t.data):t.data}catch(a){}var s=a.__uspapiCall;s&&window.__uspapi(s.command,s.version,function(a,e){var n={__uspapiReturn:{returnValue:a,success:e,callId:s.callId}};i&&(n=JSON.stringify(n)),t.source.postMessage(n,"*")},s.parameter)},!1))}();
     
    5353            $unic_license = substr($unic_license,0,10);
    5454            echo $unic_stub_v2."\n";
    55             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     55            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    5656
    5757        } else if($unic_enable_iab == 'v2') {
     
    6161            echo "</script>\n";
    6262            echo $unic_stub_v2."\n";
    63             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     63            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    6464
    6565        } else {
     
    6969            echo "</script>\n";
    7070            echo $unic_stub_v2."\n";
    71             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     71            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    7272        }
    7373       
  • uniconsent-cmp/tags/1.5.10/public/js/unic.js

    r2195756 r3308091  
    1 window._unic_start = true;
    2 window.__cmp = window.__cmp || function () {
    3     window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    4     window.__cmp.commandQueue.push(arguments);
    5 };
    6 window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    7 window.__cmp.receiveMessage = function (event) {
    8     var data = event && event.data && event.data.__cmpCall;
    9 
    10     if (data) {
    11         var callId = data.callId,
    12             command = data.command,
    13             parameter = data.parameter;
    14 
    15         window.__cmp.commandQueue.push({
    16             callId: callId,
    17             command: command,
    18             parameter: parameter,
    19             event: event
    20         });
    21     }
    22 };
    23 var listen = window.attachEvent || window.addEventListener;
    24 var eventMethod = window.attachEvent ? "onmessage" : "message";
    25 listen(eventMethod, function (event) {
    26     window.__cmp.receiveMessage(event);
    27 }, false);
    28 function addLocatorFrame() {
    29     if (!window.frames['__cmpLocator']) {
    30         if (document.body) {
    31             var frame = document.createElement('iframe');
    32             frame.style.display = 'none';
    33             frame.name = '__cmpLocator';
    34             document.body.appendChild(frame);
    35         } else {
    36             setTimeout(addLocatorFrame, 5);
    37         }
    38     }
    39 }
    40 addLocatorFrame();
    41 
    42 if(window.__unic_config['unic_license']) {
    43     var license = window.__unic_config['unic_license'];
    44 } else {
    45     var license = '69a3449348';
    46 }
    47 
    48 (function() {
    49     var st = document.createElement('script');
    50     st.type = 'text/javascript';
    51     st.async = true;
    52     st.src = 'https://cmp.uniconsent.com/t/'+license+'.cmp.js';
    53     var s = document.getElementsByTagName('script')[0];
    54     s.parentNode.insertBefore(st, s);
    55 })();
  • uniconsent-cmp/tags/1.5.10/trunk/README.txt

    r3293244 r3308091  
    11=== UniConsent Cookie Consent CMP - Consent Manager ===
    2 Version: 1.5.9
     2Version: 1.5.10
    33Contributors: uniconsent
    44Tags: cmp, cookie banner, cookie consent, iab, cookie
     
    66Tested up to: 6.8.1
    77Requires PHP: 7.4
    8 Stable tag: 1.5.9
     8Stable tag: 1.5.10
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • uniconsent-cmp/tags/1.5.10/trunk/includes/class-unic-cmp.php

    r3293244 r3308091  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.5.9';
     22            $this->version = '1.5.10';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/tags/1.5.10/trunk/public/class-unic-public.php

    r3293244 r3308091  
    3939
    4040$unic_stub_v2 = <<<UNIC
    41 <script type="text/javascript">
     41<script data-nowprocket type="text/javascript">
    4242!function(){var i,r,o;i="__tcfapiLocator",r=[],(o=window.frames[i])||(function e(){var t=window.document,a=!!o;if(!a)if(t.body){var n=t.createElement("iframe");n.style.cssText="display:none",n.name=i,t.body.appendChild(n)}else setTimeout(e,50);return!a}(),window.__tcfapi=function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];if(!t.length)return r;if("setGdprApplies"===t[0])3<t.length&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0));else if("ping"===t[0]){var n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof t[2]&&t[2](n,!0)}else r.push(t)},window.addEventListener("message",function(n){var i="string"==typeof n.data,e={};try{e=i?JSON.parse(n.data):n.data}catch(e){}var r=e.__tcfapiCall;r&&window.__tcfapi(r.command,r.version,function(e,t){var a={__tcfapiReturn:{returnValue:e,success:t,callId:r.callId}};i&&(a=JSON.stringify(a)),n.source.postMessage(a,"*")},r.parameter)},!1))}();
    4343!function(){var i,n,s;i="__uspapiLocator",n=[],(s=window.frames[i])||(function a(){var e=window.document,n=!!s;if(!s)if(e.body){var t=e.createElement("iframe");t.style.cssText="display:none",t.name=i,e.body.appendChild(t)}else setTimeout(a,50);return!n}(),window.__uspapi=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];if(!a.length)return n;"ping"===a[0]?"function"==typeof a[2]&&a[2]({cmpLoaded:!1,cmpStatus:"stub"},!0):n.push(a)},window.addEventListener("message",function(t){var i="string"==typeof t.data,a={};try{a=i?JSON.parse(t.data):t.data}catch(a){}var s=a.__uspapiCall;s&&window.__uspapi(s.command,s.version,function(a,e){var n={__uspapiReturn:{returnValue:a,success:e,callId:s.callId}};i&&(n=JSON.stringify(n)),t.source.postMessage(n,"*")},s.parameter)},!1))}();
     
    5353            $unic_license = substr($unic_license,0,10);
    5454            echo $unic_stub_v2."\n";
    55             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     55            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    5656
    5757        } else if($unic_enable_iab == 'v2') {
     
    6161            echo "</script>\n";
    6262            echo $unic_stub_v2."\n";
    63             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     63            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    6464
    6565        } else {
     
    6969            echo "</script>\n";
    7070            echo $unic_stub_v2."\n";
    71             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     71            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    7272        }
    7373       
  • uniconsent-cmp/tags/1.5.10/trunk/public/js/unic.js

    r2195756 r3308091  
    1 window._unic_start = true;
    2 window.__cmp = window.__cmp || function () {
    3     window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    4     window.__cmp.commandQueue.push(arguments);
    5 };
    6 window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    7 window.__cmp.receiveMessage = function (event) {
    8     var data = event && event.data && event.data.__cmpCall;
    9 
    10     if (data) {
    11         var callId = data.callId,
    12             command = data.command,
    13             parameter = data.parameter;
    14 
    15         window.__cmp.commandQueue.push({
    16             callId: callId,
    17             command: command,
    18             parameter: parameter,
    19             event: event
    20         });
    21     }
    22 };
    23 var listen = window.attachEvent || window.addEventListener;
    24 var eventMethod = window.attachEvent ? "onmessage" : "message";
    25 listen(eventMethod, function (event) {
    26     window.__cmp.receiveMessage(event);
    27 }, false);
    28 function addLocatorFrame() {
    29     if (!window.frames['__cmpLocator']) {
    30         if (document.body) {
    31             var frame = document.createElement('iframe');
    32             frame.style.display = 'none';
    33             frame.name = '__cmpLocator';
    34             document.body.appendChild(frame);
    35         } else {
    36             setTimeout(addLocatorFrame, 5);
    37         }
    38     }
    39 }
    40 addLocatorFrame();
    41 
    42 if(window.__unic_config['unic_license']) {
    43     var license = window.__unic_config['unic_license'];
    44 } else {
    45     var license = '69a3449348';
    46 }
    47 
    48 (function() {
    49     var st = document.createElement('script');
    50     st.type = 'text/javascript';
    51     st.async = true;
    52     st.src = 'https://cmp.uniconsent.com/t/'+license+'.cmp.js';
    53     var s = document.getElementsByTagName('script')[0];
    54     s.parentNode.insertBefore(st, s);
    55 })();
  • uniconsent-cmp/tags/1.5.10/trunk/uniconsent-cmp.php

    r3293244 r3308091  
    44* Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins
    55* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
    6 * Version: 1.5.9
     6* Version: 1.5.10
    77* Author: UniConsent
    88* Author URI: https://www.uniconsent.com/?utm_source=wp-plugins
     
    1414}
    1515
    16 define( 'UNIC_CMP_VERSION', '1.5.9' );
     16define( 'UNIC_CMP_VERSION', '1.5.10' );
    1717
    1818function activate_unic_cmp() {
  • uniconsent-cmp/tags/1.5.10/uniconsent-cmp.php

    r3293244 r3308091  
    44* Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins
    55* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
    6 * Version: 1.5.9
     6* Version: 1.5.10
    77* Author: UniConsent
    88* Author URI: https://www.uniconsent.com/?utm_source=wp-plugins
     
    1414}
    1515
    16 define( 'UNIC_CMP_VERSION', '1.5.9' );
     16define( 'UNIC_CMP_VERSION', '1.5.10' );
    1717
    1818function activate_unic_cmp() {
  • uniconsent-cmp/trunk/README.txt

    r3293244 r3308091  
    11=== UniConsent Cookie Consent CMP - Consent Manager ===
    2 Version: 1.5.9
     2Version: 1.5.10
    33Contributors: uniconsent
    44Tags: cmp, cookie banner, cookie consent, iab, cookie
     
    66Tested up to: 6.8.1
    77Requires PHP: 7.4
    8 Stable tag: 1.5.9
     8Stable tag: 1.5.10
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • uniconsent-cmp/trunk/includes/class-unic-cmp.php

    r3293244 r3308091  
    2020            $this->version = UNIC_VERSION;
    2121        } else {
    22             $this->version = '1.5.9';
     22            $this->version = '1.5.10';
    2323        }
    2424        $this->plugin_name = 'uniconsent-cmp';
  • uniconsent-cmp/trunk/public/class-unic-public.php

    r3293244 r3308091  
    3939
    4040$unic_stub_v2 = <<<UNIC
    41 <script type="text/javascript">
     41<script data-nowprocket type="text/javascript">
    4242!function(){var i,r,o;i="__tcfapiLocator",r=[],(o=window.frames[i])||(function e(){var t=window.document,a=!!o;if(!a)if(t.body){var n=t.createElement("iframe");n.style.cssText="display:none",n.name=i,t.body.appendChild(n)}else setTimeout(e,50);return!a}(),window.__tcfapi=function(){for(var e,t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];if(!t.length)return r;if("setGdprApplies"===t[0])3<t.length&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0));else if("ping"===t[0]){var n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"};"function"==typeof t[2]&&t[2](n,!0)}else r.push(t)},window.addEventListener("message",function(n){var i="string"==typeof n.data,e={};try{e=i?JSON.parse(n.data):n.data}catch(e){}var r=e.__tcfapiCall;r&&window.__tcfapi(r.command,r.version,function(e,t){var a={__tcfapiReturn:{returnValue:e,success:t,callId:r.callId}};i&&(a=JSON.stringify(a)),n.source.postMessage(a,"*")},r.parameter)},!1))}();
    4343!function(){var i,n,s;i="__uspapiLocator",n=[],(s=window.frames[i])||(function a(){var e=window.document,n=!!s;if(!s)if(e.body){var t=e.createElement("iframe");t.style.cssText="display:none",t.name=i,e.body.appendChild(t)}else setTimeout(a,50);return!n}(),window.__uspapi=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];if(!a.length)return n;"ping"===a[0]?"function"==typeof a[2]&&a[2]({cmpLoaded:!1,cmpStatus:"stub"},!0):n.push(a)},window.addEventListener("message",function(t){var i="string"==typeof t.data,a={};try{a=i?JSON.parse(t.data):t.data}catch(a){}var s=a.__uspapiCall;s&&window.__uspapi(s.command,s.version,function(a,e){var n={__uspapiReturn:{returnValue:a,success:e,callId:s.callId}};i&&(n=JSON.stringify(n)),t.source.postMessage(n,"*")},s.parameter)},!1))}();
     
    5353            $unic_license = substr($unic_license,0,10);
    5454            echo $unic_stub_v2."\n";
    55             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     55            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    5656
    5757        } else if($unic_enable_iab == 'v2') {
     
    6161            echo "</script>\n";
    6262            echo $unic_stub_v2."\n";
    63             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     63            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    6464
    6565        } else {
     
    6969            echo "</script>\n";
    7070            echo $unic_stub_v2."\n";
    71             echo "<script async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
     71            echo "<script data-nowprocket async data-cfasync='false' src='https://cmp.uniconsent.com/v2/".$unic_license."/cmp.js'></script>\n";
    7272        }
    7373       
  • uniconsent-cmp/trunk/public/js/unic.js

    r2195756 r3308091  
    1 window._unic_start = true;
    2 window.__cmp = window.__cmp || function () {
    3     window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    4     window.__cmp.commandQueue.push(arguments);
    5 };
    6 window.__cmp.commandQueue = window.__cmp.commandQueue || [];
    7 window.__cmp.receiveMessage = function (event) {
    8     var data = event && event.data && event.data.__cmpCall;
    9 
    10     if (data) {
    11         var callId = data.callId,
    12             command = data.command,
    13             parameter = data.parameter;
    14 
    15         window.__cmp.commandQueue.push({
    16             callId: callId,
    17             command: command,
    18             parameter: parameter,
    19             event: event
    20         });
    21     }
    22 };
    23 var listen = window.attachEvent || window.addEventListener;
    24 var eventMethod = window.attachEvent ? "onmessage" : "message";
    25 listen(eventMethod, function (event) {
    26     window.__cmp.receiveMessage(event);
    27 }, false);
    28 function addLocatorFrame() {
    29     if (!window.frames['__cmpLocator']) {
    30         if (document.body) {
    31             var frame = document.createElement('iframe');
    32             frame.style.display = 'none';
    33             frame.name = '__cmpLocator';
    34             document.body.appendChild(frame);
    35         } else {
    36             setTimeout(addLocatorFrame, 5);
    37         }
    38     }
    39 }
    40 addLocatorFrame();
    41 
    42 if(window.__unic_config['unic_license']) {
    43     var license = window.__unic_config['unic_license'];
    44 } else {
    45     var license = '69a3449348';
    46 }
    47 
    48 (function() {
    49     var st = document.createElement('script');
    50     st.type = 'text/javascript';
    51     st.async = true;
    52     st.src = 'https://cmp.uniconsent.com/t/'+license+'.cmp.js';
    53     var s = document.getElementsByTagName('script')[0];
    54     s.parentNode.insertBefore(st, s);
    55 })();
  • uniconsent-cmp/trunk/uniconsent-cmp.php

    r3293244 r3308091  
    44* Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins
    55* Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance.
    6 * Version: 1.5.9
     6* Version: 1.5.10
    77* Author: UniConsent
    88* Author URI: https://www.uniconsent.com/?utm_source=wp-plugins
     
    1414}
    1515
    16 define( 'UNIC_CMP_VERSION', '1.5.9' );
     16define( 'UNIC_CMP_VERSION', '1.5.10' );
    1717
    1818function activate_unic_cmp() {
Note: See TracChangeset for help on using the changeset viewer.