Version Description
- fix style banner
- cookie expire time
- css custom
- vimeo support
- minor fix on label and translation
Download this release
Release Info
Developer | manafactory |
Plugin | Ginger – EU Cookie Law |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.1.1
- admin/js/jquery_lined_textarea/jquery-linedtextarea.css +68 -0
- admin/js/jquery_lined_textarea/jquery-linedtextarea.js +126 -0
- admin/partial/banner.php +42 -0
- admin/partial/general.php +38 -1
- admin/partial/policy.php +5 -0
- front/css/cookies-enabler-dialog.css +360 -0
- front/css/cookies-enabler.css +215 -2
- front/gingerfront.utils.php +68 -38
- front/js/cookies-enabler.js +0 -449
- ginger-eu-cookie-law.php +1 -1
- languages/ginger-it_IT.mo +0 -0
- languages/ginger-it_IT.po +93 -28
- readme.txt +11 -3
admin/js/jquery_lined_textarea/jquery-linedtextarea.css
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Lined Textarea Plugin
|
3 |
+
* http://alan.blog-city.com/jquerylinedtextarea.htm
|
4 |
+
*
|
5 |
+
* Copyright (c) 2010 Alan Williamson
|
6 |
+
*
|
7 |
+
* Released under the MIT License:
|
8 |
+
* http://www.opensource.org/licenses/mit-license.php
|
9 |
+
*
|
10 |
+
* Usage:
|
11 |
+
* Displays a line number count column to the left of the textarea
|
12 |
+
*
|
13 |
+
* Class up your textarea with a given class, or target it directly
|
14 |
+
* with JQuery Selectors
|
15 |
+
*
|
16 |
+
* $(".lined").linedtextarea({
|
17 |
+
* selectedLine: 10,
|
18 |
+
* selectedClass: 'lineselect'
|
19 |
+
* });
|
20 |
+
*
|
21 |
+
*/
|
22 |
+
|
23 |
+
.linedwrap {
|
24 |
+
border: 1px solid #c0c0c0;
|
25 |
+
padding: 3px;
|
26 |
+
}
|
27 |
+
|
28 |
+
.linedtextarea {
|
29 |
+
padding: 0px;
|
30 |
+
margin: 0px;
|
31 |
+
}
|
32 |
+
|
33 |
+
.linedtextarea textarea, .linedwrap .codelines .lineno {
|
34 |
+
font-size: 10pt;
|
35 |
+
font-family: monospace;
|
36 |
+
line-height: normal !important;
|
37 |
+
}
|
38 |
+
|
39 |
+
.linedtextarea textarea {
|
40 |
+
padding-right:0.3em;
|
41 |
+
padding-top:0.3em;
|
42 |
+
border: 0;
|
43 |
+
}
|
44 |
+
|
45 |
+
.linedwrap .lines {
|
46 |
+
margin-top: 0px;
|
47 |
+
width: 50px;
|
48 |
+
float: left;
|
49 |
+
overflow: hidden;
|
50 |
+
border-right: 1px solid #c0c0c0;
|
51 |
+
margin-right: 10px;
|
52 |
+
}
|
53 |
+
|
54 |
+
.linedwrap .codelines {
|
55 |
+
padding-top: 5px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.linedwrap .codelines .lineno {
|
59 |
+
color:#AAAAAA;
|
60 |
+
padding-right: 0.5em;
|
61 |
+
padding-top: 0.0em;
|
62 |
+
text-align: right;
|
63 |
+
white-space: nowrap;
|
64 |
+
}
|
65 |
+
|
66 |
+
.linedwrap .codelines .lineselect {
|
67 |
+
color: red;
|
68 |
+
}
|
admin/js/jquery_lined_textarea/jquery-linedtextarea.js
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery Lined Textarea Plugin
|
3 |
+
* http://alan.blog-city.com/jquerylinedtextarea.htm
|
4 |
+
*
|
5 |
+
* Copyright (c) 2010 Alan Williamson
|
6 |
+
*
|
7 |
+
* Version:
|
8 |
+
* $Id: jquery-linedtextarea.js 464 2010-01-08 10:36:33Z alan $
|
9 |
+
*
|
10 |
+
* Released under the MIT License:
|
11 |
+
* http://www.opensource.org/licenses/mit-license.php
|
12 |
+
*
|
13 |
+
* Usage:
|
14 |
+
* Displays a line number count column to the left of the textarea
|
15 |
+
*
|
16 |
+
* Class up your textarea with a given class, or target it directly
|
17 |
+
* with JQuery Selectors
|
18 |
+
*
|
19 |
+
* $(".lined").linedtextarea({
|
20 |
+
* selectedLine: 10,
|
21 |
+
* selectedClass: 'lineselect'
|
22 |
+
* });
|
23 |
+
*
|
24 |
+
* History:
|
25 |
+
* - 2010.01.08: Fixed a Google Chrome layout problem
|
26 |
+
* - 2010.01.07: Refactored code for speed/readability; Fixed horizontal sizing
|
27 |
+
* - 2010.01.06: Initial Release
|
28 |
+
*
|
29 |
+
*/
|
30 |
+
(function($) {
|
31 |
+
|
32 |
+
$.fn.linedtextarea = function(options) {
|
33 |
+
|
34 |
+
// Get the Options
|
35 |
+
var opts = $.extend({}, $.fn.linedtextarea.defaults, options);
|
36 |
+
|
37 |
+
|
38 |
+
/*
|
39 |
+
* Helper function to make sure the line numbers are always
|
40 |
+
* kept up to the current system
|
41 |
+
*/
|
42 |
+
var fillOutLines = function(codeLines, h, lineNo){
|
43 |
+
while ( (codeLines.height() - h ) <= 0 ){
|
44 |
+
if ( lineNo == opts.selectedLine )
|
45 |
+
codeLines.append("<div class='lineno lineselect'>" + lineNo + "</div>");
|
46 |
+
else
|
47 |
+
codeLines.append("<div class='lineno'>" + lineNo + "</div>");
|
48 |
+
|
49 |
+
lineNo++;
|
50 |
+
}
|
51 |
+
return lineNo;
|
52 |
+
};
|
53 |
+
|
54 |
+
|
55 |
+
/*
|
56 |
+
* Iterate through each of the elements are to be applied to
|
57 |
+
*/
|
58 |
+
return this.each(function() {
|
59 |
+
var lineNo = 1;
|
60 |
+
var textarea = $(this);
|
61 |
+
|
62 |
+
/* Turn off the wrapping of as we don't want to screw up the line numbers */
|
63 |
+
textarea.attr("wrap", "off");
|
64 |
+
textarea.css({resize:'none'});
|
65 |
+
var originalTextAreaWidth = textarea.outerWidth();
|
66 |
+
|
67 |
+
/* Wrap the text area in the elements we need */
|
68 |
+
textarea.wrap("<div class='linedtextarea'></div>");
|
69 |
+
var linedTextAreaDiv = textarea.parent().wrap("<div class='linedwrap' style='width:" + originalTextAreaWidth + "px'></div>");
|
70 |
+
var linedWrapDiv = linedTextAreaDiv.parent();
|
71 |
+
|
72 |
+
linedWrapDiv.prepend("<div class='lines' style='width:50px'></div>");
|
73 |
+
|
74 |
+
var linesDiv = linedWrapDiv.find(".lines");
|
75 |
+
linesDiv.height( textarea.height() + 6 );
|
76 |
+
|
77 |
+
|
78 |
+
/* Draw the number bar; filling it out where necessary */
|
79 |
+
linesDiv.append( "<div class='codelines'></div>" );
|
80 |
+
var codeLinesDiv = linesDiv.find(".codelines");
|
81 |
+
lineNo = fillOutLines( codeLinesDiv, linesDiv.height(), 1 );
|
82 |
+
|
83 |
+
/* Move the textarea to the selected line */
|
84 |
+
if ( opts.selectedLine != -1 && !isNaN(opts.selectedLine) ){
|
85 |
+
var fontSize = parseInt( textarea.height() / (lineNo-2) );
|
86 |
+
var position = parseInt( fontSize * opts.selectedLine ) - (textarea.height()/2);
|
87 |
+
textarea[0].scrollTop = position;
|
88 |
+
}
|
89 |
+
|
90 |
+
|
91 |
+
/* Set the width */
|
92 |
+
var sidebarWidth = linesDiv.outerWidth();
|
93 |
+
var paddingHorizontal = parseInt( linedWrapDiv.css("border-left-width") ) + parseInt( linedWrapDiv.css("border-right-width") ) + parseInt( linedWrapDiv.css("padding-left") ) + parseInt( linedWrapDiv.css("padding-right") );
|
94 |
+
var linedWrapDivNewWidth = originalTextAreaWidth - paddingHorizontal;
|
95 |
+
var textareaNewWidth = originalTextAreaWidth - sidebarWidth - paddingHorizontal - 20;
|
96 |
+
|
97 |
+
textarea.width( textareaNewWidth );
|
98 |
+
linedWrapDiv.width( linedWrapDivNewWidth );
|
99 |
+
|
100 |
+
|
101 |
+
|
102 |
+
/* React to the scroll event */
|
103 |
+
textarea.scroll( function(tn){
|
104 |
+
var domTextArea = $(this)[0];
|
105 |
+
var scrollTop = domTextArea.scrollTop;
|
106 |
+
var clientHeight = domTextArea.clientHeight;
|
107 |
+
codeLinesDiv.css( {'margin-top': (-1*scrollTop) + "px"} );
|
108 |
+
lineNo = fillOutLines( codeLinesDiv, scrollTop + clientHeight, lineNo );
|
109 |
+
});
|
110 |
+
|
111 |
+
|
112 |
+
/* Should the textarea get resized outside of our control */
|
113 |
+
textarea.resize( function(tn){
|
114 |
+
var domTextArea = $(this)[0];
|
115 |
+
linesDiv.height( domTextArea.clientHeight + 6 );
|
116 |
+
});
|
117 |
+
|
118 |
+
});
|
119 |
+
};
|
120 |
+
|
121 |
+
// default options
|
122 |
+
$.fn.linedtextarea.defaults = {
|
123 |
+
selectedLine: -1,
|
124 |
+
selectedClass: 'lineselect'
|
125 |
+
};
|
126 |
+
})(jQuery);
|
admin/partial/banner.php
CHANGED
@@ -194,6 +194,7 @@
|
|
194 |
</fieldset>
|
195 |
</td>
|
196 |
</tr>
|
|
|
197 |
<tr>
|
198 |
<th scope="row" style="padding-left:20px;"><?php _e("Button", "ginger"); ?></th>
|
199 |
<td>
|
@@ -204,6 +205,16 @@
|
|
204 |
</fieldset>
|
205 |
</td>
|
206 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
<tr>
|
208 |
<th scope="row" style="padding-left:20px;"><?php _e("Link", "ginger"); ?></th>
|
209 |
<td>
|
@@ -214,5 +225,36 @@
|
|
214 |
</fieldset>
|
215 |
</td>
|
216 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
</tbody>
|
218 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
</fieldset>
|
195 |
</td>
|
196 |
</tr>
|
197 |
+
|
198 |
<tr>
|
199 |
<th scope="row" style="padding-left:20px;"><?php _e("Button", "ginger"); ?></th>
|
200 |
<td>
|
205 |
</fieldset>
|
206 |
</td>
|
207 |
</tr>
|
208 |
+
<tr>
|
209 |
+
<th scope="row" style="padding-left:20px;"><?php _e("Button Text Color", "ginger"); ?></th>
|
210 |
+
<td>
|
211 |
+
<fieldset>
|
212 |
+
<legend class="screen-reader-text"><span><?php _e("Button Text Color", "ginger"); ?></span></legend>
|
213 |
+
<p><label><input type="text" name="button_text_color" value="<?php echo $options["button_text_color"]; ?>"
|
214 |
+
class="color-field"></label></p>
|
215 |
+
</fieldset>
|
216 |
+
</td>
|
217 |
+
</tr>
|
218 |
<tr>
|
219 |
<th scope="row" style="padding-left:20px;"><?php _e("Link", "ginger"); ?></th>
|
220 |
<td>
|
225 |
</fieldset>
|
226 |
</td>
|
227 |
</tr>
|
228 |
+
<tr>
|
229 |
+
<td colspan="2">
|
230 |
+
<h2><?php _e("Custom CSS", "ginger"); ?></h2>
|
231 |
+
</td>
|
232 |
+
</tr>
|
233 |
+
<tr>
|
234 |
+
<th scope="row" style="padding-left:20px;"><?php _e("Insert here your banner custom CSS", "ginger"); ?></th>
|
235 |
+
<td>
|
236 |
+
<fieldset>
|
237 |
+
<legend class="screen-reader-text"><span><?php _e("Insert here your banner custom CSS", "ginger"); ?></span></legend>
|
238 |
+
<p>
|
239 |
+
<label>
|
240 |
+
<textarea name = "ginger_css" cols="100" rows="6" class="lined"><?php echo $options["ginger_css"];?></textarea>
|
241 |
+
|
242 |
+
</label>
|
243 |
+
</p>
|
244 |
+
</fieldset>
|
245 |
+
</td>
|
246 |
+
</tr>
|
247 |
</tbody>
|
248 |
</table>
|
249 |
+
|
250 |
+
|
251 |
+
<script src="<?php echo plugins_url('/ginger/admin/js/jquery_lined_textarea/jquery-linedtextarea.js')?>"></script>
|
252 |
+
<link href="<?php echo plugins_url('/ginger/admin/js/jquery_lined_textarea/jquery-linedtextarea.css')?>" type="text/css" rel="stylesheet" />
|
253 |
+
|
254 |
+
<script>
|
255 |
+
jQuery(function() {
|
256 |
+
jQuery(".lined").linedtextarea(
|
257 |
+
{selectedLine: 1}
|
258 |
+
);
|
259 |
+
});
|
260 |
+
</script>
|
admin/partial/general.php
CHANGED
@@ -43,6 +43,11 @@
|
|
43 |
<input name="ginger_cache" type="radio" value="no" class="tog" <?php if($options["ginger_cache"] == "no") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
|
44 |
</label>
|
45 |
</p>
|
|
|
|
|
|
|
|
|
|
|
46 |
</fieldset>
|
47 |
</td>
|
48 |
</tr>
|
@@ -67,7 +72,13 @@
|
|
67 |
(<?php _e("Cookies are disabled only if explicitly requested", "ginger"); ?>)
|
68 |
</small>
|
69 |
</p>
|
|
|
|
|
|
|
|
|
|
|
70 |
</fieldset>
|
|
|
71 |
</td>
|
72 |
</tr>
|
73 |
<tr>
|
@@ -131,7 +142,7 @@
|
|
131 |
</td>
|
132 |
</tr>
|
133 |
<tr>
|
134 |
-
<th scope="row" style="padding-left:20px;"><?php _e("
|
135 |
<td>
|
136 |
<fieldset>
|
137 |
<legend class="screen-reader-text">
|
@@ -147,6 +158,32 @@
|
|
147 |
<input name="ginger_keep_banner" type="radio" value="0" class="tog" <?php if($options["ginger_keep_banner"] == "0") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
|
148 |
</label>
|
149 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
</fieldset>
|
151 |
</td>
|
152 |
</tr>
|
43 |
<input name="ginger_cache" type="radio" value="no" class="tog" <?php if($options["ginger_cache"] == "no") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
|
44 |
</label>
|
45 |
</p>
|
46 |
+
<p>
|
47 |
+
<small style="padding-top: 20px">
|
48 |
+
<i>(<?php _e("If you have a caching system (W3TC, Varnish, WP Super Cash...) choose YES. Ginger will optimize websites performances", "ginger"); ?>)</i>
|
49 |
+
</small>
|
50 |
+
</p>
|
51 |
</fieldset>
|
52 |
</td>
|
53 |
</tr>
|
72 |
(<?php _e("Cookies are disabled only if explicitly requested", "ginger"); ?>)
|
73 |
</small>
|
74 |
</p>
|
75 |
+
<p>
|
76 |
+
<small style="padding-top: 20px">
|
77 |
+
<i>(<?php _e("Choose OPT-IN if you're in Italy", "ginger"); ?>)</i>
|
78 |
+
</small>
|
79 |
+
</p>
|
80 |
</fieldset>
|
81 |
+
|
82 |
</td>
|
83 |
</tr>
|
84 |
<tr>
|
142 |
</td>
|
143 |
</tr>
|
144 |
<tr>
|
145 |
+
<th scope="row" style="padding-left:20px;"><?php _e("Stress Mode", "ginger"); ?></th>
|
146 |
<td>
|
147 |
<fieldset>
|
148 |
<legend class="screen-reader-text">
|
158 |
<input name="ginger_keep_banner" type="radio" value="0" class="tog" <?php if($options["ginger_keep_banner"] == "0") echo ' checked="checked" '; ?>><?php _e("No", "ginger"); ?>
|
159 |
</label>
|
160 |
</p>
|
161 |
+
<p>
|
162 |
+
<small style="padding-top: 20px">
|
163 |
+
<i>(<?php _e("If cookies are not accepted the banner will continues to be shown minimized", "ginger"); ?>)</i>
|
164 |
+
</small>
|
165 |
+
</p>
|
166 |
+
</fieldset>
|
167 |
+
</td>
|
168 |
+
</tr>
|
169 |
+
<tr>
|
170 |
+
<th scope="row" style="padding-left:20px;"><?php _e("Cookies Duration", "ginger"); ?></th>
|
171 |
+
<td>
|
172 |
+
<fieldset>
|
173 |
+
<legend class="screen-reader-text">
|
174 |
+
<span><?php _e("Select cookies duration", "ginger"); ?></span>
|
175 |
+
</legend>
|
176 |
+
<p>
|
177 |
+
<label><?php _e("Select cookies duration", "ginger"); ?></label>
|
178 |
+
<select name="ginger_cookie_duration">
|
179 |
+
<option value=""><?php _e('Select', 'ginger')?></option>
|
180 |
+
<option value="1" <?php if ($options['ginger_cookie_duration']=='1'){echo 'selected';}?>><?php _e('1 Day', 'ginger')?></option>
|
181 |
+
<option value="30" <?php if ($options['ginger_cookie_duration']=='30'){echo 'selected';}?>><?php _e('1 Month', 'ginger')?></option>
|
182 |
+
<option value="365" <?php if ($options['ginger_cookie_duration']=='365'){echo 'selected';}?>><?php _e('1 Year', 'ginger')?></option>
|
183 |
+
<option value="365000" <?php if ($options['ginger_cookie_duration']=='365000'){echo 'selected';}?>><?php _e('For ever', 'ginger')?></option>
|
184 |
+
</select>
|
185 |
+
</p>
|
186 |
+
|
187 |
</fieldset>
|
188 |
</td>
|
189 |
</tr>
|
admin/partial/policy.php
CHANGED
@@ -106,6 +106,11 @@
|
|
106 |
</fieldset>
|
107 |
</label>
|
108 |
</p>
|
|
|
|
|
|
|
|
|
|
|
109 |
</div>
|
110 |
</td>
|
111 |
</tr>
|
106 |
</fieldset>
|
107 |
</label>
|
108 |
</p>
|
109 |
+
<p>
|
110 |
+
<small style="padding-top: 20px">
|
111 |
+
<b>(<?php _e("If you create a new page this will be setted as Privacy Policy Page", "ginger"); ?>)</b>
|
112 |
+
</small>
|
113 |
+
</p>
|
114 |
</div>
|
115 |
</td>
|
116 |
</tr>
|
front/css/cookies-enabler-dialog.css
ADDED
@@ -0,0 +1,360 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*{
|
2 |
+
box-sizing: border-box;
|
3 |
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
}
|
6 |
+
|
7 |
+
p{
|
8 |
+
margin-bottom: 1em;
|
9 |
+
}
|
10 |
+
|
11 |
+
.ginger-banner{
|
12 |
+
position: fixed;
|
13 |
+
left: 0;
|
14 |
+
right: 0;
|
15 |
+
background-color: white;
|
16 |
+
padding: 1em;
|
17 |
+
color: #232323;
|
18 |
+
font-size: 1em;
|
19 |
+
z-index: 99999998 !important;
|
20 |
+
}
|
21 |
+
|
22 |
+
.ginger-banner.top{
|
23 |
+
top: 0;
|
24 |
+
border-bottom: 1px solid #000;
|
25 |
+
}
|
26 |
+
.ginger-banner.bottom{
|
27 |
+
bottom: 0;
|
28 |
+
border-top: 1px solid #000;
|
29 |
+
}
|
30 |
+
.ginger-banner.dialog{
|
31 |
+
width: 300px;
|
32 |
+
border: 1px solid #000;
|
33 |
+
box-shadow:1px 1px 2px #000;
|
34 |
+
-moz-box-shadow:1px 1px 2px #000;
|
35 |
+
-webkit-box-shadow:1px 1px 2px #000;
|
36 |
+
right: 10px;
|
37 |
+
left: initial;
|
38 |
+
}
|
39 |
+
.ginger-banner.dialog.top{
|
40 |
+
top: 10px;
|
41 |
+
}
|
42 |
+
.ginger-banner.dialog.bottom{
|
43 |
+
bottom: 10px;
|
44 |
+
}
|
45 |
+
.ginger-banner div.ginger-button-wrapper{
|
46 |
+
width: 100%;
|
47 |
+
float: left;
|
48 |
+
}
|
49 |
+
.ginger-banner .ginger-button-wrapper div.ginger-button{
|
50 |
+
margin-left: auto;
|
51 |
+
margin-right: auto;
|
52 |
+
width: 40%;
|
53 |
+
}
|
54 |
+
.ginger-accept, .ginger-dismiss, .ginger-disable{
|
55 |
+
width: 160px;
|
56 |
+
float: left;
|
57 |
+
text-align: center;
|
58 |
+
margin-top: 8px !important;
|
59 |
+
margin-bottom: 6px !important;
|
60 |
+
display: block;
|
61 |
+
padding: 8px 16px !important;
|
62 |
+
background-color: #f1d600;
|
63 |
+
color: #111;
|
64 |
+
margin-right: 12px !important;
|
65 |
+
text-decoration: none !important;
|
66 |
+
font-size:12pt !important;
|
67 |
+
font-weight: 600;
|
68 |
+
letter-spacing: -0.05em;
|
69 |
+
transition:background 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s;
|
70 |
+
-moz-transition:background 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, -moz-box-shadow 0.2s ease-in-out 0s;
|
71 |
+
-webkit-transition:background 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;
|
72 |
+
}
|
73 |
+
|
74 |
+
.ginger-disable{
|
75 |
+
background-color: #aaa;
|
76 |
+
}
|
77 |
+
|
78 |
+
.ginger-accept:hover,
|
79 |
+
.ginger-dismiss:hover,
|
80 |
+
.ginger-disable:hover{
|
81 |
+
margin-top: 8px !important;
|
82 |
+
margin-bottom: 6px !important;
|
83 |
+
display: block;
|
84 |
+
padding: 8px 16px !important;
|
85 |
+
background-color: #f1d600 !important;
|
86 |
+
color: #111 !important;
|
87 |
+
margin-right: 12px !important;
|
88 |
+
text-decoration: none !important;
|
89 |
+
font-size:12pt !important;
|
90 |
+
font-weight: 600;
|
91 |
+
letter-spacing: -0.05em;
|
92 |
+
|
93 |
+
box-shadow:1px 1px 2px #000;
|
94 |
+
-moz-box-shadow:1px 1px 2px #000;
|
95 |
+
-webkit-box-shadow:1px 1px 2px #000;
|
96 |
+
|
97 |
+
transition:background 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, box-shadow 0.2s ease-in-out 0s;
|
98 |
+
-moz-transition:background 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, -moz-box-shadow 0.2s ease-in-out 0s;
|
99 |
+
-webkit-transition:background 0.2s ease-in-out 0s, color 0.2s ease-in-out 0s, -webkit-box-shadow 0.2s ease-in-out 0s;
|
100 |
+
}
|
101 |
+
|
102 |
+
.ginger-dismiss{
|
103 |
+
position: absolute;
|
104 |
+
font-size: .8em;
|
105 |
+
right: 1em;
|
106 |
+
top: 1em;
|
107 |
+
background-color: #ccc;
|
108 |
+
color: #333;
|
109 |
+
}
|
110 |
+
|
111 |
+
.ginger-iframe-placeholder{
|
112 |
+
padding: 1em;
|
113 |
+
background-color: #eee;
|
114 |
+
margin: 1em 0;
|
115 |
+
text-align: center;
|
116 |
+
}
|
117 |
+
.ginger-iframe-placeholder a.ginger-accept{
|
118 |
+
float: none;
|
119 |
+
margin-left: auto;
|
120 |
+
margin-right: auto !important;
|
121 |
+
}
|
122 |
+
|
123 |
+
.ginger-iframe-placeholder p{
|
124 |
+
margin: 0;
|
125 |
+
}
|
126 |
+
|
127 |
+
iframe{
|
128 |
+
width: 100%;
|
129 |
+
}
|
130 |
+
|
131 |
+
.ginger_banner-wrapper {
|
132 |
+
z-index: 9001;
|
133 |
+
position: relative
|
134 |
+
}
|
135 |
+
|
136 |
+
.ginger_container .ginger_btn {
|
137 |
+
cursor: pointer;
|
138 |
+
text-align: center;
|
139 |
+
font-size: 0.6em;
|
140 |
+
transition: font-size 200ms;
|
141 |
+
line-height: 1em
|
142 |
+
}
|
143 |
+
|
144 |
+
.ginger_container .ginger_message {
|
145 |
+
font-size: 0.6em;
|
146 |
+
transition: font-size 200ms;
|
147 |
+
margin: 0;
|
148 |
+
padding: 0;
|
149 |
+
line-height: 1.5em
|
150 |
+
}
|
151 |
+
|
152 |
+
.ginger_container .ginger_logo:hover, .ginger_container .ginger_logo:active {
|
153 |
+
opacity: 1
|
154 |
+
}
|
155 |
+
|
156 |
+
@media screen and (min-width: 500px) {
|
157 |
+
.ginger_container .ginger_btn {
|
158 |
+
font-size: 0.8em
|
159 |
+
}
|
160 |
+
|
161 |
+
.ginger_container .ginger_message {
|
162 |
+
font-size: 0.8em
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
@media screen and (min-width: 768px) {
|
167 |
+
.ginger_container .ginger_btn {
|
168 |
+
font-size: 1em
|
169 |
+
}
|
170 |
+
|
171 |
+
.ginger_container .ginger_message {
|
172 |
+
font-size: 1em;
|
173 |
+
line-height: 1em
|
174 |
+
}
|
175 |
+
}
|
176 |
+
|
177 |
+
@media screen and (min-width: 992px) {
|
178 |
+
.ginger_container .ginger_message {
|
179 |
+
font-size: 1em
|
180 |
+
}
|
181 |
+
}
|
182 |
+
|
183 |
+
@media print {
|
184 |
+
.ginger_banner-wrapper, .ginger_container {
|
185 |
+
display: none
|
186 |
+
}
|
187 |
+
}
|
188 |
+
|
189 |
+
.ginger_container {
|
190 |
+
position: fixed;
|
191 |
+
overflow: hidden;
|
192 |
+
padding: 10px 15px 50px
|
193 |
+
}
|
194 |
+
|
195 |
+
.ginger_container.bottom {
|
196 |
+
position: fixed;
|
197 |
+
left: 0;
|
198 |
+
right: 0;
|
199 |
+
bottom: 0;
|
200 |
+
overflow: hidden;
|
201 |
+
padding: 10px 15px 50px
|
202 |
+
}
|
203 |
+
.ginger_container.top {
|
204 |
+
position: fixed;
|
205 |
+
left: 0;
|
206 |
+
right: 0;
|
207 |
+
top:0;
|
208 |
+
overflow: hidden;
|
209 |
+
padding: 10px 15px 50px
|
210 |
+
}
|
211 |
+
|
212 |
+
.ginger_container .ginger_btn {
|
213 |
+
padding: 8px 16px;
|
214 |
+
background-color: #f1d600;
|
215 |
+
text-align: center;
|
216 |
+
float: left;
|
217 |
+
width: 100%;
|
218 |
+
margin-top: 10px;
|
219 |
+
}
|
220 |
+
|
221 |
+
.ginger_container .ginger_btn.ginger-disable{
|
222 |
+
|
223 |
+
}
|
224 |
+
@media screen and (min-width: 500px) {
|
225 |
+
.ginger_container {
|
226 |
+
width: 300px;
|
227 |
+
}
|
228 |
+
.ginger_container.bottom {
|
229 |
+
left: initial;
|
230 |
+
right: 20px;
|
231 |
+
bottom: 20px;
|
232 |
+
width: 300px;
|
233 |
+
padding-bottom: 77px
|
234 |
+
}
|
235 |
+
.ginger_container.top {
|
236 |
+
left: initial;
|
237 |
+
right: 20px;
|
238 |
+
top: 20px;
|
239 |
+
width: 300px;
|
240 |
+
}
|
241 |
+
|
242 |
+
.ginger_container .ginger_logo {
|
243 |
+
display: block;
|
244 |
+
position: absolute;
|
245 |
+
bottom: 8px;
|
246 |
+
left: calc(50% - 50px)
|
247 |
+
}
|
248 |
+
}
|
249 |
+
|
250 |
+
@media screen and (min-width: 768px) {
|
251 |
+
.ginger_container {
|
252 |
+
padding-bottom: 87px
|
253 |
+
}
|
254 |
+
|
255 |
+
.ginger_container .ginger_message {
|
256 |
+
font-size: 1em
|
257 |
+
}
|
258 |
+
}
|
259 |
+
|
260 |
+
.ginger_container {
|
261 |
+
background: #fff;
|
262 |
+
color: #999;
|
263 |
+
font-size: 17px;
|
264 |
+
box-sizing: border-box;
|
265 |
+
border: 1px solid #ccc
|
266 |
+
}
|
267 |
+
|
268 |
+
.ginger_container.dark{
|
269 |
+
background: #222;
|
270 |
+
color: #fff;
|
271 |
+
}
|
272 |
+
.ginger_container.light{
|
273 |
+
background: white;
|
274 |
+
color: #000000;
|
275 |
+
}
|
276 |
+
|
277 |
+
.ginger_container ::-moz-selection {
|
278 |
+
background: #ff5e99;
|
279 |
+
color: #fff;
|
280 |
+
text-shadow: none
|
281 |
+
}
|
282 |
+
|
283 |
+
.ginger_container .ginger_btn, .ginger_container .ginger_btn:visited {
|
284 |
+
color: #000;
|
285 |
+
background-color: #f1d600;
|
286 |
+
transition: background 200ms ease-in-out, color 200ms ease-in-out, box-shadow 200ms ease-in-out;
|
287 |
+
-webkit-transition: background 200ms ease-in-out, color 200ms ease-in-out, box-shadow 200ms ease-in-out;
|
288 |
+
border-radius: 5px;
|
289 |
+
-webkit-border-radius: 5px
|
290 |
+
}
|
291 |
+
|
292 |
+
.ginger_container .ginger_btn:hover, .ginger_container .ginger_btn:active {
|
293 |
+
background-color: #d7bf00;
|
294 |
+
color: #000
|
295 |
+
}
|
296 |
+
|
297 |
+
.ginger_container a, .ginger_container a:visited {
|
298 |
+
text-decoration: none;
|
299 |
+
color: #31a8f0;
|
300 |
+
transition: 200ms color
|
301 |
+
}
|
302 |
+
|
303 |
+
.ginger_container a:hover, .ginger_container a:active {
|
304 |
+
color: #555
|
305 |
+
}
|
306 |
+
|
307 |
+
@-webkit-keyframes fadeInRight {
|
308 |
+
0% {
|
309 |
+
opacity: 0;
|
310 |
+
-webkit-transform: translateX(20px);
|
311 |
+
transform: translateX(20px)
|
312 |
+
}
|
313 |
+
|
314 |
+
100% {
|
315 |
+
opacity: 1;
|
316 |
+
-webkit-transform: translateX(0);
|
317 |
+
transform: translateX(0)
|
318 |
+
}
|
319 |
+
}
|
320 |
+
|
321 |
+
@keyframes fadeInRight {
|
322 |
+
0% {
|
323 |
+
opacity: 0;
|
324 |
+
-webkit-transform: translateX(20px);
|
325 |
+
-ms-transform: translateX(20px);
|
326 |
+
transform: translateX(20px)
|
327 |
+
}
|
328 |
+
|
329 |
+
100% {
|
330 |
+
opacity: 1;
|
331 |
+
-webkit-transform: translateX(0);
|
332 |
+
-ms-transform: translateX(0);
|
333 |
+
transform: translateX(0)
|
334 |
+
}
|
335 |
+
}
|
336 |
+
|
337 |
+
.ginger_container {
|
338 |
+
-webkit-animation-duration: 0.6s;
|
339 |
+
animation-duration: 0.6s;
|
340 |
+
-webkit-animation-fill-mode: both;
|
341 |
+
animation-fill-mode: both;
|
342 |
+
-webkit-animation-duration: 0.8s;
|
343 |
+
-moz-animation-duration: 0.8s;
|
344 |
+
-o-animation-duration: 0.8s;
|
345 |
+
animation-duration: 0.8s;
|
346 |
+
-webkit-animation-fill-mode: both;
|
347 |
+
-moz-animation-fill-mode: both;
|
348 |
+
-o-animation-fill-mode: both;
|
349 |
+
animation-fill-mode: both;
|
350 |
+
-webkit-animation-name: fadeInRight;
|
351 |
+
animation-name: fadeInRight
|
352 |
+
}
|
353 |
+
|
354 |
+
@media screen and (min-width: 500px) {
|
355 |
+
.ginger_container {
|
356 |
+
border-radius: 5px;
|
357 |
+
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2)
|
358 |
+
}
|
359 |
+
}
|
360 |
+
|
front/css/cookies-enabler.css
CHANGED
@@ -59,8 +59,8 @@ p{
|
|
59 |
margin-bottom: 6px !important;
|
60 |
display: block;
|
61 |
padding: 8px 16px !important;
|
62 |
-
background-color: #f1d600
|
63 |
-
color: #111
|
64 |
margin-right: 12px !important;
|
65 |
text-decoration: none !important;
|
66 |
font-size:12pt !important;
|
@@ -140,6 +140,15 @@ iframe{
|
|
140 |
color: #d7d7d7;
|
141 |
text-decoration: underline;
|
142 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
.ginger-banner.dialog{
|
144 |
border: 1px solid white;
|
145 |
box-shadow:1px 1px 2px white;
|
@@ -149,5 +158,209 @@ iframe{
|
|
149 |
|
150 |
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
margin-bottom: 6px !important;
|
60 |
display: block;
|
61 |
padding: 8px 16px !important;
|
62 |
+
background-color: #f1d600;
|
63 |
+
color: #111;
|
64 |
margin-right: 12px !important;
|
65 |
text-decoration: none !important;
|
66 |
font-size:12pt !important;
|
140 |
color: #d7d7d7;
|
141 |
text-decoration: underline;
|
142 |
}
|
143 |
+
.ginger-banner.light{
|
144 |
+
background: white;
|
145 |
+
color: black;
|
146 |
+
}
|
147 |
+
.ginger-banner.light a{
|
148 |
+
color: #999999;
|
149 |
+
text-decoration: underline;
|
150 |
+
}
|
151 |
+
|
152 |
.ginger-banner.dialog{
|
153 |
border: 1px solid white;
|
154 |
box-shadow:1px 1px 2px white;
|
158 |
|
159 |
|
160 |
|
161 |
+
.ginger_banner-wrapper {
|
162 |
+
z-index: 9001;
|
163 |
+
position: relative
|
164 |
+
}
|
165 |
+
|
166 |
+
.ginger_container .ginger_btn {
|
167 |
+
cursor: pointer;
|
168 |
+
text-align: center;
|
169 |
+
font-size: 0.6em;
|
170 |
+
transition: font-size 200ms;
|
171 |
+
line-height: 1em
|
172 |
+
}
|
173 |
+
|
174 |
+
.ginger_container .ginger_message {
|
175 |
+
font-size: 0.6em;
|
176 |
+
transition: font-size 200ms;
|
177 |
+
margin: 0;
|
178 |
+
padding: 0;
|
179 |
+
line-height: 1.5em
|
180 |
+
}
|
181 |
+
|
182 |
+
.ginger_container .ginger_logo:hover, .ginger_container .ginger_logo:active {
|
183 |
+
opacity: 1
|
184 |
+
}
|
185 |
+
|
186 |
+
@media screen and (min-width: 500px) {
|
187 |
+
.ginger_container .ginger_btn {
|
188 |
+
font-size: 0.8em
|
189 |
+
}
|
190 |
+
|
191 |
+
.ginger_container .ginger_message {
|
192 |
+
font-size: 0.8em
|
193 |
+
}
|
194 |
+
}
|
195 |
+
|
196 |
+
@media screen and (min-width: 768px) {
|
197 |
+
.ginger_container .ginger_btn {
|
198 |
+
font-size: 1em
|
199 |
+
}
|
200 |
+
|
201 |
+
.ginger_container .ginger_message {
|
202 |
+
font-size: 1em;
|
203 |
+
line-height: 1em
|
204 |
+
}
|
205 |
+
}
|
206 |
+
|
207 |
+
@media screen and (min-width: 992px) {
|
208 |
+
.ginger_container .ginger_message {
|
209 |
+
font-size: 1em
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
+
@media print {
|
214 |
+
.ginger_banner-wrapper, .ginger_container {
|
215 |
+
display: none
|
216 |
+
}
|
217 |
+
}
|
218 |
|
219 |
+
.ginger_container.bottom {
|
220 |
+
position: fixed;
|
221 |
+
left: 0;
|
222 |
+
right: 0;
|
223 |
+
bottom: 0;
|
224 |
+
overflow: hidden;
|
225 |
+
padding: 10px
|
226 |
+
}
|
227 |
+
.ginger_container.top {
|
228 |
+
position: fixed;
|
229 |
+
left: 0;
|
230 |
+
right: 0;
|
231 |
+
top: 0;
|
232 |
+
overflow: hidden;
|
233 |
+
padding: 10px
|
234 |
+
}
|
235 |
+
|
236 |
+
.ginger_container .ginger_btn {
|
237 |
+
padding: 8px 10px;
|
238 |
+
background-color: #f1d600;
|
239 |
+
cursor: pointer;
|
240 |
+
transition: font-size 200ms;
|
241 |
+
text-align: center;
|
242 |
+
font-size: 0.6em;
|
243 |
+
display: block;
|
244 |
+
width: 33%;
|
245 |
+
margin-left: 10px;
|
246 |
+
float: right;
|
247 |
+
max-width: 120px
|
248 |
+
}
|
249 |
+
|
250 |
+
.ginger_container .ginger_message {
|
251 |
+
transition: font-size 200ms;
|
252 |
+
font-size: 0.6em;
|
253 |
+
display: block
|
254 |
+
}
|
255 |
+
|
256 |
+
@media screen and (min-width: 500px) {
|
257 |
+
.ginger_container .ginger_btn {
|
258 |
+
font-size: 0.8em
|
259 |
+
}
|
260 |
+
|
261 |
+
.ginger_container .ginger_message {
|
262 |
+
margin-top: 0.5em;
|
263 |
+
font-size: 0.8em
|
264 |
+
}
|
265 |
+
}
|
266 |
+
|
267 |
+
@media screen and (min-width: 768px) {
|
268 |
+
.ginger_container {
|
269 |
+
padding: 15px 30px 15px
|
270 |
+
}
|
271 |
+
|
272 |
+
.ginger_container .ginger_btn {
|
273 |
+
font-size: 1em;
|
274 |
+
padding: 8px 15px
|
275 |
+
}
|
276 |
+
|
277 |
+
.ginger_container .ginger_message {
|
278 |
+
font-size: 1em
|
279 |
+
}
|
280 |
+
}
|
281 |
+
|
282 |
+
@media screen and (min-width: 992px) {
|
283 |
+
.ginger_container .ginger_message {
|
284 |
+
font-size: 1em
|
285 |
+
}
|
286 |
+
}
|
287 |
+
|
288 |
+
.ginger_container {
|
289 |
+
background: #222;
|
290 |
+
color: #fff;
|
291 |
+
font-size: 17px;
|
292 |
+
box-sizing: border-box
|
293 |
+
}
|
294 |
+
.ginger_container.dark{
|
295 |
+
background: #222;
|
296 |
+
color: #fff;
|
297 |
+
}
|
298 |
+
.ginger_container.light{
|
299 |
+
background: white;
|
300 |
+
color: #000000;
|
301 |
+
}
|
302 |
+
|
303 |
+
.ginger_container ::-moz-selection {
|
304 |
+
background: #ff5e99;
|
305 |
+
color: #fff;
|
306 |
+
text-shadow: none
|
307 |
+
}
|
308 |
+
|
309 |
+
.ginger_container .ginger_btn, .ginger_container .ginger_btn:visited {
|
310 |
+
color: #000;
|
311 |
+
background-color: #f1d600;
|
312 |
+
transition: background 200ms ease-in-out, color 200ms ease-in-out, box-shadow 200ms ease-in-out;
|
313 |
+
-webkit-transition: background 200ms ease-in-out, color 200ms ease-in-out, box-shadow 200ms ease-in-out;
|
314 |
+
border-radius: 5px;
|
315 |
+
-webkit-border-radius: 5px
|
316 |
+
}
|
317 |
+
|
318 |
+
.ginger_container .ginger_btn:hover, .ginger_container .ginger_btn:active {
|
319 |
+
background-color: #fff;
|
320 |
+
color: #000
|
321 |
+
}
|
322 |
+
|
323 |
+
.ginger_container a, .ginger_container a:visited {
|
324 |
+
text-decoration: none;
|
325 |
+
color: #31a8f0;
|
326 |
+
transition: 200ms color
|
327 |
+
}
|
328 |
+
|
329 |
+
.ginger_container a:hover, .ginger_container a:active {
|
330 |
+
color: #b2f7ff
|
331 |
+
}
|
332 |
+
|
333 |
+
@-webkit-keyframes slideUp {
|
334 |
+
0% {
|
335 |
+
-webkit-transform: translateY(66px);
|
336 |
+
transform: translateY(66px)
|
337 |
+
}
|
338 |
+
|
339 |
+
100% {
|
340 |
+
-webkit-transform: translateY(0);
|
341 |
+
transform: translateY(0)
|
342 |
+
}
|
343 |
+
}
|
344 |
+
|
345 |
+
@keyframes slideUp {
|
346 |
+
0% {
|
347 |
+
-webkit-transform: translateY(66px);
|
348 |
+
-ms-transform: translateY(66px);
|
349 |
+
transform: translateY(66px)
|
350 |
+
}
|
351 |
+
|
352 |
+
100% {
|
353 |
+
-webkit-transform: translateY(0);
|
354 |
+
-ms-transform: translateY(0);
|
355 |
+
transform: translateY(0)
|
356 |
+
}
|
357 |
+
}
|
358 |
|
359 |
+
.ginger_container, .ginger_message, .ginger_btn {
|
360 |
+
animation-duration: 0.8s;
|
361 |
+
-webkit-animation-duration: 0.8s;
|
362 |
+
-moz-animation-duration: 0.8s;
|
363 |
+
-o-animation-duration: 0.8s;
|
364 |
+
-webkit-animation-name: slideUp;
|
365 |
+
animation-name: slideUp
|
366 |
+
}
|
front/gingerfront.utils.php
CHANGED
@@ -14,8 +14,14 @@ add_action( 'wp_enqueue_scripts', 'ginger_style_script' );
|
|
14 |
* Register style sheet.
|
15 |
*/
|
16 |
function ginger_style_script() {
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
function ginger_scirpt(){ ?>
|
@@ -46,11 +52,12 @@ function ginger_scirpt(){ ?>
|
|
46 |
//Testo Banner
|
47 |
if($option_ginger_bar['ginger_banner_text']):
|
48 |
$ginger_text = $option_ginger_bar['ginger_banner_text'];
|
|
|
49 |
//Recupero privacy policy se presente
|
50 |
if(strpos($ginger_text, '{{privacy_page}}') !== false):
|
51 |
$privacy_policy = get_option('ginger_policy', true);
|
52 |
$privacy_policy = get_post($privacy_policy);
|
53 |
-
$privacy_policy = ' <a href="' . get_permalink($privacy_policy->ID) . '">' . $privacy_policy->post_title . '
|
54 |
$ginger_text = str_replace('{{privacy_page}}', $privacy_policy, $ginger_text);
|
55 |
endif;
|
56 |
|
@@ -66,11 +73,10 @@ function ginger_scirpt(){ ?>
|
|
66 |
if($option_ginger_bar['ginger_banner_type'] == 'dialog'):
|
67 |
$banner_class .= ' dialog';
|
68 |
endif;
|
69 |
-
if($option_ginger_bar['ginger_banner_type'] == 'dialog'):
|
70 |
-
$banner_class .= ' dialog';
|
71 |
-
endif;
|
72 |
if($option_ginger_bar['theme_ginger'] == 'dark'):
|
73 |
$banner_class .= ' dark';
|
|
|
|
|
74 |
endif;
|
75 |
//Recupero Testo Iframe
|
76 |
if($option_ginger_bar['ginger_Iframe_text']):
|
@@ -91,17 +97,30 @@ function ginger_scirpt(){ ?>
|
|
91 |
$label_disable_cookie = __('Disable Cookies', 'ginger');
|
92 |
endif;
|
93 |
//Recupero style custom
|
94 |
-
if($option_ginger_bar['background_color'] || $option_ginger_bar['text_color']
|
95 |
<style>
|
96 |
-
.
|
97 |
<?php if($option_ginger_bar['background_color']): ?> background-color: <?php echo $option_ginger_bar['background_color']; ?>;<?php endif; ?>
|
98 |
<?php if($option_ginger_bar['text_color']): ?> color: <?php echo $option_ginger_bar['text_color']; ?>;<?php endif; ?>
|
99 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
<?php if($option_ginger_bar['link_color']): ?>
|
101 |
-
.
|
102 |
<?php if($option_ginger_bar['link_color']): ?> color: <?php echo $option_ginger_bar['link_color']; ?>;<?php endif; ?>
|
103 |
}
|
104 |
<?php endif;?>
|
|
|
|
|
|
|
105 |
</style>
|
106 |
<?php endif;?>
|
107 |
<!-- Ginger Script -->
|
@@ -114,45 +133,55 @@ function ginger_scirpt(){ ?>
|
|
114 |
acceptClass: 'ginger-accept',
|
115 |
disableClass: 'ginger-disable',
|
116 |
dismissClass: 'ginger-dismiss',
|
117 |
-
bannerClass: '
|
118 |
bannerHTML:
|
119 |
document.getElementById('ginger-banner-html') !== null ?
|
120 |
document.getElementById('ginger-banner-html').innerHTML :
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
<?php if($option_ginger_bar['disable_cookie_button_status'] != 0 && $option_ginger_general['ginger_opt'] != 'out' && $option_ginger_general['ginger_keep_banner'] == 1): ?>
|
137 |
forceEnable: true,
|
138 |
-
forceBannerClass: 'ginger-banner bottom dialog force <?php echo $option_ginger_bar['theme_ginger']; ?>',
|
139 |
forceEnableText:
|
140 |
-
'<p>'
|
141 |
-
+
|
142 |
-
+
|
143 |
-
+
|
144 |
-
+ '<div class="ginger-button">'
|
145 |
-
+ '<a href="#" class="ginger-accept">'
|
146 |
+ '<?php echo $label_accept_cookie; ?>'
|
147 |
-
+
|
148 |
-
|
149 |
-
|
|
|
150 |
<?php endif; ?>
|
151 |
eventScroll: <?php echo $type_scroll; ?>,
|
152 |
scrollOffset: 20,
|
153 |
clickOutside: <?php echo $click_outside; ?>,
|
154 |
cookieName: 'ginger-cookie',
|
155 |
-
cookieDuration: '365',
|
156 |
forceReload: <?php echo $ginger_force_reload; ?>,
|
157 |
iframesPlaceholder: true,
|
158 |
iframesPlaceholderClass: 'ginger-iframe-placeholder',
|
@@ -160,7 +189,7 @@ function ginger_scirpt(){ ?>
|
|
160 |
document.getElementById('ginger-iframePlaceholder-html') !== null ?
|
161 |
document.getElementById('ginger-iframePlaceholder-html').innerHTML :
|
162 |
'<p><?php echo $ginger_iframe_text; ?>'
|
163 |
-
+'<a href="#" class="ginger-accept"><?php echo $label_accept_cookie; ?></a>'
|
164 |
+'<\/p>'
|
165 |
});
|
166 |
</script>
|
@@ -226,7 +255,8 @@ function ginger_parse_dom($output){
|
|
226 |
'platform.twitter.com',
|
227 |
'www.facebook.com/plugins/like.php',
|
228 |
'apis.google.com',
|
229 |
-
'www.google.com/maps/embed/'
|
|
|
230 |
);
|
231 |
do_action('ginger_add_iframe');
|
232 |
|
14 |
* Register style sheet.
|
15 |
*/
|
16 |
function ginger_style_script() {
|
17 |
+
$option_ginger_bar = get_option('ginger_banner');
|
18 |
+
if($_COOKIE['ginger-cookie'] && $_COOKIE['ginger-cookie'] == 'N' || $option_ginger_bar['ginger_banner_type'] == 'dialog'):
|
19 |
+
wp_register_style( 'ginger-style-dialog', plugin_dir_url( __FILE__ ) . 'css/cookies-enabler-dialog.css' );
|
20 |
+
wp_enqueue_style( 'ginger-style-dialog' );
|
21 |
+
else:
|
22 |
+
wp_register_style( 'ginger-style', plugin_dir_url( __FILE__ ) . 'css/cookies-enabler.css' );
|
23 |
+
wp_enqueue_style( 'ginger-style' );
|
24 |
+
endif;
|
25 |
}
|
26 |
|
27 |
function ginger_scirpt(){ ?>
|
52 |
//Testo Banner
|
53 |
if($option_ginger_bar['ginger_banner_text']):
|
54 |
$ginger_text = $option_ginger_bar['ginger_banner_text'];
|
55 |
+
$ginger_text = str_replace('</', '<\/', $ginger_text);
|
56 |
//Recupero privacy policy se presente
|
57 |
if(strpos($ginger_text, '{{privacy_page}}') !== false):
|
58 |
$privacy_policy = get_option('ginger_policy', true);
|
59 |
$privacy_policy = get_post($privacy_policy);
|
60 |
+
$privacy_policy = ' <a href="' . get_permalink($privacy_policy->ID) . '">' . $privacy_policy->post_title . '<\/a>';
|
61 |
$ginger_text = str_replace('{{privacy_page}}', $privacy_policy, $ginger_text);
|
62 |
endif;
|
63 |
|
73 |
if($option_ginger_bar['ginger_banner_type'] == 'dialog'):
|
74 |
$banner_class .= ' dialog';
|
75 |
endif;
|
|
|
|
|
|
|
76 |
if($option_ginger_bar['theme_ginger'] == 'dark'):
|
77 |
$banner_class .= ' dark';
|
78 |
+
else:
|
79 |
+
$banner_class .= ' light';
|
80 |
endif;
|
81 |
//Recupero Testo Iframe
|
82 |
if($option_ginger_bar['ginger_Iframe_text']):
|
97 |
$label_disable_cookie = __('Disable Cookies', 'ginger');
|
98 |
endif;
|
99 |
//Recupero style custom
|
100 |
+
if($option_ginger_bar['background_color'] || $option_ginger_bar['text_color'] || $option_ginger_bar['link_color'] || $option_ginger_bar['ginger_css'] ): ?>
|
101 |
<style>
|
102 |
+
.ginger_container.<?php echo $option_ginger_bar['theme_ginger']; ?>{
|
103 |
<?php if($option_ginger_bar['background_color']): ?> background-color: <?php echo $option_ginger_bar['background_color']; ?>;<?php endif; ?>
|
104 |
<?php if($option_ginger_bar['text_color']): ?> color: <?php echo $option_ginger_bar['text_color']; ?>;<?php endif; ?>
|
105 |
}
|
106 |
+
<?php if($option_ginger_bar['button_color']): ?>
|
107 |
+
.ginger_btn.ginger-accept, .ginger_btn.ginger-dismiss, .ginger_btn.ginger-disable{
|
108 |
+
background: <?php echo $option_ginger_bar['button_color']; ?>;
|
109 |
+
}
|
110 |
+
<?php endif; ?>
|
111 |
+
<?php if($option_ginger_bar['button_text_color']): ?>
|
112 |
+
.ginger_banner-wrapper > div > a.ginger_btn {
|
113 |
+
color: <?php echo $option_ginger_bar['button_text_color']; ?> !important;
|
114 |
+
}
|
115 |
+
<?php endif; ?>
|
116 |
<?php if($option_ginger_bar['link_color']): ?>
|
117 |
+
.ginger_container.<?php echo $option_ginger_bar['theme_ginger']; ?> a{
|
118 |
<?php if($option_ginger_bar['link_color']): ?> color: <?php echo $option_ginger_bar['link_color']; ?>;<?php endif; ?>
|
119 |
}
|
120 |
<?php endif;?>
|
121 |
+
<?php if($option_ginger_bar['ginger_css']): ?>
|
122 |
+
<?php echo $option_ginger_bar['ginger_css']; ?>
|
123 |
+
<?php endif;?>
|
124 |
</style>
|
125 |
<?php endif;?>
|
126 |
<!-- Ginger Script -->
|
133 |
acceptClass: 'ginger-accept',
|
134 |
disableClass: 'ginger-disable',
|
135 |
dismissClass: 'ginger-dismiss',
|
136 |
+
bannerClass: 'ginger_banner-wrapper',
|
137 |
bannerHTML:
|
138 |
document.getElementById('ginger-banner-html') !== null ?
|
139 |
document.getElementById('ginger-banner-html').innerHTML :
|
140 |
+
'<div class="ginger_banner <?php echo $banner_class; ?> ginger_container ginger_container--open">'
|
141 |
+
<?php if($option_ginger_bar['ginger_banner_type'] == 'dialog'): ?>
|
142 |
+
+'<p class="ginger_message">'
|
143 |
+
+'<?php echo $ginger_text; ?>'
|
144 |
+
+'</p>'
|
145 |
+
+'<a href="#" class="ginger_btn ginger-accept ginger_btn_accept_all">'
|
146 |
+
+ '<?php echo $label_accept_cookie; ?>'
|
147 |
+
+'<\/a>'
|
148 |
+
<?php if($option_ginger_bar['disable_cookie_button_status'] != 0 && $option_ginger_general['ginger_opt'] != 'out'): ?>
|
149 |
+
+ '<a href="#" class="ginger_btn ginger-disable ginger_btn_accept_all">'
|
150 |
+
+ '<?php echo $label_disable_cookie; ?>'
|
151 |
+
+ '<\/a>'
|
152 |
+
<?php endif; ?>
|
153 |
+
<?php else: ?>
|
154 |
+
<?php if($option_ginger_bar['disable_cookie_button_status'] != 0 && $option_ginger_general['ginger_opt'] != 'out'): ?>
|
155 |
+
+ '<a href="#" class="ginger_btn ginger-disable ginger_btn_accept_all">'
|
156 |
+
+ '<?php echo $label_disable_cookie; ?>'
|
157 |
+
+ '<\/a>'
|
158 |
+
<?php endif; ?>
|
159 |
+
+'<a href="#" class="ginger_btn ginger-accept ginger_btn_accept_all">'
|
160 |
+
+ '<?php echo $label_accept_cookie; ?>'
|
161 |
+
+'<\/a>'
|
162 |
+
+'<p class="ginger_message">'
|
163 |
+
+'<?php echo $ginger_text; ?>'
|
164 |
+
+'</p>'
|
165 |
+
<?php endif; ?>
|
166 |
+
+'<\/div>',
|
167 |
<?php if($option_ginger_bar['disable_cookie_button_status'] != 0 && $option_ginger_general['ginger_opt'] != 'out' && $option_ginger_general['ginger_keep_banner'] == 1): ?>
|
168 |
forceEnable: true,
|
169 |
+
forceBannerClass: 'ginger-banner bottom dialog force <?php echo $option_ginger_bar['theme_ginger']; ?> ginger_container',
|
170 |
forceEnableText:
|
171 |
+
'<p class="ginger_message">'
|
172 |
+
+'<?php echo $ginger_text; ?>'
|
173 |
+
+'</p>'
|
174 |
+
+'<a href="#" class="ginger_btn ginger-accept ginger_btn_accept_all">'
|
|
|
|
|
175 |
+ '<?php echo $label_accept_cookie; ?>'
|
176 |
+
+'<\/a>',
|
177 |
+
<?php endif; ?>
|
178 |
+
<?php if($option_ginger_general['ginger_cookie_duration']): ?>
|
179 |
+
cookieDuration: <?php echo $option_ginger_general['ginger_cookie_duration']; ?>,
|
180 |
<?php endif; ?>
|
181 |
eventScroll: <?php echo $type_scroll; ?>,
|
182 |
scrollOffset: 20,
|
183 |
clickOutside: <?php echo $click_outside; ?>,
|
184 |
cookieName: 'ginger-cookie',
|
|
|
185 |
forceReload: <?php echo $ginger_force_reload; ?>,
|
186 |
iframesPlaceholder: true,
|
187 |
iframesPlaceholderClass: 'ginger-iframe-placeholder',
|
189 |
document.getElementById('ginger-iframePlaceholder-html') !== null ?
|
190 |
document.getElementById('ginger-iframePlaceholder-html').innerHTML :
|
191 |
'<p><?php echo $ginger_iframe_text; ?>'
|
192 |
+
+'<a href="#" class="ginger_btn ginger-accept"><?php echo $label_accept_cookie; ?></a>'
|
193 |
+'<\/p>'
|
194 |
});
|
195 |
</script>
|
255 |
'platform.twitter.com',
|
256 |
'www.facebook.com/plugins/like.php',
|
257 |
'apis.google.com',
|
258 |
+
'www.google.com/maps/embed/',
|
259 |
+
'player.vimeo.com'
|
260 |
);
|
261 |
do_action('ginger_add_iframe');
|
262 |
|
front/js/cookies-enabler.js
DELETED
@@ -1,449 +0,0 @@
|
|
1 |
-
// Made with milk and cookies by Nicholas Ruggeri and Gianmarco Simone
|
2 |
-
// https://github.com/nicholasruggeri/cookies-enabler
|
3 |
-
// https://github.com/nicholasruggeri
|
4 |
-
// https://github.com/gsimone
|
5 |
-
|
6 |
-
window.COOKIES_ENABLER = window.COOKIES_ENABLER || (function () {
|
7 |
-
|
8 |
-
'use strict'
|
9 |
-
|
10 |
-
var defaults = {
|
11 |
-
|
12 |
-
scriptClass: 'ce-script',
|
13 |
-
iframeClass: 'ce-iframe',
|
14 |
-
|
15 |
-
acceptClass: 'ce-accept',
|
16 |
-
disableClass: 'ce-disable',
|
17 |
-
dismissClass: 'ce-dismiss',
|
18 |
-
|
19 |
-
bannerClass: 'ce-banner',
|
20 |
-
bannerHTML:
|
21 |
-
|
22 |
-
document.getElementById('ce-banner-html') !== null ?
|
23 |
-
|
24 |
-
document.getElementById('ce-banner-html').innerHTML :
|
25 |
-
|
26 |
-
'<p>This website uses cookies. '
|
27 |
-
+'<a href="#" class="ce-accept">'
|
28 |
-
+'Enable Cookies'
|
29 |
-
+'</a>'
|
30 |
-
+'</p>',
|
31 |
-
eventScroll: false,
|
32 |
-
scrollOffset: 200,
|
33 |
-
clickOutside: false,
|
34 |
-
cookieName: 'ce-cookie',
|
35 |
-
cookieDuration: '365',
|
36 |
-
|
37 |
-
iframesPlaceholder: true,
|
38 |
-
iframesPlaceholderHTML:
|
39 |
-
|
40 |
-
document.getElementById('ce-iframePlaceholder-html') !== null ?
|
41 |
-
|
42 |
-
document.getElementById('ce-iframePlaceholder-html').innerHTML :
|
43 |
-
|
44 |
-
'<p>To view this content you need to'
|
45 |
-
+'<a href="#" class="ce-accept">Enable Cookies</a>'
|
46 |
-
+'</p>',
|
47 |
-
|
48 |
-
iframesPlaceholderClass: 'ce-iframe-placeholder',
|
49 |
-
|
50 |
-
onEnable: '',
|
51 |
-
onDismiss: '',
|
52 |
-
onDisable: ''
|
53 |
-
|
54 |
-
},
|
55 |
-
opts, domElmts, start_Y;
|
56 |
-
|
57 |
-
function _extend() {
|
58 |
-
|
59 |
-
var i, key;
|
60 |
-
for (i=1; i<arguments.length; i++)
|
61 |
-
for (key in arguments[i])
|
62 |
-
if(arguments[i].hasOwnProperty(key))
|
63 |
-
arguments[0][key] = arguments[i][key];
|
64 |
-
return arguments[0];
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
function _debounce(func, wait, immediate) {
|
69 |
-
var timeout;
|
70 |
-
return function() {
|
71 |
-
var context = this, args = arguments;
|
72 |
-
var later = function() {
|
73 |
-
timeout = null;
|
74 |
-
if (!immediate) func.apply(context, args);
|
75 |
-
};
|
76 |
-
var callNow = immediate && !timeout;
|
77 |
-
clearTimeout(timeout);
|
78 |
-
timeout = setTimeout(later, wait);
|
79 |
-
if (callNow) func.apply(context, args);
|
80 |
-
};
|
81 |
-
}
|
82 |
-
|
83 |
-
function _getClosestParentWithClass(el, parentClass) {
|
84 |
-
|
85 |
-
do {
|
86 |
-
if (_hasClass(el, parentClass)) {
|
87 |
-
// tag name is found! let's return it. :)
|
88 |
-
return el;
|
89 |
-
}
|
90 |
-
} while (el = el.parentNode);
|
91 |
-
|
92 |
-
return null;
|
93 |
-
}
|
94 |
-
|
95 |
-
function _hasClass(el, cls) {
|
96 |
-
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
97 |
-
}
|
98 |
-
|
99 |
-
var handleScroll = function() {
|
100 |
-
|
101 |
-
if (Math.abs(window.pageYOffset - start_Y) > opts.scrollOffset) enableCookies();
|
102 |
-
|
103 |
-
};
|
104 |
-
|
105 |
-
var bindUI = function() {
|
106 |
-
|
107 |
-
domElmts = {
|
108 |
-
accept: document.getElementsByClassName(opts.acceptClass),
|
109 |
-
disable: document.getElementsByClassName(opts.disableClass),
|
110 |
-
banner: document.getElementsByClassName(opts.bannerClass),
|
111 |
-
dismiss: document.getElementsByClassName(opts.dismissClass)
|
112 |
-
}
|
113 |
-
|
114 |
-
var i,
|
115 |
-
accept = domElmts.accept,
|
116 |
-
accept_l = accept.length,
|
117 |
-
disable = domElmts.disable,
|
118 |
-
disable_l = disable.length,
|
119 |
-
dismiss = domElmts.dismiss,
|
120 |
-
dismiss_l = dismiss.length;
|
121 |
-
|
122 |
-
if (opts.eventScroll) {
|
123 |
-
window.addEventListener('load', function(){
|
124 |
-
|
125 |
-
start_Y = window.pageYOffset;
|
126 |
-
window.addEventListener('scroll', handleScroll);
|
127 |
-
|
128 |
-
});
|
129 |
-
}
|
130 |
-
|
131 |
-
if (opts.clickOutside) {
|
132 |
-
|
133 |
-
document.addEventListener("click", function(e){
|
134 |
-
|
135 |
-
var element = e.target;
|
136 |
-
|
137 |
-
// ignore the click if it is inside of any of the elements created by this plugin
|
138 |
-
if(
|
139 |
-
_getClosestParentWithClass(element, opts.iframesPlaceholderClass) ||
|
140 |
-
_getClosestParentWithClass(element, opts.disableClass) ||
|
141 |
-
_getClosestParentWithClass(element, opts.bannerClass) ||
|
142 |
-
_getClosestParentWithClass(element, opts.dismissClass) ||
|
143 |
-
_getClosestParentWithClass(element, opts.disableClass)
|
144 |
-
){
|
145 |
-
return false;
|
146 |
-
}
|
147 |
-
|
148 |
-
enableCookies();
|
149 |
-
|
150 |
-
});
|
151 |
-
}
|
152 |
-
|
153 |
-
for (i = 0; i < accept_l; i++) {
|
154 |
-
|
155 |
-
accept[i].addEventListener("click", function(ev) {
|
156 |
-
ev.preventDefault();
|
157 |
-
enableCookies(ev);
|
158 |
-
});
|
159 |
-
|
160 |
-
}
|
161 |
-
|
162 |
-
for (i = 0; i < disable_l; i++) {
|
163 |
-
|
164 |
-
disable[i].addEventListener("click", function(ev) {
|
165 |
-
ev.preventDefault();
|
166 |
-
disableCookies(ev);
|
167 |
-
});
|
168 |
-
|
169 |
-
}
|
170 |
-
|
171 |
-
for (i = 0; i < dismiss_l; i++) {
|
172 |
-
|
173 |
-
dismiss[i].addEventListener("click", function (ev) {
|
174 |
-
ev.preventDefault();
|
175 |
-
banner.dismiss();
|
176 |
-
});
|
177 |
-
|
178 |
-
}
|
179 |
-
|
180 |
-
};
|
181 |
-
|
182 |
-
var init = function(options) {
|
183 |
-
|
184 |
-
opts = _extend({}, defaults, options);
|
185 |
-
|
186 |
-
if (cookie.get() == 'Y') {
|
187 |
-
|
188 |
-
if (typeof opts.onEnable === "function") opts.onEnable();
|
189 |
-
|
190 |
-
scripts.get();
|
191 |
-
iframes.get();
|
192 |
-
|
193 |
-
} else if (cookie.get() == 'N'){
|
194 |
-
|
195 |
-
if (typeof opts.onDisable === "function") opts.onDisable();
|
196 |
-
|
197 |
-
iframes.hide();
|
198 |
-
bindUI();
|
199 |
-
|
200 |
-
} else {
|
201 |
-
|
202 |
-
banner.create();
|
203 |
-
iframes.hide();
|
204 |
-
bindUI();
|
205 |
-
|
206 |
-
}
|
207 |
-
};
|
208 |
-
|
209 |
-
var enableCookies = _debounce(function(event) {
|
210 |
-
|
211 |
-
if (typeof event != "undefined" && event.type === 'click'){
|
212 |
-
|
213 |
-
event.preventDefault();
|
214 |
-
|
215 |
-
}
|
216 |
-
|
217 |
-
if (cookie.get() != 'Y') {
|
218 |
-
|
219 |
-
cookie.set();
|
220 |
-
scripts.get();
|
221 |
-
|
222 |
-
iframes.get();
|
223 |
-
iframes.removePlaceholders();
|
224 |
-
|
225 |
-
banner.dismiss();
|
226 |
-
window.removeEventListener('scroll', handleScroll);
|
227 |
-
|
228 |
-
if (typeof opts.onEnable === "function") opts.onEnable();
|
229 |
-
|
230 |
-
}
|
231 |
-
|
232 |
-
}, 250, false);
|
233 |
-
|
234 |
-
var disableCookies = function(event){
|
235 |
-
|
236 |
-
if (typeof event != "undefined" && event.type === 'click'){
|
237 |
-
|
238 |
-
event.preventDefault();
|
239 |
-
|
240 |
-
}
|
241 |
-
|
242 |
-
if (cookie.get() != 'N'){
|
243 |
-
|
244 |
-
cookie.set('N');
|
245 |
-
|
246 |
-
banner.dismiss();
|
247 |
-
window.removeEventListener('scroll', handleScroll);
|
248 |
-
|
249 |
-
if (typeof opts.onDisable === "function") opts.onDisable();
|
250 |
-
|
251 |
-
}
|
252 |
-
|
253 |
-
}
|
254 |
-
|
255 |
-
var banner = (function() {
|
256 |
-
|
257 |
-
function create() {
|
258 |
-
|
259 |
-
var el = '<div class="'+ opts.bannerClass +'">'
|
260 |
-
+ opts.bannerHTML
|
261 |
-
+'</div>';
|
262 |
-
|
263 |
-
document.body.insertAdjacentHTML('beforeend', el);
|
264 |
-
|
265 |
-
}
|
266 |
-
|
267 |
-
function dismiss(){
|
268 |
-
|
269 |
-
domElmts.banner[0].style.display = 'none';
|
270 |
-
|
271 |
-
if (typeof opts.onDismiss === "function") opts.onDismiss();
|
272 |
-
|
273 |
-
}
|
274 |
-
|
275 |
-
return{
|
276 |
-
|
277 |
-
create: create,
|
278 |
-
dismiss: dismiss
|
279 |
-
|
280 |
-
}
|
281 |
-
|
282 |
-
})();
|
283 |
-
|
284 |
-
var cookie = (function() {
|
285 |
-
|
286 |
-
function set(val){
|
287 |
-
|
288 |
-
var value = typeof val !== "undefined" ? val : "Y",
|
289 |
-
date, expires;
|
290 |
-
|
291 |
-
if (opts.cookieDuration) {
|
292 |
-
date = new Date();
|
293 |
-
date.setTime(date.getTime()+(opts.cookieDuration*24*60*60*1000));
|
294 |
-
expires = "; expires="+date.toGMTString();
|
295 |
-
} else {
|
296 |
-
expires = "";
|
297 |
-
}
|
298 |
-
document.cookie = opts.cookieName +"="+ value+expires +"; path=/";
|
299 |
-
}
|
300 |
-
|
301 |
-
function get(){
|
302 |
-
|
303 |
-
var cookies = document.cookie.split(";"),
|
304 |
-
l = cookies.length,
|
305 |
-
i, x, y;
|
306 |
-
|
307 |
-
for (i = 0; i < l; i++){
|
308 |
-
x = cookies[i].substr(0,cookies[i].indexOf("="));
|
309 |
-
y = cookies[i].substr(cookies[i].indexOf("=")+1);
|
310 |
-
x = x.replace(/^\s+|\s+$/g,"");
|
311 |
-
if (x == opts.cookieName) {
|
312 |
-
return unescape(y);
|
313 |
-
}
|
314 |
-
}
|
315 |
-
|
316 |
-
}
|
317 |
-
|
318 |
-
return{
|
319 |
-
set: set,
|
320 |
-
get: get
|
321 |
-
}
|
322 |
-
|
323 |
-
})();
|
324 |
-
|
325 |
-
var iframes = (function() {
|
326 |
-
|
327 |
-
function makePlaceholder(iframe) {
|
328 |
-
|
329 |
-
var placeholderElement = document.createElement('div');
|
330 |
-
|
331 |
-
placeholderElement.className = opts.iframesPlaceholderClass;
|
332 |
-
|
333 |
-
placeholderElement.innerHTML = opts.iframesPlaceholderHTML;
|
334 |
-
|
335 |
-
iframe.parentNode.insertBefore(placeholderElement, iframe);
|
336 |
-
|
337 |
-
}
|
338 |
-
|
339 |
-
function removePlaceholders() {
|
340 |
-
|
341 |
-
var iframePlaceholders = document.getElementsByClassName(opts.iframesPlaceholderClass),
|
342 |
-
n = iframePlaceholders.length,
|
343 |
-
i;
|
344 |
-
|
345 |
-
for (i = n - 1; i >= 0; i--){
|
346 |
-
|
347 |
-
iframePlaceholders[i].remove();
|
348 |
-
|
349 |
-
}
|
350 |
-
|
351 |
-
}
|
352 |
-
|
353 |
-
function hide() {
|
354 |
-
|
355 |
-
var iframes = document.getElementsByClassName(opts.iframeClass),
|
356 |
-
n = iframes.length,
|
357 |
-
src, iframe, i;
|
358 |
-
|
359 |
-
for (i = 0; i < n; i++){
|
360 |
-
|
361 |
-
iframe = iframes[i];
|
362 |
-
iframe.style.display = 'none';
|
363 |
-
|
364 |
-
if (opts.iframesPlaceholder) makePlaceholder(iframe);
|
365 |
-
|
366 |
-
}
|
367 |
-
|
368 |
-
}
|
369 |
-
|
370 |
-
function get() {
|
371 |
-
|
372 |
-
var iframes = document.getElementsByClassName(opts.iframeClass),
|
373 |
-
n = iframes.length,
|
374 |
-
src, iframe, i;
|
375 |
-
|
376 |
-
for (i = 0; i < n; i++){
|
377 |
-
|
378 |
-
iframe = iframes[i];
|
379 |
-
|
380 |
-
src = iframe.attributes[ 'data-ce-src' ].value;
|
381 |
-
iframe.src = src;
|
382 |
-
iframe.style.display = 'block';
|
383 |
-
|
384 |
-
}
|
385 |
-
|
386 |
-
}
|
387 |
-
|
388 |
-
return{
|
389 |
-
hide: hide,
|
390 |
-
get: get,
|
391 |
-
removePlaceholders: removePlaceholders
|
392 |
-
}
|
393 |
-
|
394 |
-
})();
|
395 |
-
|
396 |
-
var scripts = (function() {
|
397 |
-
|
398 |
-
function get() {
|
399 |
-
|
400 |
-
var scripts = document.getElementsByClassName(opts.scriptClass),
|
401 |
-
n = scripts.length,
|
402 |
-
documentFragment = document.createDocumentFragment(),
|
403 |
-
i, y, s, attrib, el;
|
404 |
-
|
405 |
-
for (i = 0; i < n; i++){
|
406 |
-
|
407 |
-
if (scripts[i].hasAttribute('data-ce-src')){
|
408 |
-
|
409 |
-
if (typeof postscribe === "undefined"){
|
410 |
-
postscribe(scripts[i].parentNode, '<script src="' + scripts[i].getAttribute("data-ce-src") + '"></script>');
|
411 |
-
}
|
412 |
-
|
413 |
-
} else {
|
414 |
-
|
415 |
-
s = document.createElement('script');
|
416 |
-
s.type = 'text/javascript';
|
417 |
-
for (y = 0; y < scripts[i].attributes.length; y++) {
|
418 |
-
attrib = scripts[i].attributes[y];
|
419 |
-
if (attrib.specified) {
|
420 |
-
if ((attrib.name != 'type') && (attrib.name != 'class')){
|
421 |
-
s.setAttribute(attrib.name, attrib.value);
|
422 |
-
}
|
423 |
-
}
|
424 |
-
}
|
425 |
-
s.innerHTML = scripts[i].innerHTML;
|
426 |
-
documentFragment.appendChild(s);
|
427 |
-
|
428 |
-
}
|
429 |
-
|
430 |
-
}
|
431 |
-
|
432 |
-
document.body.appendChild(documentFragment);
|
433 |
-
|
434 |
-
}
|
435 |
-
|
436 |
-
return{
|
437 |
-
get: get
|
438 |
-
}
|
439 |
-
|
440 |
-
})();
|
441 |
-
|
442 |
-
|
443 |
-
return {
|
444 |
-
init: init,
|
445 |
-
enableCookies: enableCookies,
|
446 |
-
dismissBanner: banner.dismiss
|
447 |
-
};
|
448 |
-
|
449 |
-
}());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ginger-eu-cookie-law.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ginger - EU Cookie Law
|
4 |
Plugin URI: http://manafactory.it/
|
5 |
Description: Make your website compliant with EU Cookie Policy.
|
6 |
-
Version: 1.1
|
7 |
Author: Manafactory
|
8 |
Author URI: http://manafactory.it/
|
9 |
License: GPLv2 or later
|
3 |
Plugin Name: Ginger - EU Cookie Law
|
4 |
Plugin URI: http://manafactory.it/
|
5 |
Description: Make your website compliant with EU Cookie Policy.
|
6 |
+
Version: 1.1.1
|
7 |
Author: Manafactory
|
8 |
Author URI: http://manafactory.it/
|
9 |
License: GPLv2 or later
|
languages/ginger-it_IT.mo
CHANGED
Binary file
|
languages/ginger-it_IT.po
CHANGED
@@ -4,8 +4,8 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: _s 1.0.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n"
|
7 |
-
"POT-Creation-Date: 2015-06-
|
8 |
-
"PO-Revision-Date: 2015-06-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: it_IT\n"
|
@@ -19,11 +19,11 @@ msgstr ""
|
|
19 |
"X-Poedit-Basepath: .\n"
|
20 |
"X-Poedit-SearchPath-0: /var/www/sitolocale/wp-content/plugins/ginger\n"
|
21 |
|
22 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/front/gingerfront.utils.php:
|
23 |
msgid "Enable Cookies"
|
24 |
msgstr "Abilita Cookies"
|
25 |
|
26 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/front/gingerfront.utils.php:
|
27 |
msgid "Disable Cookies"
|
28 |
msgstr "Disabilita Cookies"
|
29 |
|
@@ -56,7 +56,7 @@ msgstr "Privacy Policy"
|
|
56 |
msgid "Save Changes"
|
57 |
msgstr "Aggiorna"
|
58 |
|
59 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:
|
60 |
msgid ""
|
61 |
"This website uses cookies. By continuing to use the site you are agreeing to "
|
62 |
"its use of cookies."
|
@@ -64,7 +64,7 @@ msgstr ""
|
|
64 |
"Questo sito utilizza cookie. Continuando la navigazione acconsenti "
|
65 |
"all'utilizzo di questi cookie."
|
66 |
|
67 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:
|
68 |
msgid "This content has been disabled because you have not accepted cookies."
|
69 |
msgstr ""
|
70 |
"Questo contenuto può essere mostrato solo accettando l'utilizzo dei cookies."
|
@@ -133,68 +133,119 @@ msgid "Do you have a cache system?"
|
|
133 |
msgstr "Hai un sistema di cache"
|
134 |
|
135 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:38
|
136 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
137 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
138 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
139 |
msgid "Yes"
|
140 |
msgstr "Si"
|
141 |
|
142 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:43
|
143 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
144 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
145 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
146 |
msgid "No"
|
147 |
msgstr "No"
|
148 |
|
149 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
msgid "Cookie Confirmation Type"
|
152 |
msgstr "Tipo di conferma dei cookie"
|
153 |
|
154 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
155 |
msgid "Opt-In"
|
156 |
msgstr "Opt-In"
|
157 |
|
158 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
159 |
msgid "Cookies are disabled until banner is accepted"
|
160 |
msgstr "I cookie sono disabilitati finchè il banner non è accettato"
|
161 |
|
162 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
163 |
msgid "Opt-Out"
|
164 |
msgstr "Opt-Out"
|
165 |
|
166 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
167 |
msgid "Cookies are disabled only if explicitly requested"
|
168 |
msgstr "I cookie sono disabilitati solo se esplicitamente richiesto"
|
169 |
|
170 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
171 |
-
|
|
|
|
|
|
|
|
|
172 |
msgid "Let scroll to confirm"
|
173 |
msgstr "Scrolla per confermare"
|
174 |
|
175 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
176 |
msgid "Scroll to accept cookie"
|
177 |
msgstr "Scrolla per accettare i cookie"
|
178 |
|
179 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
180 |
msgid "Keep banner after scroll"
|
181 |
msgstr "Non abilitare i cookie con lo scroll"
|
182 |
|
183 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
184 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
185 |
msgid "Click out of banner to accept cookie"
|
186 |
msgstr "Clicca fuori dal banner per accettare i cookie"
|
187 |
|
188 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
189 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
190 |
msgid "Force reload page"
|
191 |
msgstr "Forza il reload della pagina"
|
192 |
|
193 |
-
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:
|
194 |
-
|
|
|
|
|
|
|
195 |
msgid "Keep banner until acceptance"
|
196 |
msgstr "Mantieni il banner fino all'accettazione"
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:11
|
199 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:14
|
200 |
msgid "Choose Banner Type"
|
@@ -315,6 +366,15 @@ msgstr "Sfondo"
|
|
315 |
msgid "Button"
|
316 |
msgstr "Button"
|
317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:8
|
319 |
msgid "Banner Dialog Setup"
|
320 |
msgstr "Banner Dialog Setup"
|
@@ -357,6 +417,11 @@ msgstr "Titolo"
|
|
357 |
msgid "Attention ! There is already a page with this title"
|
358 |
msgstr "Attenzione! C'è già una pagina con questo titolo"
|
359 |
|
|
|
|
|
|
|
|
|
|
|
360 |
#, fuzzy
|
361 |
#~ msgid "Read More Button2"
|
362 |
#~ msgstr "Button Read More "
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: _s 1.0.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n"
|
7 |
+
"POT-Creation-Date: 2015-06-23 14:24+0100\n"
|
8 |
+
"PO-Revision-Date: 2015-06-23 14:24+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: \n"
|
11 |
"Language: it_IT\n"
|
19 |
"X-Poedit-Basepath: .\n"
|
20 |
"X-Poedit-SearchPath-0: /var/www/sitolocale/wp-content/plugins/ginger\n"
|
21 |
|
22 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/front/gingerfront.utils.php:85
|
23 |
msgid "Enable Cookies"
|
24 |
msgstr "Abilita Cookies"
|
25 |
|
26 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/front/gingerfront.utils.php:91
|
27 |
msgid "Disable Cookies"
|
28 |
msgstr "Disabilita Cookies"
|
29 |
|
56 |
msgid "Save Changes"
|
57 |
msgstr "Aggiorna"
|
58 |
|
59 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:76
|
60 |
msgid ""
|
61 |
"This website uses cookies. By continuing to use the site you are agreeing to "
|
62 |
"its use of cookies."
|
64 |
"Questo sito utilizza cookie. Continuando la navigazione acconsenti "
|
65 |
"all'utilizzo di questi cookie."
|
66 |
|
67 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/ginger.utils.php:77
|
68 |
msgid "This content has been disabled because you have not accepted cookies."
|
69 |
msgstr ""
|
70 |
"Questo contenuto può essere mostrato solo accettando l'utilizzo dei cookies."
|
133 |
msgstr "Hai un sistema di cache"
|
134 |
|
135 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:38
|
136 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:113
|
137 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:133
|
138 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:153
|
139 |
msgid "Yes"
|
140 |
msgstr "Si"
|
141 |
|
142 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:43
|
143 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:118
|
144 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:138
|
145 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:158
|
146 |
msgid "No"
|
147 |
msgstr "No"
|
148 |
|
149 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:48
|
150 |
+
msgid ""
|
151 |
+
"If you have a caching system (W3TC, Varnish, WP Super Cash...) choose YES. "
|
152 |
+
"Ginger will optimize websites performances"
|
153 |
+
msgstr ""
|
154 |
+
"Se utilizzi un sistema di caching (W3TC, Varnish, WP Super Cash...) "
|
155 |
+
"seleziona SI. Ginger ottimizzerà le prestazioni del sito"
|
156 |
+
|
157 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:55
|
158 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:58
|
159 |
msgid "Cookie Confirmation Type"
|
160 |
msgstr "Tipo di conferma dei cookie"
|
161 |
|
162 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:61
|
163 |
msgid "Opt-In"
|
164 |
msgstr "Opt-In"
|
165 |
|
166 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:64
|
167 |
msgid "Cookies are disabled until banner is accepted"
|
168 |
msgstr "I cookie sono disabilitati finchè il banner non è accettato"
|
169 |
|
170 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:69
|
171 |
msgid "Opt-Out"
|
172 |
msgstr "Opt-Out"
|
173 |
|
174 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:72
|
175 |
msgid "Cookies are disabled only if explicitly requested"
|
176 |
msgstr "I cookie sono disabilitati solo se esplicitamente richiesto"
|
177 |
|
178 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:77
|
179 |
+
msgid "Choose OPT-IN if you're in Italy"
|
180 |
+
msgstr "Seleziona OPT-IN se ti trovi in Italia"
|
181 |
+
|
182 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:85
|
183 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:89
|
184 |
msgid "Let scroll to confirm"
|
185 |
msgstr "Scrolla per confermare"
|
186 |
|
187 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:93
|
188 |
msgid "Scroll to accept cookie"
|
189 |
msgstr "Scrolla per accettare i cookie"
|
190 |
|
191 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:98
|
192 |
msgid "Keep banner after scroll"
|
193 |
msgstr "Non abilitare i cookie con lo scroll"
|
194 |
|
195 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:105
|
196 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:109
|
197 |
msgid "Click out of banner to accept cookie"
|
198 |
msgstr "Clicca fuori dal banner per accettare i cookie"
|
199 |
|
200 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:125
|
201 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:129
|
202 |
msgid "Force reload page"
|
203 |
msgstr "Forza il reload della pagina"
|
204 |
|
205 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:145
|
206 |
+
msgid "Stress Mode"
|
207 |
+
msgstr "Stress Mode"
|
208 |
+
|
209 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:149
|
210 |
msgid "Keep banner until acceptance"
|
211 |
msgstr "Mantieni il banner fino all'accettazione"
|
212 |
|
213 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:163
|
214 |
+
msgid ""
|
215 |
+
"If cookies are not accepted the banner will continues to be shown minimized"
|
216 |
+
msgstr ""
|
217 |
+
"Se i cookie non vengono accettati il banner continuerà ad essere mostrato "
|
218 |
+
"minimizzato"
|
219 |
+
|
220 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:170
|
221 |
+
msgid "Cookies Duration"
|
222 |
+
msgstr "Durata Cookie"
|
223 |
+
|
224 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:174
|
225 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:177
|
226 |
+
msgid "Select cookies duration"
|
227 |
+
msgstr "Seleziona la durata dei cookie"
|
228 |
+
|
229 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:179
|
230 |
+
msgid "Select"
|
231 |
+
msgstr "Seleziona"
|
232 |
+
|
233 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:180
|
234 |
+
msgid "1 Day"
|
235 |
+
msgstr "1 Giorno"
|
236 |
+
|
237 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:181
|
238 |
+
msgid "1 Month"
|
239 |
+
msgstr "1 Mese"
|
240 |
+
|
241 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:182
|
242 |
+
msgid "1 Year"
|
243 |
+
msgstr "1 Anno"
|
244 |
+
|
245 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/general.php:183
|
246 |
+
msgid "For ever"
|
247 |
+
msgstr "Per sempre"
|
248 |
+
|
249 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:11
|
250 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:14
|
251 |
msgid "Choose Banner Type"
|
366 |
msgid "Button"
|
367 |
msgstr "Button"
|
368 |
|
369 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:219
|
370 |
+
msgid "Custom CSS"
|
371 |
+
msgstr "Custom CSS"
|
372 |
+
|
373 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:223
|
374 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/banner.php:226
|
375 |
+
msgid "Insert here your banner custom CSS"
|
376 |
+
msgstr "Inserisci qui il CSS personalizzato per il tuo banner"
|
377 |
+
|
378 |
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/dialog.php:8
|
379 |
msgid "Banner Dialog Setup"
|
380 |
msgstr "Banner Dialog Setup"
|
417 |
msgid "Attention ! There is already a page with this title"
|
418 |
msgstr "Attenzione! C'è già una pagina con questo titolo"
|
419 |
|
420 |
+
#: /var/www/sitolocale/wp-content/plugins/ginger/admin/partial/policy.php:111
|
421 |
+
msgid "If you create a new page this will be setted as Privacy Policy Page"
|
422 |
+
msgstr ""
|
423 |
+
"Se crei una nuova pagina questa sarà impostata come pagina Privacy Policy"
|
424 |
+
|
425 |
#, fuzzy
|
426 |
#~ msgid "Read More Button2"
|
427 |
#~ msgstr "Button Read More "
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: manafactory, webgrafia, matteobarale
|
3 |
Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
|
4 |
Requires at least: 3.0.1
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -16,7 +16,7 @@ The aim of Ginger is to be a **complete plug'n play solution** that make your we
|
|
16 |
* really **plug'n play**: simply activate, and enjoy
|
17 |
* complete **banner** configuration: style, position and colors
|
18 |
* **Opt-in** mode enabler: block cookies BEFORE user acceptance (fit for **Italy** regulation)
|
19 |
-
* Google Analytics **
|
20 |
* Complatible with server **caching**
|
21 |
|
22 |
|
@@ -29,6 +29,7 @@ The aim of Ginger is to be a **complete plug'n play solution** that make your we
|
|
29 |
* google analytics
|
30 |
* google maps
|
31 |
* youtube
|
|
|
32 |
|
33 |
= Coming soon: =
|
34 |
* **WML** support
|
@@ -68,6 +69,13 @@ No, you can be safe from plugins conflict. It's been developed using Cookies Ena
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
= 1.1 =
|
72 |
* fix encoding
|
73 |
* activation with default options
|
2 |
Contributors: manafactory, webgrafia, matteobarale
|
3 |
Tags: EU Cookie Law, cookie law, block cookie, cookie consent, cookie law, cookie policy, privacy policy, cookie banner, italian cookie law, cookie italia
|
4 |
Requires at least: 3.0.1
|
5 |
+
Tested up to: 4.2.2
|
6 |
+
Stable tag: 1.1.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
16 |
* really **plug'n play**: simply activate, and enjoy
|
17 |
* complete **banner** configuration: style, position and colors
|
18 |
* **Opt-in** mode enabler: block cookies BEFORE user acceptance (fit for **Italy** regulation)
|
19 |
+
* Exclude Google Analytics cookie if not **anonimyzed**
|
20 |
* Complatible with server **caching**
|
21 |
|
22 |
|
29 |
* google analytics
|
30 |
* google maps
|
31 |
* youtube
|
32 |
+
* vimeo
|
33 |
|
34 |
= Coming soon: =
|
35 |
* **WML** support
|
69 |
|
70 |
== Changelog ==
|
71 |
|
72 |
+
= 1.1.1 =
|
73 |
+
* fix style banner
|
74 |
+
* cookie expire time
|
75 |
+
* css custom
|
76 |
+
* vimeo support
|
77 |
+
* minor fix on label and translation
|
78 |
+
|
79 |
= 1.1 =
|
80 |
* fix encoding
|
81 |
* activation with default options
|