Version Description
- Fixed empty space at top of screen when bar is located at the bottom of screen
Download this release
Release Info
Developer | Catapult |
Plugin | Cookie Consent |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8 to 1.8.1
- readme.txt +5 -2
- uk-cookie-consent.php +5 -2
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: cookies, eu, cookie law, implied consent, uk cookie consent
|
5 |
Requires at least: 3.5.0
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 1.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -48,7 +48,10 @@ You will find more details of the regulations on the [Information Commissioner's
|
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
-
= 1.8
|
|
|
|
|
|
|
52 |
* Move HTML down to accommodate notification bar rather than obscuring content
|
53 |
* Enqueues JS in footer
|
54 |
* Improved translation support
|
4 |
Tags: cookies, eu, cookie law, implied consent, uk cookie consent
|
5 |
Requires at least: 3.5.0
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.8.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
48 |
|
49 |
== Changelog ==
|
50 |
|
51 |
+
= 1.8.1 =
|
52 |
+
* Fixed empty space at top of screen when bar is located at the bottom of screen
|
53 |
+
|
54 |
+
= 1.8 =
|
55 |
* Move HTML down to accommodate notification bar rather than obscuring content
|
56 |
* Enqueues JS in footer
|
57 |
* Improved translation support
|
uk-cookie-consent.php
CHANGED
@@ -329,12 +329,15 @@ function catapult_add_cookie_css() {
|
|
329 |
}
|
330 |
add_action ( 'wp_head', 'catapult_add_cookie_css' );
|
331 |
|
332 |
-
function catapult_add_cookie_js() {
|
|
|
333 |
<script type="text/javascript">
|
334 |
jQuery(document).ready(function(){
|
335 |
if(!catapultReadCookie("catAccCookies")){//If the cookie has not been set
|
336 |
jQuery("#catapult-cookie-bar").show();
|
337 |
-
|
|
|
|
|
338 |
}
|
339 |
});
|
340 |
</script>
|
329 |
}
|
330 |
add_action ( 'wp_head', 'catapult_add_cookie_css' );
|
331 |
|
332 |
+
function catapult_add_cookie_js() {
|
333 |
+
$options = get_option( 'catapult_cookie_options' ); ?>
|
334 |
<script type="text/javascript">
|
335 |
jQuery(document).ready(function(){
|
336 |
if(!catapultReadCookie("catAccCookies")){//If the cookie has not been set
|
337 |
jQuery("#catapult-cookie-bar").show();
|
338 |
+
<?php if ( $options['catapult_cookie_bar_position_settings'] == 'top' ) { ?>
|
339 |
+
jQuery("html").css("margin-top","30px");
|
340 |
+
<?php } ?>
|
341 |
}
|
342 |
});
|
343 |
</script>
|