Geheel conform de recente uitleg van de wet. Vqmod dient geinstalleert te zijn.
Code: Select all
<modification>
<id>Europe Cookie Law / Dutch</id>
<version>1.0.0</version>
<vqmver>1.2.6</vqmver>
<author>PortalXL Group</author>
<file name="catalog/controller/common/header.php">
<operation>
<search position="after" index="1"><![CDATA[
$this->data['text_checkout'] = $this->language->get('text_checkout');
]]></search>
<add><![CDATA[
$this->data['text_eu_cookie_law'] = $this->language->get('text_eu_cookie_law');
$this->data['text_eu_cookie_body'] = $this->language->get('text_eu_cookie_body');
$this->data['text_eu_cookie_yes'] = $this->language->get('text_eu_cookie_yes');
$this->data['text_eu_cookie_no'] = $this->language->get('text_eu_cookie_no');
$this->data['text_eu_cookie_no_descr'] = $this->language->get('text_eu_cookie_no_descr');
]]></add>
</operation>
</file>
<file name="catalog/language/de_DE/common/header.php">
<operation>
<search position="after" index="1"><![CDATA[
$_['text_checkout']
]]></search>
<add><![CDATA[
// EU Cookie Law 2012
$_['text_eu_cookie_law'] = '<span class="head1">Niederländisches Cookie-Gesetzes</span>';
$_['text_eu_cookie_body'] = '<span class="head2">Lieber Besucher</span><br />Seit der neuen europäischen Datenschutzrichtlinie für elektronische Kommunikation/Niederländisches Telekommunikationsgesetz (Artikel 11.7a unter 1) am 1. Juni 2012 gültig ist, sind wir wunderbar isoliert! Jede Website ist gesetzlich verpflichtet, den Benutzer über die Art der gelieferten Cookies und die Erlaubnis für die Verwendung zu informieren. Wir sind uns bewusst, dass dies ärgerlich und unfreundlich ist. Wir entschuldigen uns dafür, <a href="index.php?route=information/information&information_id=8" target="_blank">weitere Informationen zu Cookies</a>.';
$_['text_eu_cookie_yes'] = 'Cookies akzeptieren';
$_['text_eu_cookie_no'] = 'Cookies verweigern';
$_['text_eu_cookie_no_descr'] = 'Sie haben keine Zustimmung gegeben und werden diese Seite nach Bestätigung verlassen.';
]]></add>
</operation>
</file>
<file name="catalog/language/dutch/common/header.php">
<operation>
<search position="after" index="1"><![CDATA[
$_['text_checkout']
]]></search>
<add><![CDATA[
// EU Cookie Law 2012
$_['text_eu_cookie_law'] = '<span class="head1">Cookiewetgeving</span>';
$_['text_eu_cookie_body'] = '<span class="head2">Geachte bezoeker</span><br />Sinds de nieuwe telecomwet op 1 juni 2012 van kracht is geworden, is elke website wettelijk verplicht de gebruiker te informeren over de aard van de geleverde cookies en toestemming te vragen voor het gebruik hiervan. We beseffen dat dit lastig en onvriendelijk is, onze excuses hiervoor. Raadpleeg indien nodig de help functie van uw browser, <a href="index.php?route=information/information&information_id=8" target="_blank">meer informatie over cookies</a>.';
$_['text_eu_cookie_yes'] = 'Wel Cookies';
$_['text_eu_cookie_no'] = 'Geen cookies';
$_['text_eu_cookie_no_descr'] = 'U hebt geen toestemming gegeven en verlaat na bevestiging deze site.';
]]></add>
</operation>
</file>
<file name="catalog/language/english/common/header.php">
<operation>
<search position="after" index="1"><![CDATA[
$_['text_checkout']
]]></search>
<add><![CDATA[
// EU Cookie Law 2012
$_['text_eu_cookie_law'] = '<span class="head1">Dutch Cookie Law</span>';
$_['text_eu_cookie_body'] = '<span class="head2">Dear visitor</span><br />Since the new European ePrivacy Directive/Dutch Telecommunications Act (article 11.7a under 1) on June 1, 2012 is valid, we are splendid isolated! Every website is legally obliged to inform the user about the nature of the delivered cookies and permission for its use. We realize that this is annoying and unfriendly. We are sorry for that, <a href="index.php?route=information/information&information_id=8" target="_blank">more information about cookies</a>.';
$_['text_eu_cookie_yes'] = 'Accept Cookies';
$_['text_eu_cookie_no'] = 'Deny cookies';
$_['text_eu_cookie_no_descr'] = 'You have not given permission and will leave this site after confirmation.';
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search position="before" index="1"><![CDATA[
</head>
]]></search>
<add><![CDATA[
<script type="text/javascript">
var persistclose = 1 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos = "fromtop" //enter "fromtop" or "frombottom"
function redirect (link) {
alert (link.id);
location = link.href;
return false;
}
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="accept_eu_cookie=1"
document.getElementById("floating_bar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("floating_bar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("accept_eu_cookie")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("floating_bar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<style type="text/css">
.contentwrapper {
margin: 5px;
padding: 0px;
font-size: 12px;
font-weight: normal;
font-family: "Trebuchet MS", Verdana, Helvetica, Arial, Sans-serif;
color: #000;
text-align: left;
}
.contentwrapper .head1 {
font-size: 18px;
font-weight: bold;
color: #FFF;
padding: 0;
margin: 0;
}
.contentwrapper .head2 {
font-size: 16px;
font-weight: bold;
color: #333;
padding: 0;
margin: 0;
}
.contentwrapper .box {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
padding: 0;
margin: 0;
}
.contentwrapper .button_no {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #F00;
padding: 5px 10px;
text-decoration: none;
background-color: #ffffff;
background: -moz-linear-gradient( top, #ffffff 0%, #ffffff 50%, #d6d6d6);
background: -webkit-gradient( linear, left top, left bottom, from(#ffffff), color-stop(0.50, #ffffff), to(#d6d6d6));
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: 2px solid #F00;
-moz-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 3px rgba(255,255,255,1);
-webkit-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 3px rgba(255,255,255,1);
text-shadow: 0px -1px 0px rgba(000,000,000,0.1), 0px 1px 0px rgba(255,255,255,1);
}
.contentwrapper .button_yes {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
color: #360;
padding: 5px 10px;
margin-right: 10px;
text-decoration: none;
background-color: #ffffff;
background: -moz-linear-gradient( top, #ffffff 0%, #ffffff 50%, #d6d6d6);
background: -webkit-gradient( linear, left top, left bottom, from(#ffffff), color-stop(0.50, #ffffff), to(#d6d6d6));
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border: 2px solid #360;
-moz-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 3px rgba(255,255,255,1);
-webkit-box-shadow: 0px 1px 3px rgba(000,000,000,0.5), inset 0px 0px 3px rgba(255,255,255,1);
text-shadow: 0px -1px 0px rgba(000,000,000,0.1), 0px 1px 0px rgba(255,255,255,1);
}
.contentwrapper .greencolour {
font-size: 12px;
color: #FFF;
background-color: #360;
padding: 10px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
.contentwrapper .redcolour {
font-size: 12px;
color: #FFF;
background-color: #F00;
padding: 10px;
margin-bottom: 5px;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
#floating_bar {
font-size: 12px;
background-color: #CCC;
margin: 10px auto;
width: 695px;
padding: 10px;
position: absolute;
visibility: hidden;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
opacity: 0.85; /* Current standard in CSS */
-moz-opacity: 0.85; /* Old school versions like Netscape Navigator */
-khtml-opacity: 0.85; /* Old versions of Safari (1.x) */
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=85)"; /* IE8 first! */
filter: alpha(opacity=85); /* IE IE5-7 second! */
z-index: 10000;
}
#outerwrapper {
margin: 0 auto;
width: 800px;
position: relative;
}
</style>
]]></add>
</operation>
<operation>
<search position="after" index="1"><![CDATA[
<body>
]]></search>
<add><![CDATA[
<div id="outerwrapper">
<div align="center" id="floating_bar">
<div class="contentwrapper">
<div class="box">
<div class="redcolour"><?php echo $text_eu_cookie_law; ?></div>
</div>
<div class="box"><?php echo $text_eu_cookie_body; ?></div>
<div align="center"><br /><a href="#" onclick="closebar(); return false;" ><span class="button_yes"><?php echo $text_eu_cookie_yes; ?></span></a> <a href="http://nocookielaw.com/" id="<?php echo $text_eu_cookie_no_descr; ?>" onclick="return redirect(this)"><span class="button_no"><?php echo $text_eu_cookie_no; ?></span></a> </div>
</div>
</div>
</div>
]]></add>
</operation>
</file>
</modification>
Bij acceptatie zal er een cookie met de naam "accept_eu_cookie" geplaatst worden.
Maak een nieuwe informatiepagina aan en/of wijzig "index.php?route=information/information&information_id=8" naar jouw ID. Als je geen extra talen gebruikt buiten "dutch" verwijder dan de andere definities om fouten te voorkomen. Als er utf8 fouten mochten optreden dienen speciale letters in de taaldefinities omgezet te worden naar utf8. Hopelijk ben ik niks vergeten.
.