Version Description
- Fix! - Fix image upload field
- Improvment! - Remove background gradient from free demo content
- Fix! - Security Fix
Download this release
Release Info
Developer | takanakui |
Plugin | WP Mobile Menu |
Version | 2.8.2.7 |
Comparing to | |
See all releases |
Code changes from version 2.8.2.6 to 2.8.2.7
- freemius/includes/class-freemius.php +25 -2
- freemius/includes/managers/class-fs-admin-notice-manager.php +7 -2
- freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +5 -1
- freemius/includes/sdk/Exceptions/EmptyArgumentException.php +5 -1
- freemius/includes/sdk/Exceptions/Exception.php +5 -1
- freemius/includes/sdk/Exceptions/InvalidArgumentException.php +5 -1
- freemius/includes/sdk/Exceptions/OAuthException.php +5 -1
- freemius/includes/sdk/FreemiusBase.php +4 -0
- freemius/includes/sdk/FreemiusWordPress.php +4 -1
- freemius/require.php +5 -1
- freemius/start.php +1 -1
- freemius/templates/account/partials/addon.php +6 -1
- freemius/templates/ajax-loader.php +6 -1
- freemius/templates/debug.php +8 -2
- freemius/templates/firewall-issues-js.php +10 -6
- freemius/templates/partials/network-activation.php +6 -1
- freemius/templates/sticky-admin-notice-js.php +4 -2
- includes/assets/svgs/search.svg +1 -1
- includes/class-wp-mobile-menu-core.php +3 -0
- includes/class-wp-mobile-menu-options.php +2 -2
- includes/css/mobmenu-admin.css +4 -4
- includes/demo-content/free-demo.txt +1 -1
- includes/js/mobmenu-admin.js +5 -1
- includes/plugin-settings/lib/class-admin-page.php +1 -1
- includes/plugin-settings/lib/class-admin-tab.php +4 -0
- includes/plugin-settings/lib/class-mobmenu-css.php +21 -10
- includes/plugin-settings/lib/class-option-code.php +3 -2
- includes/plugin-settings/lib/class-option-upload.php +3 -0
- mobmenu.php +2 -2
- readme.txt +6 -1
freemius/includes/class-freemius.php
CHANGED
@@ -3550,6 +3550,8 @@
|
|
3550 |
* @since 1.1.7.3
|
3551 |
*/
|
3552 |
static function _toggle_debug_mode() {
|
|
|
|
|
3553 |
if ( ! is_super_admin() ) {
|
3554 |
return;
|
3555 |
}
|
@@ -3571,10 +3573,19 @@
|
|
3571 |
* @since 1.2.1.6
|
3572 |
*/
|
3573 |
static function _get_debug_log() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3574 |
$logs = FS_Logger::load_db_logs(
|
3575 |
fs_request_get( 'filters', false, 'post' ),
|
3576 |
-
|
3577 |
-
|
3578 |
);
|
3579 |
|
3580 |
self::shoot_ajax_success( $logs );
|
@@ -4447,6 +4458,12 @@
|
|
4447 |
* @since 1.0.9
|
4448 |
*/
|
4449 |
function _email_about_firewall_issue() {
|
|
|
|
|
|
|
|
|
|
|
|
|
4450 |
$this->_admin_notices->remove_sticky( 'failed_connect_api' );
|
4451 |
|
4452 |
$pong = $this->ping();
|
@@ -4521,6 +4538,12 @@
|
|
4521 |
* @since 1.1.7.4
|
4522 |
*/
|
4523 |
function _retry_connectivity_test() {
|
|
|
|
|
|
|
|
|
|
|
|
|
4524 |
$this->_admin_notices->remove_sticky( 'failed_connect_api_first' );
|
4525 |
|
4526 |
$pong = $this->ping();
|
3550 |
* @since 1.1.7.3
|
3551 |
*/
|
3552 |
static function _toggle_debug_mode() {
|
3553 |
+
check_admin_referer( 'fs_toggle_debug_mode' );
|
3554 |
+
|
3555 |
if ( ! is_super_admin() ) {
|
3556 |
return;
|
3557 |
}
|
3573 |
* @since 1.2.1.6
|
3574 |
*/
|
3575 |
static function _get_debug_log() {
|
3576 |
+
check_admin_referer( 'fs_get_debug_log' );
|
3577 |
+
|
3578 |
+
if ( ! is_super_admin() ) {
|
3579 |
+
return;
|
3580 |
+
}
|
3581 |
+
|
3582 |
+
$limit = min( ! empty( $_POST['limit'] ) ? absint( $_POST['limit'] ) : 200, 200 );
|
3583 |
+
$offset = min( ! empty( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 200, 200 );
|
3584 |
+
|
3585 |
$logs = FS_Logger::load_db_logs(
|
3586 |
fs_request_get( 'filters', false, 'post' ),
|
3587 |
+
$limit,
|
3588 |
+
$offset
|
3589 |
);
|
3590 |
|
3591 |
self::shoot_ajax_success( $logs );
|
4458 |
* @since 1.0.9
|
4459 |
*/
|
4460 |
function _email_about_firewall_issue() {
|
4461 |
+
check_admin_referer( 'fs_resolve_firewall_issues' );
|
4462 |
+
|
4463 |
+
if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) {
|
4464 |
+
return;
|
4465 |
+
}
|
4466 |
+
|
4467 |
$this->_admin_notices->remove_sticky( 'failed_connect_api' );
|
4468 |
|
4469 |
$pong = $this->ping();
|
4538 |
* @since 1.1.7.4
|
4539 |
*/
|
4540 |
function _retry_connectivity_test() {
|
4541 |
+
check_admin_referer( 'fs_retry_connectivity_test' );
|
4542 |
+
|
4543 |
+
if ( ! current_user_can( is_multisite() ? 'manage_options' : 'activate_plugins' ) ) {
|
4544 |
+
return;
|
4545 |
+
}
|
4546 |
+
|
4547 |
$this->_admin_notices->remove_sticky( 'failed_connect_api_first' );
|
4548 |
|
4549 |
$pong = $this->ping();
|
freemius/includes/managers/class-fs-admin-notice-manager.php
CHANGED
@@ -175,7 +175,12 @@
|
|
175 |
*
|
176 |
*/
|
177 |
function dismiss_notice_ajax_callback() {
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
179 |
wp_die();
|
180 |
}
|
181 |
|
@@ -469,4 +474,4 @@
|
|
469 |
}
|
470 |
|
471 |
#endregion
|
472 |
-
}
|
175 |
*
|
176 |
*/
|
177 |
function dismiss_notice_ajax_callback() {
|
178 |
+
check_admin_referer( 'fs_dismiss_notice_action' );
|
179 |
+
|
180 |
+
if ( ! is_numeric( $_POST['message_id'] ) ) {
|
181 |
+
$this->_sticky_storage->remove( $_POST['message_id'] );
|
182 |
+
}
|
183 |
+
|
184 |
wp_die();
|
185 |
}
|
186 |
|
474 |
}
|
475 |
|
476 |
#endregion
|
477 |
+
}
|
freemius/includes/sdk/Exceptions/ArgumentNotExistException.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
|
3 |
exit;
|
4 |
}
|
@@ -6,4 +10,4 @@
|
|
6 |
if ( ! class_exists( 'Freemius_ArgumentNotExistException' ) ) {
|
7 |
class Freemius_ArgumentNotExistException extends Freemius_InvalidArgumentException {
|
8 |
}
|
9 |
-
}
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
|
7 |
exit;
|
8 |
}
|
10 |
if ( ! class_exists( 'Freemius_ArgumentNotExistException' ) ) {
|
11 |
class Freemius_ArgumentNotExistException extends Freemius_InvalidArgumentException {
|
12 |
}
|
13 |
+
}
|
freemius/includes/sdk/Exceptions/EmptyArgumentException.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
|
3 |
exit;
|
4 |
}
|
@@ -6,4 +10,4 @@
|
|
6 |
if ( ! class_exists( 'Freemius_EmptyArgumentException' ) ) {
|
7 |
class Freemius_EmptyArgumentException extends Freemius_InvalidArgumentException {
|
8 |
}
|
9 |
-
}
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
|
7 |
exit;
|
8 |
}
|
10 |
if ( ! class_exists( 'Freemius_EmptyArgumentException' ) ) {
|
11 |
class Freemius_EmptyArgumentException extends Freemius_InvalidArgumentException {
|
12 |
}
|
13 |
+
}
|
freemius/includes/sdk/Exceptions/Exception.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
if ( ! class_exists( 'Freemius_Exception' ) ) {
|
3 |
/**
|
4 |
* Thrown when an API call returns an exception.
|
@@ -71,4 +75,4 @@
|
|
71 |
return $str . $this->getMessage();
|
72 |
}
|
73 |
}
|
74 |
-
}
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
if ( ! class_exists( 'Freemius_Exception' ) ) {
|
7 |
/**
|
8 |
* Thrown when an API call returns an exception.
|
75 |
return $str . $this->getMessage();
|
76 |
}
|
77 |
}
|
78 |
+
}
|
freemius/includes/sdk/Exceptions/InvalidArgumentException.php
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
if ( ! class_exists( 'Freemius_Exception' ) ) {
|
3 |
exit;
|
4 |
}
|
5 |
|
6 |
if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
|
7 |
class Freemius_InvalidArgumentException extends Freemius_Exception { }
|
8 |
-
}
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
if ( ! class_exists( 'Freemius_Exception' ) ) {
|
7 |
exit;
|
8 |
}
|
9 |
|
10 |
if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) {
|
11 |
class Freemius_InvalidArgumentException extends Freemius_Exception { }
|
12 |
+
}
|
freemius/includes/sdk/Exceptions/OAuthException.php
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
2 |
if ( ! class_exists( 'Freemius_Exception' ) ) {
|
3 |
exit;
|
4 |
}
|
@@ -9,4 +13,4 @@
|
|
9 |
parent::__construct( $pResult );
|
10 |
}
|
11 |
}
|
12 |
-
}
|
1 |
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
if ( ! class_exists( 'Freemius_Exception' ) ) {
|
7 |
exit;
|
8 |
}
|
13 |
parent::__construct( $pResult );
|
14 |
}
|
15 |
}
|
16 |
+
}
|
freemius/includes/sdk/FreemiusBase.php
CHANGED
@@ -15,6 +15,10 @@
|
|
15 |
* under the License.
|
16 |
*/
|
17 |
|
|
|
|
|
|
|
|
|
18 |
if ( ! defined( 'FS_API__VERSION' ) ) {
|
19 |
define( 'FS_API__VERSION', '1' );
|
20 |
}
|
15 |
* under the License.
|
16 |
*/
|
17 |
|
18 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
19 |
+
exit;
|
20 |
+
}
|
21 |
+
|
22 |
if ( ! defined( 'FS_API__VERSION' ) ) {
|
23 |
define( 'FS_API__VERSION', '1' );
|
24 |
}
|
freemius/includes/sdk/FreemiusWordPress.php
CHANGED
@@ -14,6 +14,9 @@
|
|
14 |
* License for the specific language governing permissions and limitations
|
15 |
* under the License.
|
16 |
*/
|
|
|
|
|
|
|
17 |
|
18 |
require_once dirname( __FILE__ ) . '/FreemiusBase.php';
|
19 |
|
@@ -709,4 +712,4 @@
|
|
709 |
}
|
710 |
|
711 |
#endregion
|
712 |
-
}
|
14 |
* License for the specific language governing permissions and limitations
|
15 |
* under the License.
|
16 |
*/
|
17 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
18 |
+
exit;
|
19 |
+
}
|
20 |
|
21 |
require_once dirname( __FILE__ ) . '/FreemiusBase.php';
|
22 |
|
712 |
}
|
713 |
|
714 |
#endregion
|
715 |
+
}
|
freemius/require.php
CHANGED
@@ -6,6 +6,10 @@
|
|
6 |
* @since 1.1.9
|
7 |
*/
|
8 |
|
|
|
|
|
|
|
|
|
9 |
// Configuration should be loaded first.
|
10 |
require_once dirname( __FILE__ ) . '/config.php';
|
11 |
require_once WP_FS__DIR_INCLUDES . '/fs-core-functions.php';
|
@@ -46,4 +50,4 @@
|
|
46 |
require_once WP_FS__DIR_INCLUDES . '/class-fs-admin-notices.php';
|
47 |
require_once WP_FS__DIR_INCLUDES . '/class-freemius-abstract.php';
|
48 |
require_once WP_FS__DIR_INCLUDES . '/sdk/Exceptions/Exception.php';
|
49 |
-
require_once WP_FS__DIR_INCLUDES . '/class-freemius.php';
|
6 |
* @since 1.1.9
|
7 |
*/
|
8 |
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit;
|
11 |
+
}
|
12 |
+
|
13 |
// Configuration should be loaded first.
|
14 |
require_once dirname( __FILE__ ) . '/config.php';
|
15 |
require_once WP_FS__DIR_INCLUDES . '/fs-core-functions.php';
|
50 |
require_once WP_FS__DIR_INCLUDES . '/class-fs-admin-notices.php';
|
51 |
require_once WP_FS__DIR_INCLUDES . '/class-freemius-abstract.php';
|
52 |
require_once WP_FS__DIR_INCLUDES . '/sdk/Exceptions/Exception.php';
|
53 |
+
require_once WP_FS__DIR_INCLUDES . '/class-freemius.php';
|
freemius/start.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
*
|
16 |
* @var string
|
17 |
*/
|
18 |
-
$this_sdk_version = '2.4.
|
19 |
|
20 |
#region SDK Selection Logic --------------------------------------------------------------------
|
21 |
|
15 |
*
|
16 |
* @var string
|
17 |
*/
|
18 |
+
$this_sdk_version = '2.4.3';
|
19 |
|
20 |
#region SDK Selection Logic --------------------------------------------------------------------
|
21 |
|
freemius/templates/account/partials/addon.php
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
* @var array $VARS
|
4 |
* @var Freemius $fs
|
@@ -443,4 +448,4 @@
|
|
443 |
</td>
|
444 |
<!--/ Optional Delete Action -->
|
445 |
<?php endif ?>
|
446 |
-
</tr>
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
/**
|
8 |
* @var array $VARS
|
9 |
* @var Freemius $fs
|
448 |
</td>
|
449 |
<!--/ Optional Delete Action -->
|
450 |
<?php endif ?>
|
451 |
+
</tr>
|
freemius/templates/ajax-loader.php
CHANGED
@@ -1 +1,6 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="fs-ajax-loader" style="display: none"><?php for ( $i = 1; $i <= 8; $i ++ ) : ?><div class="fs-ajax-loader-bar fs-ajax-loader-bar-<?php echo $i ?>"></div><?php endfor ?></div>
|
freemius/templates/debug.php
CHANGED
@@ -37,6 +37,8 @@
|
|
37 |
|
38 |
$.post( ajaxurl, {
|
39 |
action: 'fs_toggle_debug_mode',
|
|
|
|
|
40 |
is_on : ($(this).hasClass( 'fs-on' ) ? 1 : 0)
|
41 |
}, function ( response ) {
|
42 |
if ( 1 == response ) {
|
@@ -111,7 +113,8 @@
|
|
111 |
if (optionName) {
|
112 |
$.post(ajaxurl, {
|
113 |
action : 'fs_get_db_option',
|
114 |
-
|
|
|
115 |
option_name: optionName
|
116 |
}, function (response) {
|
117 |
if (response.data.value)
|
@@ -131,7 +134,8 @@
|
|
131 |
if (optionValue) {
|
132 |
$.post(ajaxurl, {
|
133 |
action : 'fs_set_db_option',
|
134 |
-
|
|
|
135 |
option_name : optionName,
|
136 |
option_value: optionValue
|
137 |
}, function () {
|
@@ -724,6 +728,8 @@
|
|
724 |
|
725 |
$.post(ajaxurl, {
|
726 |
action : 'fs_get_debug_log',
|
|
|
|
|
727 |
filters: filters,
|
728 |
offset : offset,
|
729 |
limit : limit
|
37 |
|
38 |
$.post( ajaxurl, {
|
39 |
action: 'fs_toggle_debug_mode',
|
40 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
41 |
+
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_toggle_debug_mode' ) ); ?>,
|
42 |
is_on : ($(this).hasClass( 'fs-on' ) ? 1 : 0)
|
43 |
}, function ( response ) {
|
44 |
if ( 1 == response ) {
|
113 |
if (optionName) {
|
114 |
$.post(ajaxurl, {
|
115 |
action : 'fs_get_db_option',
|
116 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
117 |
+
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_get_db_option' ) ); ?>,
|
118 |
option_name: optionName
|
119 |
}, function (response) {
|
120 |
if (response.data.value)
|
134 |
if (optionValue) {
|
135 |
$.post(ajaxurl, {
|
136 |
action : 'fs_set_db_option',
|
137 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
138 |
+
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_set_db_option' ) ); ?>,
|
139 |
option_name : optionName,
|
140 |
option_value: optionValue
|
141 |
}, function () {
|
728 |
|
729 |
$.post(ajaxurl, {
|
730 |
action : 'fs_get_debug_log',
|
731 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
732 |
+
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_get_debug_log' ) ); ?>,
|
733 |
filters: filters,
|
734 |
offset : offset,
|
735 |
limit : limit
|
freemius/templates/firewall-issues-js.php
CHANGED
@@ -22,10 +22,12 @@
|
|
22 |
notice = $( this ).parents( '.fs-notice' ),
|
23 |
ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
|
|
|
|
29 |
|
30 |
if ( 'squid' === error_type ) {
|
31 |
data.hosting_company = prompt( 'What is the name or URL of your hosting company?' );
|
@@ -39,7 +41,9 @@
|
|
39 |
}
|
40 |
|
41 |
if ( 'retry_ping' === error_type ) {
|
42 |
-
|
|
|
|
|
43 |
}
|
44 |
|
45 |
$( this ).css({'cursor': 'wait'});
|
@@ -56,4 +60,4 @@
|
|
56 |
});
|
57 |
});
|
58 |
});
|
59 |
-
</script>
|
22 |
notice = $( this ).parents( '.fs-notice' ),
|
23 |
ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
|
24 |
|
25 |
+
var data = {
|
26 |
+
action : 'fs_resolve_firewall_issues_' + ajaxActionSuffix,
|
27 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
28 |
+
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_resolve_firewall_issues' ) ); ?>,
|
29 |
+
error_type: error_type
|
30 |
+
};
|
31 |
|
32 |
if ( 'squid' === error_type ) {
|
33 |
data.hosting_company = prompt( 'What is the name or URL of your hosting company?' );
|
41 |
}
|
42 |
|
43 |
if ( 'retry_ping' === error_type ) {
|
44 |
+
data.action = 'fs_retry_connectivity_test_' + ajaxActionSuffix;
|
45 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
46 |
+
data._wpnonce = <?php echo wp_json_encode( wp_create_nonce( 'fs_retry_connectivity_test' ) ); ?>;
|
47 |
}
|
48 |
|
49 |
$( this ).css({'cursor': 'wait'});
|
60 |
});
|
61 |
});
|
62 |
});
|
63 |
+
</script>
|
freemius/templates/partials/network-activation.php
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
* @var array $VARS
|
4 |
* @var Freemius $fs
|
@@ -86,4 +91,4 @@
|
|
86 |
</tbody>
|
87 |
</table>
|
88 |
</div>
|
89 |
-
</div>
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
/**
|
8 |
* @var array $VARS
|
9 |
* @var Freemius $fs
|
91 |
</tbody>
|
92 |
</table>
|
93 |
</div>
|
94 |
+
</div>
|
freemius/templates/sticky-admin-notice-js.php
CHANGED
@@ -23,7 +23,9 @@
|
|
23 |
|
24 |
notice.fadeOut( 'fast', function() {
|
25 |
var data = {
|
26 |
-
action
|
|
|
|
|
27 |
message_id: id
|
28 |
};
|
29 |
|
@@ -36,4 +38,4 @@
|
|
36 |
});
|
37 |
});
|
38 |
});
|
39 |
-
</script>
|
23 |
|
24 |
notice.fadeOut( 'fast', function() {
|
25 |
var data = {
|
26 |
+
action : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
|
27 |
+
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
|
28 |
+
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>,
|
29 |
message_id: id
|
30 |
};
|
31 |
|
38 |
});
|
39 |
});
|
40 |
});
|
41 |
+
</script>
|
includes/assets/svgs/search.svg
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0" encoding="iso-8859-1"?>
|
2 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
3 |
viewBox="0 0 52.966 52.966" style="enable-background:new 0 0 52.966 52.966;" xml:space="preserve">
|
4 |
-
<path fill="#
|
5 |
c5.083,0,9.748-1.817,13.384-4.832l14.895,15.491c0.196,0.205,0.458,0.307,0.721,0.307c0.25,0,0.499-0.093,0.693-0.279
|
6 |
C52.074,52.304,52.086,51.671,51.704,51.273z M21.983,40c-10.477,0-19-8.523-19-19s8.523-19,19-19s19,8.523,19,19
|
7 |
S32.459,40,21.983,40z"/>
|
1 |
<?xml version="1.0" encoding="iso-8859-1"?>
|
2 |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
3 |
viewBox="0 0 52.966 52.966" style="enable-background:new 0 0 52.966 52.966;" xml:space="preserve">
|
4 |
+
<path fill="#1e73be" d="M51.704,51.273L36.845,35.82c3.79-3.801,6.138-9.041,6.138-14.82c0-11.58-9.42-21-21-21s-21,9.42-21,21s9.42,21,21,21
|
5 |
c5.083,0,9.748-1.817,13.384-4.832l14.895,15.491c0.196,0.205,0.458,0.307,0.721,0.307c0.25,0,0.499-0.093,0.693-0.279
|
6 |
C52.074,52.304,52.086,51.671,51.704,51.273z M21.983,40c-10.477,0-19-8.523-19-19s8.523-19,19-19s19,8.523,19,19
|
7 |
S32.459,40,21.983,40z"/>
|
includes/class-wp-mobile-menu-core.php
CHANGED
@@ -258,6 +258,9 @@ class WP_Mobile_Menu_Core
|
|
258 |
{
|
259 |
global $mm_fs ;
|
260 |
global $woocommerce ;
|
|
|
|
|
|
|
261 |
$left_logged_in_user = false;
|
262 |
$right_logged_in_user = false;
|
263 |
$plugin_settings = MobileMenuOptions::getInstance( 'mobmenu' );
|
258 |
{
|
259 |
global $mm_fs ;
|
260 |
global $woocommerce ;
|
261 |
+
$upload_dir = wp_upload_dir();
|
262 |
+
$uploadsFolder = $upload_dir['basedir'] . '/';
|
263 |
+
$url = trailingslashit( $upload_dir['baseurl'] ) . 'search.svg';
|
264 |
$left_logged_in_user = false;
|
265 |
$right_logged_in_user = false;
|
266 |
$plugin_settings = MobileMenuOptions::getInstance( 'mobmenu' );
|
includes/class-wp-mobile-menu-options.php
CHANGED
@@ -136,9 +136,9 @@ class WP_Mobile_Menu_Options
|
|
136 |
<div class="mobile-menu-demos-wrapper">
|
137 |
<!-- Add text when implement the Tour steps - "or follow our initial tour to learn the basic steps." -->
|
138 |
<p><span style="float:left;max-width:65%"><?php
|
139 |
-
esc_html_e( 'WP Mobile Menu is ready to help you with your mobile visitor. You can quickly start by importing one of the demos
|
140 |
?></span>
|
141 |
-
|
142 |
|
143 |
<ul class="demos-importer">
|
144 |
<li>
|
136 |
<div class="mobile-menu-demos-wrapper">
|
137 |
<!-- Add text when implement the Tour steps - "or follow our initial tour to learn the basic steps." -->
|
138 |
<p><span style="float:left;max-width:65%"><?php
|
139 |
+
esc_html_e( 'WP Mobile Menu is ready to help you with your mobile visitor. You can quickly start by importing one of the demos or follow our initial tour to learn the basic steps..', 'mobile-menu' );
|
140 |
?></span>
|
141 |
+
<a href="#" style="font-size: 22px;text-decoration: auto;border: 2px solid #2271b1;float: right; padding: 8px 15px 8px 15px;border-radius: 4px;"><i class="dashicons-before dashicons-video-alt3"></i> Start Tour</a></p>
|
142 |
|
143 |
<ul class="demos-importer">
|
144 |
<li>
|
includes/css/mobmenu-admin.css
CHANGED
@@ -567,7 +567,7 @@ td.second.mm-multicheck-pages fieldset {
|
|
567 |
color: #676767;
|
568 |
}
|
569 |
.mobmenu-settings-panel-wrap .mm-form-table {
|
570 |
-
margin-top:
|
571 |
background: #fff;
|
572 |
}
|
573 |
.row-1.general-options label{
|
@@ -738,7 +738,7 @@ td.second.mm-multicheck-pages fieldset {
|
|
738 |
border-radius: 6px;
|
739 |
margin: 20px!important;
|
740 |
}
|
741 |
-
.toplevel_page_mobile-menu-options .
|
742 |
resize: vertical;
|
743 |
overflow: auto !important;
|
744 |
}
|
@@ -775,7 +775,7 @@ td.second.mm-multicheck-pages fieldset {
|
|
775 |
padding: 8px 20px 8px 20px;
|
776 |
margin-left: 10px;
|
777 |
color: #fff;
|
778 |
-
background: #
|
779 |
text-decoration: none;
|
780 |
cursor: pointer;
|
781 |
}
|
@@ -869,7 +869,7 @@ tr.left-color-options, tr.right-color-options {
|
|
869 |
background: #ebeff3;
|
870 |
width: 120%;
|
871 |
min-height: 150px;
|
872 |
-
margin-left: -
|
873 |
margin-bottom: 120px;
|
874 |
}
|
875 |
.mm-welcome-box span {
|
567 |
color: #676767;
|
568 |
}
|
569 |
.mobmenu-settings-panel-wrap .mm-form-table {
|
570 |
+
margin-top: 10px!important;
|
571 |
background: #fff;
|
572 |
}
|
573 |
.row-1.general-options label{
|
738 |
border-radius: 6px;
|
739 |
margin: 20px!important;
|
740 |
}
|
741 |
+
.toplevel_page_mobile-menu-options .CodeMirror2 {
|
742 |
resize: vertical;
|
743 |
overflow: auto !important;
|
744 |
}
|
775 |
padding: 8px 20px 8px 20px;
|
776 |
margin-left: 10px;
|
777 |
color: #fff;
|
778 |
+
background: #ffcd34;
|
779 |
text-decoration: none;
|
780 |
cursor: pointer;
|
781 |
}
|
869 |
background: #ebeff3;
|
870 |
width: 120%;
|
871 |
min-height: 150px;
|
872 |
+
margin-left: -18vw;
|
873 |
margin-bottom: 120px;
|
874 |
}
|
875 |
.mm-welcome-box span {
|
includes/demo-content/free-demo.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
a:206:{s:7:"enabled";s:1:"1";s:13:"width_trigger";s:4:"5000";s:13:"hide_elements";s:0:"";s:16:"8aff1237fccf268f";s:0:"";s:16:"enable_left_menu";s:1:"1";s:17:"enable_right_menu";s:1:"1";s:9:"left_menu";s:9:"Main Menu";s:18:"left_menu_icon_opt";s:1:"0";s:14:"left_menu_icon";s:0:"";s:15:"left_menu_width";s:3:"278";s:20:"left_icon_top_margin";s:2:"12";s:21:"left_icon_left_margin";s:1:"9";s:10:"right_menu";s:9:"Main Menu";s:19:"right_menu_icon_opt";s:1:"0";s:15:"right_menu_icon";s:0:"";s:16:"right_menu_width";s:3:"366";s:21:"right_icon_top_margin";s:2:"12";s:23:"right_icon_right_margin";s:1:"9";s:15:"header_bg_color";s:7:"#581aaf";s:17:"header_text_color";s:7:"#e8e8e8";s:16:"896cbad193c13b07";s:0:"";s:20:"left_menu_icon_color";s:7:"#ffffff";s:19:"left_panel_bg_color";s:7:"#38404c";s:21:"left_panel_text_color";s:7:"#efefef";s:27:"left_panel_hover_text_color";s:7:"#f7f7f7";s:16:"397d272a90ba5141";s:0:"";s:21:"right_menu_icon_color";s:7:"#ffffff";s:20:"right_panel_bg_color";s:7:"#a3938d";s:22:"right_panel_text_color";s:7:"#ffffff";s:28:"right_panel_hover_text_color";s:7:"#e8e8e8";s:12:"enabled_logo";s:1:"0";s:8:"logo_img";s:5:"11549";s:13:"header_height";s:2:"58";s:15:"logo_top_margin";s:1:"2";s:11:"header_text";s:4:"DEMO";s:16:"header_font_size";s:2:"20";s:10:"custom_css";s:0:"";s:24:"left_panel_hover_bgcolor";s:7:"#5e7dce";s:26:"left_panel_submenu_bgcolor";s:7:"#8fb5f1";s:29:"left_panel_submenu_text_color";s:7:"#ffffff";s:25:"right_panel_hover_bgcolor";s:7:"#5f1fc6";s:27:"right_panel_submenu_bgcolor";s:7:"#1c137a";s:30:"right_panel_submenu_text_color";s:7:"#f5f5f5";s:8:"logo_url";s:0:"";s:14:"left_menu_font";s:540:"a:17:{s:11:"font-family";s:10:"Montserrat";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"18px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:3:"1px";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:18:"left_menu_bg_image";s:0:"";s:20:"left_menu_bg_opacity";s:2:"30";s:21:"left_menu_width_units";s:1:"1";s:26:"left_menu_width_percentage";s:2:"70";s:15:"right_menu_font";s:543:"a:17:{s:11:"font-family";s:10:"Montserrat";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"22px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:19:"right_menu_bg_image";s:0:"";s:21:"right_menu_bg_opacity";s:3:"100";s:22:"right_menu_width_units";s:1:"1";s:27:"right_menu_width_percentage";s:2:"70";s:20:"enabled_naked_header";s:1:"0";s:17:"disabled_logo_url";s:1:"0";s:16:"heafer_menu_font";s:540:"a:17:{s:11:"font-family";s:5:"Dosis";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"20px";s:11:"font-weight";s:6:"normal";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:3:"4px";s:14:"text-transform";s:10:"capitalize";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:17:"menu_display_type";s:13:"slideout-over";s:16:"edc117863e7ad302";s:0:"";s:18:"disable_menu_pages";a:0:{}s:16:"115d6d1eb7b7009c";s:0:"";s:11:"logo_height";s:2:"46";s:15:"logo_img_retina";s:5:"11492";s:16:"76363b6e9af60ad5";s:0:"";s:24:"page_title_header_global";s:2:"no";s:17:"header_text_align";s:6:"center";s:23:"header_text_left_margin";s:2:"25";s:24:"header_text_right_margin";s:2:"20";s:16:"header_menu_font";s:540:"a:17:{s:11:"font-family";s:8:"Alegreya";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"20px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:16:"425c6ce7b63ab02b";s:0:"";s:20:"enable_header_banner";s:1:"1";s:22:"header_banner_position";s:1:"0";s:21:"header_banner_content";s:69:"<i class=\"mob-icon-truck-1\"></i> Free Shipping Limited Time Only ";s:20:"header_banner_height";s:2:"39";s:19:"header_banner_align";s:6:"center";s:26:"header_banner_left_padding";s:2:"20";s:27:"header_banner_right_padding";s:2:"20";s:18:"header_banner_font";s:537:"a:17:{s:11:"font-family";s:5:"Rubik";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"13px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:22:"header_banner_bg_color";s:7:"#08d6b2";s:24:"header_banner_text_color";s:7:"#ffffff";s:16:"53fbb735160a2a18";s:0:"";s:26:"left_menu_items_icon_color";s:4:"#fff";s:16:"e8da66100260051b";s:0:"";s:27:"right_menu_items_icon_color";s:4:"#fff";s:16:"82f6c0cca0550fcd";s:0:"";s:30:"left_panel_3rd_menu_text_color";s:4:"#fff";s:36:"left_panel_3rd_menu_text_color_hover";s:4:"#ccc";s:28:"left_panel_3rd_menu_bg_color";s:4:"#222";s:34:"left_panel_3rd_menu_bg_color_hover";s:4:"#666";s:31:"right_panel_3rd_menu_text_color";s:4:"#fff";s:37:"right_panel_3rd_menu_text_color_hover";s:4:"#ccc";s:29:"right_panel_3rd_menu_bg_color";s:4:"#222";s:35:"right_panel_3rd_menu_bg_color_hover";s:4:"#666";s:27:"enable_right_menu_logged_in";s:1:"0";s:16:"d43de4a7b61984b5";s:0:"";s:20:"right_menu_icon_font";s:6:"user-1";s:20:"right_icon_font_size";s:2:"25";s:16:"d13e6e7aa4451b37";s:0:"";s:24:"right_menu_icon_position";s:1:"1";s:28:"right_menu_icons_hrz_padding";s:2:"10";s:16:"bff6e5e8a5a69b8c";s:0:"";s:22:"right_menu_bg_gradient";s:68:"background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);";s:23:"right_copyright_content";s:26:"2017 This is demo content ";s:26:"enable_left_menu_logged_in";s:1:"0";s:16:"260e97597c6239cc";s:0:"";s:19:"left_menu_icon_font";s:6:"menu-1";s:19:"left_icon_font_size";s:2:"30";s:16:"98df2b5c06eecf2c";s:0:"";s:23:"left_menu_icon_position";s:1:"1";s:27:"left_menu_icons_hrz_padding";s:2:"10";s:16:"63bbb8ba81783018";s:0:"";s:21:"left_menu_bg_gradient";s:67:"background-image:linear-gradient(to top, #2480de 0%, #886fd6 100%);";s:22:"left_copyright_content";s:0:"";s:19:"left_menu_copy_font";s:540:"a:17:{s:11:"font-family";s:5:"Dosis";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:7:"inherit";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:16:"967bcf13a38e2bab";s:0:"";s:22:"default_hided_elements";s:185:"a:14:{i:0;s:1:"2";i:1;s:1:"3";i:2;s:1:"4";i:3;s:1:"5";i:4;s:1:"6";i:5;s:1:"7";i:6;s:1:"8";i:7;s:1:"9";i:8;s:2:"10";i:9;s:2:"11";i:10;s:2:"12";i:11;s:2:"13";i:12;s:2:"14";i:13;s:2:"15";}";s:15:"sticky_elements";s:0:"";s:30:"right_menu_parent_link_submenu";s:1:"1";s:16:"c3775d4e353209e9";s:0:"";s:15:"right_menu_text";s:0:"";s:27:"text_before_right_icon_font";s:546:"a:17:{s:11:"font-family";s:10:"Montserrat";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:7:"inherit";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.8em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:22:"right_menu_icon_action";s:1:"1";s:14:"right_icon_url";s:0:"";s:21:"right_icon_url_target";s:1:"1";s:16:"266c98bedb84f403";s:0:"";s:24:"right_menu_bg_image_size";s:5:"cover";s:26:"right_menu_content_padding";s:2:"16";s:16:"7f9431a9357ff1b7";s:0:"";s:18:"disabled_logo_text";s:1:"0";s:15:"header_branding";s:4:"text";s:29:"left_menu_parent_link_submenu";s:1:"1";s:14:"left_menu_text";s:4:"MENU";s:25:"text_after_left_icon_font";s:543:"a:17:{s:11:"font-family";s:8:"Alegreya";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:7:"inherit";s:11:"font-weight";s:7:"lighter";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:21:"left_menu_icon_action";s:1:"1";s:13:"left_icon_url";s:0:"";s:20:"left_icon_url_target";s:1:"1";s:23:"left_menu_bg_image_size";s:5:"cover";s:25:"left_menu_content_padding";s:2:"20";s:9:"custom_js";s:0:"";s:16:"overlay_bg_color";s:19:"rgba(0, 0, 0, 0.83)";s:22:"header_text_after_icon";s:7:"#ffffff";s:23:"header_text_before_icon";s:7:"#777777";s:16:"13d84546d7fc09f7";s:0:"";s:16:"f18e64632fbf249a";s:0:"";s:39:"left_menu_parent_link_submenu_2nd_level";s:1:"1";s:29:"left_panel_close_button_color";s:4:"#000";s:30:"right_panel_close_button_color";s:4:"#000";s:16:"55186b6139cdcba2";s:0:"";s:16:"bc0780a0a16b8d38";s:0:"";s:40:"right_menu_parent_link_submenu_2nd_level";s:1:"0";s:16:"eb4218389e2d7f1a";s:0:"";s:22:"menu_items_border_size";s:1:"0";s:15:"close_icon_font";s:8:"cancel-1";s:20:"close_icon_font_size";s:2:"30";s:22:"submenu_open_icon_font";s:6:"plus-1";s:23:"submenu_close_icon_font";s:7:"minus-1";s:22:"submenu_icon_font_size";s:2:"30";s:23:"menu_items_border_color";s:19:"rgba(0, 0, 0, 0.83)";s:16:"f21b39bfde8a33ff";s:0:"";s:16:"95c7c3f7995a92f2";s:0:"";s:16:"f9278155cfcd2980";s:0:"";s:34:"left_panel_2nd_level_bgcolor_hover";s:7:"#eff1f1";s:37:"left_panel_2nd_level_text_color_hover";s:4:"#222";s:16:"9d91ed25c2d2f028";s:0:"";s:28:"left_panel_3rd_level_bgcolor";s:7:"#eff1f1";s:31:"left_panel_3rd_level_text_color";s:4:"#222";s:34:"left_panel_3rd_level_bgcolor_hover";s:7:"#eff1f1";s:37:"left_panel_3rd_level_text_color_hover";s:4:"#222";s:16:"4f66692316c6a02a";s:0:"";s:16:"0f851dd2c0c77a0f";s:0:"";s:35:"right_panel_2nd_level_bgcolor_hover";s:7:"#eff1f1";s:38:"right_panel_2nd_level_text_color_hover";s:4:"#222";s:16:"95492130224f69dc";s:0:"";s:29:"right_panel_3rd_level_bgcolor";s:7:"#eff1f1";s:32:"right_panel_3rd_level_text_color";s:4:"#222";s:35:"right_panel_3rd_level_bgcolor_hover";s:7:"#eff1f1";s:38:"right_panel_3rd_level_text_color_hover";s:4:"#222";s:16:"f63e853ff9f5e599";s:0:"";s:16:"4d2880c737074642";s:0:"";s:16:"c03f36469558a0e0";s:0:"";s:21:"enabled_sticky_header";s:1:"1";s:16:"14a7409fee222344";s:0:"";s:16:"f6894ce9bb6f22fc";s:0:"";s:19:"only_mobile_devices";s:1:"0";s:16:"5f50f890971a96ca";s:0:"";s:16:"6ac253251e631bc4";s:0:"";s:16:"d82aab16c3557b41";s:0:"";s:18:"autoclose_submenus";s:1:"0";s:19:"right_menu_icon_new";s:4:"icon";s:16:"53f2817c7eea9607";s:0:"";s:30:"left_panel_cancel_button_color";s:4:"#fff";s:31:"right_panel_cancel_button_color";s:4:"#fff";s:16:"2942cfa338633fe0";s:0:"";s:13:"header_shadow";s:1:"0";s:16:"4a72a2b9f24e9142";s:0:"";s:18:"left_menu_icon_new";s:4:"icon";s:16:"de78542081d94617";s:0:"";s:17:"only_testing_mode";s:1:"0";s:16:"dde6c32f06c5caf8";s:0:"";s:16:"428234e58be7b887";s:0:"";s:16:"7a9dbb4c45fde28a";s:0:"";s:16:"cfe42b8d91c3ea0b";s:0:"";s:16:"2a4ff950f8777f71";s:0:"";s:16:"122cf101513b7c04";s:0:"";s:16:"aa60e3d5fe704267";s:0:"";s:16:"55e89d9a7f740b76";s:0:"";}
|
1 |
+
a:206:{s:7:"enabled";s:1:"1";s:13:"width_trigger";s:4:"5000";s:13:"hide_elements";s:0:"";s:16:"8aff1237fccf268f";s:0:"";s:16:"enable_left_menu";s:1:"1";s:17:"enable_right_menu";s:1:"1";s:9:"left_menu";s:9:"Main Menu";s:18:"left_menu_icon_opt";s:1:"0";s:14:"left_menu_icon";s:0:"";s:15:"left_menu_width";s:3:"278";s:20:"left_icon_top_margin";s:2:"12";s:21:"left_icon_left_margin";s:1:"9";s:10:"right_menu";s:9:"Main Menu";s:19:"right_menu_icon_opt";s:1:"0";s:15:"right_menu_icon";s:0:"";s:16:"right_menu_width";s:3:"366";s:21:"right_icon_top_margin";s:2:"12";s:23:"right_icon_right_margin";s:1:"9";s:15:"header_bg_color";s:7:"#581aaf";s:17:"header_text_color";s:7:"#e8e8e8";s:16:"896cbad193c13b07";s:0:"";s:20:"left_menu_icon_color";s:7:"#ffffff";s:19:"left_panel_bg_color";s:7:"#38404c";s:21:"left_panel_text_color";s:7:"#efefef";s:27:"left_panel_hover_text_color";s:7:"#f7f7f7";s:16:"397d272a90ba5141";s:0:"";s:21:"right_menu_icon_color";s:7:"#ffffff";s:20:"right_panel_bg_color";s:7:"#a3938d";s:22:"right_panel_text_color";s:7:"#ffffff";s:28:"right_panel_hover_text_color";s:7:"#e8e8e8";s:12:"enabled_logo";s:1:"0";s:8:"logo_img";s:5:"11549";s:13:"header_height";s:2:"58";s:15:"logo_top_margin";s:1:"2";s:11:"header_text";s:4:"DEMO";s:16:"header_font_size";s:2:"20";s:10:"custom_css";s:0:"";s:24:"left_panel_hover_bgcolor";s:7:"#5e7dce";s:26:"left_panel_submenu_bgcolor";s:7:"#8fb5f1";s:29:"left_panel_submenu_text_color";s:7:"#ffffff";s:25:"right_panel_hover_bgcolor";s:7:"#5f1fc6";s:27:"right_panel_submenu_bgcolor";s:7:"#1c137a";s:30:"right_panel_submenu_text_color";s:7:"#f5f5f5";s:8:"logo_url";s:0:"";s:14:"left_menu_font";s:540:"a:17:{s:11:"font-family";s:10:"Montserrat";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"18px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:3:"1px";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:18:"left_menu_bg_image";s:0:"";s:20:"left_menu_bg_opacity";s:2:"30";s:21:"left_menu_width_units";s:1:"1";s:26:"left_menu_width_percentage";s:2:"70";s:15:"right_menu_font";s:543:"a:17:{s:11:"font-family";s:10:"Montserrat";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"22px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:19:"right_menu_bg_image";s:0:"";s:21:"right_menu_bg_opacity";s:3:"100";s:22:"right_menu_width_units";s:1:"1";s:27:"right_menu_width_percentage";s:2:"70";s:20:"enabled_naked_header";s:1:"0";s:17:"disabled_logo_url";s:1:"0";s:16:"heafer_menu_font";s:540:"a:17:{s:11:"font-family";s:5:"Dosis";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"20px";s:11:"font-weight";s:6:"normal";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:3:"4px";s:14:"text-transform";s:10:"capitalize";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:17:"menu_display_type";s:13:"slideout-over";s:16:"edc117863e7ad302";s:0:"";s:18:"disable_menu_pages";a:0:{}s:16:"115d6d1eb7b7009c";s:0:"";s:11:"logo_height";s:2:"46";s:15:"logo_img_retina";s:5:"11492";s:16:"76363b6e9af60ad5";s:0:"";s:24:"page_title_header_global";s:2:"no";s:17:"header_text_align";s:6:"center";s:23:"header_text_left_margin";s:2:"25";s:24:"header_text_right_margin";s:2:"20";s:16:"header_menu_font";s:540:"a:17:{s:11:"font-family";s:8:"Alegreya";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"20px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:16:"425c6ce7b63ab02b";s:0:"";s:20:"enable_header_banner";s:1:"1";s:22:"header_banner_position";s:1:"0";s:21:"header_banner_content";s:69:"<i class=\"mob-icon-truck-1\"></i> Free Shipping Limited Time Only ";s:20:"header_banner_height";s:2:"39";s:19:"header_banner_align";s:6:"center";s:26:"header_banner_left_padding";s:2:"20";s:27:"header_banner_right_padding";s:2:"20";s:18:"header_banner_font";s:537:"a:17:{s:11:"font-family";s:5:"Rubik";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:4:"13px";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:22:"header_banner_bg_color";s:7:"#08d6b2";s:24:"header_banner_text_color";s:7:"#ffffff";s:16:"53fbb735160a2a18";s:0:"";s:26:"left_menu_items_icon_color";s:4:"#fff";s:16:"e8da66100260051b";s:0:"";s:27:"right_menu_items_icon_color";s:4:"#fff";s:16:"82f6c0cca0550fcd";s:0:"";s:30:"left_panel_3rd_menu_text_color";s:4:"#fff";s:36:"left_panel_3rd_menu_text_color_hover";s:4:"#ccc";s:28:"left_panel_3rd_menu_bg_color";s:4:"#222";s:34:"left_panel_3rd_menu_bg_color_hover";s:4:"#666";s:31:"right_panel_3rd_menu_text_color";s:4:"#fff";s:37:"right_panel_3rd_menu_text_color_hover";s:4:"#ccc";s:29:"right_panel_3rd_menu_bg_color";s:4:"#222";s:35:"right_panel_3rd_menu_bg_color_hover";s:4:"#666";s:27:"enable_right_menu_logged_in";s:1:"0";s:16:"d43de4a7b61984b5";s:0:"";s:20:"right_menu_icon_font";s:6:"user-1";s:20:"right_icon_font_size";s:2:"25";s:16:"d13e6e7aa4451b37";s:0:"";s:24:"right_menu_icon_position";s:1:"1";s:28:"right_menu_icons_hrz_padding";s:2:"10";s:16:"bff6e5e8a5a69b8c";s:0:"";s:22:"right_menu_bg_gradient";s:0:"";s:23:"right_copyright_content";s:26:"2017 This is demo content ";s:26:"enable_left_menu_logged_in";s:1:"0";s:16:"260e97597c6239cc";s:0:"";s:19:"left_menu_icon_font";s:6:"menu-1";s:19:"left_icon_font_size";s:2:"30";s:16:"98df2b5c06eecf2c";s:0:"";s:23:"left_menu_icon_position";s:1:"1";s:27:"left_menu_icons_hrz_padding";s:2:"10";s:16:"63bbb8ba81783018";s:0:"";s:21:"left_menu_bg_gradient";s:0:"";s:22:"left_copyright_content";s:0:"";s:19:"left_menu_copy_font";s:540:"a:17:{s:11:"font-family";s:5:"Dosis";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:7:"inherit";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:16:"967bcf13a38e2bab";s:0:"";s:22:"default_hided_elements";s:185:"a:14:{i:0;s:1:"2";i:1;s:1:"3";i:2;s:1:"4";i:3;s:1:"5";i:4;s:1:"6";i:5;s:1:"7";i:6;s:1:"8";i:7;s:1:"9";i:8;s:2:"10";i:9;s:2:"11";i:10;s:2:"12";i:11;s:2:"13";i:12;s:2:"14";i:13;s:2:"15";}";s:15:"sticky_elements";s:0:"";s:30:"right_menu_parent_link_submenu";s:1:"1";s:16:"c3775d4e353209e9";s:0:"";s:15:"right_menu_text";s:0:"";s:27:"text_before_right_icon_font";s:546:"a:17:{s:11:"font-family";s:10:"Montserrat";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:7:"inherit";s:11:"font-weight";s:7:"inherit";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.8em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:22:"right_menu_icon_action";s:1:"1";s:14:"right_icon_url";s:0:"";s:21:"right_icon_url_target";s:1:"1";s:16:"266c98bedb84f403";s:0:"";s:24:"right_menu_bg_image_size";s:5:"cover";s:26:"right_menu_content_padding";s:2:"16";s:16:"7f9431a9357ff1b7";s:0:"";s:18:"disabled_logo_text";s:1:"0";s:15:"header_branding";s:4:"text";s:29:"left_menu_parent_link_submenu";s:1:"1";s:14:"left_menu_text";s:4:"MENU";s:25:"text_after_left_icon_font";s:543:"a:17:{s:11:"font-family";s:8:"Alegreya";s:9:"font-type";s:6:"google";s:5:"color";s:7:"#333333";s:9:"font-size";s:7:"inherit";s:11:"font-weight";s:7:"lighter";s:10:"font-style";s:6:"normal";s:11:"line-height";s:5:"1.5em";s:14:"letter-spacing";s:6:"normal";s:14:"text-transform";s:4:"none";s:12:"font-variant";s:6:"normal";s:20:"text-shadow-location";s:4:"none";s:20:"text-shadow-distance";s:3:"0px";s:16:"text-shadow-blur";s:3:"0px";s:17:"text-shadow-color";s:7:"#333333";s:19:"text-shadow-opacity";s:1:"1";s:4:"dark";s:0:"";s:4:"text";s:0:"";}";s:21:"left_menu_icon_action";s:1:"1";s:13:"left_icon_url";s:0:"";s:20:"left_icon_url_target";s:1:"1";s:23:"left_menu_bg_image_size";s:5:"cover";s:25:"left_menu_content_padding";s:2:"20";s:9:"custom_js";s:0:"";s:16:"overlay_bg_color";s:19:"rgba(0, 0, 0, 0.83)";s:22:"header_text_after_icon";s:7:"#ffffff";s:23:"header_text_before_icon";s:7:"#777777";s:16:"13d84546d7fc09f7";s:0:"";s:16:"f18e64632fbf249a";s:0:"";s:39:"left_menu_parent_link_submenu_2nd_level";s:1:"1";s:29:"left_panel_close_button_color";s:4:"#000";s:30:"right_panel_close_button_color";s:4:"#000";s:16:"55186b6139cdcba2";s:0:"";s:16:"bc0780a0a16b8d38";s:0:"";s:40:"right_menu_parent_link_submenu_2nd_level";s:1:"0";s:16:"eb4218389e2d7f1a";s:0:"";s:22:"menu_items_border_size";s:1:"0";s:15:"close_icon_font";s:8:"cancel-1";s:20:"close_icon_font_size";s:2:"30";s:22:"submenu_open_icon_font";s:6:"plus-1";s:23:"submenu_close_icon_font";s:7:"minus-1";s:22:"submenu_icon_font_size";s:2:"30";s:23:"menu_items_border_color";s:19:"rgba(0, 0, 0, 0.83)";s:16:"f21b39bfde8a33ff";s:0:"";s:16:"95c7c3f7995a92f2";s:0:"";s:16:"f9278155cfcd2980";s:0:"";s:34:"left_panel_2nd_level_bgcolor_hover";s:7:"#eff1f1";s:37:"left_panel_2nd_level_text_color_hover";s:4:"#222";s:16:"9d91ed25c2d2f028";s:0:"";s:28:"left_panel_3rd_level_bgcolor";s:7:"#eff1f1";s:31:"left_panel_3rd_level_text_color";s:4:"#222";s:34:"left_panel_3rd_level_bgcolor_hover";s:7:"#eff1f1";s:37:"left_panel_3rd_level_text_color_hover";s:4:"#222";s:16:"4f66692316c6a02a";s:0:"";s:16:"0f851dd2c0c77a0f";s:0:"";s:35:"right_panel_2nd_level_bgcolor_hover";s:7:"#eff1f1";s:38:"right_panel_2nd_level_text_color_hover";s:4:"#222";s:16:"95492130224f69dc";s:0:"";s:29:"right_panel_3rd_level_bgcolor";s:7:"#eff1f1";s:32:"right_panel_3rd_level_text_color";s:4:"#222";s:35:"right_panel_3rd_level_bgcolor_hover";s:7:"#eff1f1";s:38:"right_panel_3rd_level_text_color_hover";s:4:"#222";s:16:"f63e853ff9f5e599";s:0:"";s:16:"4d2880c737074642";s:0:"";s:16:"c03f36469558a0e0";s:0:"";s:21:"enabled_sticky_header";s:1:"1";s:16:"14a7409fee222344";s:0:"";s:16:"f6894ce9bb6f22fc";s:0:"";s:19:"only_mobile_devices";s:1:"0";s:16:"5f50f890971a96ca";s:0:"";s:16:"6ac253251e631bc4";s:0:"";s:16:"d82aab16c3557b41";s:0:"";s:18:"autoclose_submenus";s:1:"0";s:19:"right_menu_icon_new";s:4:"icon";s:16:"53f2817c7eea9607";s:0:"";s:30:"left_panel_cancel_button_color";s:4:"#fff";s:31:"right_panel_cancel_button_color";s:4:"#fff";s:16:"2942cfa338633fe0";s:0:"";s:13:"header_shadow";s:1:"0";s:16:"4a72a2b9f24e9142";s:0:"";s:18:"left_menu_icon_new";s:4:"icon";s:16:"de78542081d94617";s:0:"";s:17:"only_testing_mode";s:1:"0";s:16:"dde6c32f06c5caf8";s:0:"";s:16:"428234e58be7b887";s:0:"";s:16:"7a9dbb4c45fde28a";s:0:"";s:16:"cfe42b8d91c3ea0b";s:0:"";s:16:"2a4ff950f8777f71";s:0:"";s:16:"122cf101513b7c04";s:0:"";s:16:"aa60e3d5fe704267";s:0:"";s:16:"55e89d9a7f740b76";s:0:"";}
|
includes/js/mobmenu-admin.js
CHANGED
@@ -19,6 +19,7 @@
|
|
19 |
|
20 |
jQuery( document ).ready( function(){
|
21 |
|
|
|
22 |
function hideFieldsNotNeeded(){
|
23 |
|
24 |
|
@@ -460,7 +461,7 @@
|
|
460 |
$( '[data-link-id=' + subMenu + ']' ).click();
|
461 |
|
462 |
}, 100);
|
463 |
-
|
464 |
// Initilialize the CodeMirror on the custom CSS option.
|
465 |
if ( $('#mobmenu_custom_css').length > 0 && wp.codeEditor != undefined ) {
|
466 |
editorSettings = wp.codeEditor.defaultSettings ? _.clone( wp.codeEditor.defaultSettings ) : {};
|
@@ -494,6 +495,9 @@
|
|
494 |
);
|
495 |
wp.codeEditor.initialize($('#mobmenu_custom_js'), editorSettings);
|
496 |
}
|
|
|
|
|
|
|
497 |
|
498 |
//Hide deprecated field.
|
499 |
$( '#mobmenu_header_font_size' ).parent().parent().hide();
|
19 |
|
20 |
jQuery( document ).ready( function(){
|
21 |
|
22 |
+
$( '#mobmenu_custom_css' ).click();
|
23 |
function hideFieldsNotNeeded(){
|
24 |
|
25 |
|
461 |
$( '[data-link-id=' + subMenu + ']' ).click();
|
462 |
|
463 |
}, 100);
|
464 |
+
setTimeout(function(){
|
465 |
// Initilialize the CodeMirror on the custom CSS option.
|
466 |
if ( $('#mobmenu_custom_css').length > 0 && wp.codeEditor != undefined ) {
|
467 |
editorSettings = wp.codeEditor.defaultSettings ? _.clone( wp.codeEditor.defaultSettings ) : {};
|
495 |
);
|
496 |
wp.codeEditor.initialize($('#mobmenu_custom_js'), editorSettings);
|
497 |
}
|
498 |
+
}, 2000);
|
499 |
+
|
500 |
+
|
501 |
|
502 |
//Hide deprecated field.
|
503 |
$( '#mobmenu_header_font_size' ).parent().parent().hide();
|
includes/plugin-settings/lib/class-admin-page.php
CHANGED
@@ -298,7 +298,7 @@ class MobileMenuAdminPage
|
|
298 |
?></h2>-->
|
299 |
<div class="mobile-menu-logo">
|
300 |
<img src="<?php
|
301 |
-
echo WP_MOBILE_MENU_PLUGIN_URL . 'includes/assets/
|
302 |
?>">
|
303 |
</div>
|
304 |
<div class='mm-panel-search-bar'>
|
298 |
?></h2>-->
|
299 |
<div class="mobile-menu-logo">
|
300 |
<img src="<?php
|
301 |
+
echo WP_MOBILE_MENU_PLUGIN_URL . 'includes/assets/logo_mobile_menu.png' ;
|
302 |
?>">
|
303 |
</div>
|
304 |
<div class='mm-panel-search-bar'>
|
includes/plugin-settings/lib/class-admin-tab.php
CHANGED
@@ -153,6 +153,10 @@ class MobileMenuAdminTab
|
|
153 |
array(
|
154 |
'name' => __( 'Header', 'mobile-menu' ),
|
155 |
'url' => 'header-colors',
|
|
|
|
|
|
|
|
|
156 |
),
|
157 |
array(
|
158 |
'name' => __( 'Left Menu', 'mobile-menu' ),
|
153 |
array(
|
154 |
'name' => __( 'Header', 'mobile-menu' ),
|
155 |
'url' => 'header-colors',
|
156 |
+
),
|
157 |
+
array(
|
158 |
+
'name' => __( 'Footer', 'mobile-menu' ),
|
159 |
+
'url' => 'footer-colors',
|
160 |
),
|
161 |
array(
|
162 |
'name' => __( 'Left Menu', 'mobile-menu' ),
|
includes/plugin-settings/lib/class-mobmenu-css.php
CHANGED
@@ -340,14 +340,16 @@ class MobileMenuCSS
|
|
340 |
private function updateSvgColors()
|
341 |
{
|
342 |
$plugin_settings = MobileMenuOptions::getInstance( 'mobmenu' );
|
|
|
|
|
343 |
// Change the SVG search icon color.
|
344 |
-
$svg_file_path =
|
345 |
$svg_color = $plugin_settings->getInternalAdminPageOption( 'search_icon_color', '#000000' );
|
346 |
$this->writeSVG( $svg_color, $svg_file_path );
|
347 |
|
348 |
if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
349 |
// Change the SVG cart icon color.
|
350 |
-
$svg_file_path =
|
351 |
$svg_color = $plugin_settings->getInternalAdminPageOption( 'mm_woo_menu_icon_color', '#000000' );
|
352 |
$this->writeSVG( $svg_color, $svg_file_path );
|
353 |
}
|
@@ -447,17 +449,26 @@ class MobileMenuCSS
|
|
447 |
if ( !$wp_filesystem->is_readable( $svgFilename ) ) {
|
448 |
return false;
|
449 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
}
|
451 |
|
452 |
-
// Verify directory.
|
453 |
-
if ( !$wp_filesystem->is_dir( dirname( $svgFilename ) ) ) {
|
454 |
-
return false;
|
455 |
-
}
|
456 |
-
if ( !$wp_filesystem->is_writable( dirname( $svgFilename ) ) ) {
|
457 |
-
return false;
|
458 |
-
}
|
459 |
$svg_color = str_pad( $svg_color, 7 );
|
460 |
-
$svg_file_content = $wp_filesystem->get_contents( $svgFilename );
|
461 |
$svg_file_content = substr_replace(
|
462 |
$svg_file_content,
|
463 |
'' . $svg_color . '',
|
340 |
private function updateSvgColors()
|
341 |
{
|
342 |
$plugin_settings = MobileMenuOptions::getInstance( 'mobmenu' );
|
343 |
+
$upload_dir = wp_upload_dir();
|
344 |
+
$uploadsFolder = $upload_dir['basedir'] . '/';
|
345 |
// Change the SVG search icon color.
|
346 |
+
$svg_file_path = $uploadsFolder . 'search.svg';
|
347 |
$svg_color = $plugin_settings->getInternalAdminPageOption( 'search_icon_color', '#000000' );
|
348 |
$this->writeSVG( $svg_color, $svg_file_path );
|
349 |
|
350 |
if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
|
351 |
// Change the SVG cart icon color.
|
352 |
+
$svg_file_path = $uploadsFolder . 'cart.svg';
|
353 |
$svg_color = $plugin_settings->getInternalAdminPageOption( 'mm_woo_menu_icon_color', '#000000' );
|
354 |
$this->writeSVG( $svg_color, $svg_file_path );
|
355 |
}
|
449 |
if ( !$wp_filesystem->is_readable( $svgFilename ) ) {
|
450 |
return false;
|
451 |
}
|
452 |
+
// Verify directory.
|
453 |
+
if ( !$wp_filesystem->is_dir( dirname( $svgFilename ) ) ) {
|
454 |
+
return false;
|
455 |
+
}
|
456 |
+
if ( !$wp_filesystem->is_writable( dirname( $svgFilename ) ) ) {
|
457 |
+
return false;
|
458 |
+
}
|
459 |
+
$svg_file_content = $wp_filesystem->get_contents( $svgFilename );
|
460 |
+
} else {
|
461 |
+
|
462 |
+
if ( strpos( $svgFilename, 'search.svg' ) > 0 ) {
|
463 |
+
$svgFilenameOrig = WP_MOBILE_MENU_PLUGIN_PATH . 'includes/assets/svgs/search.svg';
|
464 |
+
} else {
|
465 |
+
$svgFilenameOrig = WP_MOBILE_MENU_PLUGIN_PATH . 'includes/assets/svgs/cart.svg';
|
466 |
+
}
|
467 |
+
|
468 |
+
$svg_file_content = $wp_filesystem->get_contents( $svgFilenameOrig );
|
469 |
}
|
470 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
$svg_color = str_pad( $svg_color, 7 );
|
|
|
472 |
$svg_file_content = substr_replace(
|
473 |
$svg_file_content,
|
474 |
'' . $svg_color . '',
|
includes/plugin-settings/lib/class-option-code.php
CHANGED
@@ -205,8 +205,9 @@ class MobileMenuOptionCode extends MobileMenuOption {
|
|
205 |
* @return void
|
206 |
*/
|
207 |
public function loadAdminScripts() {
|
208 |
-
|
209 |
-
|
|
|
210 |
|
211 |
wp_enqueue_script('wp-theme-plugin-editor');
|
212 |
wp_enqueue_style('wp-codemirror');
|
205 |
* @return void
|
206 |
*/
|
207 |
public function loadAdminScripts() {
|
208 |
+
|
209 |
+
$cm_settings['codeEditor'] = wp_enqueue_code_editor( array('type' => 'text/css') );
|
210 |
+
wp_localize_script( 'jquery', 'cm_settings', $cm_settings);
|
211 |
|
212 |
wp_enqueue_script('wp-theme-plugin-editor');
|
213 |
wp_enqueue_style('wp-codemirror');
|
includes/plugin-settings/lib/class-option-upload.php
CHANGED
@@ -151,6 +151,9 @@ class MobileMenuOptionUpload extends MobileMenuOption {
|
|
151 |
} else {
|
152 |
if ( ! is_array( $value ) ) {
|
153 |
$value = $this->getValue();
|
|
|
|
|
|
|
154 |
} else {
|
155 |
$value = $value[0];
|
156 |
}
|
151 |
} else {
|
152 |
if ( ! is_array( $value ) ) {
|
153 |
$value = $this->getValue();
|
154 |
+
if ( $value == 'menu' ) {
|
155 |
+
$value = '';
|
156 |
+
}
|
157 |
} else {
|
158 |
$value = $value[0];
|
159 |
}
|
mobmenu.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.2.
|
7 |
* Plugin URI: https://www.wpmobilemenu.com/
|
8 |
* Author: Freshlight Lab
|
9 |
* Author URI: https://www.freshlightlab.com/
|
@@ -16,7 +16,7 @@
|
|
16 |
if ( !defined( 'ABSPATH' ) ) {
|
17 |
die;
|
18 |
}
|
19 |
-
define( 'WP_MOBILE_MENU_VERSION', '2.8.2.
|
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' ) ) {
|
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.2.7
|
7 |
* Plugin URI: https://www.wpmobilemenu.com/
|
8 |
* Author: Freshlight Lab
|
9 |
* Author URI: https://www.freshlightlab.com/
|
16 |
if ( !defined( 'ABSPATH' ) ) {
|
17 |
die;
|
18 |
}
|
19 |
+
define( 'WP_MOBILE_MENU_VERSION', '2.8.2.7' );
|
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' ) ) {
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: takanakui, freemius, freslightlab
|
|
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:
|
7 |
Stable tag: 2.8.2.6
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
@@ -136,6 +136,11 @@ Not available at the moment
|
|
136 |
|
137 |
|
138 |
|
|
|
|
|
|
|
|
|
|
|
139 |
= 2.8.2.6 =
|
140 |
* Fix! - Revert the HTML of the Mobile Menu to the wp_footer hook instead wp_open_body because there are still many themes not following the guidelines
|
141 |
* Fix! - Logo was disappearing in Naked Header mode
|
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: 6.0
|
7 |
Stable tag: 2.8.2.6
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
136 |
|
137 |
|
138 |
|
139 |
+
= 2.8.2.7 =
|
140 |
+
* Fix! - Fix image upload field
|
141 |
+
* Improvment! - Remove background gradient from free demo content
|
142 |
+
* Fix! - Security Fix
|
143 |
+
|
144 |
= 2.8.2.6 =
|
145 |
* Fix! - Revert the HTML of the Mobile Menu to the wp_footer hook instead wp_open_body because there are still many themes not following the guidelines
|
146 |
* Fix! - Logo was disappearing in Naked Header mode
|