first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

BIN
modules/uecookie/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>uecookie</name>
<displayName><![CDATA[Informacja o ciasteczkach]]></displayName>
<version><![CDATA[1.7.8]]></version>
<description><![CDATA[Moduł dodaje informacje o ciasteczkach do Twojego sklepu internetowego]]></description>
<author><![CDATA[MyPresta.eu]]></author>
<tab><![CDATA[Blocks]]></tab>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,935 @@
/**
* jscolor, JavaScript Color Picker
*
* @version 1.3.13
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2012-01-19
* @link http://jscolor.com
*/
var jscolor = {
dir : '', // location of jscolor directory (leave empty to autodetect)
bindClass : 'color', // class name
binding : true, // automatic binding via <input class="...">
preloading : true, // use image preloading?
install : function() {
jscolor.addEvent(window, 'load', jscolor.init);
},
init : function() {
if(jscolor.binding) {
jscolor.bind();
}
if(jscolor.preloading) {
jscolor.preload();
}
},
getDir : function() {
if(!jscolor.dir) {
var detected = jscolor.detectDir();
jscolor.dir = detected!==false ? detected : '';
}
return jscolor.dir;
},
detectDir : function() {
var base = location.href;
var e = document.getElementsByTagName('base');
for(var i=0; i<e.length; i+=1) {
if(e[i].href) { base = e[i].href; }
}
var e = document.getElementsByTagName('script');
for(var i=0; i<e.length; i+=1) {
if(e[i].src && /(^|\/)jscolor\.js([?#].*)?$/i.test(e[i].src)) {
var src = new jscolor.URI(e[i].src);
var srcAbs = src.toAbsolute(base);
srcAbs.path = srcAbs.path.replace(/[^\/]+$/, ''); // remove filename
srcAbs.query = null;
srcAbs.fragment = null;
return srcAbs.toString();
}
}
return false;
},
bind : function() {
var matchClass = new RegExp('(^|\\s)('+jscolor.bindClass+')\\s*(\\{[^}]*\\})?', 'i');
var e = document.getElementsByTagName('input');
for(var i=0; i<e.length; i+=1) {
var m;
if(!e[i].color && e[i].className && (m = e[i].className.match(matchClass))) {
var prop = {};
if(m[3]) {
try {
eval('prop='+m[3]);
} catch(eInvalidProp) {}
}
e[i].color = new jscolor.color(e[i], prop);
}
}
},
preload : function() {
for(var fn in jscolor.imgRequire) {
if(jscolor.imgRequire.hasOwnProperty(fn)) {
jscolor.loadImage(fn);
}
}
},
images : {
pad : [ 181, 101 ],
sld : [ 16, 101 ],
cross : [ 15, 15 ],
arrow : [ 7, 11 ]
},
imgRequire : {},
imgLoaded : {},
requireImage : function(filename) {
jscolor.imgRequire[filename] = true;
},
loadImage : function(filename) {
if(!jscolor.imgLoaded[filename]) {
jscolor.imgLoaded[filename] = new Image();
jscolor.imgLoaded[filename].src = jscolor.getDir()+filename;
}
},
fetchElement : function(mixed) {
return typeof mixed === 'string' ? document.getElementById(mixed) : mixed;
},
addEvent : function(el, evnt, func) {
if(el.addEventListener) {
el.addEventListener(evnt, func, false);
} else if(el.attachEvent) {
el.attachEvent('on'+evnt, func);
}
},
fireEvent : function(el, evnt) {
if(!el) {
return;
}
if(document.createEvent) {
var ev = document.createEvent('HTMLEvents');
ev.initEvent(evnt, true, true);
el.dispatchEvent(ev);
} else if(document.createEventObject) {
var ev = document.createEventObject();
el.fireEvent('on'+evnt, ev);
} else if(el['on'+evnt]) { // alternatively use the traditional event model (IE5)
el['on'+evnt]();
}
},
getElementPos : function(e) {
var e1=e, e2=e;
var x=0, y=0;
if(e1.offsetParent) {
do {
x += e1.offsetLeft;
y += e1.offsetTop;
} while(e1 = e1.offsetParent);
}
while((e2 = e2.parentNode) && e2.nodeName.toUpperCase() !== 'BODY') {
x -= e2.scrollLeft;
y -= e2.scrollTop;
}
return [x, y];
},
getElementSize : function(e) {
return [e.offsetWidth, e.offsetHeight];
},
getRelMousePos : function(e) {
var x = 0, y = 0;
if (!e) { e = window.event; }
if (typeof e.offsetX === 'number') {
x = e.offsetX;
y = e.offsetY;
} else if (typeof e.layerX === 'number') {
x = e.layerX;
y = e.layerY;
}
return { x: x, y: y };
},
getViewPos : function() {
if(typeof window.pageYOffset === 'number') {
return [window.pageXOffset, window.pageYOffset];
} else if(document.body && (document.body.scrollLeft || document.body.scrollTop)) {
return [document.body.scrollLeft, document.body.scrollTop];
} else if(document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
return [document.documentElement.scrollLeft, document.documentElement.scrollTop];
} else {
return [0, 0];
}
},
getViewSize : function() {
if(typeof window.innerWidth === 'number') {
return [window.innerWidth, window.innerHeight];
} else if(document.body && (document.body.clientWidth || document.body.clientHeight)) {
return [document.body.clientWidth, document.body.clientHeight];
} else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
return [document.documentElement.clientWidth, document.documentElement.clientHeight];
} else {
return [0, 0];
}
},
URI : function(uri) { // See RFC3986
this.scheme = null;
this.authority = null;
this.path = '';
this.query = null;
this.fragment = null;
this.parse = function(uri) {
var m = uri.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);
this.scheme = m[3] ? m[2] : null;
this.authority = m[5] ? m[6] : null;
this.path = m[7];
this.query = m[9] ? m[10] : null;
this.fragment = m[12] ? m[13] : null;
return this;
};
this.toString = function() {
var result = '';
if(this.scheme !== null) { result = result + this.scheme + ':'; }
if(this.authority !== null) { result = result + '//' + this.authority; }
if(this.path !== null) { result = result + this.path; }
if(this.query !== null) { result = result + '?' + this.query; }
if(this.fragment !== null) { result = result + '#' + this.fragment; }
return result;
};
this.toAbsolute = function(base) {
var base = new jscolor.URI(base);
var r = this;
var t = new jscolor.URI;
if(base.scheme === null) { return false; }
if(r.scheme !== null && r.scheme.toLowerCase() === base.scheme.toLowerCase()) {
r.scheme = null;
}
if(r.scheme !== null) {
t.scheme = r.scheme;
t.authority = r.authority;
t.path = removeDotSegments(r.path);
t.query = r.query;
} else {
if(r.authority !== null) {
t.authority = r.authority;
t.path = removeDotSegments(r.path);
t.query = r.query;
} else {
if(r.path === '') { // TODO: == or === ?
t.path = base.path;
if(r.query !== null) {
t.query = r.query;
} else {
t.query = base.query;
}
} else {
if(r.path.substr(0,1) === '/') {
t.path = removeDotSegments(r.path);
} else {
if(base.authority !== null && base.path === '') { // TODO: == or === ?
t.path = '/'+r.path;
} else {
t.path = base.path.replace(/[^\/]+$/,'')+r.path;
}
t.path = removeDotSegments(t.path);
}
t.query = r.query;
}
t.authority = base.authority;
}
t.scheme = base.scheme;
}
t.fragment = r.fragment;
return t;
};
function removeDotSegments(path) {
var out = '';
while(path) {
if(path.substr(0,3)==='../' || path.substr(0,2)==='./') {
path = path.replace(/^\.+/,'').substr(1);
} else if(path.substr(0,3)==='/./' || path==='/.') {
path = '/'+path.substr(3);
} else if(path.substr(0,4)==='/../' || path==='/..') {
path = '/'+path.substr(4);
out = out.replace(/\/?[^\/]*$/, '');
} else if(path==='.' || path==='..') {
path = '';
} else {
var rm = path.match(/^\/?[^\/]*/)[0];
path = path.substr(rm.length);
out = out + rm;
}
}
return out;
}
if(uri) {
this.parse(uri);
}
},
/*
* Usage example:
* var myColor = new jscolor.color(myInputElement)
*/
color : function(target, prop) {
this.required = true; // refuse empty values?
this.adjust = true; // adjust value to uniform notation?
this.hash = false; // prefix color with # symbol?
this.caps = true; // uppercase?
this.slider = true; // show the value/saturation slider?
this.valueElement = target; // value holder
this.styleElement = target; // where to reflect current color
this.onImmediateChange = null; // onchange callback (can be either string or function)
this.hsv = [0, 0, 1]; // read-only 0-6, 0-1, 0-1
this.rgb = [1, 1, 1]; // read-only 0-1, 0-1, 0-1
this.pickerOnfocus = true; // display picker on focus?
this.pickerMode = 'HSV'; // HSV | HVS
this.pickerPosition = 'bottom'; // left | right | top | bottom
this.pickerSmartPosition = true; // automatically adjust picker position when necessary
this.pickerButtonHeight = 20; // px
this.pickerClosable = false;
this.pickerCloseText = 'Close';
this.pickerButtonColor = 'ButtonText'; // px
this.pickerFace = 10; // px
this.pickerFaceColor = 'ThreeDFace'; // CSS color
this.pickerBorder = 1; // px
this.pickerBorderColor = 'ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight'; // CSS color
this.pickerInset = 1; // px
this.pickerInsetColor = 'ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow'; // CSS color
this.pickerZIndex = 10000;
for(var p in prop) {
if(prop.hasOwnProperty(p)) {
this[p] = prop[p];
}
}
this.hidePicker = function() {
if(isPickerOwner()) {
removePicker();
}
};
this.showPicker = function() {
if(!isPickerOwner()) {
var tp = jscolor.getElementPos(target); // target pos
var ts = jscolor.getElementSize(target); // target size
var vp = jscolor.getViewPos(); // view pos
var vs = jscolor.getViewSize(); // view size
var ps = getPickerDims(this); // picker size
var a, b, c;
switch(this.pickerPosition.toLowerCase()) {
case 'left': a=1; b=0; c=-1; break;
case 'right':a=1; b=0; c=1; break;
case 'top': a=0; b=1; c=-1; break;
default: a=0; b=1; c=1; break;
}
var l = (ts[b]+ps[b])/2;
// picker pos
if (!this.pickerSmartPosition) {
var pp = [
tp[a],
tp[b]+ts[b]-l+l*c
];
} else {
var pp = [
-vp[a]+tp[a]+ps[a] > vs[a] ?
(-vp[a]+tp[a]+ts[a]/2 > vs[a]/2 && tp[a]+ts[a]-ps[a] >= 0 ? tp[a]+ts[a]-ps[a] : tp[a]) :
tp[a],
-vp[b]+tp[b]+ts[b]+ps[b]-l+l*c > vs[b] ?
(-vp[b]+tp[b]+ts[b]/2 > vs[b]/2 && tp[b]+ts[b]-l-l*c >= 0 ? tp[b]+ts[b]-l-l*c : tp[b]+ts[b]-l+l*c) :
(tp[b]+ts[b]-l+l*c >= 0 ? tp[b]+ts[b]-l+l*c : tp[b]+ts[b]-l-l*c)
];
}
drawPicker(pp[a], pp[b]);
}
};
this.importColor = function() {
if(!valueElement) {
this.exportColor();
} else {
if(!this.adjust) {
if(!this.fromString(valueElement.value, leaveValue)) {
styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
styleElement.style.color = styleElement.jscStyle.color;
this.exportColor(leaveValue | leaveStyle);
}
} else if(!this.required && /^\s*$/.test(valueElement.value)) {
valueElement.value = '';
styleElement.style.backgroundImage = styleElement.jscStyle.backgroundImage;
styleElement.style.backgroundColor = styleElement.jscStyle.backgroundColor;
styleElement.style.color = styleElement.jscStyle.color;
this.exportColor(leaveValue | leaveStyle);
} else if(this.fromString(valueElement.value)) {
// OK
} else {
this.exportColor();
}
}
};
this.exportColor = function(flags) {
if(!(flags & leaveValue) && valueElement) {
var value = this.toString();
if(this.caps) { value = value.toUpperCase(); }
if(this.hash) { value = '#'+value; }
valueElement.value = value;
}
if(!(flags & leaveStyle) && styleElement) {
styleElement.style.backgroundImage = "none";
styleElement.style.backgroundColor =
'#'+this.toString();
styleElement.style.color =
0.213 * this.rgb[0] +
0.715 * this.rgb[1] +
0.072 * this.rgb[2]
< 0.5 ? '#FFF' : '#000';
}
if(!(flags & leavePad) && isPickerOwner()) {
redrawPad();
}
if(!(flags & leaveSld) && isPickerOwner()) {
redrawSld();
}
};
this.fromHSV = function(h, s, v, flags) { // null = don't change
h<0 && (h=0) || h>6 && (h=6);
s<0 && (s=0) || s>1 && (s=1);
v<0 && (v=0) || v>1 && (v=1);
this.rgb = HSV_RGB(
h===null ? this.hsv[0] : (this.hsv[0]=h),
s===null ? this.hsv[1] : (this.hsv[1]=s),
v===null ? this.hsv[2] : (this.hsv[2]=v)
);
this.exportColor(flags);
};
this.fromRGB = function(r, g, b, flags) { // null = don't change
r<0 && (r=0) || r>1 && (r=1);
g<0 && (g=0) || g>1 && (g=1);
b<0 && (b=0) || b>1 && (b=1);
var hsv = RGB_HSV(
r===null ? this.rgb[0] : (this.rgb[0]=r),
g===null ? this.rgb[1] : (this.rgb[1]=g),
b===null ? this.rgb[2] : (this.rgb[2]=b)
);
if(hsv[0] !== null) {
this.hsv[0] = hsv[0];
}
if(hsv[2] !== 0) {
this.hsv[1] = hsv[1];
}
this.hsv[2] = hsv[2];
this.exportColor(flags);
};
this.fromString = function(hex, flags) {
var m = hex.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);
if(!m) {
return false;
} else {
if(m[1].length === 6) { // 6-char notation
this.fromRGB(
parseInt(m[1].substr(0,2),16) / 255,
parseInt(m[1].substr(2,2),16) / 255,
parseInt(m[1].substr(4,2),16) / 255,
flags
);
} else { // 3-char notation
this.fromRGB(
parseInt(m[1].charAt(0)+m[1].charAt(0),16) / 255,
parseInt(m[1].charAt(1)+m[1].charAt(1),16) / 255,
parseInt(m[1].charAt(2)+m[1].charAt(2),16) / 255,
flags
);
}
return true;
}
};
this.toString = function() {
return (
(0x100 | Math.round(255*this.rgb[0])).toString(16).substr(1) +
(0x100 | Math.round(255*this.rgb[1])).toString(16).substr(1) +
(0x100 | Math.round(255*this.rgb[2])).toString(16).substr(1)
);
};
function RGB_HSV(r, g, b) {
var n = Math.min(Math.min(r,g),b);
var v = Math.max(Math.max(r,g),b);
var m = v - n;
if(m === 0) { return [ null, 0, v ]; }
var h = r===n ? 3+(b-g)/m : (g===n ? 5+(r-b)/m : 1+(g-r)/m);
return [ h===6?0:h, m/v, v ];
}
function HSV_RGB(h, s, v) {
if(h === null) { return [ v, v, v ]; }
var i = Math.floor(h);
var f = i%2 ? h-i : 1-(h-i);
var m = v * (1 - s);
var n = v * (1 - s*f);
switch(i) {
case 6:
case 0: return [v,n,m];
case 1: return [n,v,m];
case 2: return [m,v,n];
case 3: return [m,n,v];
case 4: return [n,m,v];
case 5: return [v,m,n];
}
}
function removePicker() {
delete jscolor.picker.owner;
document.getElementsByTagName('body')[0].removeChild(jscolor.picker.boxB);
}
function drawPicker(x, y) {
if(!jscolor.picker) {
jscolor.picker = {
box : document.createElement('div'),
boxB : document.createElement('div'),
pad : document.createElement('div'),
padB : document.createElement('div'),
padM : document.createElement('div'),
sld : document.createElement('div'),
sldB : document.createElement('div'),
sldM : document.createElement('div'),
btn : document.createElement('div'),
btnS : document.createElement('span'),
btnT : document.createTextNode(THIS.pickerCloseText)
};
for(var i=0,segSize=4; i<jscolor.images.sld[1]; i+=segSize) {
var seg = document.createElement('div');
seg.style.height = segSize+'px';
seg.style.fontSize = '1px';
seg.style.lineHeight = '0';
jscolor.picker.sld.appendChild(seg);
}
jscolor.picker.sldB.appendChild(jscolor.picker.sld);
jscolor.picker.box.appendChild(jscolor.picker.sldB);
jscolor.picker.box.appendChild(jscolor.picker.sldM);
jscolor.picker.padB.appendChild(jscolor.picker.pad);
jscolor.picker.box.appendChild(jscolor.picker.padB);
jscolor.picker.box.appendChild(jscolor.picker.padM);
jscolor.picker.btnS.appendChild(jscolor.picker.btnT);
jscolor.picker.btn.appendChild(jscolor.picker.btnS);
jscolor.picker.box.appendChild(jscolor.picker.btn);
jscolor.picker.boxB.appendChild(jscolor.picker.box);
}
var p = jscolor.picker;
// controls interaction
p.box.onmouseup =
p.box.onmouseout = function() { target.focus(); };
p.box.onmousedown = function() { abortBlur=true; };
p.box.onmousemove = function(e) {
if (holdPad || holdSld) {
holdPad && setPad(e);
holdSld && setSld(e);
if (document.selection) {
document.selection.empty();
} else if (window.getSelection) {
window.getSelection().removeAllRanges();
}
dispatchImmediateChange();
}
};
p.padM.onmouseup =
p.padM.onmouseout = function() { if(holdPad) { holdPad=false; jscolor.fireEvent(valueElement,'change'); } };
p.padM.onmousedown = function(e) {
// if the slider is at the bottom, move it up
switch(modeID) {
case 0: if (THIS.hsv[2] === 0) { THIS.fromHSV(null, null, 1.0); }; break;
case 1: if (THIS.hsv[1] === 0) { THIS.fromHSV(null, 1.0, null); }; break;
}
holdPad=true;
setPad(e);
dispatchImmediateChange();
};
p.sldM.onmouseup =
p.sldM.onmouseout = function() { if(holdSld) { holdSld=false; jscolor.fireEvent(valueElement,'change'); } };
p.sldM.onmousedown = function(e) {
holdSld=true;
setSld(e);
dispatchImmediateChange();
};
// picker
var dims = getPickerDims(THIS);
p.box.style.width = dims[0] + 'px';
p.box.style.height = dims[1] + 'px';
// picker border
p.boxB.style.position = 'absolute';
p.boxB.style.clear = 'both';
p.boxB.style.left = x+'px';
p.boxB.style.top = y+'px';
p.boxB.style.zIndex = THIS.pickerZIndex;
p.boxB.style.border = THIS.pickerBorder+'px solid';
p.boxB.style.borderColor = THIS.pickerBorderColor;
p.boxB.style.background = THIS.pickerFaceColor;
// pad image
p.pad.style.width = jscolor.images.pad[0]+'px';
p.pad.style.height = jscolor.images.pad[1]+'px';
// pad border
p.padB.style.position = 'absolute';
p.padB.style.left = THIS.pickerFace+'px';
p.padB.style.top = THIS.pickerFace+'px';
p.padB.style.border = THIS.pickerInset+'px solid';
p.padB.style.borderColor = THIS.pickerInsetColor;
// pad mouse area
p.padM.style.position = 'absolute';
p.padM.style.left = '0';
p.padM.style.top = '0';
p.padM.style.width = THIS.pickerFace + 2*THIS.pickerInset + jscolor.images.pad[0] + jscolor.images.arrow[0] + 'px';
p.padM.style.height = p.box.style.height;
p.padM.style.cursor = 'crosshair';
// slider image
p.sld.style.overflow = 'hidden';
p.sld.style.width = jscolor.images.sld[0]+'px';
p.sld.style.height = jscolor.images.sld[1]+'px';
// slider border
p.sldB.style.display = THIS.slider ? 'block' : 'none';
p.sldB.style.position = 'absolute';
p.sldB.style.right = THIS.pickerFace+'px';
p.sldB.style.top = THIS.pickerFace+'px';
p.sldB.style.border = THIS.pickerInset+'px solid';
p.sldB.style.borderColor = THIS.pickerInsetColor;
// slider mouse area
p.sldM.style.display = THIS.slider ? 'block' : 'none';
p.sldM.style.position = 'absolute';
p.sldM.style.right = '0';
p.sldM.style.top = '0';
p.sldM.style.width = jscolor.images.sld[0] + jscolor.images.arrow[0] + THIS.pickerFace + 2*THIS.pickerInset + 'px';
p.sldM.style.height = p.box.style.height;
try {
p.sldM.style.cursor = 'pointer';
} catch(eOldIE) {
p.sldM.style.cursor = 'hand';
}
// "close" button
function setBtnBorder() {
var insetColors = THIS.pickerInsetColor.split(/\s+/);
var pickerOutsetColor = insetColors.length < 2 ? insetColors[0] : insetColors[1] + ' ' + insetColors[0] + ' ' + insetColors[0] + ' ' + insetColors[1];
p.btn.style.borderColor = pickerOutsetColor;
}
p.btn.style.display = THIS.pickerClosable ? 'block' : 'none';
p.btn.style.position = 'absolute';
p.btn.style.left = THIS.pickerFace + 'px';
p.btn.style.bottom = THIS.pickerFace + 'px';
p.btn.style.padding = '0 15px';
p.btn.style.height = '18px';
p.btn.style.border = THIS.pickerInset + 'px solid';
setBtnBorder();
p.btn.style.color = THIS.pickerButtonColor;
p.btn.style.font = '12px sans-serif';
p.btn.style.textAlign = 'center';
try {
p.btn.style.cursor = 'pointer';
} catch(eOldIE) {
p.btn.style.cursor = 'hand';
}
p.btn.onmousedown = function () {
THIS.hidePicker();
};
p.btnS.style.lineHeight = p.btn.style.height;
// load images in optimal order
switch(modeID) {
case 0: var padImg = 'hs.png'; break;
case 1: var padImg = 'hv.png'; break;
}
p.padM.style.backgroundImage = "url('"+jscolor.getDir()+"cross.gif')";
p.padM.style.backgroundRepeat = "no-repeat";
p.sldM.style.backgroundImage = "url('"+jscolor.getDir()+"arrow.gif')";
p.sldM.style.backgroundRepeat = "no-repeat";
p.pad.style.backgroundImage = "url('"+jscolor.getDir()+padImg+"')";
p.pad.style.backgroundRepeat = "no-repeat";
p.pad.style.backgroundPosition = "0 0";
// place pointers
redrawPad();
redrawSld();
jscolor.picker.owner = THIS;
document.getElementsByTagName('body')[0].appendChild(p.boxB);
}
function getPickerDims(o) {
var dims = [
2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[0] +
(o.slider ? 2*o.pickerInset + 2*jscolor.images.arrow[0] + jscolor.images.sld[0] : 0),
o.pickerClosable ?
4*o.pickerInset + 3*o.pickerFace + jscolor.images.pad[1] + o.pickerButtonHeight :
2*o.pickerInset + 2*o.pickerFace + jscolor.images.pad[1]
];
return dims;
}
function redrawPad() {
// redraw the pad pointer
switch(modeID) {
case 0: var yComponent = 1; break;
case 1: var yComponent = 2; break;
}
var x = Math.round((THIS.hsv[0]/6) * (jscolor.images.pad[0]-1));
var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.pad[1]-1));
jscolor.picker.padM.style.backgroundPosition =
(THIS.pickerFace+THIS.pickerInset+x - Math.floor(jscolor.images.cross[0]/2)) + 'px ' +
(THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.cross[1]/2)) + 'px';
// redraw the slider image
var seg = jscolor.picker.sld.childNodes;
switch(modeID) {
case 0:
var rgb = HSV_RGB(THIS.hsv[0], THIS.hsv[1], 1);
for(var i=0; i<seg.length; i+=1) {
seg[i].style.backgroundColor = 'rgb('+
(rgb[0]*(1-i/seg.length)*100)+'%,'+
(rgb[1]*(1-i/seg.length)*100)+'%,'+
(rgb[2]*(1-i/seg.length)*100)+'%)';
}
break;
case 1:
var rgb, s, c = [ THIS.hsv[2], 0, 0 ];
var i = Math.floor(THIS.hsv[0]);
var f = i%2 ? THIS.hsv[0]-i : 1-(THIS.hsv[0]-i);
switch(i) {
case 6:
case 0: rgb=[0,1,2]; break;
case 1: rgb=[1,0,2]; break;
case 2: rgb=[2,0,1]; break;
case 3: rgb=[2,1,0]; break;
case 4: rgb=[1,2,0]; break;
case 5: rgb=[0,2,1]; break;
}
for(var i=0; i<seg.length; i+=1) {
s = 1 - 1/(seg.length-1)*i;
c[1] = c[0] * (1 - s*f);
c[2] = c[0] * (1 - s);
seg[i].style.backgroundColor = 'rgb('+
(c[rgb[0]]*100)+'%,'+
(c[rgb[1]]*100)+'%,'+
(c[rgb[2]]*100)+'%)';
}
break;
}
}
function redrawSld() {
// redraw the slider pointer
switch(modeID) {
case 0: var yComponent = 2; break;
case 1: var yComponent = 1; break;
}
var y = Math.round((1-THIS.hsv[yComponent]) * (jscolor.images.sld[1]-1));
jscolor.picker.sldM.style.backgroundPosition =
'0 ' + (THIS.pickerFace+THIS.pickerInset+y - Math.floor(jscolor.images.arrow[1]/2)) + 'px';
}
function isPickerOwner() {
return jscolor.picker && jscolor.picker.owner === THIS;
}
function blurTarget() {
if(valueElement === target) {
THIS.importColor();
}
if(THIS.pickerOnfocus) {
THIS.hidePicker();
}
}
function blurValue() {
if(valueElement !== target) {
THIS.importColor();
}
}
function setPad(e) {
var mpos = jscolor.getRelMousePos(e);
var x = mpos.x - THIS.pickerFace - THIS.pickerInset;
var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
switch(modeID) {
case 0: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), 1 - y/(jscolor.images.pad[1]-1), null, leaveSld); break;
case 1: THIS.fromHSV(x*(6/(jscolor.images.pad[0]-1)), null, 1 - y/(jscolor.images.pad[1]-1), leaveSld); break;
}
}
function setSld(e) {
var mpos = jscolor.getRelMousePos(e);
var y = mpos.y - THIS.pickerFace - THIS.pickerInset;
switch(modeID) {
case 0: THIS.fromHSV(null, null, 1 - y/(jscolor.images.sld[1]-1), leavePad); break;
case 1: THIS.fromHSV(null, 1 - y/(jscolor.images.sld[1]-1), null, leavePad); break;
}
}
function dispatchImmediateChange() {
if (THIS.onImmediateChange) {
if (typeof THIS.onImmediateChange === 'string') {
eval(THIS.onImmediateChange);
} else {
THIS.onImmediateChange(THIS);
}
}
}
var THIS = this;
var modeID = this.pickerMode.toLowerCase()==='hvs' ? 1 : 0;
var abortBlur = false;
var
valueElement = jscolor.fetchElement(this.valueElement),
styleElement = jscolor.fetchElement(this.styleElement);
var
holdPad = false,
holdSld = false;
var
leaveValue = 1<<0,
leaveStyle = 1<<1,
leavePad = 1<<2,
leaveSld = 1<<3;
// target
jscolor.addEvent(target, 'focus', function() {
if(THIS.pickerOnfocus) { THIS.showPicker(); }
});
jscolor.addEvent(target, 'blur', function() {
if(!abortBlur) {
window.setTimeout(function(){ abortBlur || blurTarget(); abortBlur=false; }, 0);
} else {
abortBlur = false;
}
});
// valueElement
if(valueElement) {
var updateField = function() {
THIS.fromString(valueElement.value, leaveValue);
dispatchImmediateChange();
};
jscolor.addEvent(valueElement, 'keyup', updateField);
jscolor.addEvent(valueElement, 'input', updateField);
jscolor.addEvent(valueElement, 'blur', blurValue);
valueElement.setAttribute('autocomplete', 'off');
}
// styleElement
if(styleElement) {
styleElement.jscStyle = {
backgroundImage : styleElement.style.backgroundImage,
backgroundColor : styleElement.style.backgroundColor,
color : styleElement.style.color
};
}
// require images
switch(modeID) {
case 0: jscolor.requireImage('hs.png'); break;
case 1: jscolor.requireImage('hv.png'); break;
}
jscolor.requireImage('cross.gif');
jscolor.requireImage('arrow.gif');
this.importColor();
}
};
jscolor.install();

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

3
modules/uecookie/key.php Normal file
View File

@@ -0,0 +1,3 @@
<?PHP
$this->mkey="freelicense";
?>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
modules/uecookie/logo.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 B

BIN
modules/uecookie/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@@ -0,0 +1,14 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER
* support@mypresta.eu
*/
$().ready(function () {
tinySetup();
});

View File

@@ -0,0 +1,74 @@
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER
* support@mypresta.eu
*/
function tinySetup(config) {
if (typeof tinyMCE === 'undefined') {
setTimeout(function () {
tinySetup(config);
}, 100);
return;
}
if (!config)
config = {};
var editor_selector = 'rte';
//if (typeof config['editor_selector'] !== 'undefined')
//var editor_selector = config['editor_selector'];
if (typeof config['editor_selector'] != 'undefined')
config['selector'] = '.' + config['editor_selector'];
//safari,pagebreak,style,table,advimage,advlink,inlinepopups,media,contextmenu,paste,fullscreen,xhtmlxtras,preview
default_config = {
selector: ".rte",
plugins: "visualblocks, preview searchreplace print insertdatetime, hr charmap colorpicker anchor code link image paste pagebreak table contextmenu filemanager table code media autoresize textcolor emoticons",
toolbar2: "newdocument,print,|,bold,italic,underline,|,strikethrough,superscript,subscript,|,forecolor,colorpicker,backcolor,|,bullist,numlist,outdent,indent",
toolbar1: "styleselect,|,formatselect,|,fontselect,|,fontsizeselect,",
toolbar3: "code,|,table,|,cut,copy,paste,searchreplace,|,blockquote,|,undo,redo,|,link,unlink,anchor,|,image,emoticons,media,|,inserttime,|,preview ",
toolbar4: "visualblocks,|,charmap,|,hr,",
external_filemanager_path: ad + "/filemanager/",
filemanager_title: "File manager",
external_plugins: {"filemanager": ad + "/filemanager/plugin.min.js"},
extended_valid_elements: 'pre[*],script[*],style[*]',
valid_children: "+body[style|script|iframe|section],pre[iframe|section|script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]",
valid_elements: '*[*]',
force_p_newlines: false,
cleanup: false,
forced_root_block: false,
force_br_newlines: true,
relative_urls: false,
convert_urls: true,
remove_script_host: false,
menu: {
edit: {title: 'Edit', items: 'undo redo | cut copy paste | selectall'},
insert: {title: 'Insert', items: 'media image link | pagebreak'},
view: {title: 'View', items: 'visualaid'},
format: {title: 'Format', items: 'bold italic underline strikethrough superscript subscript | formats | removeformat'},
table: {title: 'Table', items: 'inserttable tableprops deletetable | cell row column'},
tools: {title: 'Tools', items: 'code'}
}
}
$.each(default_config, function (index, el) {
if (config[index] === undefined)
config[index] = el;
});
tinyMCE.init(config);
}
$().ready(function () {
tinySetup();
});

138
modules/uecookie/top.tpl Normal file
View File

@@ -0,0 +1,138 @@
{*
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER
* support@mypresta.eu
*}
<script>
{literal}
function setcook() {
var nazwa = 'cookie_ue';
var wartosc = '1';
var expire = new Date();
expire.setMonth(expire.getMonth() + 12);
document.cookie = nazwa + "=" + escape(wartosc) + ";path=/;" + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}
{/literal}
{if Configuration::get('uecookie_close_anim')==1}
{literal}
function closeUeNotify() {
$('#cookieNotice').fadeOut(1500);
setcook();
}
{/literal}
{/if}
{literal}
{/literal}
{if Configuration::get('uecookie_close_anim')==0}
{literal}
function closeUeNotify() {
{/literal}{if $vareu->uecookie_position==2}{literal}
$('#cookieNotice').animate(
{bottom: '-200px'},
2500, function () {
$('#cookieNotice').hide();
});
setcook();
{/literal}{else}{literal}
$('#cookieNotice').animate(
{top: '-200px'},
2500, function () {
$('#cookieNotice').hide();
});
setcook();
{/literal}{/if}{literal}
}
{/literal}
{/if}
{literal}
{/literal}
</script>
<style>
{literal}
.closeFontAwesome:before {
content: "\f00d";
font-family: "FontAwesome";
display: inline-block;
font-size: 23px;
line-height: 23px;
color: {/literal}#{$vareu->uecookie_closex}{literal};
padding-right: 15px;
cursor: pointer;
}
.closeButtonNormal {
{/literal} {if Configuration::get('uecookie_x_where')!=3}display: block;{else}display: inline-block; margin:5px;{/if} {literal}
text-align: center;
padding: 2px 5px;
border-radius: 2px;
color: {/literal}#{$vareu->uecookie_close_txt}{literal};
background: {/literal}#{$vareu->uecookie_close_bg}{literal};
cursor: pointer;
}
#cookieNotice p {
margin: 0px;
padding: 0px;
}
#cookieNoticeContent {
{/literal}
{if Configuration::get('uecookie_padding') != ""}
padding:{Configuration::get('uecookie_padding')}px;
{/if}
{literal}
}
{/literal}
</style>
{if Configuration::get('uecookie_x_fa')==1}
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
{/if}
<div id="cookieNotice" style=" width: 100%; position: fixed; {if $vareu->uecookie_position==2}bottom:0px; box-shadow: 0px 0 10px 0 #{$vareu->uecookie_shadow};{else} top:0px; box-shadow: 0 0 10px 0 #{$vareu->uecookie_shadow};{/if} background: #{$vareu->uecookie_bg}; z-index: 9999; font-size: 14px; line-height: 1.3em; font-family: arial; left: 0px; text-align:center; color:#FFF; opacity: {$vareu->uecookie_opacity} ">
<div id="cookieNoticeContent" style="position:relative; margin:auto; width:100%; display:block;">
<table style="width:100%;">
<tr>
{if Configuration::get('uecookie_x_where')==1}
<td style="width:80px; vertical-align:middle; padding-right:20px; text-align:left;">
{if Configuration::get('uecookie_usex')==1}
<span class="closeFontAwesome" onclick="closeUeNotify()"></span>
{else}
<span class="closeButtonNormal" onclick="closeUeNotify()">{l s='close' mod='uecookie'}</span>
{/if}
</td>
{/if}
<td style="text-align:center;">
{$uecookie nofilter}
</td>
{if Configuration::get('uecookie_x_where')==2}
<td style="width:80px; vertical-align:middle; padding-right:20px; text-align:right;">
{if Configuration::get('uecookie_usex')==1}
<span class="closeFontAwesome" onclick="closeUeNotify()"></span>
{else}
<span class="closeButtonNormal" onclick="closeUeNotify()">{l s='close' mod='uecookie'}</span>
{/if}
</td>
{/if}
</tr>
<tr>
{if Configuration::get('uecookie_x_where')==3}
<td style="width:80px; vertical-align:middle; padding-right:20px; text-align:center;">
{if Configuration::get('uecookie_usex')==1}
<span class="closeFontAwesome" onclick="closeUeNotify()"></span>
{else}
<span class="closeButtonNormal" onclick="closeUeNotify()">{l s='close' mod='uecookie'}</span>
{/if}
</td>
{/if}
</tr>
</table>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>uecookie_77dd54e4f719c6fb0c2e23452eb830da'] = 'Evropská unie Cookie právo';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Tento modul zobrazuje pěkný informace o cookies ve vašem obchodě';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Tento obchod používá cookies a další technologie, takže můžeme vylepšit naše služby na našich stránkách';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Evropská unie Cookie právo';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'Text zde:';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'Uložit nastavení';

View File

@@ -0,0 +1,16 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>uecookie_77dd54e4f719c6fb0c2e23452eb830da'] = 'EU Cookie Gesetz';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Dieses Modul zeigt Informationen über die Verwendung von Cookies in Ihrem Onlineshop';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Für besseren Service auf dieser Seite verwendet unser Shop Cookies. Beim Fortfahren erklären Sie sich mit der Verwendung der Cookies einverstanden.';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'EU Cookie Gesetz';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'Text hier eingeben';
$_MODULE['<{uecookie}prestashop>uecookie_b28354b543375bfa94dabaeda722927f'] = 'Oben';
$_MODULE['<{uecookie}prestashop>uecookie_71f262d796bed1ab30e8a2d5a8ddee6f'] = 'Unten';
$_MODULE['<{uecookie}prestashop>uecookie_368d9ac76af05f714092bc808a426bfc'] = 'Hintergrundfarbe';
$_MODULE['<{uecookie}prestashop>uecookie_ee5488740d9345ae7768b839dd81c608'] = 'Schriftfarbe';
$_MODULE['<{uecookie}prestashop>uecookie_bad6a5dd8c28e6b14f8e986615e3dc98'] = 'Deckkraft';
$_MODULE['<{uecookie}prestashop>uecookie_82968569cca21c585a15d46ee3b58253'] = 'z.B.: 0.5';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'Einstellungen speichern';

View File

@@ -0,0 +1,18 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>top_716f6b30598ba30945d84485e61c1027'] = 'aceptar';
$_MODULE['<{uecookie}prestashop>uecookie_f0e771ccfbef7b8ac8511bb63994feef'] = 'European Union Cookies Law';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Este módulo muestra una buena información sobre las Cookies en su tienda';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Esta tienda utiliza cookies y otras tecnologías para que podamos mejorar su experiencia en nuestros sitios.';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Unión Europea \"Cookie\" ley';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'texto aquí';
$_MODULE['<{uecookie}prestashop>uecookie_52f5e0bc3859bc5f5e25130b6c7e8881'] = 'posición';
$_MODULE['<{uecookie}prestashop>uecookie_b28354b543375bfa94dabaeda722927f'] = 'superior';
$_MODULE['<{uecookie}prestashop>uecookie_71f262d796bed1ab30e8a2d5a8ddee6f'] = 'parte inferior';
$_MODULE['<{uecookie}prestashop>uecookie_368d9ac76af05f714092bc808a426bfc'] = 'Color de fondo';
$_MODULE['<{uecookie}prestashop>uecookie_ee5488740d9345ae7768b839dd81c608'] = 'Color de la sombra.';
$_MODULE['<{uecookie}prestashop>uecookie_bad6a5dd8c28e6b14f8e986615e3dc98'] = 'opacidad';
$_MODULE['<{uecookie}prestashop>uecookie_82968569cca21c585a15d46ee3b58253'] = 'por ejemplo: 0.5 (punto como separador decimal!)';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'Salvar';

View File

@@ -0,0 +1,17 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>top_716f6b30598ba30945d84485e61c1027'] = 'J\'accepte';
$_MODULE['<{uecookie}prestashop>uecookie_f0e771ccfbef7b8ac8511bb63994feef'] = 'Législation Européenne concernant l\'utilisation des cookies';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Ce module affiche un bandeau d\'information sur votre boutique PrestaShop, conformément à la législation Européenne sur l\'utilisation des cookies';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'En poursuivant votre navigation sur ce site, vous devez accepter lutilisation et l\'écriture de Cookies sur votre appareil connecté. Ces Cookies (petits fichiers texte) permettent de suivre votre navigation, actualiser votre panier, vous reconnaitre lors de votre prochaine visite et sécuriser votre connexion. Pour en savoir plus et paramétrer les traceurs: http://www.cnil.fr/vos-obligations/sites-web-cookies-et-autres-traceurs/que-dit-la-loi/';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Législation Européenne concernant l\'utilisation des cookies';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'Texte d\'avertissement aux utilisateurs:';
$_MODULE['<{uecookie}prestashop>uecookie_b28354b543375bfa94dabaeda722927f'] = 'Haut';
$_MODULE['<{uecookie}prestashop>uecookie_71f262d796bed1ab30e8a2d5a8ddee6f'] = 'Bas';
$_MODULE['<{uecookie}prestashop>uecookie_368d9ac76af05f714092bc808a426bfc'] = 'Couleur d\'arrière-plan';
$_MODULE['<{uecookie}prestashop>uecookie_ee5488740d9345ae7768b839dd81c608'] = 'Couleur d\'ombre';
$_MODULE['<{uecookie}prestashop>uecookie_bad6a5dd8c28e6b14f8e986615e3dc98'] = 'Opacité';
$_MODULE['<{uecookie}prestashop>uecookie_82968569cca21c585a15d46ee3b58253'] = '0.5 par exemple';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'Enregistrer les paramètres';

View File

@@ -0,0 +1,17 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['top_716f6b30598ba30945d84485e61c1027'] = 'Ok';
$_MODULE['uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'A modul segítségével engedélyt kérhetsz a sütik alkalmazásához.';
$_MODULE['uecookie_1061fda795260b08e769c493105557f7'] = 'A weboldal cookie-kat alkalmaz, hogy a legjobb felhasználói élményt nyújthassuk Önneknek.';
$_MODULE['uecookie_d12652129be13b431f0e491afac0d4fe'] = 'EU törvény Sütik (cookie) engedélyeztetése a felhasználókkal.';
$_MODULE['uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'Szöveg';
$_MODULE['uecookie_52f5e0bc3859bc5f5e25130b6c7e8881'] = 'Elhelyezkedés:';
$_MODULE['uecookie_b28354b543375bfa94dabaeda722927f'] = 'Felül';
$_MODULE['uecookie_71f262d796bed1ab30e8a2d5a8ddee6f'] = 'Alul';
$_MODULE['uecookie_368d9ac76af05f714092bc808a426bfc'] = 'A szöveg színe:';
$_MODULE['uecookie_ee5488740d9345ae7768b839dd81c608'] = 'Az árnyék színe:';
$_MODULE['uecookie_bad6a5dd8c28e6b14f8e986615e3dc98'] = 'Átlátszóság:';
$_MODULE['uecookie_82968569cca21c585a15d46ee3b58253'] = 'például: 0.5';
$_MODULE['uecookie_43781db5c40ecc39fd718685594f0956'] = 'Mentés';

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,41 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>top_716f6b30598ba30945d84485e61c1027'] = 'Ok';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Questo modulo permette di mostrare una notifica sull\'uso dei cookies nel tuo negozio online';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Questo negozio utilizza i cookie e altre tecnologie per poter migliorare la tua esperienza sui nostri siti.';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Legge dell\'Unione Europea sui cookies.';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'Testo della notifica';
$_MODULE['<{uecookie}prestashop>uecookie_52f5e0bc3859bc5f5e25130b6c7e8881'] = 'Posizione';
$_MODULE['<{uecookie}prestashop>uecookie_b28354b543375bfa94dabaeda722927f'] = 'Sopra';
$_MODULE['<{uecookie}prestashop>uecookie_71f262d796bed1ab30e8a2d5a8ddee6f'] = 'Sotto';
$_MODULE['<{uecookie}prestashop>uecookie_368d9ac76af05f714092bc808a426bfc'] = 'Colore dello sfondo';
$_MODULE['<{uecookie}prestashop>uecookie_ee5488740d9345ae7768b839dd81c608'] = 'Colore dell\'ombra';
$_MODULE['<{uecookie}prestashop>uecookie_bad6a5dd8c28e6b14f8e986615e3dc98'] = 'Opacità';
$_MODULE['<{uecookie}prestashop>uecookie_82968569cca21c585a15d46ee3b58253'] = 'Ad esempio: 0.5';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'Salva';
$_MODULE['<{uecookie}prestashop>uecookie_6dfa0ea04469d9031d6e7352f1400b7a'] = 'Tasto [x] invece di [Ok]';
$_MODULE['<{uecookie}prestashop>uecookie_70da7cda9427c3e084c3182db7c89ba6'] = 'Colore di sfondo del tasto [Ok]';
$_MODULE['<{uecookie}prestashop>uecookie_8febbeb609c9d3d9c4886e6b9b6e88c8'] = 'Colore del tasto [Ok]';
$_MODULE['<{uecookie}prestashop>uecookie_1f5b6799dc7e905388a1f0a0a5379df2'] = 'Colore del tasto [x]';
$_MODULE['<{uecookie}prestashop>uecookie_633703a658469b7fab7f42e04e59d27a'] = '-- seleziona --';
$_MODULE['<{uecookie}prestashop>uecookie_f0e771ccfbef7b8ac8511bb63994feef'] = 'Informativa sui cookies';
$_MODULE['<{uecookie}prestashop>uecookie_722eb8a4b2d0b1c305d6361bcc7564e7'] = 'Notifiche sugli aggiornamenti del modulo';
$_MODULE['<{uecookie}prestashop>uecookie_57206dc27305060c5c29150d3ad00401'] = 'Aggiornamenti del modulo';
$_MODULE['<{uecookie}prestashop>uecookie_d7d90723c19e43735e731a36a2739c8b'] = 'Controlla se ci sono aggiornamenti';
$_MODULE['<{uecookie}prestashop>uecookie_2c872e677f8b5831f20a66c65e7f8966'] = 'Controlla ora';
$_MODULE['<{uecookie}prestashop>uecookie_bafd7322c6e97d25b6299b5d6fe8920b'] = 'No';
$_MODULE['<{uecookie}prestashop>uecookie_93cba07454f06a4a960172bbd6e2a435'] = 'Sì';
$_MODULE['<{uecookie}prestashop>uecookie_c4856f98be9e25fd398b6fa9dadaafbb'] = 'Alcuni template utilizzano degli ancoraggi (hook) fatti ad hoc per costruire la loro sezione footer. In casi come questo potrebbe essere necessario utilizzare l\'opzione \"header\" per far apparire correttamente la notifica sui cookies nel front office.';
$_MODULE['<{uecookie}prestashop>uecookie_2faec1f9f8cc7f8f40d521c4dd574f49'] = 'Attiva';
$_MODULE['<{uecookie}prestashop>uecookie_bcfaccebf745acfd5e75351095a5394a'] = 'Disattiva';
$_MODULE['<{uecookie}prestashop>uecookie_cc6fc347e9fd233bddcb7895e307e9a9'] = 'Scegli questa opzione per attivare la verifica automatica di nuovi aggiornamenti per il modulo su MyPresta.eu';
$_MODULE['<{uecookie}prestashop>uecookie_0d24168598880003b80f9e85b8e1d62a'] = 'Pagina del modulo';
$_MODULE['<{uecookie}prestashop>uecookie_07ac9eab57de962a9518a7545fd475fe'] = 'Questo è un link diretto alla pagina ufficiale del modulo, dove puoi trovare informazioni sugli aggiornamenti del modulo (changelog)';
$_MODULE['<{uecookie}prestashop>uecookie_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'Salva impostazioni';
$_MODULE['<{uecookie}prestashop>uecookie_4c73ce9e52a25c69cf0dce126d548f98'] = 'È disponibile una nuova versione, controlla su MyPresta.eu';
$_MODULE['<{uecookie}prestashop>uecookie_af02b06496e83946e73e69d774782654'] = 'È disponibile una nuova versione!';
$_MODULE['<{uecookie}prestashop>uecookie_358a5fcb448d507b41d7c0a83485973a'] = 'Il modulo non richiede di essere aggiornato';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Vi informiamo che il nostro negozio online utilizza i cookies e non salva nessun dato personale automaticamente, ad eccezione delle informazioni contenute nei cookies.';
$_MODULE['<{uecookie}prestashop>uecookie_5fad873e6abace0a0d8fbc3587b9dc45'] = 'Inserisci la libreria del modulo in';

View File

@@ -0,0 +1,10 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>uecookie_77dd54e4f719c6fb0c2e23452eb830da'] = 'Europese Unie cookie-wetgeving';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Deze module toont een mooie informatie over cookies in uw winkel';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Deze winkel maakt gebruik van cookies en andere technologieën, zodat we kunnen verbeteren uw ervaring op onze sites.';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Europese Unie cookie-wetgeving';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'tekst hier';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'instellingen opslaan';

View File

@@ -0,0 +1,42 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>top_716f6b30598ba30945d84485e61c1027'] = 'zamknij';
$_MODULE['<{uecookie}prestashop>uecookie_f0e771ccfbef7b8ac8511bb63994feef'] = 'Informacja o ciasteczkach';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Moduł dodaje informacje o ciasteczkach do Twojego sklepu internetowego';
$_MODULE['<{uecookie}prestashop>uecookie_57206dc27305060c5c29150d3ad00401'] = 'Aktualizacje modułu';
$_MODULE['<{uecookie}prestashop>uecookie_d7d90723c19e43735e731a36a2739c8b'] = 'Sprawdź aktualizacje';
$_MODULE['<{uecookie}prestashop>uecookie_2c872e677f8b5831f20a66c65e7f8966'] = 'Sprawdź teraz';
$_MODULE['<{uecookie}prestashop>uecookie_722eb8a4b2d0b1c305d6361bcc7564e7'] = 'Notyfikacje o aktualizacji';
$_MODULE['<{uecookie}prestashop>uecookie_633703a658469b7fab7f42e04e59d27a'] = '-- wybierz --';
$_MODULE['<{uecookie}prestashop>uecookie_2faec1f9f8cc7f8f40d521c4dd574f49'] = 'Włącz';
$_MODULE['<{uecookie}prestashop>uecookie_bcfaccebf745acfd5e75351095a5394a'] = 'Wyłącz';
$_MODULE['<{uecookie}prestashop>uecookie_cc6fc347e9fd233bddcb7895e307e9a9'] = 'Włącz tę opcję jeżeli chcesz aby sklep sprawdzał czy są dostępne aktualizacje modułu';
$_MODULE['<{uecookie}prestashop>uecookie_0d24168598880003b80f9e85b8e1d62a'] = 'Strona modułu';
$_MODULE['<{uecookie}prestashop>uecookie_07ac9eab57de962a9518a7545fd475fe'] = 'To jest bezpośredni link do strony modułu, możesz przeczytać tam o wprowadzonych zmianach do modułu';
$_MODULE['<{uecookie}prestashop>uecookie_9daf1fb753b42c3cdc8f1d01669cd6d8'] = 'zapisz ustawienia';
$_MODULE['<{uecookie}prestashop>uecookie_4c73ce9e52a25c69cf0dce126d548f98'] = 'Nowa wersja jest dostępna, sprawdź MyPresta.eu';
$_MODULE['<{uecookie}prestashop>uecookie_af02b06496e83946e73e69d774782654'] = 'nowa wersja jest dostępna!';
$_MODULE['<{uecookie}prestashop>uecookie_358a5fcb448d507b41d7c0a83485973a'] = 'moduł nie wymaga aktualizacji';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Informujemy, iż nasz sklep internetowy wykorzystuje technologię plików cookies a jednocześnie nie zbiera w sposób automatyczny żadnych informacji, z wyjątkiem informacji zawartych w tych plikach (tzw. „ciasteczkach”). ';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Informacja o ciasteczkach';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'Tekst informacji';
$_MODULE['<{uecookie}prestashop>uecookie_52f5e0bc3859bc5f5e25130b6c7e8881'] = 'Pozycja';
$_MODULE['<{uecookie}prestashop>uecookie_b28354b543375bfa94dabaeda722927f'] = 'Góra';
$_MODULE['<{uecookie}prestashop>uecookie_71f262d796bed1ab30e8a2d5a8ddee6f'] = 'Dół';
$_MODULE['<{uecookie}prestashop>uecookie_368d9ac76af05f714092bc808a426bfc'] = 'Kolor tła';
$_MODULE['<{uecookie}prestashop>uecookie_ee5488740d9345ae7768b839dd81c608'] = 'Kolor cienia';
$_MODULE['<{uecookie}prestashop>uecookie_6dfa0ea04469d9031d6e7352f1400b7a'] = 'button [x] zamiast [zamknij]';
$_MODULE['<{uecookie}prestashop>uecookie_bafd7322c6e97d25b6299b5d6fe8920b'] = 'Nie';
$_MODULE['<{uecookie}prestashop>uecookie_93cba07454f06a4a960172bbd6e2a435'] = 'Tak';
$_MODULE['<{uecookie}prestashop>uecookie_1f5b6799dc7e905388a1f0a0a5379df2'] = 'Kolor buttona [x]';
$_MODULE['<{uecookie}prestashop>uecookie_70da7cda9427c3e084c3182db7c89ba6'] = 'Tło buttona [zamknij]';
$_MODULE['<{uecookie}prestashop>uecookie_8febbeb609c9d3d9c4886e6b9b6e88c8'] = 'Kolor buttona [zamknij]';
$_MODULE['<{uecookie}prestashop>uecookie_bad6a5dd8c28e6b14f8e986615e3dc98'] = 'Przeźroczystość';
$_MODULE['<{uecookie}prestashop>uecookie_82968569cca21c585a15d46ee3b58253'] = 'przykładowo 0.5';
$_MODULE['<{uecookie}prestashop>uecookie_5fad873e6abace0a0d8fbc3587b9dc45'] = 'Dodaj bibliotekę modułu do';
$_MODULE['<{uecookie}prestashop>uecookie_251d164643533a527361dbe1a7b9235d'] = 'Stopki';
$_MODULE['<{uecookie}prestashop>uecookie_099fb995346f31c749f6e40db0f395e3'] = 'Nagłówka';
$_MODULE['<{uecookie}prestashop>uecookie_c4856f98be9e25fd398b6fa9dadaafbb'] = 'Niektóre z szablonów nie wykorzystują standardowego hooka \"Footer\". W takich sytuacjach notyfikacja może sie nie pokazywać. Dlatego należy załączyć biblioteki do sekcji \"header\" która istnieje zawsze.';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'zapisz';

View File

@@ -0,0 +1,10 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{uecookie}prestashop>uecookie_77dd54e4f719c6fb0c2e23452eb830da'] = 'Direito Europeu do bolinho união';
$_MODULE['<{uecookie}prestashop>uecookie_fba6a93b46d375a50cb1c58b84899053'] = 'Este módulo exibe uma informação legal sobre cookies em sua loja';
$_MODULE['<{uecookie}prestashop>uecookie_1061fda795260b08e769c493105557f7'] = 'Esta loja usa cookies e outras tecnologias para que possamos melhorar sua experiência em nossos sites.';
$_MODULE['<{uecookie}prestashop>uecookie_d12652129be13b431f0e491afac0d4fe'] = 'Direito Europeu do bolinho união';
$_MODULE['<{uecookie}prestashop>uecookie_4d1d06e0e2f0a31f2806796bf0513c1a'] = 'texto aqui';
$_MODULE['<{uecookie}prestashop>uecookie_43781db5c40ecc39fd718685594f0956'] = 'salvar as configurações';

View File

@@ -0,0 +1,493 @@
<?php
/**
* PrestaShop module created by VEKIA, a guy from official PrestaShop community ;-)
*
* @author VEKIA https://www.prestashop.com/forums/user/132608-vekia/
* @copyright 2010-2019 VEKIA
* @license This program is not free software and you can't resell and redistribute it
*
* CONTACT WITH DEVELOPER
* support@mypresta.eu
*/
class uecookie extends Module
{
function __construct()
{
$this->name = 'uecookie';
$this->tab = 'Blocks';
$this->author = 'MyPresta.eu';
$this->version = '1.7.8';
$this->module_key = '98954d996259885532adabb50f129a9d';
$this->mypresta_link = 'https://mypresta.eu/modules/front-office-features/european-union-cookie-law.html';
$this->dir = '/modules/uecookie/';
$this->setup = $this->getconf();
$this->psver = $this->psversion();
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->l('European Union Cookies Law');
$this->description = $this->l('This module displays a nice information about Cookies in your shop');
$this->checkforupdates();
}
public function checkforupdates($display_msg = 0, $form = 0)
{
// ---------- //
// ---------- //
// VERSION 16 //
// ---------- //
// ---------- //
$this->mkey = "nlc";
if (@file_exists('../modules/' . $this->name . '/key.php')) {
@require_once('../modules/' . $this->name . '/key.php');
} else {
if (@file_exists(dirname(__FILE__) . $this->name . '/key.php')) {
@require_once(dirname(__FILE__) . $this->name . '/key.php');
} else {
if (@file_exists('modules/' . $this->name . '/key.php')) {
@require_once('modules/' . $this->name . '/key.php');
}
}
}
if ($form == 1) {
return '
<div class="panel" id="fieldset_myprestaupdates" style="margin-top:20px;">
' . ($this->psversion() == 6 || $this->psversion() == 7 ? '<div class="panel-heading"><i class="icon-wrench"></i> ' . $this->l('MyPresta updates') . '</div>' : '') . '
<div class="form-wrapper" style="padding:0px!important;">
<div id="module_block_settings">
<fieldset id="fieldset_module_block_settings">
' . ($this->psversion() == 5 ? '<legend style="">' . $this->l('MyPresta updates') . '</legend>' : '') . '
<form action="' . $_SERVER['REQUEST_URI'] . '" method="post">
<label>' . $this->l('Check updates') . '</label>
<div class="margin-form">' . (Tools::isSubmit('submit_settings_updates_now') ? ($this->inconsistency(0) ? '' : '') . $this->checkforupdates(1) : '') . '
<button style="margin: 0px; top: -3px; position: relative;" type="submit" name="submit_settings_updates_now" class="button btn btn-default" />
<i class="process-icon-update"></i>
' . $this->l('Check now') . '
</button>
</div>
<label>' . $this->l('Updates notifications') . '</label>
<div class="margin-form">
<select name="mypresta_updates">
<option value="-">' . $this->l('-- select --') . '</option>
<option value="1" ' . ((int)(Configuration::get('mypresta_updates') == 1) ? 'selected="selected"' : '') . '>' . $this->l('Enable') . '</option>
<option value="0" ' . ((int)(Configuration::get('mypresta_updates') == 0) ? 'selected="selected"' : '') . '>' . $this->l('Disable') . '</option>
</select>
<p class="clear">' . $this->l('Turn this option on if you want to check MyPresta.eu for module updates automatically. This option will display notification about new versions of this addon.') . '</p>
</div>
<label>' . $this->l('Module page') . '</label>
<div class="margin-form">
<a style="font-size:14px;" href="' . $this->mypresta_link . '" target="_blank">' . $this->displayName . '</a>
<p class="clear">' . $this->l('This is direct link to official addon page, where you can read about changes in the module (changelog)') . '</p>
</div>
<div class="panel-footer">
<button type="submit" name="submit_settings_updates"class="button btn btn-default pull-right" />
<i class="process-icon-save"></i>
' . $this->l('Save') . '
</button>
</div>
</form>
</fieldset>
<style>
#fieldset_myprestaupdates {
display:block;clear:both;
float:inherit!important;
}
</style>
</div>
</div>
</div>';
} else {
if (defined('_PS_ADMIN_DIR_')) {
if (Tools::isSubmit('submit_settings_updates')) {
Configuration::updateValue('mypresta_updates', Tools::getValue('mypresta_updates'));
}
if (Configuration::get('mypresta_updates') != 0 || (bool)Configuration::get('mypresta_updates') != false) {
if (Configuration::get('update_' . $this->name) < (date("U") - 259200)) {
$actual_version = uecookieUpdate::verify($this->name, (isset($this->mkey) ? $this->mkey : 'nokey'), $this->version);
}
if (uecookieUpdate::version($this->version) < uecookieUpdate::version(Configuration::get('updatev_' . $this->name)) && Tools::getValue('ajax', 'false') == 'false') {
$this->context->controller->warnings[] = '<strong>' . $this->displayName . '</strong>: ' . $this->l('New version available, check http://MyPresta.eu for more informations') . ' <a href="' . $this->mypresta_link . '">' . $this->l('More details in changelog') . '</a>';
$this->warning = $this->context->controller->warnings[0];
}
} else {
if (Configuration::get('update_' . $this->name) < (date("U") - 259200)) {
$actual_version = uecookieUpdate::verify($this->name, (isset($this->mkey) ? $this->mkey : 'nokey'), $this->version);
}
}
if ($display_msg == 1) {
if (uecookieUpdate::version($this->version) < uecookieUpdate::version(uecookieUpdate::verify($this->name, (isset($this->mkey) ? $this->mkey : 'nokey'), $this->version))) {
return "<span style='color:red; font-weight:bold; font-size:16px; margin-right:10px;'>" . $this->l('New version available!') . "</span>";
} else {
return "<span style='color:green; font-weight:bold; font-size:16px; margin-right:10px;'>" . $this->l('Module is up to date!') . "</span>";
}
}
}
}
}
public function inconsistency()
{
return true;
}
function install()
{
if ($this->psversion() == 7) {
if (parent::install() == false OR ! $this->registerhook('header') OR ! $this->registerHook('footer') OR ! $this->registerHook('top') OR ! Configuration::updateValue('update_' . $this->name, '0') OR ! Configuration::updateValue('uecookie_opacity', '0.5') OR ! Configuration::updateValue('uecookie_position', '1') OR ! Configuration::updateValue('uecookie_bg', '000000') OR ! Configuration::updateValue('uecookie_shadow', 'FFFFFF') OR ! Configuration::updateValue('uecookie_text', array($this->context->language->id => $this->l('This shop uses cookies and other technologies so that we can improve your experience on our sites.')))) {
return false;
} else {
return true;
}
} else {
if (parent::install() == false OR ! $this->registerHook('footer') OR ! $this->registerHook('top')) {
return false;
} else {
return true;
}
}
}
public function psversion($part = 1)
{
$version = _PS_VERSION_;
$exp = $explode = explode(".", $version);
if ($part == 1) {
return $exp[1];
}
if ($part == 2) {
return $exp[2];
}
if ($part == 3) {
return $exp[3];
}
if ($part == 4) {
return $exp[3];
}
}
public function getconf()
{
$var = new stdClass();
$var->uecookie_position = Configuration::get('uecookie_position');
$var->uecookie_bg = Configuration::get('uecookie_bg');
$var->uecookie_shadow = Configuration::get('uecookie_shadow');
$var->uecookie_opacity = Configuration::get('uecookie_opacity');
$var->uecookie_closex = Configuration::get('uecookie_closex');
$var->uecookie_close_txt = Configuration::get('uecookie_close_txt');
$var->uecookie_close_bg = Configuration::get('uecookie_close_bg');
return $var;
}
public function return_dir()
{
return _MODULE_DIR_;
}
public function getContent()
{
$output = "";
if (Tools::isSubmit('module_settings')) {
if (Tools::getValue('uecookie_cleanup') == 1) {
Configuration::deleteByName('uecookie_text');
}
Configuration::updateValue('uecookie_text', $_POST['uecookie_text'], true);
Configuration::updateValue('ueTiny', Tools::getValue('ueTiny', 0));
Configuration::updateValue('uecookie_bg', $_POST['uecookie_bg'], true);
Configuration::updateValue('uecookie_closex', $_POST['uecookie_closex']);
Configuration::updateValue('uecookie_usex', $_POST['uecookie_usex']);
Configuration::updateValue('uecookie_close_bg', $_POST['uecookie_close_bg']);
Configuration::updateValue('uecookie_close_txt', $_POST['uecookie_close_txt']);
Configuration::updateValue('uecookie_shadow', $_POST['uecookie_shadow'], true);
Configuration::updateValue('uecookie_position', Tools::getValue('uecookie_position'), true);
Configuration::updateValue('uecookie_opacity', $_POST['uecookie_opacity'], true);
Configuration::updateValue('uecookie_lib', Tools::getValue('uecookie_lib', 0), true);
Configuration::updateValue('uecookie_x_where', Tools::getValue('uecookie_x_where', 1));
Configuration::updateValue('uecookie_x_fa', Tools::getValue('uecookie_x_fa', 0));
Configuration::updateValue('uecookie_close_anim', Tools::getValue('uecookie_close_anim', 0));
Configuration::updateValue('uecookie_padding', Tools::getValue('uecookie_padding', ''));
}
return $output . $this->displayForm();
}
public function displayForm()
{
$languages = Language::getLanguages(false);
$id_lang_default = (int)Configuration::get('PS_LANG_DEFAULT');
$var = $this->getconf();
global $cookie;
$iso = Language::getIsoById((int)($cookie->id_lang));
$isoTinyMCE = (file_exists(_PS_ROOT_DIR_ . '/js/tiny_mce/langs/' . $iso . '.js') ? $iso : 'en');
$ad = dirname($_SERVER["PHP_SELF"]);
if ($this->psversion() == 7) {
$form = '
<style>
.language_flags {display:none;}
</style>
<script type="text/javascript">
var iso = \'' . $isoTinyMCE . '\' ;
var pathCSS = \'' . _THEME_CSS_DIR_ . '\' ;
var ad = \'' . $ad . '\' ;
</script>
<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/tiny_mce/tiny_mce.js"></script>';
if (Configuration::get('ueTiny') == 1) {
$form .= '<script type="text/javascript" src="../modules/uecookie/tinymce16.inc.js"></script>';
} else {
$form .= '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/admin/tinymce.inc.js"></script>';
$form .= '<script type="text/javascript" src="../modules/uecookie/tinymce-original.js"></script>';
}
}
$position_top = "";
$position_bottom = "";
if (Configuration::get('uecookie_position') == 1) {
$position_top = "checked=\"yes\"";
}
if (Configuration::get('uecookie_position') == 2) {
$position_bottom = "checked=\"yes\"";
}
$values = Configuration::getInt('uecookie_text');
$content = "";
foreach ($languages as $language) {
$content .= '
<div id="ccont_' . $language['id_lang'] . '" style="margin-bottom:30px;">
<h2>' . $language['name'] . '</h2>
<textarea class="rte rtepro" id="uecookie_text_' . $language['id_lang'] . '" name="uecookie_text[' . $language['id_lang'] . ']" style="width:500px; height:300px;">' . (isset($values[$language['id_lang']]) ? $values[$language['id_lang']] : '') . '</textarea>
</div>';
}
$form .= '
<style>
.adminmodules .nobootstrap .margin-form input, .adminmodules .nobootstrap .margin-form select {
max-width: 200px;
}
.adminmodules .nobootstrap .margin-form {
font-size: 1.0em;
}
.page-sidebar:not(.page-sidebar-closed) .nobootstrap {
margin-left: 0px;
}
</style>
<script type="text/javascript" src="../modules/uecookie/jscolor/jscolor.js"></script>
<div class="panel">
<h3><i class="icon-wrench"></i> '.$this->l('I am developing this module for free - if you want').' <a class="btn button label label-danger" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7WE8PTH4ZPYZA">'.$this->l('send me a donation').'</span></a></h3>
<iframe src="//apps.facepages.eu/somestuff/whatsgoingon.html" width="100%" height="150" border="0" style="border:none;"></iframe>
</div>
<form action="' . $_SERVER['REQUEST_URI'] . '" method="post">
<div class="panel">
<fieldset class="nobootstrap">
<h3><i class="icon-wrench"></i> ' . $this->l('UE cookie law') . '</h3>
<label>' . $this->l('What rich text editor you want to use?') . '</label>
<div class="margin-form">
<select name="ueTiny" onChange="$(\'#module_settings_button\').click();">
<option ' . (Configuration::get('ueTiny') == 1 ? 'selected' : '') . ' value="1">' . $this->l('Extended editor delivered with this module') . '</option>
<option ' . (Configuration::get('ueTiny') != 1 ? 'selected' : '') . ' value="0">' . $this->l('Original prestashop\'s editor') . '</option>
</select>
</div>
<div style="margin-bottom:20px; display:block; clear:both; text-align:center; overflow:hidden;">
<div style="display:block; clear:both; margin-bottom:20px;">
<label>' . $this->l('UE cookie law text') . ':</label>
<div class="margin-form">' . $content . '
</div>
</div>
</div>
<label>' . $this->l('Position') . '</label>
<div class="margin-form">
<input type="radio" name="uecookie_position" value="1" ' . $position_top . '/>' . $this->l('top') . '
<input type="radio" name="uecookie_position" value="2" ' . $position_bottom . '/>' . $this->l('bottom') . '
</div>
<label>' . $this->l('Background color') . '</label>
<div class="margin-form">
<input type="text" class="color" name="uecookie_bg" value="' . Configuration::get('uecookie_bg') . '"/>
</div>
<label>' . $this->l('Additional border (padding)') . '</label>
<div class="margin-form">
<input type="text" name="uecookie_padding" value="' . Configuration::get('uecookie_padding') . '"/> px
</div>
<label>' . $this->l('Shadow color') . '</label>
<div class="margin-form">
<input type="text" class="color" name="uecookie_shadow" value="' . Configuration::get('uecookie_shadow') . '"/>
</div>
<label>' . $this->l('Use [X] instead [close] button') . '</label>
<div class="margin-form">
<input type="radio" name="uecookie_usex" value="0" ' . (Configuration::get('uecookie_usex') != 1 ? 'checked' : '') . '/>' . $this->l('No') . '
<input type="radio" name="uecookie_usex" value="1" ' . (Configuration::get('uecookie_usex') == 1 ? 'checked' : '') . '/>' . $this->l('Yes') . '
</div>
<label>' . $this->l('Include font awesome library') . '</label>
<div class="margin-form">
<select name="uecookie_x_fa">
<option ' . (Configuration::get('uecookie_x_fa') == 0 ? 'selected' : '') . ' value="0">' . $this->l('No') . '</option>
<option ' . (Configuration::get('uecookie_x_fa') == 1 ? 'selected' : '') . ' value="1">' . $this->l('Yes') . '</option>
</select>
<div class="bootstrap">
<div class="alert alert-info">
' . $this->l('If you are on PrestaShop 1.7 or if your theme does not support font awesome - to use [x] button you have to include font awesome library. Use this option only if you use [x] button and if your website does not use Font Awesome.') . '
</div>
</div>
</div>
<label>' . $this->l('Color of close [X] button') . '</label>
<div class="margin-form">
<input type="text" class="color" name="uecookie_closex" value="' . Configuration::get('uecookie_closex') . '"/>
</div>
<label>' . $this->l('Background color of [close] button') . '</label>
<div class="margin-form">
<input type="text" class="color" name="uecookie_close_bg" value="' . Configuration::get('uecookie_close_bg') . '"/>
</div>
<label>' . $this->l('Text color of [close] button') . '</label>
<div class="margin-form">
<input type="text" class="color" name="uecookie_close_txt" value="' . Configuration::get('uecookie_close_txt') . '"/>
</div>
<label>' . $this->l('Where to display [close] / [x] button') . '</label>
<div class="margin-form">
<select name="uecookie_x_where">
<option ' . (Configuration::get('uecookie_x_where') == 1 ? 'selected' : '') . ' value="1">' . $this->l('Left hand side') . '</option>
<option ' . (Configuration::get('uecookie_x_where') == 2 ? 'selected' : '') . ' value="2">' . $this->l('Right hand side') . '</option>
<option ' . (Configuration::get('uecookie_x_where') == 3 ? 'selected' : '') . ' value="3">' . $this->l('Center (below the contents)') . '</option>
</select>
</div>
<label>' . $this->l('Opacity') . '</label>
<div class="margin-form">
<input type="text" name="uecookie_opacity" value="' . Configuration::get('uecookie_opacity') . '"/>
' . $this->l('for example: 0.5') . '
</div>
<label>' . $this->l('Close animation') . '</label>
<div class="margin-form">
<select name="uecookie_close_anim">
<option ' . (Configuration::get('uecookie_close_anim') == 0 ? 'selected' : '') . ' value="0">' . $this->l('Slide out') . '</option>
<option ' . (Configuration::get('uecookie_close_anim') == 1 ? 'selected' : '') . ' value="1">' . $this->l('Fade out') . '</option>
</select>
</div>
<label>' . $this->l('Include library to') . '</label>
<div class="margin-form">
<input type="radio" name="uecookie_lib" value="0" ' . (Configuration::get('uecookie_lib') != 1 ? 'checked' : '') . '/>' . $this->l('footer') . '
<input type="radio" name="uecookie_lib" value="1" ' . (Configuration::get('uecookie_lib') == 1 ? 'checked' : '') . '/>' . $this->l('header') . '
<div class="bootstrap">
<div class="alert alert-info">
' . $this->l('Some templates uses own hook to build footer section. In cases like this please use "header" option to include ue notification to front office') . '
</div>
</div>
</div>
<label>' . $this->l('Clean up stored configuration') . '</label>
<div class="margin-form">
<input type="checkbox" name="uecookie_cleanup" value="1" /> ' . $this->l('Remove stored configuration before save new settings') . '
<div class="bootstrap">
<div class="alert alert-info">
' . $this->l('If you will activate this option module will remove existing configuration and then save current configuration to avoid problems with save process of translations. Use this option when you will add new languages to your shop.') . '
</div>
</div>
</div>
<div style="margin-top:20px; clear:both; overflow:hidden; display:block; text-align:center">
<iframe src="//apps.facepages.eu/somestuff/uecookie.html" width="100%" height="150" border="0" style="border:none;"></iframe>
</div>
</fieldset>
<div class="panel-footer ">
<button id="module_settings_button" name="module_settings" class="button btn btn-default pull-right">
<i class="process-icon-save"></i>
'.$this->l('save').'
</button>
</div>
</div>
</form>
';
$form .= $this->checkforupdates(0, 1);
return '' . "<script>/*<![CDATA[*/window.zEmbed||function(e,t){var n,o,d,i,s,a=[],r=document.createElement(\"iframe\");window.zEmbed=function(){a.push(arguments)},window.zE=window.zE||window.zEmbed,r.src=\"javascript:false\",r.title=\"\",r.role=\"presentation\",(r.frameElement||r).style.cssText=\"display: none\",d=document.getElementsByTagName(\"script\"),d=d[d.length-1],d.parentNode.insertBefore(r,d),i=r.contentWindow,s=i.document;try{o=s}catch(c){n=document.domain,r.src='javascript:var d=document.open();d.domain=\"'+n+'\";void(0);',o=s}o.open()._l=function(){var o=this.createElement(\"script\");n&&(this.domain=n),o.id=\"js-iframe-async\",o.src=e,this.t=+new Date,this.zendeskHost=t,this.zEQueue=a,this.body.appendChild(o)},o.write('<body onload=\"document._l();\">'),o.close()}(\"//assets.zendesk.com/embeddable_framework/main.js\",\"prestasupport.zendesk.com\");/*]]>*/</script>" . $form;
}
public function hookFooter($params)
{
if (Configuration::get('uecookie_lib') != 1) {
if ( ! isset($_COOKIE['cookie_ue'])) {
$var = $this->getconf();
global $smarty;
$smarty->assign('vareu', $var);
if ($this->psversion() == 7) {
$smarty->assign(array('uecookie' => $message = Configuration::get('uecookie_text', $this->context->language->id)));
} else {
global $cookie;
$smarty->assign(array('uecookie' => $message = Configuration::get('uecookie_text', $cookie->id_lang)));
}
return $this->display(__file__, 'top.tpl');
}
}
}
public function hookHeader($params)
{
if (Configuration::get('uecookie_lib') == 1) {
if ( ! isset($_COOKIE['cookie_ue'])) {
$var = $this->getconf();
global $smarty;
$smarty->assign('vareu', $var);
if ($this->psversion() == 7) {
$smarty->assign(array('uecookie' => $message = Configuration::get('uecookie_text', $this->context->language->id)));
} else {
global $cookie;
$smarty->assign(array('uecookie' => $message = Configuration::get('uecookie_text', $cookie->id_lang)));
}
return $this->display(__file__, 'top.tpl');
}
}
}
}
class uecookieUpdate extends uecookie
{
public static function version($version)
{
$version = (int)str_replace(".", "", $version);
if (strlen($version) == 3) {
$version = (int)$version . "0";
}
if (strlen($version) == 2) {
$version = (int)$version . "00";
}
if (strlen($version) == 1) {
$version = (int)$version . "000";
}
if (strlen($version) == 0) {
$version = (int)$version . "0000";
}
return (int)$version;
}
public static function encrypt($string)
{
return base64_encode($string);
}
public static function verify($module, $key, $version)
{
if (ini_get("allow_url_fopen")) {
if (function_exists("file_get_contents")) {
$actual_version = @file_get_contents('http://dev.mypresta.eu/update/get.php?module=' . $module . "&version=" . self::encrypt($version) . "&lic=$key&u=" . self::encrypt(_PS_BASE_URL_ . __PS_BASE_URI__));
}
}
Configuration::updateValue("update_" . $module, date("U"));
Configuration::updateValue("updatev_" . $module, $actual_version);
return $actual_version;
}
}
?>