Changeset 2430543
- Timestamp:
- 12/02/2020 09:03:48 PM (5 years ago)
- Location:
- quantcast-choice
- Files:
-
- 6 edited
- 15 copied
-
tags/2.0.4 (copied) (copied from quantcast-choice/trunk)
-
tags/2.0.4/README.txt (copied) (copied from quantcast-choice/trunk/README.txt) (2 diffs)
-
tags/2.0.4/admin/class-qc-choice-admin-pages.php (copied) (copied from quantcast-choice/trunk/admin/class-qc-choice-admin-pages.php)
-
tags/2.0.4/admin/class-qc-choice-admin.php (copied) (copied from quantcast-choice/trunk/admin/class-qc-choice-admin.php)
-
tags/2.0.4/admin/class-qc-choice-values.php (copied) (copied from quantcast-choice/trunk/admin/class-qc-choice-values.php)
-
tags/2.0.4/admin/css/style.min.css (copied) (copied from quantcast-choice/trunk/admin/css/style.min.css)
-
tags/2.0.4/admin/img/quantcast-choice-wordmark.png (copied) (copied from quantcast-choice/trunk/admin/img/quantcast-choice-wordmark.png)
-
tags/2.0.4/admin/js/script.min.js (copied) (copied from quantcast-choice/trunk/admin/js/script.min.js)
-
tags/2.0.4/composer.json (copied) (copied from quantcast-choice/trunk/composer.json) (1 diff)
-
tags/2.0.4/includes/class-qc-choice.php (copied) (copied from quantcast-choice/trunk/includes/class-qc-choice.php) (1 diff)
-
tags/2.0.4/public/class-qc-choice-public.php (copied) (copied from quantcast-choice/trunk/public/class-qc-choice-public.php)
-
tags/2.0.4/public/css/style.min.css (copied) (copied from quantcast-choice/trunk/public/css/style.min.css) (1 diff)
-
tags/2.0.4/public/js/script.async.min.js (copied) (copied from quantcast-choice/trunk/public/js/script.async.min.js)
-
tags/2.0.4/public/js/script.min.js (copied) (copied from quantcast-choice/trunk/public/js/script.min.js) (1 diff)
-
tags/2.0.4/qc-choice.php (copied) (copied from quantcast-choice/trunk/qc-choice.php) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/includes/class-qc-choice.php (modified) (1 diff)
-
trunk/public/css/style.min.css (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.4/README.txt
r2408627 r2430543 1 1 === Quantcast Choice === 2 Version: 2.0. 32 Version: 2.0.4 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 … … 110 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 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. 112 113 = 2.0.4 = 114 * Bugfix: Removing the .map file references from the public .js and public .css files fixing the JS warning "DevTools failed to load SourceMap: Could not load content. HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE" warnings. -
quantcast-choice/tags/2.0.4/composer.json
r2408014 r2430543 1 1 { 2 2 "name": "quantcast/quantcast-choice", 3 "version": "2.0. 3",3 "version": "2.0.4", 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.4/includes/class-qc-choice.php
r2408014 r2430543 71 71 $this->version = QC_CHOICE_VERSION; 72 72 } else { 73 $this->version = '2.0. 3';73 $this->version = '2.0.4'; 74 74 } 75 75 $this->plugin_name = 'qc-choice'; -
quantcast-choice/tags/2.0.4/public/css/style.min.css
r2355432 r2430543 1 1 .container-choice-footer-msg{text-align:center}.container-choice-footer-msg .container-inside .ccpa-msg-added{padding:2rem}.page-content{display:flex;flex-flow:row nowrap;margin:0 auto;min-height:calc(60vh - 120px);min-width:0;padding:25px 0;position:relative;width:100%}.centered-content{display:flex;flex-flow:column;align-content:center;margin:0 auto;max-width:800px;min-width:276px;width:80vw}.content-title{font-size:24px;font-weight:700;width:100%}.consent-header{color:#000;display:flex;justify-content:space-between}.change-consent{color:#6844cd;cursor:pointer;font-size:16px;font-weight:100;line-height:27px;text-decoration:underline;transition:all .2s ease-in-out}.change-consent::before{content:"\f013";display:inline-block;font-family:"Font Awesome 5 Free";font-style:normal;font-variant:normal;font-weight:900;margin-right:10px;text-rendering:auto;-webkit-font-smoothing:antialiased}.change-consent:hover{opacity:.6}.consent-lists{display:flex;flex-wrap:wrap}.consent-list-container{flex:1 1 40%;margin:0 25px}.consent-list{border-collapse:collapse;font-family:neuzeit-grotesk,Arial,Verdana,sans-serif;text-align:left;width:100%;margin-bottom:25px}.consent-list-title{font-size:14px;letter-spacing:2px;margin:0;text-transform:uppercase}.consent-row{height:45px;background-color:#fafafa;border:1px solid #e8e9ea}.no-consent{opacity:.5}.no-consent::before{content:"\f057";display:inline-block;font-family:"Font Awesome 5 Free";font-style:normal;font-variant:normal;font-weight:900;margin-right:15px;text-rendering:auto;-webkit-font-smoothing:antialiased}.has-consent{color:#00b47d}.has-consent::before{content:"\f058";display:inline-block;font-family:"Font Awesome 5 Free";font-style:normal;font-variant:normal;font-weight:900;margin-right:15px;text-rendering:auto;-webkit-font-smoothing:antialiased}.learn-more{width:100%}.content-subtitle{font-size:18px;font-weight:700}.consent-list-container .consent-cell{padding:0 15px}.qc-cmp-ui-container .qc-cmp-company-cell,.qc-cmp-ui-container .qc-cmp-enabled-cell,.qc-cmp-ui-container .qc-cmp-table-header,.qc-cmp-ui-container .qc-cmp-table-row,.qc-cmp-ui-container .qc-cmp-vendor-column-header{padding:0 15px}.qc-cmp-ui-container .qc-cmp-title{padding:0}.qc-cmp-ui-container .qc-cmp-table{margin:0}.qc-cmp-ui-container .qc-cmp-toggle{background-color:#a6a9ae;border:1px solid #a6a9ae;border-radius:27px;cursor:pointer;display:block;height:23px;margin:0 0 0 auto;position:relative;width:44px}.qc-cmp-ui-container .qc-cmp-toggle.qc-cmp-toggle-on{background-color:#368bd6;border-color:#368bd6}.qc-cmp-ui-container .qc-cmp-toggle.qc-cmp-toggle-on .qc-cmp-toggle-switch{right:0}.qc-cmp-ui-container .qc-cmp-toggle-switch{position:absolute;display:inline-block;top:0;right:21px;width:23px;height:23px;background-color:#fff;border-radius:50%;transition:all .1s ease-in-out 0s}.qc-cmp-ui-container .qc-cmp-vendor-info-content{padding:0 15px 15px;font-size:12px;line-height:16px}.qc-cmp-ui-container .qc-cmp-vendor-row{border-bottom:none}.qc-cmp-ui-container .qc-cmp-purpose-toggle-cell{text-align:right;padding-right:15px}.qc-cmp-toggle{box-sizing:content-box}.qc-cmp-deprecation-messaging p{padding:1rem;margin:0} 2 /*# sourceMappingURL=style.min.css.map */ -
quantcast-choice/tags/2.0.4/public/js/script.min.js
r2408014 r2430543 1 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 //# sourceMappingURL=script.min.js.map -
quantcast-choice/tags/2.0.4/qc-choice.php
r2408014 r2430543 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. 319 * Version: 2.0.4 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. 3' );38 define( 'QC_CHOICE_VERSION', '2.0.4' ); 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
r2408627 r2430543 1 1 === Quantcast Choice === 2 Version: 2.0. 32 Version: 2.0.4 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 … … 110 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 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. 112 113 = 2.0.4 = 114 * Bugfix: Removing the .map file references from the public .js and public .css files fixing the JS warning "DevTools failed to load SourceMap: Could not load content. HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE" warnings. -
quantcast-choice/trunk/composer.json
r2408014 r2430543 1 1 { 2 2 "name": "quantcast/quantcast-choice", 3 "version": "2.0. 3",3 "version": "2.0.4", 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
r2408014 r2430543 71 71 $this->version = QC_CHOICE_VERSION; 72 72 } else { 73 $this->version = '2.0. 3';73 $this->version = '2.0.4'; 74 74 } 75 75 $this->plugin_name = 'qc-choice'; -
quantcast-choice/trunk/public/css/style.min.css
r2355432 r2430543 1 1 .container-choice-footer-msg{text-align:center}.container-choice-footer-msg .container-inside .ccpa-msg-added{padding:2rem}.page-content{display:flex;flex-flow:row nowrap;margin:0 auto;min-height:calc(60vh - 120px);min-width:0;padding:25px 0;position:relative;width:100%}.centered-content{display:flex;flex-flow:column;align-content:center;margin:0 auto;max-width:800px;min-width:276px;width:80vw}.content-title{font-size:24px;font-weight:700;width:100%}.consent-header{color:#000;display:flex;justify-content:space-between}.change-consent{color:#6844cd;cursor:pointer;font-size:16px;font-weight:100;line-height:27px;text-decoration:underline;transition:all .2s ease-in-out}.change-consent::before{content:"\f013";display:inline-block;font-family:"Font Awesome 5 Free";font-style:normal;font-variant:normal;font-weight:900;margin-right:10px;text-rendering:auto;-webkit-font-smoothing:antialiased}.change-consent:hover{opacity:.6}.consent-lists{display:flex;flex-wrap:wrap}.consent-list-container{flex:1 1 40%;margin:0 25px}.consent-list{border-collapse:collapse;font-family:neuzeit-grotesk,Arial,Verdana,sans-serif;text-align:left;width:100%;margin-bottom:25px}.consent-list-title{font-size:14px;letter-spacing:2px;margin:0;text-transform:uppercase}.consent-row{height:45px;background-color:#fafafa;border:1px solid #e8e9ea}.no-consent{opacity:.5}.no-consent::before{content:"\f057";display:inline-block;font-family:"Font Awesome 5 Free";font-style:normal;font-variant:normal;font-weight:900;margin-right:15px;text-rendering:auto;-webkit-font-smoothing:antialiased}.has-consent{color:#00b47d}.has-consent::before{content:"\f058";display:inline-block;font-family:"Font Awesome 5 Free";font-style:normal;font-variant:normal;font-weight:900;margin-right:15px;text-rendering:auto;-webkit-font-smoothing:antialiased}.learn-more{width:100%}.content-subtitle{font-size:18px;font-weight:700}.consent-list-container .consent-cell{padding:0 15px}.qc-cmp-ui-container .qc-cmp-company-cell,.qc-cmp-ui-container .qc-cmp-enabled-cell,.qc-cmp-ui-container .qc-cmp-table-header,.qc-cmp-ui-container .qc-cmp-table-row,.qc-cmp-ui-container .qc-cmp-vendor-column-header{padding:0 15px}.qc-cmp-ui-container .qc-cmp-title{padding:0}.qc-cmp-ui-container .qc-cmp-table{margin:0}.qc-cmp-ui-container .qc-cmp-toggle{background-color:#a6a9ae;border:1px solid #a6a9ae;border-radius:27px;cursor:pointer;display:block;height:23px;margin:0 0 0 auto;position:relative;width:44px}.qc-cmp-ui-container .qc-cmp-toggle.qc-cmp-toggle-on{background-color:#368bd6;border-color:#368bd6}.qc-cmp-ui-container .qc-cmp-toggle.qc-cmp-toggle-on .qc-cmp-toggle-switch{right:0}.qc-cmp-ui-container .qc-cmp-toggle-switch{position:absolute;display:inline-block;top:0;right:21px;width:23px;height:23px;background-color:#fff;border-radius:50%;transition:all .1s ease-in-out 0s}.qc-cmp-ui-container .qc-cmp-vendor-info-content{padding:0 15px 15px;font-size:12px;line-height:16px}.qc-cmp-ui-container .qc-cmp-vendor-row{border-bottom:none}.qc-cmp-ui-container .qc-cmp-purpose-toggle-cell{text-align:right;padding-right:15px}.qc-cmp-toggle{box-sizing:content-box}.qc-cmp-deprecation-messaging p{padding:1rem;margin:0} 2 /*# sourceMappingURL=style.min.css.map */ -
quantcast-choice/trunk/public/js/script.min.js
r2408014 r2430543 1 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 //# sourceMappingURL=script.min.js.map -
quantcast-choice/trunk/qc-choice.php
r2408014 r2430543 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. 319 * Version: 2.0.4 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. 3' );38 define( 'QC_CHOICE_VERSION', '2.0.4' ); 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.