Version Description
- Style Bugfix
Download this release
Release Info
Developer | matteobarale |
Plugin | Ginger – EU Cookie Law |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- front/gingerfront.utils.php +38 -28
- ginger-eu-cookie-law.php +1 -1
- readme.txt +4 -1
front/gingerfront.utils.php
CHANGED
@@ -23,6 +23,42 @@ function ginger_style_script() {
|
|
23 |
wp_enqueue_style( 'ginger-style' );
|
24 |
endif;
|
25 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
function ginger_scirpt(){ ?>
|
28 |
<?php
|
@@ -98,34 +134,8 @@ function ginger_scirpt(){ ?>
|
|
98 |
$label_disable_cookie = $option_ginger_bar['disable_cookie_button_text'];
|
99 |
else:
|
100 |
$label_disable_cookie = __('Disable Cookies', 'ginger');
|
101 |
-
endif;
|
102 |
-
|
103 |
-
if($option_ginger_bar['background_color'] || $option_ginger_bar['text_color'] || $option_ginger_bar['link_color'] || $option_ginger_bar['ginger_css'] || $option_ginger_bar['button_color'] || $option_ginger_bar['button_text_color']): ?>
|
104 |
-
<style>
|
105 |
-
.ginger_container.<?php echo $option_ginger_bar['theme_ginger']; ?>{
|
106 |
-
<?php if($option_ginger_bar['background_color']): ?> background-color: <?php echo $option_ginger_bar['background_color']; ?>;<?php endif; ?>
|
107 |
-
<?php if($option_ginger_bar['text_color']): ?> color: <?php echo $option_ginger_bar['text_color']; ?>;<?php endif; ?>
|
108 |
-
}
|
109 |
-
<?php if($option_ginger_bar['button_color']): ?>
|
110 |
-
a.ginger_btn.ginger-accept, .ginger_btn, .ginger_btn{
|
111 |
-
background: <?php echo $option_ginger_bar['button_color']; ?> !important;
|
112 |
-
}
|
113 |
-
<?php endif; ?>
|
114 |
-
<?php if($option_ginger_bar['button_text_color']): ?>
|
115 |
-
a.ginger_btn {
|
116 |
-
color: <?php echo $option_ginger_bar['button_text_color']; ?> !important;
|
117 |
-
}
|
118 |
-
<?php endif; ?>
|
119 |
-
<?php if($option_ginger_bar['link_color']): ?>
|
120 |
-
.ginger_container.<?php echo $option_ginger_bar['theme_ginger']; ?> a{
|
121 |
-
<?php if($option_ginger_bar['link_color']): ?> color: <?php echo $option_ginger_bar['link_color']; ?>;<?php endif; ?>
|
122 |
-
}
|
123 |
-
<?php endif;?>
|
124 |
-
<?php if($option_ginger_bar['ginger_css']): ?>
|
125 |
-
<?php echo $option_ginger_bar['ginger_css']; ?>
|
126 |
-
<?php endif;?>
|
127 |
-
</style>
|
128 |
-
<?php endif;?>
|
129 |
<!-- Ginger Script -->
|
130 |
<script src="<?php echo plugin_dir_url( __FILE__ ); ?>js/cookies-enabler.min.js"></script>
|
131 |
<!-- Init the script -->
|
23 |
wp_enqueue_style( 'ginger-style' );
|
24 |
endif;
|
25 |
}
|
26 |
+
add_action('wp_head', 'gigner_custom_style' );
|
27 |
+
function gigner_custom_style(){
|
28 |
+
$option_ginger_general = get_option('ginger_general');
|
29 |
+
$option_ginger_bar = get_option('ginger_banner');
|
30 |
+
if($option_ginger_general['enable_ginger'] != 1) return;
|
31 |
+
//Recupero style custom
|
32 |
+
if($option_ginger_bar['background_color'] || $option_ginger_bar['text_color'] || $option_ginger_bar['link_color'] || $option_ginger_bar['ginger_css'] || $option_ginger_bar['button_color'] || $option_ginger_bar['button_text_color']): ?>
|
33 |
+
<style>
|
34 |
+
.ginger_container.<?php echo $option_ginger_bar['theme_ginger']; ?>{
|
35 |
+
<?php if($option_ginger_bar['background_color']): ?> background-color: <?php echo $option_ginger_bar['background_color']; ?>;<?php endif; ?>
|
36 |
+
<?php if($option_ginger_bar['text_color']): ?> color: <?php echo $option_ginger_bar['text_color']; ?>;<?php endif; ?>
|
37 |
+
}
|
38 |
+
<?php if($option_ginger_bar['button_color']): ?>
|
39 |
+
a.ginger_btn.ginger-accept, a.ginger_btn.ginger-disable, .ginger_btn{
|
40 |
+
background: <?php echo $option_ginger_bar['button_color']; ?> !important;
|
41 |
+
}
|
42 |
+
a.ginger_btn.ginger-accept:hover, a.ginger_btn.ginger-disable:hover, .ginger_btn{
|
43 |
+
background: <?php echo $option_ginger_bar['button_color']; ?> !important;
|
44 |
+
}
|
45 |
+
<?php endif; ?>
|
46 |
+
<?php if($option_ginger_bar['button_text_color']): ?>
|
47 |
+
a.ginger_btn {
|
48 |
+
color: <?php echo $option_ginger_bar['button_text_color']; ?> !important;
|
49 |
+
}
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php if($option_ginger_bar['link_color']): ?>
|
52 |
+
.ginger_container.<?php echo $option_ginger_bar['theme_ginger']; ?> a{
|
53 |
+
<?php if($option_ginger_bar['link_color']): ?> color: <?php echo $option_ginger_bar['link_color']; ?>;<?php endif; ?>
|
54 |
+
}
|
55 |
+
<?php endif;?>
|
56 |
+
<?php if($option_ginger_bar['ginger_css']): ?>
|
57 |
+
<?php echo $option_ginger_bar['ginger_css']; ?>
|
58 |
+
<?php endif;?>
|
59 |
+
</style>
|
60 |
+
<?php endif;
|
61 |
+
}
|
62 |
|
63 |
function ginger_scirpt(){ ?>
|
64 |
<?php
|
134 |
$label_disable_cookie = $option_ginger_bar['disable_cookie_button_text'];
|
135 |
else:
|
136 |
$label_disable_cookie = __('Disable Cookies', 'ginger');
|
137 |
+
endif; ?>
|
138 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
<!-- Ginger Script -->
|
140 |
<script src="<?php echo plugin_dir_url( __FILE__ ); ?>js/cookies-enabler.min.js"></script>
|
141 |
<!-- Init the script -->
|
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.2
|
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.2.1
|
7 |
Author: Manafactory
|
8 |
Author URI: http://manafactory.it/
|
9 |
License: GPLv2 or later
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -71,6 +71,9 @@ No, you can be safe from plugins conflict. It's been developed using Cookies Ena
|
|
71 |
|
72 |
== Changelog ==
|
73 |
|
|
|
|
|
|
|
74 |
= 1.2 =
|
75 |
* Add support for disqus and ShareThis
|
76 |
* Bugfix
|
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.2.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
71 |
|
72 |
== Changelog ==
|
73 |
|
74 |
+
= 1.2.1 =
|
75 |
+
* Style Bugfix
|
76 |
+
|
77 |
= 1.2 =
|
78 |
* Add support for disqus and ShareThis
|
79 |
* Bugfix
|