Plugin Directory

Changeset 2214414


Ignore:
Timestamp:
12/18/2019 04:15:05 PM (6 years ago)
Author:
consentmanager
Message:

language improvements + support for CCPA

Location:
consent-manager
Files:
6 added
4 edited

Legend:

Unmodified
Added
Removed
  • consent-manager/trunk/ConsentManagerMain.php

    r1887224 r2214414  
    2525
    2626    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>';
    2828    }
    2929
  • consent-manager/trunk/consentmanager.php

    r1889712 r2214414  
    55Plugin Name: Consent Manager
    66Description: Consent Manager is the easiest way to reach the new privacy standard.
    7 Version: 1.0.4
     7Version: 1.1.0
    88Author: consentmanager
    99Author URI: https://www.consentmanager.de
     
    2222
    2323function 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');
    2726}
    2827
     
    4039
    4140function consent_manager_style() {
    42     wp_register_style('consentmanagerstyle', 'https://consentmanager.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');
    4342
    4443    wp_enqueue_style('consentmanagerstyle');
  • consent-manager/trunk/readme.txt

    r1889709 r2214414  
    1 === Consent Manager ===
     1=== Consent Manager ===
    22Contributors: andrelange
    33Donate link: no donate-link provided
    4 Tags: privacy, DSGVO, GDPR, IAB, CMP, consent, advertising, cookie, banner
     4Tags: privacy, DSGVO, GDPR, IAB, CMP, consent, advertising, cookie, banner, CCPA, data protection, eprivacy, TCF
    55Requires at least: 3.0
    6 Tested up to: 4.9.6
     6Tested up to: 5.3.1
    77Stable tag: trunk
    88Requires PHP: 5.2.4
     
    1111
    1212
    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!
     13The consentmanager.net CMP (Consent Management Provider) allows your to easily collect consent form your websites visitors in order to become GDPR and CCPA compliant.
    1414
    1515
     
    1818
    1919How 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.
     20Our 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.
    2121
    2222In 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.
     
    2626
    2727
    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!
     28Simple 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!
    2929
    3030
     
    78781.0.4 - small update
    7979
     801.1.0 - adding CCPA compliance
     81
    8082
    8183== Upgrade Notice ==
  • consent-manager/trunk/views/admin.php

    r1889625 r2214414  
    1919    }
    2020    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';
    2222    }
    2323}
     
    6161    </form>
    6262    <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>
    6464    </p>
    6565</div>
Note: See TracChangeset for help on using the changeset viewer.