Version Description
Not available at the moment
Download this release
Release Info
Developer | takanakui |
Plugin | WP Mobile Menu |
Version | 2.8.1.6 |
Comparing to | |
See all releases |
Code changes from version 2.8.1.5 to 2.8.1.6
- includes/class-wp-mobile-menu-core.php +2 -12
- includes/class-wp-mobile-menu-walker-nav-menu.php +3 -0
- includes/css/mobmenu-admin.css +23 -0
- includes/dynamic-style.php +1 -1
- mobmenu.php +3 -104
- readme.txt +2 -2
includes/class-wp-mobile-menu-core.php
CHANGED
@@ -136,17 +136,6 @@ class WP_Mobile_Menu_Core
|
|
136 |
wp_die();
|
137 |
}
|
138 |
|
139 |
-
/**
|
140 |
-
* Dismiss the WP Mobile Menu Upgrade Banner.
|
141 |
-
*/
|
142 |
-
public function dismiss_wp_mobile_upgrade_notice()
|
143 |
-
{
|
144 |
-
if ( check_ajax_referer( 'wp-mobile-menu-security-nonce', 'security' ) ) {
|
145 |
-
update_option( 'wp_mobile_menu_upgrade_banner_dismissed', 'yes' );
|
146 |
-
}
|
147 |
-
wp_die();
|
148 |
-
}
|
149 |
-
|
150 |
/**
|
151 |
* Build the icons HTML.
|
152 |
*/
|
@@ -479,8 +468,9 @@ class WP_Mobile_Menu_Core
|
|
479 |
{
|
480 |
global $mm_fs ;
|
481 |
// Build the left menu panel.
|
|
|
482 |
if ( $this->titan->getOption( 'left_menu_parent_link_submenu' ) ) {
|
483 |
-
$mobmenu_parent_link = 'mobmenu-parent-link';
|
484 |
}
|
485 |
?>
|
486 |
|
136 |
wp_die();
|
137 |
}
|
138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
/**
|
140 |
* Build the icons HTML.
|
141 |
*/
|
468 |
{
|
469 |
global $mm_fs ;
|
470 |
// Build the left menu panel.
|
471 |
+
$this->mobmenu_parent_link = '';
|
472 |
if ( $this->titan->getOption( 'left_menu_parent_link_submenu' ) ) {
|
473 |
+
$this->mobmenu_parent_link = 'mobmenu-parent-link';
|
474 |
}
|
475 |
?>
|
476 |
|
includes/class-wp-mobile-menu-walker-nav-menu.php
CHANGED
@@ -61,6 +61,9 @@ class WP_Mobile_Menu_Walker_Nav_Menu extends Walker_Nav_Menu
|
|
61 |
|
62 |
$item_output .= '</a>';
|
63 |
$item_output .= $args->after;
|
|
|
|
|
|
|
64 |
$output .= apply_filters(
|
65 |
'walker_nav_menu_start_el',
|
66 |
$item_output,
|
61 |
|
62 |
$item_output .= '</a>';
|
63 |
$item_output .= $args->after;
|
64 |
+
// Execute only in the footer menu.
|
65 |
+
if ( $this->footer_li_class !== '' ) {
|
66 |
+
}
|
67 |
$output .= apply_filters(
|
68 |
'walker_nav_menu_start_el',
|
69 |
$item_output,
|
includes/css/mobmenu-admin.css
CHANGED
@@ -597,3 +597,26 @@ td.second.tf-multicheck-pages fieldset {
|
|
597 |
overflow-y: scroll;
|
598 |
margin-bottom: 30px;
|
599 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
overflow-y: scroll;
|
598 |
margin-bottom: 30px;
|
599 |
}
|
600 |
+
.tf-upload .tf-image-preview, .tf-gallery .tf-image-preview {
|
601 |
+
line-height: 0;
|
602 |
+
position: relative;
|
603 |
+
display: inline-block;
|
604 |
+
min-width: 75px;
|
605 |
+
min-height: 75px;
|
606 |
+
background: #FAFAFA;
|
607 |
+
box-shadow: inset 0 0 0 1px #EEE;
|
608 |
+
cursor: pointer;
|
609 |
+
opacity: 1;
|
610 |
+
}
|
611 |
+
.tf-upload .tf-image-preview:before, .tf-gallery .tf-image-preview:before {
|
612 |
+
content: '\f132';
|
613 |
+
font-family: 'dashicons';
|
614 |
+
position: absolute;
|
615 |
+
top: 30px;
|
616 |
+
left: 25px;
|
617 |
+
width: 30px;
|
618 |
+
text-align: center;
|
619 |
+
line-height: 30px;
|
620 |
+
font-size: 30px;
|
621 |
+
color: #ddd;
|
622 |
+
}
|
includes/dynamic-style.php
CHANGED
@@ -715,7 +715,7 @@ echo $left_menu_height_translate ;
|
|
715 |
height: 100%;
|
716 |
overflow-y: auto;
|
717 |
overflow-x: auto;
|
718 |
-
z-index:
|
719 |
opacity: 1;
|
720 |
}
|
721 |
/*End of Mobmenu Slide Over */
|
715 |
height: 100%;
|
716 |
overflow-y: auto;
|
717 |
overflow-x: auto;
|
718 |
+
z-index: 10000;
|
719 |
opacity: 1;
|
720 |
}
|
721 |
/*End of Mobmenu Slide Over */
|
mobmenu.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Mobile Menu
|
5 |
* Description: An easy to use WordPress responsive mobile menu. Keep your mobile visitors engaged.
|
6 |
-
* Version: 2.8.1.
|
7 |
* Plugin URI: https://www.wpmobilemenu.com/
|
8 |
* Author: Rui Guerreiro
|
9 |
* Author URI: https://www.jedipress.com/
|
10 |
-
* Tested up to: 5.
|
11 |
* Text Domain: mobile-menu
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|
@@ -16,7 +16,7 @@
|
|
16 |
if ( !defined( 'ABSPATH' ) ) {
|
17 |
die;
|
18 |
}
|
19 |
-
define( 'WP_MOBILE_MENU_VERSION', '2.8.1.
|
20 |
define( 'WP_MOBILE_MENU_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
21 |
define( 'WP_MOBILE_MENU_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
22 |
if ( !class_exists( 'WP_Mobile_Menu' ) ) {
|
@@ -53,107 +53,6 @@ if ( !class_exists( 'WP_Mobile_Menu' ) ) {
|
|
53 |
<?php
|
54 |
}
|
55 |
|
56 |
-
public function wp_mobile_menu_upgrade_admin_notice()
|
57 |
-
{
|
58 |
-
?>
|
59 |
-
<script type="text/javascript">
|
60 |
-
(function ($) {
|
61 |
-
$( document ).ready( function($){
|
62 |
-
$( document ).on( 'click', '.wp-mobile-menu-upgrade-notice .mm-button-bfcm-cancel' , function( e ) {
|
63 |
-
|
64 |
-
$.ajax({
|
65 |
-
type: 'POST',
|
66 |
-
url: ajaxurl,
|
67 |
-
|
68 |
-
data: {
|
69 |
-
action: 'dismiss_wp_mobile_upgrade_notice',
|
70 |
-
security: $( this ).parent().parent().parent().attr( 'data-ajax-nonce' )
|
71 |
-
},
|
72 |
-
success: function( response ) {
|
73 |
-
|
74 |
-
$( '.wp-mobile-menu-upgrade-notice' ).fadeOut();
|
75 |
-
|
76 |
-
}
|
77 |
-
});
|
78 |
-
});
|
79 |
-
});
|
80 |
-
}(jQuery));
|
81 |
-
</script>
|
82 |
-
<style>
|
83 |
-
.wp-mobile-menu-upgrade-notice.notice {
|
84 |
-
font-size: 16px;
|
85 |
-
padding: 15px 30px;
|
86 |
-
border-left-color: #f4c836;
|
87 |
-
}
|
88 |
-
.wp-mobile-menu-upgrade-notice img {
|
89 |
-
height:50px;
|
90 |
-
}
|
91 |
-
.wp-mobile-menu-upgrade-notice .wp-mobile-menu-notice-content {
|
92 |
-
margin-left: 20px;
|
93 |
-
font-size: 16px;
|
94 |
-
}
|
95 |
-
.wp-mobile-menu-upgrade-notice .wp-mobile-menu-notice-content h3 {
|
96 |
-
font-size: 16px;
|
97 |
-
margin: 5px 0px 0px 0px;
|
98 |
-
}
|
99 |
-
.wp-mobile-menu-notice-inner {
|
100 |
-
display: inline-flex
|
101 |
-
}
|
102 |
-
.wp-mobile-menu-notice-buttons {
|
103 |
-
margin-left:150px;
|
104 |
-
display: inline-grid;
|
105 |
-
}
|
106 |
-
.wp-mobile-menu-notice-buttons .mm-button-bfcm-cancel {
|
107 |
-
margin-top: 10px;
|
108 |
-
color: #5b5d5f;
|
109 |
-
text-decoration: none;
|
110 |
-
border: none;
|
111 |
-
}
|
112 |
-
@media screen and (max-width: 782px){
|
113 |
-
.wp-mobile-menu-notice-inner {
|
114 |
-
display: block;
|
115 |
-
}
|
116 |
-
.wp-mobile-menu-upgrade-notice img {
|
117 |
-
display: none;
|
118 |
-
}
|
119 |
-
.wp-mobile-menu-notice-buttons {
|
120 |
-
margin: auto;
|
121 |
-
display: block;
|
122 |
-
}
|
123 |
-
.wp-mobile-menu-notice-buttons .button {
|
124 |
-
margin-top: 5px;
|
125 |
-
margin-left: 20px;
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
</style>
|
130 |
-
|
131 |
-
<div class="wp-mobile-menu-upgrade-notice notice" data-ajax-nonce="<?php
|
132 |
-
echo wp_create_nonce( 'wp-mobile-menu-security-nonce' ) ;
|
133 |
-
?>">
|
134 |
-
<div class="wp-mobile-menu-notice-inner">
|
135 |
-
<img src="<?php
|
136 |
-
echo esc_url( WP_MOBILE_MENU_PLUGIN_URL . 'freemius/assets/img/plugin-icon.png' ) ;
|
137 |
-
?>" alt="<?php
|
138 |
-
echo esc_attr__( 'Mobile Menu WordPress Plugin', 'mobile-menu' ) ;
|
139 |
-
?>" />
|
140 |
-
<div class="wp-mobile-menu-notice-content">
|
141 |
-
<h3>Save 40% on WP Mobile Menu Premium versions. </h3>
|
142 |
-
<h3>It's a limited time offer to get the most out of your mobile website.</h3>
|
143 |
-
</div>
|
144 |
-
<div class="wp-mobile-menu-notice-buttons"><a href="<?php
|
145 |
-
echo $this->mm_fs->get_upgrade_url() ;
|
146 |
-
?>&coupon=BFCM2020&cta=upgrade-button" class="button button-primary mm-button-bfcm-upgrade"><?php
|
147 |
-
_e( 'Upgrade Now', 'mobile-menu' );
|
148 |
-
?></a><a href="#" class="button mm-button-bfcm-cancel"><?php
|
149 |
-
_e( 'No Thanks', 'mobile-menu' );
|
150 |
-
?></a></div>
|
151 |
-
</div>
|
152 |
-
</div>
|
153 |
-
|
154 |
-
<?php
|
155 |
-
}
|
156 |
-
|
157 |
/**
|
158 |
* Init WP Mobile Menu
|
159 |
*
|
3 |
/**
|
4 |
* Plugin Name: Mobile Menu
|
5 |
* Description: An easy to use WordPress responsive mobile menu. Keep your mobile visitors engaged.
|
6 |
+
* Version: 2.8.1.6
|
7 |
* Plugin URI: https://www.wpmobilemenu.com/
|
8 |
* Author: Rui Guerreiro
|
9 |
* Author URI: https://www.jedipress.com/
|
10 |
+
* Tested up to: 5.6
|
11 |
* Text Domain: mobile-menu
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|
16 |
if ( !defined( 'ABSPATH' ) ) {
|
17 |
die;
|
18 |
}
|
19 |
+
define( 'WP_MOBILE_MENU_VERSION', '2.8.1.6' );
|
20 |
define( 'WP_MOBILE_MENU_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
21 |
define( 'WP_MOBILE_MENU_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
22 |
if ( !class_exists( 'WP_Mobile_Menu' ) ) {
|
53 |
<?php
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
/**
|
57 |
* Init WP Mobile Menu
|
58 |
*
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: takanakui, freemius
|
|
3 |
link: http://profiles.wordpress.org/takanakui
|
4 |
Tags: mobile, navigation, responsive, menu, responsive menu, mobile menu, tablet menu, hamburger menu, hamburger, wordpress responsive menu, wordpress mobile menu, canvas menu
|
5 |
Requires at least: 4.4
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.8.1.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
3 |
link: http://profiles.wordpress.org/takanakui
|
4 |
Tags: mobile, navigation, responsive, menu, responsive menu, mobile menu, tablet menu, hamburger menu, hamburger, wordpress responsive menu, wordpress mobile menu, canvas menu
|
5 |
Requires at least: 4.4
|
6 |
+
Tested up to: 5.6
|
7 |
+
Stable tag: 2.8.1.6
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|