Version Description
Sanitize input fixes
Download this release
Release Info
| Developer | galdub |
| Plugin | |
| Version | 2.2.6 |
| Comparing to | |
| See all releases | |
Code changes from version 2.2.5 to 2.2.6
- class-review-box.php +35 -35
- mystickymenu-affiliate.php +5 -5
- mystickymenu.php +21 -21
- readme.txt +4 -2
class-review-box.php
CHANGED
|
@@ -48,7 +48,7 @@ class myStickymenu_review_box {
|
|
| 48 |
}
|
| 49 |
?>
|
| 50 |
<style>
|
| 51 |
-
.<?php echo $this->plugin_slug ?>-premio-review-box p a {
|
| 52 |
display: inline-block;
|
| 53 |
float: right;
|
| 54 |
text-decoration: none;
|
|
@@ -57,15 +57,15 @@ class myStickymenu_review_box {
|
|
| 57 |
right: 12px;
|
| 58 |
top: 12px;
|
| 59 |
}
|
| 60 |
-
.<?php echo $this->plugin_slug ?>-premio-review-box p a:hover, .<?php echo $this->plugin_slug ?>-premio-review-box p a:focus {
|
| 61 |
color: #333333;
|
| 62 |
}
|
| 63 |
-
.<?php echo $this->plugin_slug ?>-premio-review-box .button span {
|
| 64 |
display: inline-block;
|
| 65 |
line-height: 27px;
|
| 66 |
font-size: 16px;
|
| 67 |
}
|
| 68 |
-
.<?php echo $this->plugin_slug ?>-review-box-popup {
|
| 69 |
position: fixed;
|
| 70 |
width: 100%;
|
| 71 |
height: 100%;
|
|
@@ -75,7 +75,7 @@ class myStickymenu_review_box {
|
|
| 75 |
left: 0;
|
| 76 |
display: none;
|
| 77 |
}
|
| 78 |
-
.<?php echo $this->plugin_slug ?>-review-box-popup-content {
|
| 79 |
background: #ffffff;
|
| 80 |
padding: 20px;
|
| 81 |
position: absolute;
|
|
@@ -89,23 +89,23 @@ class myStickymenu_review_box {
|
|
| 89 |
-moz-border-radius: 5px;
|
| 90 |
border-radius: 5px;: ;
|
| 91 |
}
|
| 92 |
-
.<?php echo $this->plugin_slug ?>-review-box-title {
|
| 93 |
padding: 0 0 10px 0;
|
| 94 |
font-weight: bold;
|
| 95 |
}
|
| 96 |
-
.<?php echo $this->plugin_slug ?>-review-box-options a {
|
| 97 |
display: block;
|
| 98 |
margin: 5px 0 5px 0;
|
| 99 |
color: #333;
|
| 100 |
text-decoration: none;
|
| 101 |
}
|
| 102 |
-
.<?php echo $this->plugin_slug ?>-review-box-options a.dismiss {
|
| 103 |
color: #999;
|
| 104 |
}
|
| 105 |
-
.<?php echo $this->plugin_slug ?>-review-box-options a:hover, .affiliate-options a:focus {
|
| 106 |
color: #0073aa;
|
| 107 |
}
|
| 108 |
-
button.<?php echo $this->plugin_slug ?>-close-review-box-popup {
|
| 109 |
position: absolute;
|
| 110 |
top: 5px;
|
| 111 |
right: 0;
|
|
@@ -113,7 +113,7 @@ class myStickymenu_review_box {
|
|
| 113 |
background: transparent;
|
| 114 |
cursor: pointer;
|
| 115 |
}
|
| 116 |
-
a.button.button-primary.<?php echo $this->plugin_slug ?>-review-box-btn {
|
| 117 |
font-size: 14px;
|
| 118 |
background: #F51366;
|
| 119 |
color: #fff;
|
|
@@ -137,13 +137,13 @@ class myStickymenu_review_box {
|
|
| 137 |
font-size: 14px;
|
| 138 |
text-decoration: underline;
|
| 139 |
}
|
| 140 |
-
.<?php echo $this->plugin_slug ?>-premio-review-box p {
|
| 141 |
display: inline-block;
|
| 142 |
line-height: 30px;
|
| 143 |
vertical-align: middle;
|
| 144 |
padding: 0 10px 0 0;
|
| 145 |
}
|
| 146 |
-
.<?php echo $this->plugin_slug ?>-premio-review-box p img {
|
| 147 |
width: 30px;
|
| 148 |
height: 30px;
|
| 149 |
display: inline-block;
|
|
@@ -152,24 +152,24 @@ class myStickymenu_review_box {
|
|
| 152 |
border-radius: 15px;
|
| 153 |
}
|
| 154 |
</style>
|
| 155 |
-
<div class="notice notice-info premio-notice <?php echo $this->plugin_slug ?>-premio-review-box <?php echo $this->plugin_slug ?>-premio-review-box">
|
| 156 |
<p>
|
| 157 |
-
Hi there, it seems like <b><?php echo $this->plugin_name ?></b> is bringing you some value, and that's pretty awesome! Can you please show us some love and rate <?php echo $this->plugin_name ?> on WordPress? It'll only take 2 minutes of your time, and will really help us spread the word
|
| 158 |
- <b>Gal Dubinski</b>, Co-founder <img width="30px" src="<?php echo esc_url(plugin_dir_url(__FILE__)."images/premio-owner.png") ?>" />
|
| 159 |
-
<a href="javascript:;" class="dismiss-btn <?php echo $this->plugin_slug ?>-premio-review-dismiss-btn"><span class="dashicons dashicons-no-alt"></span></a>
|
| 160 |
</p>
|
| 161 |
<div class="clear clearfix"></div>
|
| 162 |
<ul>
|
| 163 |
-
<li><a class="<?php echo $this->plugin_slug ?>-premio-review-box-hide-btn" href="https://wordpress.org/support/plugin/mystickymenu/reviews/?filter=5" target="_blank">I'd love to help :)</a></li>
|
| 164 |
-
<li><a class="<?php echo $this->plugin_slug ?>-premio-review-box-future-btn" href="javascript:;">Not this time</a></li>
|
| 165 |
-
<li><a class="<?php echo $this->plugin_slug ?>-premio-review-box-hide-btn" href="javascript:;">I've already rated you</a></li>
|
| 166 |
</ul>
|
| 167 |
</div>
|
| 168 |
-
<div class="<?php echo $this->plugin_slug ?>-review-box-popup">
|
| 169 |
-
<div class="<?php echo $this->plugin_slug ?>-review-box-popup-content">
|
| 170 |
-
<button class="<?php echo $this->plugin_slug ?>-close-review-box-popup"><span class="dashicons dashicons-no-alt"></span></button>
|
| 171 |
-
<div class="<?php echo $this->plugin_slug ?>-review-box-title">Would you like us to remind you about this later?</div>
|
| 172 |
-
<div class="<?php echo $this->plugin_slug ?>-review-box-options">
|
| 173 |
<a href="javascript:;" data-days="3">Remind me in 3 days</a>
|
| 174 |
<a href="javascript:;" data-days="10">Remind me in 10 days</a>
|
| 175 |
<a href="javascript:;" data-days="-1" class="dismiss">Don't remind me about this</a>
|
|
@@ -179,27 +179,27 @@ class myStickymenu_review_box {
|
|
| 179 |
<script>
|
| 180 |
jQuery(document).ready(function(){
|
| 181 |
jQuery("body").addClass("has-premio-box");
|
| 182 |
-
jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-premio-review-dismiss-btn, .<?php echo $this->plugin_slug ?>-premio-review-box-future-btn", function(){
|
| 183 |
-
jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").show();
|
| 184 |
});
|
| 185 |
-
jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-close-review-box-popup", function(){
|
| 186 |
-
jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").hide();
|
| 187 |
});
|
| 188 |
-
jQuery(document).on("click",".<?php echo $this->plugin_slug ?>-premio-review-box-hide-btn",function(){
|
| 189 |
-
jQuery(".<?php echo $this->plugin_slug ?>-review-box-options a:last").trigger("click");
|
| 190 |
});
|
| 191 |
-
jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-review-box-options a", function(){
|
| 192 |
var dataDays = jQuery(this).attr("data-days");
|
| 193 |
-
jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").remove();
|
| 194 |
-
jQuery(".<?php echo $this->plugin_slug ?>-premio-review-box").remove();
|
| 195 |
jQuery("body").removeClass("has-premio-box");
|
| 196 |
jQuery.ajax({
|
| 197 |
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
| 198 |
data: "action=<?php echo esc_attr($this->plugin_slug) ?>_review_box&days="+dataDays+"&nonce=<?php echo esc_attr(wp_create_nonce($this->plugin_slug."_review_box")) ?>",
|
| 199 |
type: "post",
|
| 200 |
success: function() {
|
| 201 |
-
jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").remove();
|
| 202 |
-
jQuery(".<?php echo $this->plugin_slug ?>-premio-review-box").remove();
|
| 203 |
}
|
| 204 |
});
|
| 205 |
});
|
| 48 |
}
|
| 49 |
?>
|
| 50 |
<style>
|
| 51 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box p a {
|
| 52 |
display: inline-block;
|
| 53 |
float: right;
|
| 54 |
text-decoration: none;
|
| 57 |
right: 12px;
|
| 58 |
top: 12px;
|
| 59 |
}
|
| 60 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box p a:hover, .<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box p a:focus {
|
| 61 |
color: #333333;
|
| 62 |
}
|
| 63 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box .button span {
|
| 64 |
display: inline-block;
|
| 65 |
line-height: 27px;
|
| 66 |
font-size: 16px;
|
| 67 |
}
|
| 68 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup {
|
| 69 |
position: fixed;
|
| 70 |
width: 100%;
|
| 71 |
height: 100%;
|
| 75 |
left: 0;
|
| 76 |
display: none;
|
| 77 |
}
|
| 78 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup-content {
|
| 79 |
background: #ffffff;
|
| 80 |
padding: 20px;
|
| 81 |
position: absolute;
|
| 89 |
-moz-border-radius: 5px;
|
| 90 |
border-radius: 5px;: ;
|
| 91 |
}
|
| 92 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-review-box-title {
|
| 93 |
padding: 0 0 10px 0;
|
| 94 |
font-weight: bold;
|
| 95 |
}
|
| 96 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-review-box-options a {
|
| 97 |
display: block;
|
| 98 |
margin: 5px 0 5px 0;
|
| 99 |
color: #333;
|
| 100 |
text-decoration: none;
|
| 101 |
}
|
| 102 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-review-box-options a.dismiss {
|
| 103 |
color: #999;
|
| 104 |
}
|
| 105 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-review-box-options a:hover, .affiliate-options a:focus {
|
| 106 |
color: #0073aa;
|
| 107 |
}
|
| 108 |
+
button.<?php echo esc_attr($this->plugin_slug) ?>-close-review-box-popup {
|
| 109 |
position: absolute;
|
| 110 |
top: 5px;
|
| 111 |
right: 0;
|
| 113 |
background: transparent;
|
| 114 |
cursor: pointer;
|
| 115 |
}
|
| 116 |
+
a.button.button-primary.<?php echo esc_attr($this->plugin_slug) ?>-review-box-btn {
|
| 117 |
font-size: 14px;
|
| 118 |
background: #F51366;
|
| 119 |
color: #fff;
|
| 137 |
font-size: 14px;
|
| 138 |
text-decoration: underline;
|
| 139 |
}
|
| 140 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box p {
|
| 141 |
display: inline-block;
|
| 142 |
line-height: 30px;
|
| 143 |
vertical-align: middle;
|
| 144 |
padding: 0 10px 0 0;
|
| 145 |
}
|
| 146 |
+
.<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box p img {
|
| 147 |
width: 30px;
|
| 148 |
height: 30px;
|
| 149 |
display: inline-block;
|
| 152 |
border-radius: 15px;
|
| 153 |
}
|
| 154 |
</style>
|
| 155 |
+
<div class="notice notice-info premio-notice <?php echo esc_attr($this->plugin_slug) ?>-premio-review-box <?php echo esc_attr($this->plugin_slug) ?>-premio-review-box">
|
| 156 |
<p>
|
| 157 |
+
Hi there, it seems like <b><?php echo esc_attr($this->plugin_name) ?></b> is bringing you some value, and that's pretty awesome! Can you please show us some love and rate <?php echo esc_attr($this->plugin_name) ?> on WordPress? It'll only take 2 minutes of your time, and will really help us spread the word
|
| 158 |
- <b>Gal Dubinski</b>, Co-founder <img width="30px" src="<?php echo esc_url(plugin_dir_url(__FILE__)."images/premio-owner.png") ?>" />
|
| 159 |
+
<a href="javascript:;" class="dismiss-btn <?php echo esc_attr($this->plugin_slug) ?>-premio-review-dismiss-btn"><span class="dashicons dashicons-no-alt"></span></a>
|
| 160 |
</p>
|
| 161 |
<div class="clear clearfix"></div>
|
| 162 |
<ul>
|
| 163 |
+
<li><a class="<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-hide-btn" href="https://wordpress.org/support/plugin/mystickymenu/reviews/?filter=5" target="_blank">I'd love to help :)</a></li>
|
| 164 |
+
<li><a class="<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-future-btn" href="javascript:;">Not this time</a></li>
|
| 165 |
+
<li><a class="<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-hide-btn" href="javascript:;">I've already rated you</a></li>
|
| 166 |
</ul>
|
| 167 |
</div>
|
| 168 |
+
<div class="<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup">
|
| 169 |
+
<div class="<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup-content">
|
| 170 |
+
<button class="<?php echo esc_attr($this->plugin_slug) ?>-close-review-box-popup"><span class="dashicons dashicons-no-alt"></span></button>
|
| 171 |
+
<div class="<?php echo esc_attr($this->plugin_slug) ?>-review-box-title">Would you like us to remind you about this later?</div>
|
| 172 |
+
<div class="<?php echo esc_attr($this->plugin_slug) ?>-review-box-options">
|
| 173 |
<a href="javascript:;" data-days="3">Remind me in 3 days</a>
|
| 174 |
<a href="javascript:;" data-days="10">Remind me in 10 days</a>
|
| 175 |
<a href="javascript:;" data-days="-1" class="dismiss">Don't remind me about this</a>
|
| 179 |
<script>
|
| 180 |
jQuery(document).ready(function(){
|
| 181 |
jQuery("body").addClass("has-premio-box");
|
| 182 |
+
jQuery(document).on("click", ".<?php echo esc_attr($this->plugin_slug) ?>-premio-review-dismiss-btn, .<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-future-btn", function(){
|
| 183 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup").show();
|
| 184 |
});
|
| 185 |
+
jQuery(document).on("click", ".<?php echo esc_attr($this->plugin_slug) ?>-close-review-box-popup", function(){
|
| 186 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup").hide();
|
| 187 |
});
|
| 188 |
+
jQuery(document).on("click",".<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-hide-btn",function(){
|
| 189 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-review-box-options a:last").trigger("click");
|
| 190 |
});
|
| 191 |
+
jQuery(document).on("click", ".<?php echo esc_attr($this->plugin_slug) ?>-review-box-options a", function(){
|
| 192 |
var dataDays = jQuery(this).attr("data-days");
|
| 193 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup").remove();
|
| 194 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box").remove();
|
| 195 |
jQuery("body").removeClass("has-premio-box");
|
| 196 |
jQuery.ajax({
|
| 197 |
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
| 198 |
data: "action=<?php echo esc_attr($this->plugin_slug) ?>_review_box&days="+dataDays+"&nonce=<?php echo esc_attr(wp_create_nonce($this->plugin_slug."_review_box")) ?>",
|
| 199 |
type: "post",
|
| 200 |
success: function() {
|
| 201 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup").remove();
|
| 202 |
+
jQuery(".<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box").remove();
|
| 203 |
}
|
| 204 |
});
|
| 205 |
});
|
mystickymenu-affiliate.php
CHANGED
|
@@ -124,10 +124,10 @@ class MyStickyMenu_affiliate_program {
|
|
| 124 |
text-shadow: none;
|
| 125 |
}
|
| 126 |
</style>
|
| 127 |
-
<div class="notice notice-info premio-affiliate <?php echo $this->plugin ?>-premio-affiliate">
|
| 128 |
-
<p>Hi there, you've been using My Sticky Menu for a while now. Do you know that <b>My Sticky Menu</b> has an affiliate program? Join now and get 25% lifetime commission <a href="javascript:;" class="dismiss-btn"><span class="dashicons dashicons-no-alt"></span> Dismiss</a></p>
|
| 129 |
<div class="clear clearfix"></div>
|
| 130 |
-
<a class="button button-primary affiliate-btn" target="_blank" href="https://premio.io/affiliates/?utm_source=inapp&domain=<?php echo $_SERVER['HTTP_HOST'] ?>">Tell me more <span class="dashicons dashicons-arrow-right-alt"></span></a>
|
| 131 |
</div>
|
| 132 |
<div class="affiliate-popup">
|
| 133 |
<div class="affiliate-popup-content">
|
|
@@ -151,14 +151,14 @@ class MyStickyMenu_affiliate_program {
|
|
| 151 |
jQuery(document).on("click", ".affiliate-options a", function(){
|
| 152 |
var dataDays = jQuery(this).attr("data-days");
|
| 153 |
jQuery(".affiliate-popup").hide();
|
| 154 |
-
jQuery(".<?php echo $this->plugin ?>-premio-affiliate").hide();
|
| 155 |
jQuery.ajax({
|
| 156 |
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
| 157 |
data: "action=<?php echo esc_attr($this->plugin) ?>_affiliate_program&days="+dataDays+"&nonce=<?php echo esc_attr(wp_create_nonce($this->plugin."_affiliate_program")) ?>",
|
| 158 |
type: "post",
|
| 159 |
success: function() {
|
| 160 |
jQuery(".affiliate-popup").remove();
|
| 161 |
-
jQuery(".<?php echo $this->plugin ?>-premio-affiliate").remove();
|
| 162 |
}
|
| 163 |
});
|
| 164 |
});
|
| 124 |
text-shadow: none;
|
| 125 |
}
|
| 126 |
</style>
|
| 127 |
+
<div class="notice notice-info premio-affiliate <?php echo esc_attr($this->plugin) ?>-premio-affiliate">
|
| 128 |
+
<p>Hi there, you've been using My Sticky Menu for a while now. Do you know that <b>My Sticky Menu</b> has an affiliate program? Join now and get <b>25% lifetime commission</b> <a href="javascript:;" class="dismiss-btn"><span class="dashicons dashicons-no-alt"></span> Dismiss</a></p>
|
| 129 |
<div class="clear clearfix"></div>
|
| 130 |
+
<a class="button button-primary affiliate-btn" target="_blank" href="https://premio.io/affiliates/?utm_source=inapp&plugin=mystickymenu&domain=<?php echo $_SERVER['HTTP_HOST'] ?>">Tell me more <span class="dashicons dashicons-arrow-right-alt"></span></a>
|
| 131 |
</div>
|
| 132 |
<div class="affiliate-popup">
|
| 133 |
<div class="affiliate-popup-content">
|
| 151 |
jQuery(document).on("click", ".affiliate-options a", function(){
|
| 152 |
var dataDays = jQuery(this).attr("data-days");
|
| 153 |
jQuery(".affiliate-popup").hide();
|
| 154 |
+
jQuery(".<?php echo esc_attr($this->plugin) ?>-premio-affiliate").hide();
|
| 155 |
jQuery.ajax({
|
| 156 |
url: "<?php echo admin_url("admin-ajax.php") ?>",
|
| 157 |
data: "action=<?php echo esc_attr($this->plugin) ?>_affiliate_program&days="+dataDays+"&nonce=<?php echo esc_attr(wp_create_nonce($this->plugin."_affiliate_program")) ?>",
|
| 158 |
type: "post",
|
| 159 |
success: function() {
|
| 160 |
jQuery(".affiliate-popup").remove();
|
| 161 |
+
jQuery(".<?php echo esc_attr($this->plugin) ?>-premio-affiliate").remove();
|
| 162 |
}
|
| 163 |
});
|
| 164 |
});
|
mystickymenu.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: myStickymenu
|
| 4 |
Plugin URI: https://premio.io/
|
| 5 |
Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
|
| 6 |
-
Version: 2.2.
|
| 7 |
Author: Premio
|
| 8 |
Author URI: https://premio.io/downloads/mystickymenu/
|
| 9 |
Text Domain: mystickymenu
|
|
@@ -12,7 +12,7 @@ License: GPLv2 or later
|
|
| 12 |
*/
|
| 13 |
|
| 14 |
defined('ABSPATH') or die("Cannot access pages directly.");
|
| 15 |
-
define( 'MYSTICKY_VERSION', '2.2.
|
| 16 |
require_once("mystickymenu-fonts.php");
|
| 17 |
require_once("welcome-bar.php");
|
| 18 |
|
|
@@ -219,15 +219,15 @@ class MyStickyMenuBackend
|
|
| 219 |
<div id="mystickymenu" class="wrap mystickymenu">
|
| 220 |
<div class="sticky-header-menu">
|
| 221 |
<ul>
|
| 222 |
-
<li><a href="#sticky-header-settings" class="<?php echo $welcomebar_inactive_class; ?>"><?php
|
| 223 |
-
<li><a href="#sticky-header-welcome-bar" class="<?php echo $welcomebar_active_class; ?>"><?php
|
| 224 |
-
<li><a href="#sticky-header-upgrade" class="<?php echo (isset($_GET['type'])&&$_GET['type']=="upgrade")?"active":"" ?>"><?php
|
| 225 |
</ul>
|
| 226 |
</div>
|
| 227 |
<div style="<?php echo $welcomebar_inactive_block; ?>" id="sticky-header-settings" class="sticky-header-content">
|
| 228 |
<div class="mystickymenu-heading">
|
| 229 |
<div class="myStickymenu-header-title">
|
| 230 |
-
<h3><?php
|
| 231 |
</div>
|
| 232 |
<p><?php _e("Add sticky menu / header to any theme. <br />Simply change 'Sticky Class' to HTML element class desired to be sticky (div id can be used as well).", 'mystickymenu'); ?></p>
|
| 233 |
</div>
|
|
@@ -339,7 +339,7 @@ class MyStickyMenuBackend
|
|
| 339 |
<tr>
|
| 340 |
<td>
|
| 341 |
<label for="myfixed_disable_small_screen" class="mysticky_title"><?php _e("Disable at Small Screen Sizes", 'mystickymenu')?></label>
|
| 342 |
-
<p class="description"><?php
|
| 343 |
</td>
|
| 344 |
<td>
|
| 345 |
<div class="px-wrap">
|
|
@@ -349,7 +349,7 @@ class MyStickyMenuBackend
|
|
| 349 |
</td>
|
| 350 |
<td>
|
| 351 |
<label for="mysticky_active_on_height" class="mysticky_title"><?php _e("Make visible on Scroll", 'mystickymenu')?></label>
|
| 352 |
-
<p class="description"><?php
|
| 353 |
</td>
|
| 354 |
<td>
|
| 355 |
<div class="px-wrap">
|
|
@@ -412,7 +412,7 @@ class MyStickyMenuBackend
|
|
| 412 |
</p>
|
| 413 |
</div>
|
| 414 |
<div class="mysticky-page-target-setting mystickymenu-content-option">
|
| 415 |
-
<label class="mysticky_title"><?php
|
| 416 |
<div class="mystickymenu-input-section mystickymenu-page-target-wrap">
|
| 417 |
<div class="mysticky-welcomebar-setting-content-right">
|
| 418 |
<div class="mysticky-page-options" id="mysticky-welcomebar-page-options">
|
|
@@ -535,55 +535,55 @@ class MyStickyMenuBackend
|
|
| 535 |
<li>
|
| 536 |
<label>
|
| 537 |
<input id="mysticky_disable_at_front_home" name="mysticky_option_name[mysticky_disable_at_front_home]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_front_home'], 'on' );?>/>
|
| 538 |
-
<span><?php
|
| 539 |
</label>
|
| 540 |
</li>
|
| 541 |
<li>
|
| 542 |
<label>
|
| 543 |
<input id="mysticky_disable_at_blog" name="mysticky_option_name[mysticky_disable_at_blog]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_blog'], 'on' );?>/>
|
| 544 |
-
<span><?php
|
| 545 |
</label>
|
| 546 |
</li>
|
| 547 |
<li>
|
| 548 |
<label>
|
| 549 |
<input id="mysticky_disable_at_page" name="mysticky_option_name[mysticky_disable_at_page]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_page'], 'on' );?> />
|
| 550 |
-
<span><?php
|
| 551 |
</label>
|
| 552 |
</li>
|
| 553 |
<li>
|
| 554 |
<label>
|
| 555 |
<input id="mysticky_disable_at_tag" name="mysticky_option_name[mysticky_disable_at_tag]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_tag'], 'on' );?> />
|
| 556 |
-
<span><?php
|
| 557 |
</label>
|
| 558 |
</li>
|
| 559 |
<li>
|
| 560 |
<label>
|
| 561 |
<input id="mysticky_disable_at_category" name="mysticky_option_name[mysticky_disable_at_category]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_category'], 'on' );?>/>
|
| 562 |
-
<span><?php
|
| 563 |
</label>
|
| 564 |
</li>
|
| 565 |
<li>
|
| 566 |
<label>
|
| 567 |
<input id="mysticky_disable_at_single" name="mysticky_option_name[mysticky_disable_at_single]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_single'], 'on' );?> />
|
| 568 |
-
<span><?php
|
| 569 |
</label>
|
| 570 |
</li>
|
| 571 |
<li>
|
| 572 |
<label>
|
| 573 |
<input id="mysticky_disable_at_archive" name="mysticky_option_name[mysticky_disable_at_archive]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_archive'], 'on' );?> />
|
| 574 |
-
<span><?php
|
| 575 |
</label>
|
| 576 |
</li>
|
| 577 |
<li>
|
| 578 |
<label>
|
| 579 |
<input id="mysticky_disable_at_search" name="mysticky_option_name[mysticky_disable_at_search]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_search'], 'on' );?> />
|
| 580 |
-
<span><?php
|
| 581 |
</label>
|
| 582 |
</li>
|
| 583 |
<li>
|
| 584 |
<label>
|
| 585 |
<input id="mysticky_disable_at_404" name="mysticky_option_name[mysticky_disable_at_404]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_404'], 'on' );?>/>
|
| 586 |
-
<span><?php
|
| 587 |
</label>
|
| 588 |
</li>
|
| 589 |
</ul>
|
|
@@ -623,17 +623,17 @@ class MyStickyMenuBackend
|
|
| 623 |
|
| 624 |
</div>
|
| 625 |
<p class="submit">
|
| 626 |
-
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php
|
| 627 |
</p>
|
| 628 |
<input type="hidden" name="nonce" value="<?php echo $nonce ?>">
|
| 629 |
</form>
|
| 630 |
<form class="mysticky-hideformreset" method="post" action="">
|
| 631 |
-
<input name="reset_mysticky_options" class="button button-secondary confirm" type="submit" value="<?php
|
| 632 |
<input type="hidden" name="action" value="reset" />
|
| 633 |
<?php $nonce = wp_create_nonce('mysticky_option_backend_reset_nonce'); ?>
|
| 634 |
<input type="hidden" name="nonce" value="<?php echo $nonce ?>">
|
| 635 |
</form>
|
| 636 |
-
<p class="myStickymenu-review"><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><?php
|
| 637 |
</div>
|
| 638 |
<div style="<?php echo $welcomebar_active_block; ?>" id="sticky-header-welcome-bar" class="sticky-header-content">
|
| 639 |
<?php mysticky_welcome_bar_backend(); ?>
|
| 3 |
Plugin Name: myStickymenu
|
| 4 |
Plugin URI: https://premio.io/
|
| 5 |
Description: Simple sticky (fixed on top) menu implementation for navigation menu and Welcome bar for announcements and promotion. After install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
|
| 6 |
+
Version: 2.2.6
|
| 7 |
Author: Premio
|
| 8 |
Author URI: https://premio.io/downloads/mystickymenu/
|
| 9 |
Text Domain: mystickymenu
|
| 12 |
*/
|
| 13 |
|
| 14 |
defined('ABSPATH') or die("Cannot access pages directly.");
|
| 15 |
+
define( 'MYSTICKY_VERSION', '2.2.6' );
|
| 16 |
require_once("mystickymenu-fonts.php");
|
| 17 |
require_once("welcome-bar.php");
|
| 18 |
|
| 219 |
<div id="mystickymenu" class="wrap mystickymenu">
|
| 220 |
<div class="sticky-header-menu">
|
| 221 |
<ul>
|
| 222 |
+
<li><a href="#sticky-header-settings" class="<?php echo $welcomebar_inactive_class; ?>"><?php esc_attr_e('Sticky Menu', 'mystickymenu'); ?></a></li>
|
| 223 |
+
<li><a href="#sticky-header-welcome-bar" class="<?php echo $welcomebar_active_class; ?>"><?php esc_attr_e('Welcome Bar', 'mystickymenu'); ?></a></li>
|
| 224 |
+
<li><a href="#sticky-header-upgrade" class="<?php echo (isset($_GET['type'])&&$_GET['type']=="upgrade")?"active":"" ?>"><?php esc_attr_e('Upgrade to Pro', 'mystickymenu'); ?></a></li>
|
| 225 |
</ul>
|
| 226 |
</div>
|
| 227 |
<div style="<?php echo $welcomebar_inactive_block; ?>" id="sticky-header-settings" class="sticky-header-content">
|
| 228 |
<div class="mystickymenu-heading">
|
| 229 |
<div class="myStickymenu-header-title">
|
| 230 |
+
<h3><?php esc_attr_e('How To Make a Sticky Header', 'mystickymenu'); ?></h3>
|
| 231 |
</div>
|
| 232 |
<p><?php _e("Add sticky menu / header to any theme. <br />Simply change 'Sticky Class' to HTML element class desired to be sticky (div id can be used as well).", 'mystickymenu'); ?></p>
|
| 233 |
</div>
|
| 339 |
<tr>
|
| 340 |
<td>
|
| 341 |
<label for="myfixed_disable_small_screen" class="mysticky_title"><?php _e("Disable at Small Screen Sizes", 'mystickymenu')?></label>
|
| 342 |
+
<p class="description"><?php esc_attr_e('Less than chosen screen width, set 0 to disable','mystickymenu');?></p>
|
| 343 |
</td>
|
| 344 |
<td>
|
| 345 |
<div class="px-wrap">
|
| 349 |
</td>
|
| 350 |
<td>
|
| 351 |
<label for="mysticky_active_on_height" class="mysticky_title"><?php _e("Make visible on Scroll", 'mystickymenu')?></label>
|
| 352 |
+
<p class="description"><?php esc_attr_e('If set to 0 auto calculate will be used.','mystickymenu');?></p>
|
| 353 |
</td>
|
| 354 |
<td>
|
| 355 |
<div class="px-wrap">
|
| 412 |
</p>
|
| 413 |
</div>
|
| 414 |
<div class="mysticky-page-target-setting mystickymenu-content-option">
|
| 415 |
+
<label class="mysticky_title"><?php esc_attr_e('Page targeting', 'myStickymenu'); ?></label>
|
| 416 |
<div class="mystickymenu-input-section mystickymenu-page-target-wrap">
|
| 417 |
<div class="mysticky-welcomebar-setting-content-right">
|
| 418 |
<div class="mysticky-page-options" id="mysticky-welcomebar-page-options">
|
| 535 |
<li>
|
| 536 |
<label>
|
| 537 |
<input id="mysticky_disable_at_front_home" name="mysticky_option_name[mysticky_disable_at_front_home]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_front_home'], 'on' );?>/>
|
| 538 |
+
<span><?php esc_attr_e('front page', 'mystickymenu' );?></span>
|
| 539 |
</label>
|
| 540 |
</li>
|
| 541 |
<li>
|
| 542 |
<label>
|
| 543 |
<input id="mysticky_disable_at_blog" name="mysticky_option_name[mysticky_disable_at_blog]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_blog'], 'on' );?>/>
|
| 544 |
+
<span><?php esc_attr_e('blog page', 'mystickymenu' );?></span>
|
| 545 |
</label>
|
| 546 |
</li>
|
| 547 |
<li>
|
| 548 |
<label>
|
| 549 |
<input id="mysticky_disable_at_page" name="mysticky_option_name[mysticky_disable_at_page]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_page'], 'on' );?> />
|
| 550 |
+
<span><?php esc_attr_e('pages', 'mystickymenu' );?> </span>
|
| 551 |
</label>
|
| 552 |
</li>
|
| 553 |
<li>
|
| 554 |
<label>
|
| 555 |
<input id="mysticky_disable_at_tag" name="mysticky_option_name[mysticky_disable_at_tag]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_tag'], 'on' );?> />
|
| 556 |
+
<span><?php esc_attr_e('tags', 'mystickymenu' );?> </span>
|
| 557 |
</label>
|
| 558 |
</li>
|
| 559 |
<li>
|
| 560 |
<label>
|
| 561 |
<input id="mysticky_disable_at_category" name="mysticky_option_name[mysticky_disable_at_category]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_category'], 'on' );?>/>
|
| 562 |
+
<span><?php esc_attr_e('categories', 'mystickymenu' );?></span>
|
| 563 |
</label>
|
| 564 |
</li>
|
| 565 |
<li>
|
| 566 |
<label>
|
| 567 |
<input id="mysticky_disable_at_single" name="mysticky_option_name[mysticky_disable_at_single]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_single'], 'on' );?> />
|
| 568 |
+
<span><?php esc_attr_e('posts', 'mystickymenu' );?> </span>
|
| 569 |
</label>
|
| 570 |
</li>
|
| 571 |
<li>
|
| 572 |
<label>
|
| 573 |
<input id="mysticky_disable_at_archive" name="mysticky_option_name[mysticky_disable_at_archive]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_archive'], 'on' );?> />
|
| 574 |
+
<span><?php esc_attr_e('archives', 'mystickymenu' );?> </span>
|
| 575 |
</label>
|
| 576 |
</li>
|
| 577 |
<li>
|
| 578 |
<label>
|
| 579 |
<input id="mysticky_disable_at_search" name="mysticky_option_name[mysticky_disable_at_search]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_search'], 'on' );?> />
|
| 580 |
+
<span><?php esc_attr_e('search', 'mystickymenu' );?> </span>
|
| 581 |
</label>
|
| 582 |
</li>
|
| 583 |
<li>
|
| 584 |
<label>
|
| 585 |
<input id="mysticky_disable_at_404" name="mysticky_option_name[mysticky_disable_at_404]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_404'], 'on' );?>/>
|
| 586 |
+
<span><?php esc_attr_e('404', 'mystickymenu' );?> </span>
|
| 587 |
</label>
|
| 588 |
</li>
|
| 589 |
</ul>
|
| 623 |
|
| 624 |
</div>
|
| 625 |
<p class="submit">
|
| 626 |
+
<input type="submit" name="submit" id="submit" class="button button-primary" value="<?php esc_attr_e('Save', 'mystickymenu');?>">
|
| 627 |
</p>
|
| 628 |
<input type="hidden" name="nonce" value="<?php echo $nonce ?>">
|
| 629 |
</form>
|
| 630 |
<form class="mysticky-hideformreset" method="post" action="">
|
| 631 |
+
<input name="reset_mysticky_options" class="button button-secondary confirm" type="submit" value="<?php esc_attr_e('Reset', 'mystickymenu');?>" >
|
| 632 |
<input type="hidden" name="action" value="reset" />
|
| 633 |
<?php $nonce = wp_create_nonce('mysticky_option_backend_reset_nonce'); ?>
|
| 634 |
<input type="hidden" name="nonce" value="<?php echo $nonce ?>">
|
| 635 |
</form>
|
| 636 |
+
<p class="myStickymenu-review"><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><?php esc_attr_e('Leave a review','mystickymenu'); ?></a></p>
|
| 637 |
</div>
|
| 638 |
<div style="<?php echo $welcomebar_active_block; ?>" id="sticky-header-welcome-bar" class="sticky-header-content">
|
| 639 |
<?php mysticky_welcome_bar_backend(); ?>
|
readme.txt
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
Contributors: tomeraharon, galdub, premio
|
| 3 |
Tags:menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar, floating bar, notification bar
|
| 4 |
Requires at least: 3.5.1
|
| 5 |
-
Tested up to: 5.
|
| 6 |
-
Stable tag: 2.2.
|
| 7 |
License: GPLv2 or later
|
| 8 |
|
| 9 |
This sticky menu plugin will make your menu or header stick to the top of page, when scrolled down and up. Also create a beautiful Welcome bar with it.
|
|
@@ -257,6 +257,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
|
|
| 257 |
|
| 258 |
|
| 259 |
== Changelog ==
|
|
|
|
|
|
|
| 260 |
= 2.2.5 =
|
| 261 |
myStickyelements now works out-of-the-box with the following themes (which means you don't need to find your menu's class, it should work right after installation): Twenty Nineteen, Twenty Seventeen, Hello Elementor, OceanWP, Astra, Storefront, Twenty Sixteen, Neve, Hestia, Sydney, Shapely, GeneratePress, Mesmerize, Ashe, and Total. We've also added Google Lighthouse compatibility
|
| 262 |
= 2.2.4 =
|
| 2 |
Contributors: tomeraharon, galdub, premio
|
| 3 |
Tags:menu, header, sticky menu, sticky header, floating menu, floating navigation menu, navigation menu, navigation, sticky navigation menu, welcome bar, hello bar, top bar, sticky bar, floating bar, notification bar
|
| 4 |
Requires at least: 3.5.1
|
| 5 |
+
Tested up to: 5.3
|
| 6 |
+
Stable tag: 2.2.6
|
| 7 |
License: GPLv2 or later
|
| 8 |
|
| 9 |
This sticky menu plugin will make your menu or header stick to the top of page, when scrolled down and up. Also create a beautiful Welcome bar with it.
|
| 257 |
|
| 258 |
|
| 259 |
== Changelog ==
|
| 260 |
+
= 2.2.6 =
|
| 261 |
+
Sanitize input fixes
|
| 262 |
= 2.2.5 =
|
| 263 |
myStickyelements now works out-of-the-box with the following themes (which means you don't need to find your menu's class, it should work right after installation): Twenty Nineteen, Twenty Seventeen, Hello Elementor, OceanWP, Astra, Storefront, Twenty Sixteen, Neve, Hestia, Sydney, Shapely, GeneratePress, Mesmerize, Ashe, and Total. We've also added Google Lighthouse compatibility
|
| 264 |
= 2.2.4 =
|
