Changeset 3308091
- Timestamp:
- 06/08/2025 03:11:00 PM (10 months ago)
- Location:
- uniconsent-cmp
- Files:
-
- 5 edited
- 48 copied
-
tags/1.5.10 (copied) (copied from uniconsent-cmp/trunk)
-
tags/1.5.10/README.txt (copied) (copied from uniconsent-cmp/trunk/README.txt) (2 diffs)
-
tags/1.5.10/admin (copied) (copied from uniconsent-cmp/trunk/admin)
-
tags/1.5.10/admin/class-unic-admin-pages.php (copied) (copied from uniconsent-cmp/trunk/admin/class-unic-admin-pages.php)
-
tags/1.5.10/admin/class-unic-values.php (copied) (copied from uniconsent-cmp/trunk/admin/class-unic-values.php)
-
tags/1.5.10/admin/images/unic-logo.png (copied) (copied from uniconsent-cmp/trunk/admin/images/unic-logo.png)
-
tags/1.5.10/admin/index.php (copied) (copied from uniconsent-cmp/trunk/admin/index.php)
-
tags/1.5.10/admin/partials/unic-cmp.php (copied) (copied from uniconsent-cmp/trunk/admin/partials/unic-cmp.php)
-
tags/1.5.10/composer.json (copied) (copied from uniconsent-cmp/trunk/composer.json)
-
tags/1.5.10/includes (copied) (copied from uniconsent-cmp/trunk/includes)
-
tags/1.5.10/includes/class-unic-activator.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-activator.php)
-
tags/1.5.10/includes/class-unic-cmp.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-cmp.php) (1 diff)
-
tags/1.5.10/includes/class-unic-deactivator.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-deactivator.php)
-
tags/1.5.10/includes/class-unic-i18n.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-i18n.php)
-
tags/1.5.10/includes/class-unic-loader.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-loader.php)
-
tags/1.5.10/includes/index.php (copied) (copied from uniconsent-cmp/trunk/includes/index.php)
-
tags/1.5.10/index.php (copied) (copied from uniconsent-cmp/trunk/index.php)
-
tags/1.5.10/languages (copied) (copied from uniconsent-cmp/trunk/languages)
-
tags/1.5.10/public (copied) (copied from uniconsent-cmp/trunk/public)
-
tags/1.5.10/public/class-unic-public.php (copied) (copied from uniconsent-cmp/trunk/public/class-unic-public.php) (4 diffs)
-
tags/1.5.10/public/index.php (copied) (copied from uniconsent-cmp/trunk/public/index.php)
-
tags/1.5.10/public/js/unic.js (copied) (copied from uniconsent-cmp/trunk/public/js/unic.js) (1 diff)
-
tags/1.5.10/trunk (copied) (copied from uniconsent-cmp/trunk)
-
tags/1.5.10/trunk/README.txt (copied) (copied from uniconsent-cmp/trunk/README.txt) (2 diffs)
-
tags/1.5.10/trunk/admin (copied) (copied from uniconsent-cmp/trunk/admin)
-
tags/1.5.10/trunk/admin/class-unic-admin-pages.php (copied) (copied from uniconsent-cmp/trunk/admin/class-unic-admin-pages.php)
-
tags/1.5.10/trunk/admin/class-unic-values.php (copied) (copied from uniconsent-cmp/trunk/admin/class-unic-values.php)
-
tags/1.5.10/trunk/admin/images/unic-logo.png (copied) (copied from uniconsent-cmp/trunk/admin/images/unic-logo.png)
-
tags/1.5.10/trunk/admin/index.php (copied) (copied from uniconsent-cmp/trunk/admin/index.php)
-
tags/1.5.10/trunk/admin/partials/unic-cmp.php (copied) (copied from uniconsent-cmp/trunk/admin/partials/unic-cmp.php)
-
tags/1.5.10/trunk/composer.json (copied) (copied from uniconsent-cmp/trunk/composer.json)
-
tags/1.5.10/trunk/includes (copied) (copied from uniconsent-cmp/trunk/includes)
-
tags/1.5.10/trunk/includes/class-unic-activator.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-activator.php)
-
tags/1.5.10/trunk/includes/class-unic-cmp.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-cmp.php) (1 diff)
-
tags/1.5.10/trunk/includes/class-unic-deactivator.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-deactivator.php)
-
tags/1.5.10/trunk/includes/class-unic-i18n.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-i18n.php)
-
tags/1.5.10/trunk/includes/class-unic-loader.php (copied) (copied from uniconsent-cmp/trunk/includes/class-unic-loader.php)
-
tags/1.5.10/trunk/includes/index.php (copied) (copied from uniconsent-cmp/trunk/includes/index.php)
-
tags/1.5.10/trunk/index.php (copied) (copied from uniconsent-cmp/trunk/index.php)
-
tags/1.5.10/trunk/languages (copied) (copied from uniconsent-cmp/trunk/languages)
-
tags/1.5.10/trunk/public (copied) (copied from uniconsent-cmp/trunk/public)
-
tags/1.5.10/trunk/public/class-unic-public.php (copied) (copied from uniconsent-cmp/trunk/public/class-unic-public.php) (4 diffs)
-
tags/1.5.10/trunk/public/index.php (copied) (copied from uniconsent-cmp/trunk/public/index.php)
-
tags/1.5.10/trunk/public/js/unic.js (copied) (copied from uniconsent-cmp/trunk/public/js/unic.js) (1 diff)
-
tags/1.5.10/trunk/uniconsent-cmp.php (copied) (copied from uniconsent-cmp/trunk/uniconsent-cmp.php) (2 diffs)
-
tags/1.5.10/trunk/uninstall.php (copied) (copied from uniconsent-cmp/trunk/uninstall.php)
-
tags/1.5.10/uniconsent-cmp.php (copied) (copied from uniconsent-cmp/trunk/uniconsent-cmp.php) (2 diffs)
-
tags/1.5.10/uninstall.php (copied) (copied from uniconsent-cmp/trunk/uninstall.php)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/includes/class-unic-cmp.php (modified) (1 diff)
-
trunk/public/class-unic-public.php (modified) (4 diffs)
-
trunk/public/js/unic.js (modified) (1 diff)
-
trunk/uniconsent-cmp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uniconsent-cmp/tags/1.5.10/README.txt
r3293244 r3308091 1 1 === UniConsent Cookie Consent CMP - Consent Manager === 2 Version: 1.5. 92 Version: 1.5.10 3 3 Contributors: uniconsent 4 4 Tags: cmp, cookie banner, cookie consent, iab, cookie … … 6 6 Tested up to: 6.8.1 7 7 Requires PHP: 7.4 8 Stable tag: 1.5. 98 Stable tag: 1.5.10 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
uniconsent-cmp/tags/1.5.10/includes/class-unic-cmp.php
r3293244 r3308091 20 20 $this->version = UNIC_VERSION; 21 21 } else { 22 $this->version = '1.5. 9';22 $this->version = '1.5.10'; 23 23 } 24 24 $this->plugin_name = 'uniconsent-cmp'; -
uniconsent-cmp/tags/1.5.10/public/class-unic-public.php
r3293244 r3308091 39 39 40 40 $unic_stub_v2 = <<<UNIC 41 <script type="text/javascript">41 <script data-nowprocket type="text/javascript"> 42 42 !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))}(); 43 43 !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))}(); … … 53 53 $unic_license = substr($unic_license,0,10); 54 54 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"; 56 56 57 57 } else if($unic_enable_iab == 'v2') { … … 61 61 echo "</script>\n"; 62 62 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"; 64 64 65 65 } else { … … 69 69 echo "</script>\n"; 70 70 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"; 72 72 } 73 73 -
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: event20 });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 1 1 === UniConsent Cookie Consent CMP - Consent Manager === 2 Version: 1.5. 92 Version: 1.5.10 3 3 Contributors: uniconsent 4 4 Tags: cmp, cookie banner, cookie consent, iab, cookie … … 6 6 Tested up to: 6.8.1 7 7 Requires PHP: 7.4 8 Stable tag: 1.5. 98 Stable tag: 1.5.10 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
uniconsent-cmp/tags/1.5.10/trunk/includes/class-unic-cmp.php
r3293244 r3308091 20 20 $this->version = UNIC_VERSION; 21 21 } else { 22 $this->version = '1.5. 9';22 $this->version = '1.5.10'; 23 23 } 24 24 $this->plugin_name = 'uniconsent-cmp'; -
uniconsent-cmp/tags/1.5.10/trunk/public/class-unic-public.php
r3293244 r3308091 39 39 40 40 $unic_stub_v2 = <<<UNIC 41 <script type="text/javascript">41 <script data-nowprocket type="text/javascript"> 42 42 !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))}(); 43 43 !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))}(); … … 53 53 $unic_license = substr($unic_license,0,10); 54 54 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"; 56 56 57 57 } else if($unic_enable_iab == 'v2') { … … 61 61 echo "</script>\n"; 62 62 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"; 64 64 65 65 } else { … … 69 69 echo "</script>\n"; 70 70 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"; 72 72 } 73 73 -
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: event20 });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 4 4 * Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins 5 5 * Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance. 6 * Version: 1.5. 96 * Version: 1.5.10 7 7 * Author: UniConsent 8 8 * Author URI: https://www.uniconsent.com/?utm_source=wp-plugins … … 14 14 } 15 15 16 define( 'UNIC_CMP_VERSION', '1.5. 9' );16 define( 'UNIC_CMP_VERSION', '1.5.10' ); 17 17 18 18 function activate_unic_cmp() { -
uniconsent-cmp/tags/1.5.10/uniconsent-cmp.php
r3293244 r3308091 4 4 * Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins 5 5 * Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance. 6 * Version: 1.5. 96 * Version: 1.5.10 7 7 * Author: UniConsent 8 8 * Author URI: https://www.uniconsent.com/?utm_source=wp-plugins … … 14 14 } 15 15 16 define( 'UNIC_CMP_VERSION', '1.5. 9' );16 define( 'UNIC_CMP_VERSION', '1.5.10' ); 17 17 18 18 function activate_unic_cmp() { -
uniconsent-cmp/trunk/README.txt
r3293244 r3308091 1 1 === UniConsent Cookie Consent CMP - Consent Manager === 2 Version: 1.5. 92 Version: 1.5.10 3 3 Contributors: uniconsent 4 4 Tags: cmp, cookie banner, cookie consent, iab, cookie … … 6 6 Tested up to: 6.8.1 7 7 Requires PHP: 7.4 8 Stable tag: 1.5. 98 Stable tag: 1.5.10 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
uniconsent-cmp/trunk/includes/class-unic-cmp.php
r3293244 r3308091 20 20 $this->version = UNIC_VERSION; 21 21 } else { 22 $this->version = '1.5. 9';22 $this->version = '1.5.10'; 23 23 } 24 24 $this->plugin_name = 'uniconsent-cmp'; -
uniconsent-cmp/trunk/public/class-unic-public.php
r3293244 r3308091 39 39 40 40 $unic_stub_v2 = <<<UNIC 41 <script type="text/javascript">41 <script data-nowprocket type="text/javascript"> 42 42 !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))}(); 43 43 !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))}(); … … 53 53 $unic_license = substr($unic_license,0,10); 54 54 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"; 56 56 57 57 } else if($unic_enable_iab == 'v2') { … … 61 61 echo "</script>\n"; 62 62 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"; 64 64 65 65 } else { … … 69 69 echo "</script>\n"; 70 70 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"; 72 72 } 73 73 -
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: event20 });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 4 4 * Plugin URI: https://www.uniconsent.com/?utm_source=wp-plugins 5 5 * Description: Leading Consent Management Platform for IAB TCF, GPP, GDPR, POPIA, CCPA, COPPA, and LGPD Compliance. 6 * Version: 1.5. 96 * Version: 1.5.10 7 7 * Author: UniConsent 8 8 * Author URI: https://www.uniconsent.com/?utm_source=wp-plugins … … 14 14 } 15 15 16 define( 'UNIC_CMP_VERSION', '1.5. 9' );16 define( 'UNIC_CMP_VERSION', '1.5.10' ); 17 17 18 18 function activate_unic_cmp() {
Note: See TracChangeset
for help on using the changeset viewer.