Version Description
- Changed: admin bar is fixed as default, and menu goes under it.
Download this release
Release Info
Developer | damiroquai |
Plugin | myStickymenu |
Version | 1.9.1 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 1.9.1
- mystickymenu.php +22 -7
- readme.txt +4 -1
mystickymenu.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: myStickymenu
|
4 |
Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
|
5 |
Description: Simple sticky (fixed on top) menu implementation for default Twentythirteen navigation menu. For other themes, after install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
|
6 |
-
Version: 1.9
|
7 |
Author: m.r.d.a
|
8 |
Author URI: http://wordpress.transformnews.com/
|
9 |
Text Domain: mystickymenu
|
@@ -620,15 +620,14 @@ class MyStickyMenuFrontend
|
|
620 |
|
621 |
echo
|
622 |
'<style type="text/css">';
|
623 |
-
|
624 |
-
echo '#wpadminbar { position: absolute !important; top: 0px !important;}';
|
625 |
-
}
|
626 |
if ( $mysticky_options['myfixed_cssstyle'] == "" ) {
|
627 |
echo '.myfixed{margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important;}';
|
628 |
}
|
629 |
echo $mysticky_options ['myfixed_cssstyle'];
|
630 |
echo '#mysticky-nav { width:100%!important; position: static;';
|
631 |
|
|
|
632 |
if (isset($mysticky_options['myfixed_fade']))
|
633 |
{
|
634 |
echo 'top: -100px;';
|
@@ -637,14 +636,30 @@ class MyStickyMenuFrontend
|
|
637 |
|
638 |
|
639 |
if ($mysticky_options ['myfixed_opacity'] == 100 ){
|
640 |
-
|
641 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
642 |
|
643 |
}
|
644 |
|
645 |
if ($mysticky_options ['myfixed_opacity'] < 100 ){
|
|
|
|
|
646 |
|
647 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
|
649 |
}
|
650 |
|
3 |
Plugin Name: myStickymenu
|
4 |
Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
|
5 |
Description: Simple sticky (fixed on top) menu implementation for default Twentythirteen navigation menu. For other themes, after install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
|
6 |
+
Version: 1.9.1
|
7 |
Author: m.r.d.a
|
8 |
Author URI: http://wordpress.transformnews.com/
|
9 |
Text Domain: mystickymenu
|
620 |
|
621 |
echo
|
622 |
'<style type="text/css">';
|
623 |
+
|
|
|
|
|
624 |
if ( $mysticky_options['myfixed_cssstyle'] == "" ) {
|
625 |
echo '.myfixed{margin:0 auto!important; float:none!important; border:0px!important; background:none!important; max-width:100%!important;}';
|
626 |
}
|
627 |
echo $mysticky_options ['myfixed_cssstyle'];
|
628 |
echo '#mysticky-nav { width:100%!important; position: static;';
|
629 |
|
630 |
+
|
631 |
if (isset($mysticky_options['myfixed_fade']))
|
632 |
{
|
633 |
echo 'top: -100px;';
|
636 |
|
637 |
|
638 |
if ($mysticky_options ['myfixed_opacity'] == 100 ){
|
639 |
+
|
640 |
+
if ( is_admin_bar_showing() ) {
|
641 |
+
|
642 |
+
echo '.wrapfixed { position: fixed!important; top:32px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important;}';
|
643 |
+
|
644 |
+
} else {
|
645 |
+
|
646 |
+
echo '.wrapfixed { position: fixed!important; top:0px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important;}';
|
647 |
+
|
648 |
+
}
|
649 |
|
650 |
}
|
651 |
|
652 |
if ($mysticky_options ['myfixed_opacity'] < 100 ){
|
653 |
+
|
654 |
+
if ( is_admin_bar_showing() ) {
|
655 |
|
656 |
+
echo '.wrapfixed { position: fixed!important; top:32px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:.' . $mysticky_options ['myfixed_opacity'] . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important;}';
|
657 |
+
|
658 |
+
} else {
|
659 |
+
|
660 |
+
echo '.wrapfixed { position: fixed!important; top:0px!important; left: 0px!important; margin-top:0px!important; z-index: '. $mysticky_options ['myfixed_zindex'] .'; -webkit-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -moz-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -o-transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; transition: ' . $mysticky_options ['myfixed_transition_time'] . 's; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=' . $mysticky_options ['myfixed_opacity'] . ')"; filter: alpha(opacity=' . $mysticky_options ['myfixed_opacity'] . '); opacity:.' . $mysticky_options ['myfixed_opacity'] . '; background-color: ' . $mysticky_options ['myfixed_bgcolor'] . '!important;}';
|
661 |
+
|
662 |
+
}
|
663 |
|
664 |
}
|
665 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpress.transformnews.com/contact
|
|
4 |
Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.8.1
|
7 |
-
Stable tag: 1.9
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
This lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
|
@@ -56,6 +56,9 @@ In some cases you can use the whole header div and than just style it different
|
|
56 |
|
57 |
== Changelog ==
|
58 |
|
|
|
|
|
|
|
59 |
= 1.9 =
|
60 |
* Fixed: enable / disable at search pages
|
61 |
|
4 |
Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.8.1
|
7 |
+
Stable tag: 1.9.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
This lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
|
56 |
|
57 |
== Changelog ==
|
58 |
|
59 |
+
= 1.9.1 =
|
60 |
+
* Changed: admin bar is fixed as default, and menu goes under it.
|
61 |
+
|
62 |
= 1.9 =
|
63 |
* Fixed: enable / disable at search pages
|
64 |
|