myStickymenu - Version 2.3.5

Version Description

Review change

Download this release

Release Info

Developer galdub
Plugin Icon 128x128 myStickymenu
Version 2.3.5
Comparing to
See all releases

Code changes from version 2.3.4 to 2.3.5

Files changed (4) hide show
  1. class-review-box.php +90 -22
  2. images/thanks.gif +0 -0
  3. mystickymenu.php +8 -8
  4. readme.txt +3 -1
class-review-box.php CHANGED
@@ -151,19 +151,74 @@ class myStickymenu_review_box {
151
vertical-align: middle;
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">
@@ -179,27 +234,40 @@ 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 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
});
151
vertical-align: middle;
152
border-radius: 15px;
153
}
154
+ .review-thanks-img img {
155
+ width: 100%;
156
+ height: auto;
157
+ max-width: 200px;
158
+ }
159
+ .review-thanks-msg {
160
+ padding: 5px 0 0 10px;
161
+ display: inline-block;
162
+ text-align: left;
163
+ }
164
+ .review-thanks-box {
165
+ padding: 10px 0 10px 0;
166
+ position: relative;
167
+ text-align: center;
168
+ display: none;
169
+ }
170
+ .review-box-default {
171
+ }
172
+ .review-thanks-btn {
173
+ border: 0;
174
+ background: transparent;
175
+ position: absolute;
176
+ right: -30px;
177
+ top: 5px;
178
+ }
179
+ .review-thanks-img {
180
+ display: inline-block;
181
+ vertical-align: top;
182
+ width: 200px;
183
+ }
184
+ .thanks-msg-title {
185
+ font-weight: bold;
186
+ font-size: 18px;
187
+ }
188
+ .thanks-msg-desc {
189
+ padding: 24px 0;
190
+ }
191
+ .thanks-msg-footer {
192
+ font-weight: bold;
193
+ }
194
</style>
195
<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">
196
+ <div class="review-box-default" id="default-review-box-<?php echo $this->plugin_slug ?>">
197
+ <p>
198
+ 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
199
+ - <b>Gal Dubinski</b>, Co-founder <img width="30px" src="<?php echo esc_url(plugin_dir_url(__FILE__)."images/premio-owner.png") ?>" />
200
+ <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>
201
+ </p>
202
+ <div class="clear clearfix"></div>
203
+ <ul>
204
+ <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>
205
+ <li><a class="<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-future-btn" href="javascript:;">Not this time</a></li>
206
+ <li><a class="<?php echo esc_attr($this->plugin_slug) ?>-premio-review-box-hide-btn" href="javascript:;">I've already rated you</a></li>
207
+ </ul>
208
+ </div>
209
+ <div class="review-thanks-box" id="review-thanks-<?php echo $this->plugin_slug ?>">
210
+ <button class="<?php echo $this->plugin_slug ?>-close-thanks-btn review-thanks-btn"><span class="dashicons dashicons-no-alt"></span></button>
211
+
212
+ <div class="review-thanks-img">
213
+ <img width="30px" src="<?php echo esc_url(plugin_dir_url(__FILE__)."/images/thanks.gif") ?>" />
214
+ </div>
215
+ <div class="review-thanks-msg">
216
+ <div class="thanks-msg-title">You are awesome &#128591;</div>
217
+ <div class="thanks-msg-desc">Thanks for your support, We really appreciate it!</div>
218
+ <div class="thanks-msg-footer">Premio team</div>
219
+ </div>
220
+ <div class="clear clearfix"></div>
221
+ </div>
222
</div>
223
<div class="<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup">
224
<div class="<?php echo esc_attr($this->plugin_slug) ?>-review-box-popup-content">
234
<script>
235
jQuery(document).ready(function(){
236
jQuery("body").addClass("has-premio-box");
237
+ jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-premio-review-dismiss-btn, .<?php echo $this->plugin_slug ?>-premio-review-box-future-btn", function(){
238
+ jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").show();
239
});
240
+ jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-close-review-box-popup", function(){
241
+ jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").hide();
242
});
243
+ jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-close-thanks-btn", function(){
244
+ jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").remove();
245
+ jQuery(".<?php echo $this->plugin_slug ?>-premio-review-box").remove();
246
+ });
247
+ jQuery(document).on("click",".<?php echo $this->plugin_slug ?>-premio-review-box-hide-btn",function(){
248
+ jQuery("#default-review-box-<?php echo $this->plugin_slug ?>").hide();
249
+ jQuery("#review-thanks-<?php echo $this->plugin_slug ?>").show();
250
+ jQuery.ajax({
251
+ url: "<?php echo admin_url("admin-ajax.php") ?>",
252
+ data: "action=<?php echo esc_attr($this->plugin_slug) ?>_review_box&days=-1&nonce=<?php echo esc_attr(wp_create_nonce($this->plugin_slug."_review_box")) ?>",
253
+ type: "post",
254
+ success: function() {
255
+
256
+ }
257
+ });
258
});
259
+ jQuery(document).on("click", ".<?php echo $this->plugin_slug ?>-review-box-options a", function(){
260
var dataDays = jQuery(this).attr("data-days");
261
+ jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").remove();
262
+ jQuery(".<?php echo $this->plugin_slug ?>-premio-review-box").remove();
263
jQuery("body").removeClass("has-premio-box");
264
jQuery.ajax({
265
url: "<?php echo admin_url("admin-ajax.php") ?>",
266
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")) ?>",
267
type: "post",
268
success: function() {
269
+ jQuery(".<?php echo $this->plugin_slug ?>-review-box-popup").remove();
270
+ jQuery(".<?php echo $this->plugin_slug ?>-premio-review-box").remove();
271
}
272
});
273
});
images/thanks.gif ADDED
Binary file
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.3.4
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.3.4' );
16
require_once("mystickymenu-fonts.php");
17
require_once("welcome-bar.php");
18
@@ -732,8 +732,8 @@ class MyStickyMenuBackend
732
<option data-header="Renewals for 25% off" data-price="19" value="<?php echo esc_url($pro_url."1") ?>">
733
<?php esc_html_e("Updates & support for 1 year") ?>
734
</option>
735
- <option data-header="For 3 years" data-price="35" value="<?php echo esc_url($pro_url."4") ?>">
736
- <?php esc_html_e("Updates & support for 3 years") ?>
737
</option>
738
<option data-header="For lifetime" data-price="59" value="<?php echo esc_url($pro_url."5") ?>">
739
<?php esc_html_e("Updates & support for lifetime") ?>
@@ -765,8 +765,8 @@ class MyStickyMenuBackend
765
<option data-header="Renewals for 25% off" data-price="39" value="<?php echo esc_url($pro_url."2") ?>">
766
<?php esc_html_e("Updates & support for 1 year") ?>
767
</option>
768
- <option data-header="For 3 years" data-price="65" value="<?php echo esc_url($pro_url."6") ?>">
769
- <?php esc_html_e("Updates & support for 3 years") ?>
770
</option>
771
<option data-header="For lifetime" data-price="99" value="<?php echo esc_url($pro_url."7") ?>">
772
<?php esc_html_e("Updates & support for lifetime") ?>
@@ -798,8 +798,8 @@ class MyStickyMenuBackend
798
<option data-header="Renewals for 25% off" data-price="79" value="<?php echo esc_url($pro_url."3") ?>">
799
<?php esc_html_e("Updates & support for 1 year") ?>
800
</option>
801
- <option data-header="For 3 years" data-price="139" value="<?php echo esc_url($pro_url."8") ?>">
802
- <?php esc_html_e("Updates & support for 3 years") ?>
803
</option>
804
<option data-header="For lifetime" data-price="199" value="<?php echo esc_url($pro_url."9") ?>">
805
<?php esc_html_e("Updates & support for lifetime") ?>
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.3.5
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.3.5' );
16
require_once("mystickymenu-fonts.php");
17
require_once("welcome-bar.php");
18
732
<option data-header="Renewals for 25% off" data-price="19" value="<?php echo esc_url($pro_url."1") ?>">
733
<?php esc_html_e("Updates & support for 1 year") ?>
734
</option>
735
+ <option data-header="For 2 years" data-price="29" value="<?php echo esc_url($pro_url."13") ?>">
736
+ <?php esc_html_e("Updates & support for 2 years") ?>
737
</option>
738
<option data-header="For lifetime" data-price="59" value="<?php echo esc_url($pro_url."5") ?>">
739
<?php esc_html_e("Updates & support for lifetime") ?>
765
<option data-header="Renewals for 25% off" data-price="39" value="<?php echo esc_url($pro_url."2") ?>">
766
<?php esc_html_e("Updates & support for 1 year") ?>
767
</option>
768
+ <option data-header="For 2 years" data-price="59" value="<?php echo esc_url($pro_url."14") ?>">
769
+ <?php esc_html_e("Updates & support for 2 years") ?>
770
</option>
771
<option data-header="For lifetime" data-price="99" value="<?php echo esc_url($pro_url."7") ?>">
772
<?php esc_html_e("Updates & support for lifetime") ?>
798
<option data-header="Renewals for 25% off" data-price="79" value="<?php echo esc_url($pro_url."3") ?>">
799
<?php esc_html_e("Updates & support for 1 year") ?>
800
</option>
801
+ <option data-header="For 2 years" data-price="125" value="<?php echo esc_url($pro_url."15") ?>">
802
+ <?php esc_html_e("Updates & support for 2 years") ?>
803
</option>
804
<option data-header="For lifetime" data-price="199" value="<?php echo esc_url($pro_url."9") ?>">
805
<?php esc_html_e("Updates & support for lifetime") ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.3.4
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.
@@ -259,6 +259,8 @@ After installing the plugin, you’ll have the option to turn on the welcome bar
259
260
261
== Changelog ==
262
= 2.3.4 =
263
Frontend fixes
264
= 2.3.3 =
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.3.5
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.
259
260
261
== Changelog ==
262
+ = 2.3.5 =
263
+ Review change
264
= 2.3.4 =
265
Frontend fixes
266
= 2.3.3 =