Changeset 2408014 for quantcast-choice
- Timestamp:
- 10/28/2020 01:53:24 AM (5 years ago)
- Location:
- quantcast-choice
- Files:
-
- 6 edited
- 15 copied
-
tags/2.0.3 (copied) (copied from quantcast-choice/trunk)
-
tags/2.0.3/README.txt (copied) (copied from quantcast-choice/trunk/README.txt) (2 diffs)
-
tags/2.0.3/admin/class-qc-choice-admin-pages.php (copied) (copied from quantcast-choice/trunk/admin/class-qc-choice-admin-pages.php) (2 diffs)
-
tags/2.0.3/admin/class-qc-choice-admin.php (copied) (copied from quantcast-choice/trunk/admin/class-qc-choice-admin.php)
-
tags/2.0.3/admin/class-qc-choice-values.php (copied) (copied from quantcast-choice/trunk/admin/class-qc-choice-values.php)
-
tags/2.0.3/admin/css/style.min.css (copied) (copied from quantcast-choice/trunk/admin/css/style.min.css)
-
tags/2.0.3/admin/img/quantcast-choice-wordmark.png (copied) (copied from quantcast-choice/trunk/admin/img/quantcast-choice-wordmark.png)
-
tags/2.0.3/admin/js/script.min.js (copied) (copied from quantcast-choice/trunk/admin/js/script.min.js)
-
tags/2.0.3/composer.json (copied) (copied from quantcast-choice/trunk/composer.json) (1 diff)
-
tags/2.0.3/includes/class-qc-choice.php (copied) (copied from quantcast-choice/trunk/includes/class-qc-choice.php) (1 diff)
-
tags/2.0.3/public/class-qc-choice-public.php (copied) (copied from quantcast-choice/trunk/public/class-qc-choice-public.php)
-
tags/2.0.3/public/css/style.min.css (copied) (copied from quantcast-choice/trunk/public/css/style.min.css)
-
tags/2.0.3/public/js/script.async.min.js (copied) (copied from quantcast-choice/trunk/public/js/script.async.min.js)
-
tags/2.0.3/public/js/script.min.js (copied) (copied from quantcast-choice/trunk/public/js/script.min.js) (1 diff)
-
tags/2.0.3/qc-choice.php (copied) (copied from quantcast-choice/trunk/qc-choice.php) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/admin/class-qc-choice-admin-pages.php (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/class-qc-choice.php (modified) (1 diff)
-
trunk/public/js/script.min.js (modified) (1 diff)
-
trunk/qc-choice.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quantcast-choice/tags/2.0.3/README.txt
r2355724 r2408014 1 1 === Quantcast Choice === 2 Version: 2.0. 22 Version: 2.0.3 3 3 Contributors: rbaronqc, davidfornelli 4 4 Tags: GDPR, GDPR Consent, CCPA, ePrivacy, ePrivacy Directive, Quantcast, Quantcast Choice, QC Choice, CMP, Consent Management, Consent Management Platform, TCF v2, TCF v2.0 5 5 Requires at least: 4.0 6 Tested up to: 5. 4.27 Stable tag: 2.0. 26 Tested up to: 5.5.1 7 Stable tag: 2.0.3 8 8 9 9 The Quantcast Choice plugin implements the [Quantcast Choice TCF v2.0 Consent Tool](https://www.quantcast.com/gdpr/consent-management-solution/?utm_source=wordpress&utm_medium=wp-org&utm_campaign=info&utm_term=tool&utm_content=choice) offering support for GDPR (including Non-IAB vendors), CCPA and ePrivacy Directive and automatically passing consent signals to the Data Layer. … … 106 106 = 2.0.2 = 107 107 * More minor updates for v1 -> v2 instructions. 108 109 = 2.0.3 = 110 * Bugfix: After the [Choice v17 release](https://help.quantcast.com/hc/en-us/articles/360047357574-Quantcast-Choice-Code-Release-Notes-TCF-v2-0-) Non-IAB vendor data was not being sent to the data layer, i.e. GTM is not firing tags for non iab vendors and no consent is being passed. 111 * Added a not about the UTID/pCode field for user input clarification, with a note to remove the leading "p-" from the UTID/pCode when added. -
quantcast-choice/tags/2.0.3/admin/class-qc-choice-admin-pages.php
r2355721 r2408014 354 354 <?php if( empty( $this->qc_choice_cmp_utid ) || empty( $this->qc_choice_cmp_enable ) ) { ?> 355 355 <h1 class="update-headline"> 356 <?php _e( '** Important - REQUIRED TCF v2.0 Update before August 16, 2020.', 'qc-choice' ); ?>356 <?php _e( '** Important - REQUIRED Update to TCF v2.0 **', 'qc-choice' ); ?> 357 357 </h1> 358 358 <h4 class="update-subheadline"> … … 522 522 <?php printf( 523 523 __( 524 '* Enter your UTID/pCode <strong>WITHOUT</strong> the leading "p-" ( <strong style="color:red">Incorrect</strong>: p-xxxxxxxxxxxxx -> Update to -> <strong>Correct</strong>: xxxxxxxxxxxxx)', 525 'qc-choice' 526 ) 527 ); ?> 528 </div> 529 <div> 530 <?php printf( 531 __( 524 532 'If you already have a quantcast.com account you can find your UTID by following <a %1$s href="%2$s">this help center guide</a>.', 525 533 'qc-choice' -
quantcast-choice/tags/2.0.3/composer.json
r2355724 r2408014 1 1 { 2 2 "name": "quantcast/quantcast-choice", 3 "version": "2.0. 2",3 "version": "2.0.3", 4 4 "description": "Quantcast Choice TCF v2.0 Consent Management Platform (CMP) for GDPR (including IAB & Non-IAB vendor suppport), CCPA & ePrivacy Directive.", 5 5 "type": "wordpress-plugin", -
quantcast-choice/tags/2.0.3/includes/class-qc-choice.php
r2355724 r2408014 71 71 $this->version = QC_CHOICE_VERSION; 72 72 } else { 73 $this->version = '2.0. 2';73 $this->version = '2.0.3'; 74 74 } 75 75 $this->plugin_name = 'qc-choice'; -
quantcast-choice/tags/2.0.3/public/js/script.min.js
r2355432 r2408014 1 !function(){var e,n,t,o,a,i,s;"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=window.location.hostname,n=document.createElement("script"),t=document.getElementsByTagName("script")[0],o="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",e,"/choice.js"),a=0,n.async=!0,n.type="text/javascript",n.src=o,t.parentNode.insertBefore(n,t),function(){for(var e,a="__tcfapiLocator",o=[],i=window;i;){try{if(i.frames[a]){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}e||(!function e(){var n,t=i.document,o=!!i.frames[a];return o||(t.body?((n=t.createElement("iframe")).style.cssText="display:none",n.name=a,t.body.appendChild(n)):setTimeout(e,5)),!o}(),i.__tcfapi=function(){var e,n,t=arguments;if(!t.length)return o;"setGdprApplies"===t[0]?3<t.length&&2===t[2]&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?(n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"},"function"==typeof t[2]&&t[2](n)):o.push(t)},i.addEventListener("message",function(o){var a="string"==typeof o.data,e={};try{e=a?JSON.parse(o.data):o.data}catch(e){}var i=e.__tcfapiCall;i&&window.__tcfapi(i.command,i.version,function(e,n){var t={__tcfapiReturn:{returnValue:e,success:n,callId:i.callId}};a&&(t=JSON.stringify(t)),o.source.postMessage(t,"*")},i.parameter)},!1))}(),i=function(){var e=arguments;typeof window.__uspapi!==i&&setTimeout(function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,e)},500)},void 0===window.__uspapi&&(window.__uspapi=i,s=setInterval(function(){a++,window.__uspapi===i&&a<3?console.warn("USP is not accessible"):clearInterval(s)},6e3)))}(),function(){var e,n,t,o,a,i,s,c,r,p,d,u,f,l,_,h,w,m,g,y,v;function I(e){for(var n in b=",",e)e[n]&&(b+=n+",");return b}function L(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"__cmpLoaded",__cmpLoaded:!0,gdpr:e.gdprApplies})}function C( n){window.dataLayer=window.dataLayer||[],n.hasOwnProperty("publisher")&&(h=I(n.publisher.consents),w=I(n.publisher.legitimateInterests)),n.hasOwnProperty("purpose")&&(m=I(n.purpose.consents),g=I(n.purpose.legitimateInterests));var e=0,t=setInterval(function(){100===(e+=1)&&clearInterval(t),o&&p&&(clearInterval(t),n.gdprApplies?n.hasOwnProperty("vendor")&&Object.keys(n.vendor.consents).forEach(function(e){!n.vendor.consents[e]&&n.gdprApplies||(r[e]=s[e],c[e]=e)}):(r=s).forEach(function(e,n){c[n]=n}),i=r.filter(Boolean).join("|"),a=c.filter(Boolean).join(","),window.__tcfapi("getNonIABVendorConsents",2,function(n,e){e&&(n.gdprApplies&&n.hasOwnProperty("nonIabVendorConsents")&&null!==n.nonIabVendorConsents?Object.keys(n.nonIabVendorConsents).forEach(function(e){!n.nonIabVendorConsents[e]&&n.gdprApplies||(_[e]=f[e],l[e]=e)}):(_=f).forEach(function(e,n){l[n]=n}))}),u=_.filter(Boolean).join("|"),d=l.filter(Boolean).join(","),window.dataLayer.push({event:"__cmpConsents",__cmpConsents:{iabVendorConsentIds:a,iabVendorsWithConsent:i,nonIABVendorConsentIds:d,nonIABVendorsWithConsent:u,gdpr:n.gdprApplies,publisherConsents:h,publisherLegitimateInterests:w,purposeConsents:m,purposeLegitimateInterests:g}}))},100)}"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=(new Date).getTime(),n=window.location.hostname,t="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",n,"/.well-known/noniab-vendorlist.json").concat("?timestamp=",e),s=[],c=[],r=[],f=[],l=[],_=[],choice_cmp_config.datalayer&&((v=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("vendors")&&(o=e.vendors,Object.keys(o).forEach(function(e){s[o[e].id]=o[e].name}))},v.open("GET","https://test.quantcast.mgr.consensu.org/GVL-v2/vendor-list.json",!0),v.send(),(y=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("nonIabVendorList")&&(p=e.nonIabVendorList,Object.keys(p).forEach(function(e){f[p[e].vendorId]=p[e].name}))},y.open("GET",t,!0),y.send()),window.__tcfapi("addEventListener",2,function(e,n){if(n)switch(e.eventStatus){case"cmpuishown":choice_cmp_config.datalayer&&L(e);break;case"tcloaded":choice_cmp_config.datalayer&&(L(e),C(e)),choice_cmp_config.ccpa&&choice_cmp_config.ccpa&&window.__uspapi("uspPing",1,function(e,n){var t=document.getElementById("choice-footer-msg");n&&e.mode.includes("USP")&&e.jurisdiction.includes(e.location.toUpperCase())&&null!==t&&(t.innerHTML=t.innerHTML+'We use cookies and other data collection technologies to provide the best experience for our customers. You may request that your data not be shared with third parties here: <a href="javascript:void(0)" onclick="window.__uspapi(\'displayUspUi\');">Do Not Sell My Data</a>.',t.classList.add("ccpa-msg-added"),window.__uspapi("setUspDftData",1,function(e,n){n||console.log("Error: USP string not updated!")}))});break;case"useractioncomplete":choice_cmp_config.datalayer&&C(e)}}))}();1 !function(){var e,n,t,o,a,i,s;"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=window.location.hostname,n=document.createElement("script"),t=document.getElementsByTagName("script")[0],o="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",e,"/choice.js"),a=0,n.async=!0,n.type="text/javascript",n.src=o,t.parentNode.insertBefore(n,t),function(){for(var e,a="__tcfapiLocator",o=[],i=window;i;){try{if(i.frames[a]){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}e||(!function e(){var n,t=i.document,o=!!i.frames[a];return o||(t.body?((n=t.createElement("iframe")).style.cssText="display:none",n.name=a,t.body.appendChild(n)):setTimeout(e,5)),!o}(),i.__tcfapi=function(){var e,n,t=arguments;if(!t.length)return o;"setGdprApplies"===t[0]?3<t.length&&2===t[2]&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?(n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"},"function"==typeof t[2]&&t[2](n)):o.push(t)},i.addEventListener("message",function(o){var a="string"==typeof o.data,e={};try{e=a?JSON.parse(o.data):o.data}catch(e){}var i=e.__tcfapiCall;i&&window.__tcfapi(i.command,i.version,function(e,n){var t={__tcfapiReturn:{returnValue:e,success:n,callId:i.callId}};a&&(t=JSON.stringify(t)),o.source.postMessage(t,"*")},i.parameter)},!1))}(),i=function(){var e=arguments;typeof window.__uspapi!==i&&setTimeout(function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,e)},500)},void 0===window.__uspapi&&(window.__uspapi=i,s=setInterval(function(){a++,window.__uspapi===i&&a<3?console.warn("USP is not accessible"):clearInterval(s)},6e3)))}(),function(){var e,n,t,o,a,i,s,c,r,p,d,u,f,l,_,h,w,m,g,y,v;function I(e){for(var n in b=",",e)e[n]&&(b+=n+",");return b}function L(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"__cmpLoaded",__cmpLoaded:!0,gdpr:e.gdprApplies})}function C(t){window.dataLayer=window.dataLayer||[],t.hasOwnProperty("publisher")&&(h=I(t.publisher.consents),w=I(t.publisher.legitimateInterests)),t.hasOwnProperty("purpose")&&(m=I(t.purpose.consents),g=I(t.purpose.legitimateInterests));var e=0,n=setInterval(function(){100===(e+=1)&&clearInterval(n),o&&p&&(clearInterval(n),t.gdprApplies?t.hasOwnProperty("vendor")&&Object.keys(t.vendor.consents).forEach(function(e){!t.vendor.consents[e]&&t.gdprApplies||(r[e]=s[e],c[e]=e)}):(r=s).forEach(function(e,n){c[n]=n}),i=r.filter(Boolean).join("|"),a=c.filter(Boolean).join(","),window.__tcfapi("getNonIABVendorConsents",2,function(n,e){e&&(n.gdprApplies&&n.hasOwnProperty("nonIabVendorConsents")&&null!==n.nonIabVendorConsents?Object.keys(n.nonIabVendorConsents).forEach(function(e){!n.nonIabVendorConsents[e]&&n.gdprApplies||(_[e]=f[e],l[e]=e)}):(_=f).forEach(function(e,n){l[n]=n})),u=_.filter(Boolean).join("|"),d=l.filter(Boolean).join(","),window.dataLayer.push({event:"__cmpConsents",__cmpConsents:{iabVendorConsentIds:a,iabVendorsWithConsent:i,nonIABVendorConsentIds:d,nonIABVendorsWithConsent:u,gdpr:t.gdprApplies,publisherConsents:h,publisherLegitimateInterests:w,purposeConsents:m,purposeLegitimateInterests:g}})}))},100)}"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=(new Date).getTime(),n=window.location.hostname,t="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",n,"/.well-known/noniab-vendorlist.json").concat("?timestamp=",e),s=[],c=[],r=[],f=[],l=[],_=[],choice_cmp_config.datalayer&&((v=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("vendors")&&(o=e.vendors,Object.keys(o).forEach(function(e){s[o[e].id]=o[e].name}))},v.open("GET","https://test.quantcast.mgr.consensu.org/GVL-v2/vendor-list.json",!0),v.send(),(y=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("nonIabVendorList")&&(p=e.nonIabVendorList,Object.keys(p).forEach(function(e){f[p[e].vendorId]=p[e].name}))},y.open("GET",t,!0),y.send()),window.__tcfapi("addEventListener",2,function(e,n){if(n)switch(e.eventStatus){case"cmpuishown":choice_cmp_config.datalayer&&L(e);break;case"tcloaded":choice_cmp_config.datalayer&&(L(e),C(e)),choice_cmp_config.ccpa&&choice_cmp_config.ccpa&&window.__uspapi("uspPing",1,function(e,n){var t=document.getElementById("choice-footer-msg");n&&e.mode.includes("USP")&&e.jurisdiction.includes(e.location.toUpperCase())&&null!==t&&(t.innerHTML=t.innerHTML+'We use cookies and other data collection technologies to provide the best experience for our customers. You may request that your data not be shared with third parties here: <a href="javascript:void(0)" onclick="window.__uspapi(\'displayUspUi\');">Do Not Sell My Data</a>.',t.classList.add("ccpa-msg-added"),window.__uspapi("setUspDftData",1,function(e,n){n||console.log("Error: USP string not updated!")}))});break;case"useractioncomplete":choice_cmp_config.datalayer&&C(e)}}))}(); 2 2 function displayConsentUiClick(){document.querySelectorAll("a[href='#displayConsentUI']").forEach(function(n){n.addEventListener("click",function(n){n.preventDefault(),window.__cmp("displayConsentUi")})})}document.addEventListener("DOMContentLoaded",function(){displayConsentUiClick()}); 3 3 //# sourceMappingURL=script.min.js.map -
quantcast-choice/tags/2.0.3/qc-choice.php
r2355724 r2408014 17 17 * Plugin URI: https://www.quantcast.com/gdpr/consent-management-solution/?utm_source=wordpress&utm_medium=plugin-admin&utm_campaign=tcfv2&utm_term=learn-more&utm_content=choice 18 18 * Description: Quantcast Choice TCF v2.0 Consent Management Platform (CMP) for GDPR (including IAB & Non-IAB vendor suppport), CCPA & ePrivacy Directive. 19 * Version: 2.0. 219 * Version: 2.0.3 20 20 * Author: Quantcast 21 21 * Author URI: https://www.quantcast.com/gdpr/consent-management-solution/?utm_source=wordpress&utm_medium=plugin-admin&utm_campaign=info&utm_term=author-home&utm_content=choice … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'QC_CHOICE_VERSION', '2.0. 2' );38 define( 'QC_CHOICE_VERSION', '2.0.3' ); 39 39 define( 'PUBLISHER_VENDORS_VERSION', 1 ); 40 40 define( 'QC_CHOICE_VENDOR_FILE', 'quantcast-choice/.well-known/pubvendors.json' ); -
quantcast-choice/trunk/README.txt
r2355724 r2408014 1 1 === Quantcast Choice === 2 Version: 2.0. 22 Version: 2.0.3 3 3 Contributors: rbaronqc, davidfornelli 4 4 Tags: GDPR, GDPR Consent, CCPA, ePrivacy, ePrivacy Directive, Quantcast, Quantcast Choice, QC Choice, CMP, Consent Management, Consent Management Platform, TCF v2, TCF v2.0 5 5 Requires at least: 4.0 6 Tested up to: 5. 4.26 Tested up to: 5.5.1 7 7 Stable tag: 2.0.2 8 8 … … 106 106 = 2.0.2 = 107 107 * More minor updates for v1 -> v2 instructions. 108 109 = 2.0.3 = 110 * Bugfix: After the [Choice v17 release](https://help.quantcast.com/hc/en-us/articles/360047357574-Quantcast-Choice-Code-Release-Notes-TCF-v2-0-) Non-IAB vendor data was not being sent to the data layer, i.e. GTM is not firing tags for non iab vendors and no consent is being passed. 111 * Added a not about the UTID/pCode field for user input clarification, with a note to remove the leading "p-" from the UTID/pCode when added. -
quantcast-choice/trunk/admin/class-qc-choice-admin-pages.php
r2355721 r2408014 354 354 <?php if( empty( $this->qc_choice_cmp_utid ) || empty( $this->qc_choice_cmp_enable ) ) { ?> 355 355 <h1 class="update-headline"> 356 <?php _e( '** Important - REQUIRED TCF v2.0 Update before August 16, 2020.', 'qc-choice' ); ?>356 <?php _e( '** Important - REQUIRED Update to TCF v2.0 **', 'qc-choice' ); ?> 357 357 </h1> 358 358 <h4 class="update-subheadline"> … … 522 522 <?php printf( 523 523 __( 524 '* Enter your UTID/pCode <strong>WITHOUT</strong> the leading "p-" ( <strong style="color:red">Incorrect</strong>: p-xxxxxxxxxxxxx -> Update to -> <strong>Correct</strong>: xxxxxxxxxxxxx)', 525 'qc-choice' 526 ) 527 ); ?> 528 </div> 529 <div> 530 <?php printf( 531 __( 524 532 'If you already have a quantcast.com account you can find your UTID by following <a %1$s href="%2$s">this help center guide</a>.', 525 533 'qc-choice' -
quantcast-choice/trunk/composer.json
r2355724 r2408014 1 1 { 2 2 "name": "quantcast/quantcast-choice", 3 "version": "2.0. 2",3 "version": "2.0.3", 4 4 "description": "Quantcast Choice TCF v2.0 Consent Management Platform (CMP) for GDPR (including IAB & Non-IAB vendor suppport), CCPA & ePrivacy Directive.", 5 5 "type": "wordpress-plugin", -
quantcast-choice/trunk/includes/class-qc-choice.php
r2355724 r2408014 71 71 $this->version = QC_CHOICE_VERSION; 72 72 } else { 73 $this->version = '2.0. 2';73 $this->version = '2.0.3'; 74 74 } 75 75 $this->plugin_name = 'qc-choice'; -
quantcast-choice/trunk/public/js/script.min.js
r2355432 r2408014 1 !function(){var e,n,t,o,a,i,s;"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=window.location.hostname,n=document.createElement("script"),t=document.getElementsByTagName("script")[0],o="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",e,"/choice.js"),a=0,n.async=!0,n.type="text/javascript",n.src=o,t.parentNode.insertBefore(n,t),function(){for(var e,a="__tcfapiLocator",o=[],i=window;i;){try{if(i.frames[a]){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}e||(!function e(){var n,t=i.document,o=!!i.frames[a];return o||(t.body?((n=t.createElement("iframe")).style.cssText="display:none",n.name=a,t.body.appendChild(n)):setTimeout(e,5)),!o}(),i.__tcfapi=function(){var e,n,t=arguments;if(!t.length)return o;"setGdprApplies"===t[0]?3<t.length&&2===t[2]&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?(n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"},"function"==typeof t[2]&&t[2](n)):o.push(t)},i.addEventListener("message",function(o){var a="string"==typeof o.data,e={};try{e=a?JSON.parse(o.data):o.data}catch(e){}var i=e.__tcfapiCall;i&&window.__tcfapi(i.command,i.version,function(e,n){var t={__tcfapiReturn:{returnValue:e,success:n,callId:i.callId}};a&&(t=JSON.stringify(t)),o.source.postMessage(t,"*")},i.parameter)},!1))}(),i=function(){var e=arguments;typeof window.__uspapi!==i&&setTimeout(function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,e)},500)},void 0===window.__uspapi&&(window.__uspapi=i,s=setInterval(function(){a++,window.__uspapi===i&&a<3?console.warn("USP is not accessible"):clearInterval(s)},6e3)))}(),function(){var e,n,t,o,a,i,s,c,r,p,d,u,f,l,_,h,w,m,g,y,v;function I(e){for(var n in b=",",e)e[n]&&(b+=n+",");return b}function L(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"__cmpLoaded",__cmpLoaded:!0,gdpr:e.gdprApplies})}function C( n){window.dataLayer=window.dataLayer||[],n.hasOwnProperty("publisher")&&(h=I(n.publisher.consents),w=I(n.publisher.legitimateInterests)),n.hasOwnProperty("purpose")&&(m=I(n.purpose.consents),g=I(n.purpose.legitimateInterests));var e=0,t=setInterval(function(){100===(e+=1)&&clearInterval(t),o&&p&&(clearInterval(t),n.gdprApplies?n.hasOwnProperty("vendor")&&Object.keys(n.vendor.consents).forEach(function(e){!n.vendor.consents[e]&&n.gdprApplies||(r[e]=s[e],c[e]=e)}):(r=s).forEach(function(e,n){c[n]=n}),i=r.filter(Boolean).join("|"),a=c.filter(Boolean).join(","),window.__tcfapi("getNonIABVendorConsents",2,function(n,e){e&&(n.gdprApplies&&n.hasOwnProperty("nonIabVendorConsents")&&null!==n.nonIabVendorConsents?Object.keys(n.nonIabVendorConsents).forEach(function(e){!n.nonIabVendorConsents[e]&&n.gdprApplies||(_[e]=f[e],l[e]=e)}):(_=f).forEach(function(e,n){l[n]=n}))}),u=_.filter(Boolean).join("|"),d=l.filter(Boolean).join(","),window.dataLayer.push({event:"__cmpConsents",__cmpConsents:{iabVendorConsentIds:a,iabVendorsWithConsent:i,nonIABVendorConsentIds:d,nonIABVendorsWithConsent:u,gdpr:n.gdprApplies,publisherConsents:h,publisherLegitimateInterests:w,purposeConsents:m,purposeLegitimateInterests:g}}))},100)}"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=(new Date).getTime(),n=window.location.hostname,t="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",n,"/.well-known/noniab-vendorlist.json").concat("?timestamp=",e),s=[],c=[],r=[],f=[],l=[],_=[],choice_cmp_config.datalayer&&((v=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("vendors")&&(o=e.vendors,Object.keys(o).forEach(function(e){s[o[e].id]=o[e].name}))},v.open("GET","https://test.quantcast.mgr.consensu.org/GVL-v2/vendor-list.json",!0),v.send(),(y=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("nonIabVendorList")&&(p=e.nonIabVendorList,Object.keys(p).forEach(function(e){f[p[e].vendorId]=p[e].name}))},y.open("GET",t,!0),y.send()),window.__tcfapi("addEventListener",2,function(e,n){if(n)switch(e.eventStatus){case"cmpuishown":choice_cmp_config.datalayer&&L(e);break;case"tcloaded":choice_cmp_config.datalayer&&(L(e),C(e)),choice_cmp_config.ccpa&&choice_cmp_config.ccpa&&window.__uspapi("uspPing",1,function(e,n){var t=document.getElementById("choice-footer-msg");n&&e.mode.includes("USP")&&e.jurisdiction.includes(e.location.toUpperCase())&&null!==t&&(t.innerHTML=t.innerHTML+'We use cookies and other data collection technologies to provide the best experience for our customers. You may request that your data not be shared with third parties here: <a href="javascript:void(0)" onclick="window.__uspapi(\'displayUspUi\');">Do Not Sell My Data</a>.',t.classList.add("ccpa-msg-added"),window.__uspapi("setUspDftData",1,function(e,n){n||console.log("Error: USP string not updated!")}))});break;case"useractioncomplete":choice_cmp_config.datalayer&&C(e)}}))}();1 !function(){var e,n,t,o,a,i,s;"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=window.location.hostname,n=document.createElement("script"),t=document.getElementsByTagName("script")[0],o="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",e,"/choice.js"),a=0,n.async=!0,n.type="text/javascript",n.src=o,t.parentNode.insertBefore(n,t),function(){for(var e,a="__tcfapiLocator",o=[],i=window;i;){try{if(i.frames[a]){e=i;break}}catch(e){}if(i===window.top)break;i=i.parent}e||(!function e(){var n,t=i.document,o=!!i.frames[a];return o||(t.body?((n=t.createElement("iframe")).style.cssText="display:none",n.name=a,t.body.appendChild(n)):setTimeout(e,5)),!o}(),i.__tcfapi=function(){var e,n,t=arguments;if(!t.length)return o;"setGdprApplies"===t[0]?3<t.length&&2===t[2]&&"boolean"==typeof t[3]&&(e=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?(n={gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"},"function"==typeof t[2]&&t[2](n)):o.push(t)},i.addEventListener("message",function(o){var a="string"==typeof o.data,e={};try{e=a?JSON.parse(o.data):o.data}catch(e){}var i=e.__tcfapiCall;i&&window.__tcfapi(i.command,i.version,function(e,n){var t={__tcfapiReturn:{returnValue:e,success:n,callId:i.callId}};a&&(t=JSON.stringify(t)),o.source.postMessage(t,"*")},i.parameter)},!1))}(),i=function(){var e=arguments;typeof window.__uspapi!==i&&setTimeout(function(){void 0!==window.__uspapi&&window.__uspapi.apply(window.__uspapi,e)},500)},void 0===window.__uspapi&&(window.__uspapi=i,s=setInterval(function(){a++,window.__uspapi===i&&a<3?console.warn("USP is not accessible"):clearInterval(s)},6e3)))}(),function(){var e,n,t,o,a,i,s,c,r,p,d,u,f,l,_,h,w,m,g,y,v;function I(e){for(var n in b=",",e)e[n]&&(b+=n+",");return b}function L(e){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"__cmpLoaded",__cmpLoaded:!0,gdpr:e.gdprApplies})}function C(t){window.dataLayer=window.dataLayer||[],t.hasOwnProperty("publisher")&&(h=I(t.publisher.consents),w=I(t.publisher.legitimateInterests)),t.hasOwnProperty("purpose")&&(m=I(t.purpose.consents),g=I(t.purpose.legitimateInterests));var e=0,n=setInterval(function(){100===(e+=1)&&clearInterval(n),o&&p&&(clearInterval(n),t.gdprApplies?t.hasOwnProperty("vendor")&&Object.keys(t.vendor.consents).forEach(function(e){!t.vendor.consents[e]&&t.gdprApplies||(r[e]=s[e],c[e]=e)}):(r=s).forEach(function(e,n){c[n]=n}),i=r.filter(Boolean).join("|"),a=c.filter(Boolean).join(","),window.__tcfapi("getNonIABVendorConsents",2,function(n,e){e&&(n.gdprApplies&&n.hasOwnProperty("nonIabVendorConsents")&&null!==n.nonIabVendorConsents?Object.keys(n.nonIabVendorConsents).forEach(function(e){!n.nonIabVendorConsents[e]&&n.gdprApplies||(_[e]=f[e],l[e]=e)}):(_=f).forEach(function(e,n){l[n]=n})),u=_.filter(Boolean).join("|"),d=l.filter(Boolean).join(","),window.dataLayer.push({event:"__cmpConsents",__cmpConsents:{iabVendorConsentIds:a,iabVendorsWithConsent:i,nonIABVendorConsentIds:d,nonIABVendorsWithConsent:u,gdpr:t.gdprApplies,publisherConsents:h,publisherLegitimateInterests:w,purposeConsents:m,purposeLegitimateInterests:g}})}))},100)}"undefined"!=typeof choice_cmp_config&&choice_cmp_config.utid&&choice_cmp_config.enabled&&(e=(new Date).getTime(),n=window.location.hostname,t="https://quantcast.mgr.consensu.org".concat("/choice/",choice_cmp_config.utid,"/",n,"/.well-known/noniab-vendorlist.json").concat("?timestamp=",e),s=[],c=[],r=[],f=[],l=[],_=[],choice_cmp_config.datalayer&&((v=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("vendors")&&(o=e.vendors,Object.keys(o).forEach(function(e){s[o[e].id]=o[e].name}))},v.open("GET","https://test.quantcast.mgr.consensu.org/GVL-v2/vendor-list.json",!0),v.send(),(y=new XMLHttpRequest).onreadystatechange=function(){var e;4!=this.readyState||200!=this.status||(e=JSON.parse(this.responseText)).hasOwnProperty("nonIabVendorList")&&(p=e.nonIabVendorList,Object.keys(p).forEach(function(e){f[p[e].vendorId]=p[e].name}))},y.open("GET",t,!0),y.send()),window.__tcfapi("addEventListener",2,function(e,n){if(n)switch(e.eventStatus){case"cmpuishown":choice_cmp_config.datalayer&&L(e);break;case"tcloaded":choice_cmp_config.datalayer&&(L(e),C(e)),choice_cmp_config.ccpa&&choice_cmp_config.ccpa&&window.__uspapi("uspPing",1,function(e,n){var t=document.getElementById("choice-footer-msg");n&&e.mode.includes("USP")&&e.jurisdiction.includes(e.location.toUpperCase())&&null!==t&&(t.innerHTML=t.innerHTML+'We use cookies and other data collection technologies to provide the best experience for our customers. You may request that your data not be shared with third parties here: <a href="javascript:void(0)" onclick="window.__uspapi(\'displayUspUi\');">Do Not Sell My Data</a>.',t.classList.add("ccpa-msg-added"),window.__uspapi("setUspDftData",1,function(e,n){n||console.log("Error: USP string not updated!")}))});break;case"useractioncomplete":choice_cmp_config.datalayer&&C(e)}}))}(); 2 2 function displayConsentUiClick(){document.querySelectorAll("a[href='#displayConsentUI']").forEach(function(n){n.addEventListener("click",function(n){n.preventDefault(),window.__cmp("displayConsentUi")})})}document.addEventListener("DOMContentLoaded",function(){displayConsentUiClick()}); 3 3 //# sourceMappingURL=script.min.js.map -
quantcast-choice/trunk/qc-choice.php
r2355724 r2408014 17 17 * Plugin URI: https://www.quantcast.com/gdpr/consent-management-solution/?utm_source=wordpress&utm_medium=plugin-admin&utm_campaign=tcfv2&utm_term=learn-more&utm_content=choice 18 18 * Description: Quantcast Choice TCF v2.0 Consent Management Platform (CMP) for GDPR (including IAB & Non-IAB vendor suppport), CCPA & ePrivacy Directive. 19 * Version: 2.0. 219 * Version: 2.0.3 20 20 * Author: Quantcast 21 21 * Author URI: https://www.quantcast.com/gdpr/consent-management-solution/?utm_source=wordpress&utm_medium=plugin-admin&utm_campaign=info&utm_term=author-home&utm_content=choice … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'QC_CHOICE_VERSION', '2.0. 2' );38 define( 'QC_CHOICE_VERSION', '2.0.3' ); 39 39 define( 'PUBLISHER_VENDORS_VERSION', 1 ); 40 40 define( 'QC_CHOICE_VENDOR_FILE', 'quantcast-choice/.well-known/pubvendors.json' );
Note: See TracChangeset
for help on using the changeset viewer.