Changeset 2214414
- Timestamp:
- 12/18/2019 04:15:05 PM (6 years ago)
- Location:
- consent-manager
- Files:
-
- 6 added
- 4 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/ConsentManagerMain.php (added)
-
tags/1.1.0/consentmanager.php (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/views (added)
-
tags/1.1.0/views/admin.php (added)
-
trunk/ConsentManagerMain.php (modified) (1 diff)
-
trunk/consentmanager.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (5 diffs)
-
trunk/views/admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
consent-manager/trunk/ConsentManagerMain.php
r1887224 r2214414 25 25 26 26 static function getHTML($id){ 27 return '<script> (function(){window.gdprAppliesGlobally=false;window.cmp_id='.$id.';window.cmp_params="";var a=document.createElement("script");a.src="https://consentmanager.mgr.consensu.org/delivery/cmp.php?id="+window.cmp_id+"&"+window.cmp_params+"&o="+(new Date()).getTime();a.type="text/javascript";a.async=true;if(false&&document.body){document.body.appendChild(a)}else{if(false&&document.currentScript){document.currentScript.parentElement.appendChild(a)}else{document.write(a.outerHTML)}}window.cmp_addFrame=function(){if(!window.frames.__cmpLocator){if(document.body){var b=document.createElement("iframe");b.style.display="none";b.name="__cmpLocator";document.body.appendChild(b)}else{window.setTimeout("window.cmp_addFrame()",10)}}};window.cmp_addFrame();window.cmp_stub=function(){var c=arguments;__cmp.a=__cmp.a||[];if(!c.length){return __cmp.a}else{if(c[0]==="ping"){c[2]({gdprAppliesGlobally:gdprAppliesGlobally,cmpLoaded:false},true)}else{__cmp.a.push([].slice.apply(c))}}};window.cmp_msghandler=function(f){var b=typeof f.data==="string";try{var d=b?JSON.parse(f.data):f.data}catch(g){var d=null}if(typeof(d)==="object"&&d!==null&&"__cmpCall" in d){var c=d.__cmpCall;window.__cmp(c.command,c.parameter,function(i,h){var e={__cmpReturn:{returnValue:i,success:h,callId:c.callId}};f.source.postMessage(b?JSON.stringify(e):e,"*")})}};if(typeof(__cmp)!=="function"){window.__cmp=window.cmp_stub;__cmp.msgHandler=window.cmp_msghandler;if(window.addEventListener){window.addEventListener("message",window.cmp_msghandler,false)}else{window.attachEvent("onmessage",window.cmp_msghandler)}}})();</script>';27 return '<script>function cmp_getlang(j){if(typeof(j)!="boolean"){j=true}if(j&&typeof(cmp_getlang.usedlang)=="string"&&cmp_getlang.usedlang!==""){return cmp_getlang.usedlang}var g=["DE","EN","FR","IT","NO","DA","FI","ES","PT","RO","BG","ET","EL","GA","HR","LV","LT","MT","NL","PL","SV","SK","SL","CS","HU","RU"];var c=[];var f=location.hash;var e=location.search;var a="languages" in navigator?navigator.languages:[];if(f.indexOf("cmplang=")!=-1){c.push(f.substr(f.indexOf("cmplang=")+8,2))}else{if(e.indexOf("cmplang=")!=-1){c.push(e.substr(e.indexOf("cmplang=")+8,2))}else{if(a.length>0){for(var d=0;d<a.length;d++){c.push(a[d])}}}}if("language" in navigator){c.push(navigator.language)}if("userLanguage" in navigator){c.push(navigator.userLanguage)}var h="";for(var d=0;d<c.length;d++){var b=c[d].toUpperCase();if(b.indexOf("-")!=-1){b=b.substr(0,2)}if(g.indexOf(b)!=-1){h=b;break}}if(h==""){h="EN"}h=h.toUpperCase();return h}(function(){window.gdprAppliesGlobally=false;window.cmp_id='.$id.';window.cmp_params="";window.cmp_host="consentmanager.mgr.consensu.org";window.cmp_cdn="cdn.consentmanager.mgr.consensu.org";var a="";var c="";if("cmp_getlang" in window){a=window.cmp_getlang().toLowerCase();c="_"+a}var b=document.createElement("script");b.src="https://"+window.cmp_host+"/delivery/cmp.php?id="+window.cmp_id+"&h="+encodeURIComponent(location.href)+"&"+window.cmp_params+(document.cookie.length>0?"&__cmpfcc=1":"")+"&l="+a+"&o="+(new Date()).getTime();b.type="text/javascript";b.async=true;if(document.body){document.body.appendChild(b)}else{if(document.currentScript){document.currentScript.parentElement.appendChild(b)}else{document.write(b.outerHTML)}}var b=document.createElement("script");b.src="https://"+window.cmp_cdn+"/delivery/cmp"+c+".min.js";b.type="text/javascript";b.async=true;if(document.body){document.body.appendChild(b)}else{if(document.currentScript){document.currentScript.parentElement.appendChild(b)}else{document.write(b.outerHTML)}}window.cmp_addFrame=function(e){if(!window.frames[e]){if(document.body){var d=document.createElement("iframe");d.style.cssText="display:none";d.name=e;document.body.appendChild(d)}else{window.setTimeout(\'window.cmp_addFrame("\'+e+\'")\',10)}}};window.cmp_addFrame("__cmpLocator");window.cmp_addFrame("__uspapiLocator");window.cmp_stub=function(){var d=arguments;__cmp.a=__cmp.a||[];if(!d.length){return __cmp.a}else{if(d[0]==="ping"){d[2]({gdprAppliesGlobally:gdprAppliesGlobally,cmpLoaded:false},true)}else{if(d.length==4&&d[3]===false){d[2]({},false)}else{__cmp.a.push([].slice.apply(d))}}}};window.cmp_msghandler=function(h){var d=typeof h.data==="string";try{var g=d?JSON.parse(h.data):h.data}catch(j){var g=null}if(typeof(g)==="object"&&g!==null&&"__cmpCall" in g){var f=g.__cmpCall;window.__cmp(f.command,f.parameter,function(k,i){var e={__cmpReturn:{returnValue:k,success:i,callId:f.callId}};h.source.postMessage(d?JSON.stringify(e):e,"*")})}if(typeof(g)==="object"&&g!==null&&"__uspapiCall" in g){var f=g.__uspapiCall;window.__uspapi(f.command,f.version,function(k,i){var e={__uspapiReturn:{returnValue:k,success:i,callId:f.callId}};h.source.postMessage(d?JSON.stringify(e):e,"*")})}};if(typeof(__cmp)!=="function"&&typeof(__cmp)!=="object"&&(typeof(__cmp)==="undefined"||__cmp!==null)){window.__cmp=window.cmp_stub;__cmp.msgHandler=window.cmp_msghandler;if(window.addEventListener){window.addEventListener("message",window.cmp_msghandler,false)}else{window.attachEvent("onmessage",window.cmp_msghandler)}}if(typeof(__uspapi)!=="function"&&typeof(__uspapi)!=="object"&&(typeof(__uspapi)==="undefined"||__uspapi!==null)){window.__uspapi=window.cmp_stub;__uspapi.msgHandler=window.cmp_msghandler;if(window.addEventListener){window.addEventListener("message",window.cmp_msghandler,false)}else{window.attachEvent("onmessage",window.cmp_msghandler)}}})();</script>'; 28 28 } 29 29 -
consent-manager/trunk/consentmanager.php
r1889712 r2214414 5 5 Plugin Name: Consent Manager 6 6 Description: Consent Manager is the easiest way to reach the new privacy standard. 7 Version: 1. 0.47 Version: 1.1.0 8 8 Author: consentmanager 9 9 Author URI: https://www.consentmanager.de … … 22 22 23 23 function consent_manager_scripts() { 24 wp_register_script('consentmanagerscript', 'https://consentmanager.mgr.consensu.org/delivery/cmp.min.js', '','1.0', true); 25 26 wp_enqueue_script('consentmanagerscript'); 24 //wp_register_script('consentmanagerscript', 'https://consentmanager.mgr.consensu.org/delivery/cmp.min.js', '','1.0', true); 25 //wp_enqueue_script('consentmanagerscript'); 27 26 } 28 27 … … 40 39 41 40 function consent_manager_style() { 42 wp_register_style('consentmanagerstyle', 'https://c onsentmanager.mgr.consensu.org/delivery/cmp.min.css', '','1.0.2', 'all');41 wp_register_style('consentmanagerstyle', 'https://cdn.consentmanager.mgr.consensu.org/delivery/cmp.min.css', '','1.1.0', 'all'); 43 42 44 43 wp_enqueue_style('consentmanagerstyle'); -
consent-manager/trunk/readme.txt
r1889709 r2214414 1 === Consent Manager ===1 === Consent Manager === 2 2 Contributors: andrelange 3 3 Donate link: no donate-link provided 4 Tags: privacy, DSGVO, GDPR, IAB, CMP, consent, advertising, cookie, banner 4 Tags: privacy, DSGVO, GDPR, IAB, CMP, consent, advertising, cookie, banner, CCPA, data protection, eprivacy, TCF 5 5 Requires at least: 3.0 6 Tested up to: 4.9.66 Tested up to: 5.3.1 7 7 Stable tag: trunk 8 8 Requires PHP: 5.2.4 … … 11 11 12 12 13 The consentmanager.net CMP (Consent Management Provider) allows your to easily collect consent form your websites visitors . It is the perfect tool for publishers, networks, SSPs and Exchanges!13 The consentmanager.net CMP (Consent Management Provider) allows your to easily collect consent form your websites visitors in order to become GDPR and CCPA compliant. 14 14 15 15 … … 18 18 19 19 How does it work? 20 Our CMP solution is very simple to integrate: Simply login to your [consentmanager.net](http ://consentmanager.net/) account, setup your website(s), create the code and paste it into your website/plugin. Our platform will automatically start gathering consent from your visitors. As soon as the code is in your website, advertisers will have access to the consent data via the open source API defined by the IAB.20 Our CMP solution is very simple to integrate: Simply login to your [consentmanager.net](https://consentmanager.net/) account, setup your website(s), create the code and paste it into your website/plugin. Our platform will automatically start gathering consent from your visitors. As soon as the code is in your website, advertisers will have access to the consent data via the open source API defined by the IAB. 21 21 22 22 In addition you will get detailed reports which show you how your visitors are behaving with the consent layer, how many consents you get and how you can optimize your strategie in order to obtain higher rates of consent. … … 26 26 27 27 28 Simple installation. Install our plugin in your Wordpress, get your Consent Manager ID at [ consentmanager.net/cmp.php](http://consentmanager.net/cmp.php) and insert the ID in the plugin settings. That’s all!28 Simple installation. Install our plugin in your Wordpress, get your Consent Manager ID at [https://www.consentmanager.net/client/codes.php](https://www.consentmanager.net/client/codes.php) and insert the ID in the plugin settings. That’s all! 29 29 30 30 … … 78 78 1.0.4 - small update 79 79 80 1.1.0 - adding CCPA compliance 81 80 82 81 83 == Upgrade Notice == -
consent-manager/trunk/views/admin.php
r1889625 r2214414 19 19 } 20 20 else{ 21 $validationError = ' the Consent Manager ID did not match, it should be a string like: abc123abc4321';21 $validationError = 'The ConsentManager.de ID did not match, it should be a number like: 12345'; 22 22 } 23 23 } … … 61 61 </form> 62 62 <p> 63 if you don’t yet have an ID, please get in touch with us at <a target="_blank" href="https://www.consentmanager.net/ cmp.php">www.consentmanager.net</a>63 if you don’t yet have an ID, please get in touch with us at <a target="_blank" href="https://www.consentmanager.net/">www.consentmanager.net</a> 64 64 </p> 65 65 </div>
Note: See TracChangeset
for help on using the changeset viewer.