Changeset 1894765
- Timestamp:
- 06/18/2018 07:50:49 PM (8 years ago)
- Location:
- sticky-header-oceanwp/trunk
- Files:
-
- 2 edited
-
sticky-header-oceanwp.php (modified) (2 diffs)
-
style.css (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sticky-header-oceanwp/trunk/sticky-header-oceanwp.php
r1893033 r1894765 3 3 * Plugin Name: Sticky Header OceanWP 4 4 * 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. 05 * Version: 1.0.1 6 6 * Author: Oren Hahiashvili 7 7 * Author URI: https://www.script.co.il … … 50 50 51 51 $sticky_header_styles = array( 52 ' float',52 'shrink', 53 53 'fixed', 54 54 ); 55 55 56 56 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'])); 58 58 echo '<h2>update success</h2>'; 59 59 } 60 60 61 61 $current_style = get_option('oceanwp_header_style'); 62 if ($current_style == 'float') { 63 update_option('oceanwp_header_style', 'shrink'); 64 $current_style = 'shrink'; 65 } 62 66 63 67 ?> -
sticky-header-oceanwp/trunk/style.css
r1893033 r1894765 2 2 transition: all .3s ease-in-out; 3 3 } 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 } 5 10 @media(min-width: 960px){ 6 11 .fixed_sticky_active #site-logo-inner{ … … 12 17 } 13 18 .fixed_sticky_active #site-header { 14 opacity: 0.9;19 opacity: 1; 15 20 } 16 21 }
Note: See TracChangeset
for help on using the changeset viewer.