Plugin Directory

Changeset 1894765


Ignore:
Timestamp:
06/18/2018 07:50:49 PM (8 years ago)
Author:
scriptcoil
Message:

#Fixed issue #Shrink support

Location:
sticky-header-oceanwp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sticky-header-oceanwp/trunk/sticky-header-oceanwp.php

    r1893033 r1894765  
    33 * Plugin Name:         Sticky Header OceanWP
    44 * Description:         Want a new fresh sticky header like everyone else, with our plugin you can get the best and better sticky header that you ever seen
    5  * Version:             1.0.0
     5 * Version:             1.0.1
    66 * Author:              Oren Hahiashvili
    77 * Author URI:          https://www.script.co.il
     
    5050       
    5151        $sticky_header_styles = array(
    52             'float',
     52            'shrink',
    5353            'fixed',
    5454        );
    5555       
    5656        if (!empty($_POST['oceanwp_header_style']) && in_array($_POST['oceanwp_header_style'], $sticky_header_styles)){
    57             update_option(oceanwp_header_style, esc_sql($_POST['oceanwp_header_style']));
     57            update_option('oceanwp_header_style', esc_sql($_POST['oceanwp_header_style']));
    5858            echo '<h2>update success</h2>';
    5959        }
    6060       
    6161        $current_style = get_option('oceanwp_header_style');
     62        if ($current_style == 'float') {
     63            update_option('oceanwp_header_style', 'shrink');
     64            $current_style = 'shrink';
     65        }
    6266       
    6367?>
  • sticky-header-oceanwp/trunk/style.css

    r1893033 r1894765  
    22    transition: all .3s ease-in-out;
    33}
    4 
     4#site-header #site-logo #site-logo-inner a img {
     5    transition: all .3s ease-in-out;
     6}
     7.fixed_sticky_active #site-header #site-logo #site-logo-inner a img{
     8    max-height: 50px!important;
     9}
    510@media(min-width: 960px){
    611    .fixed_sticky_active #site-logo-inner{
     
    1217    }
    1318    .fixed_sticky_active #site-header {
    14         opacity: 0.9;
     19        opacity: 1;
    1520    }
    1621}
Note: See TracChangeset for help on using the changeset viewer.