Plugin Directory

Changeset 1277342


Ignore:
Timestamp:
11/01/2015 08:40:15 PM (10 years ago)
Author:
markzero
Message:

1.0.4: add top margin for the sticky header

Location:
awesome-sticky-header
Files:
59 added
5 edited

Legend:

Unmodified
Added
Removed
  • awesome-sticky-header/trunk/assets/js/asmh.js

    r1198799 r1277342  
    5050      }
    5151    });
    52    
     52
    5353    $(window).scroll(function() {
    5454      if ($(window).scrollTop() > asmhObject.sticky_scroll_position) {
  • awesome-sticky-header/trunk/awesomeheader.php

    r1272228 r1277342  
    44Contributors: markzero,nikolicdragan
    55Description: Awesome Sticky Header is a WordPress plugin that lets you control your sticky header.
    6 Version: 1.0.3
     6Version: 1.0.4
    77Plugin URI: https://awesomeheader.com/
    88Author: DevCanyon
     
    3939
    4040
    41 define('ASMH_VERSION', '1.0.3');
     41define('ASMH_VERSION', '1.0.4');
    4242define('ASMH_PATH', trailingslashit(dirname(__FILE__)));
    4343define('ASMH_URL', plugins_url('', __FILE__));
  • awesome-sticky-header/trunk/lib/css-live.php

    r1272228 r1277342  
    1414.asmh-header
    1515{
    16 }
     16  padding: 0;
     17}
     18
     19<?php if ($s['sticky_top_margin'] != 0) { ?>
     20.asmh-header div.middle
     21{
     22  margin-top: <?php echo $s['sticky_top_margin']; ?>px;
     23}
     24<?php } ?>
    1725
    1826.asmh-header > div
    1927{
    2028  position: fixed;
     29  padding: 0;
    2130  width: 100%;
    2231  top: -300px;
  • awesome-sticky-header/trunk/lib/main.php

    r1272228 r1277342  
    362362        __('Menu font size', ASMH_LANG),
    363363        array($this, 'text_size_func'),
     364        'asmh_middle_section',
     365        'asmh_middle_section'
     366    );
     367
     368    add_settings_field(
     369        'sticky_top_margin',
     370        __('Sticky margin (top)', ASMH_LANG),
     371        array($this, 'sticky_top_margin_func'),
    364372        'asmh_middle_section',
    365373        'asmh_middle_section'
     
    9981006      name="asmh_settings[<?php echo $type; ?>_text_size]"
    9991007      value="<?php echo $this->settings[$type . '_text_size']; ?>"> px
     1008<?php
     1009  }
     1010
     1011
     1012  public function sticky_top_margin_func() {
     1013?>
     1014    <input type="number"
     1015      style="width: 70px;"
     1016      name="asmh_settings[sticky_top_margin]"
     1017      value="<?php echo $this->settings['sticky_top_margin']; ?>"> px
    10001018<?php
    10011019  }
     
    13061324                      'site_desc_font_size' => 12,
    13071325                      'middle_text_size' => 18,
     1326                      'sticky_top_margin' => 0,
    13081327                      'middle_menu_item_background_color' => 'DDDDDD',
    13091328                      'middle_menu_item_background_active_color' => null,
  • awesome-sticky-header/trunk/readme.txt

    r1272228 r1277342  
    44Requires at least: 4.2.2
    55Tested up to: 4.3.1
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    136136== Changelog ==
    137137
     138= 1.0.4 =
     139* Added top margin for sticky header
     140
    138141= 1.0.3 =
    139142* Added option to hide header before provided screen size
Note: See TracChangeset for help on using the changeset viewer.