Plugin Directory

Changeset 928818


Ignore:
Timestamp:
06/09/2014 10:04:20 AM (12 years ago)
Author:
Catapult
Message:

Committing 1.8.1

Location:
uk-cookie-consent/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uk-cookie-consent/trunk/readme.txt

    r925693 r928818  
    55Requires at least: 3.5.0
    66Tested up to: 3.9.1
    7 Stable tag: 1.8
     7Stable tag: 1.8.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4949== Changelog ==
    5050
    51 = 1.8 ==
     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 =
    5255* Move HTML down to accommodate notification bar rather than obscuring content
    5356* Enqueues JS in footer
  • uk-cookie-consent/trunk/uk-cookie-consent.php

    r925693 r928818  
    330330add_action ( 'wp_head', 'catapult_add_cookie_css' );
    331331
    332 function catapult_add_cookie_js() { ?>
     332function catapult_add_cookie_js() {
     333    $options = get_option( 'catapult_cookie_options' ); ?>
    333334    <script type="text/javascript">
    334335        jQuery(document).ready(function(){
    335336            if(!catapultReadCookie("catAccCookies")){//If the cookie has not been set
    336337                jQuery("#catapult-cookie-bar").show();
    337                 jQuery("html").css("margin-top","30px");
     338                <?php if ( $options['catapult_cookie_bar_position_settings'] == 'top' ) { ?>
     339                    jQuery("html").css("margin-top","30px");
     340                <?php } ?>
    338341            }
    339342        });
Note: See TracChangeset for help on using the changeset viewer.