Version Description
- Fix! - Fix issue that was opening all the submenus
Download this release
Release Info
Developer | takanakui |
Plugin | WP Mobile Menu |
Version | 2.8.2.4 |
Comparing to | |
See all releases |
Code changes from version 2.8.2.3 to 2.8.2.4
- includes/js/mobmenu.js +1 -2
- mobmenu.php +2 -2
- options-framework/lib/class-admin-page.php +2 -2
- options-framework/lib/class-meta-box.php +1 -1
- options-framework/lib/class-option-ajax-button.php +5 -5
- options-framework/lib/class-option-color.php +1 -1
- options-framework/lib/class-option-enable.php +2 -2
- options-framework/lib/class-option-file.php +2 -2
- options-framework/lib/class-option-gallery.php +2 -2
- options-framework/lib/class-option-multicheck-pages.php +1 -1
- options-framework/lib/class-option-multicheck-posts.php +1 -1
- options-framework/lib/class-option-multicheck.php +1 -1
- options-framework/lib/class-option-save.php +1 -1
- options-framework/lib/class-option-select-categories.php +1 -1
- options-framework/lib/class-option-select-pages.php +2 -2
- options-framework/lib/class-option-select-post-types.php +1 -1
- options-framework/lib/class-option-select-posts.php +2 -2
- options-framework/lib/class-option-select.php +3 -3
- options-framework/lib/class-option-upload.php +2 -2
- options-framework/lib/class-titan-framework.php +4 -4
- options-framework/option-framework.php +0 -6
- readme.txt +5 -4
includes/js/mobmenu.js
CHANGED
@@ -92,8 +92,7 @@
|
|
92 |
}
|
93 |
|
94 |
function mobmenuOpenSubmenus( menu ) {
|
95 |
-
|
96 |
-
var submenu = $(menu).parent().parent().find( '.sub-menu' );
|
97 |
|
98 |
if ( $(menu).parent().next().hasClass( 'show-sub-menu' ) ) {
|
99 |
$(menu).find('.show-sub-menu' ).hide();
|
92 |
}
|
93 |
|
94 |
function mobmenuOpenSubmenus( menu ) {
|
95 |
+
var submenu = $(menu).parent().next();
|
|
|
96 |
|
97 |
if ( $(menu).parent().next().hasClass( 'show-sub-menu' ) ) {
|
98 |
$(menu).find('.show-sub-menu' ).hide();
|
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: Rui Guerreiro
|
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.4
|
7 |
* Plugin URI: https://www.wpmobilemenu.com/
|
8 |
* Author: Rui Guerreiro
|
9 |
* Author URI: https://www.freshlightlab.com/
|
16 |
if ( !defined( 'ABSPATH' ) ) {
|
17 |
die;
|
18 |
}
|
19 |
+
define( 'WP_MOBILE_MENU_VERSION', '2.8.2.4' );
|
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' ) ) {
|
options-framework/lib/class-admin-page.php
CHANGED
@@ -450,10 +450,10 @@ class TitanFrameworkAdminPage
|
|
450 |
if ( !empty($_GET['message']) ) {
|
451 |
|
452 |
if ( 'saved' === $_GET['message'] ) {
|
453 |
-
echo TitanFrameworkAdminNotification::formNotification( __( 'Settings saved.',
|
454 |
} else {
|
455 |
if ( 'reset' === $_GET['message'] ) {
|
456 |
-
echo TitanFrameworkAdminNotification::formNotification( __( 'Settings reset to default.',
|
457 |
}
|
458 |
}
|
459 |
|
450 |
if ( !empty($_GET['message']) ) {
|
451 |
|
452 |
if ( 'saved' === $_GET['message'] ) {
|
453 |
+
echo TitanFrameworkAdminNotification::formNotification( __( 'Settings saved.', 'mobile-menu' ), esc_html( $_GET['message'] ) ) ;
|
454 |
} else {
|
455 |
if ( 'reset' === $_GET['message'] ) {
|
456 |
+
echo TitanFrameworkAdminNotification::formNotification( __( 'Settings reset to default.', 'mobile-menu' ), esc_html( $_GET['message'] ) ) ;
|
457 |
}
|
458 |
}
|
459 |
|
options-framework/lib/class-meta-box.php
CHANGED
@@ -29,7 +29,7 @@ class TitanFrameworkMetaBox {
|
|
29 |
$this->settings = array_merge( $this->defaultSettings, $settings );
|
30 |
// $this->options = $options;
|
31 |
if ( empty( $this->settings['name'] ) ) {
|
32 |
-
$this->settings['name'] = __( 'More Options',
|
33 |
}
|
34 |
|
35 |
if ( empty( $this->settings['id'] ) ) {
|
29 |
$this->settings = array_merge( $this->defaultSettings, $settings );
|
30 |
// $this->options = $options;
|
31 |
if ( empty( $this->settings['name'] ) ) {
|
32 |
+
$this->settings['name'] = __( 'More Options', 'mobile-menu' );
|
33 |
}
|
34 |
|
35 |
if ( empty( $this->settings['id'] ) ) {
|
options-framework/lib/class-option-ajax-button.php
CHANGED
@@ -27,10 +27,10 @@ class TitanFrameworkOptionAjaxButton extends TitanFrameworkOption {
|
|
27 |
*/
|
28 |
public function ajaxSecurityChecker() {
|
29 |
if ( empty( $_POST['nonce'] ) ) {
|
30 |
-
wp_send_json_error( __( 'Security check failed, please refresh the page and try again.',
|
31 |
}
|
32 |
if ( ! wp_verify_nonce( $_POST['nonce'], 'tf-ajax-button' ) ) {
|
33 |
-
wp_send_json_error( __( 'Security check failed, please refresh the page and try again.',
|
34 |
}
|
35 |
}
|
36 |
|
@@ -84,7 +84,7 @@ class TitanFrameworkOptionAjaxButton extends TitanFrameworkOption {
|
|
84 |
$this->settings['success_callback'][] = '';
|
85 |
}
|
86 |
while ( count( $this->settings['error_callback'] ) < count( $this->settings['action'] ) ) {
|
87 |
-
$this->settings['error_callback'][] = __( 'Something went wrong',
|
88 |
}
|
89 |
while ( count( $this->settings['data_filter_callback'] ) < count( $this->settings['action'] ) ) {
|
90 |
$this->settings['data_filter_callback'][] = '';
|
@@ -92,12 +92,12 @@ class TitanFrameworkOptionAjaxButton extends TitanFrameworkOption {
|
|
92 |
|
93 |
foreach ( $this->settings['label'] as $i => $label ) {
|
94 |
if ( empty( $label ) ) {
|
95 |
-
$this->settings['label'][ $i ] = __( 'Click me',
|
96 |
}
|
97 |
}
|
98 |
foreach ( $this->settings['wait_label'] as $i => $label ) {
|
99 |
if ( empty( $label ) ) {
|
100 |
-
$this->settings['wait_label'][ $i ] = __( 'Please wait...',
|
101 |
}
|
102 |
}
|
103 |
foreach ( $this->settings['error_label'] as $i => $label ) {
|
27 |
*/
|
28 |
public function ajaxSecurityChecker() {
|
29 |
if ( empty( $_POST['nonce'] ) ) {
|
30 |
+
wp_send_json_error( __( 'Security check failed, please refresh the page and try again.', 'mobile-menu' ) );
|
31 |
}
|
32 |
if ( ! wp_verify_nonce( $_POST['nonce'], 'tf-ajax-button' ) ) {
|
33 |
+
wp_send_json_error( __( 'Security check failed, please refresh the page and try again.', 'mobile-menu' ) );
|
34 |
}
|
35 |
}
|
36 |
|
84 |
$this->settings['success_callback'][] = '';
|
85 |
}
|
86 |
while ( count( $this->settings['error_callback'] ) < count( $this->settings['action'] ) ) {
|
87 |
+
$this->settings['error_callback'][] = __( 'Something went wrong', 'mobile-menu' );
|
88 |
}
|
89 |
while ( count( $this->settings['data_filter_callback'] ) < count( $this->settings['action'] ) ) {
|
90 |
$this->settings['data_filter_callback'][] = '';
|
92 |
|
93 |
foreach ( $this->settings['label'] as $i => $label ) {
|
94 |
if ( empty( $label ) ) {
|
95 |
+
$this->settings['label'][ $i ] = __( 'Click me', 'mobile-menu' );
|
96 |
}
|
97 |
}
|
98 |
foreach ( $this->settings['wait_label'] as $i => $label ) {
|
99 |
if ( empty( $label ) ) {
|
100 |
+
$this->settings['wait_label'][ $i ] = __( 'Please wait...', 'mobile-menu' );
|
101 |
}
|
102 |
}
|
103 |
foreach ( $this->settings['error_label'] as $i => $label ) {
|
options-framework/lib/class-option-color.php
CHANGED
@@ -61,7 +61,7 @@ class TitanFrameworkOptionColor extends TitanFrameworkOption {
|
|
61 |
if ( $hook == 'toplevel_page_mobile-menu-options' ) {
|
62 |
wp_enqueue_script( 'wp-color-picker' );
|
63 |
wp_enqueue_style( 'wp-color-picker' );
|
64 |
-
wp_enqueue_script( 'wp-color-picker-alpha', TitanFramework::getURL( '../js/min/wp-color-picker-alpha-min.js', __FILE__ ), array( 'wp-color-picker' ),
|
65 |
}
|
66 |
}
|
67 |
|
61 |
if ( $hook == 'toplevel_page_mobile-menu-options' ) {
|
62 |
wp_enqueue_script( 'wp-color-picker' );
|
63 |
wp_enqueue_style( 'wp-color-picker' );
|
64 |
+
wp_enqueue_script( 'wp-color-picker-alpha', TitanFramework::getURL( '../js/min/wp-color-picker-alpha-min.js', __FILE__ ), array( 'wp-color-picker' ), WP_MOBILE_MENU_VERSION );
|
65 |
}
|
66 |
}
|
67 |
|
options-framework/lib/class-option-enable.php
CHANGED
@@ -59,10 +59,10 @@ class TitanFrameworkOptionEnable extends TitanFrameworkOption {
|
|
59 |
$this->echoOptionHeader();
|
60 |
|
61 |
if ( empty( $this->settings['enabled'] ) ) {
|
62 |
-
$this->settings['enabled'] = __( 'Enabled',
|
63 |
}
|
64 |
if ( empty( $this->settings['disabled'] ) ) {
|
65 |
-
$this->settings['disabled'] = __( 'Disabled',
|
66 |
}
|
67 |
|
68 |
?>
|
59 |
$this->echoOptionHeader();
|
60 |
|
61 |
if ( empty( $this->settings['enabled'] ) ) {
|
62 |
+
$this->settings['enabled'] = __( 'Enabled', 'mobile-menu' );
|
63 |
}
|
64 |
if ( empty( $this->settings['disabled'] ) ) {
|
65 |
+
$this->settings['disabled'] = __( 'Disabled', 'mobile-menu' );
|
66 |
}
|
67 |
|
68 |
?>
|
options-framework/lib/class-option-file.php
CHANGED
@@ -194,9 +194,9 @@ class TitanFrameworkOptionFile extends TitanFrameworkOption {
|
|
194 |
|
195 |
// Uploader frame properties.
|
196 |
var frame = wp.media({
|
197 |
-
title: '<?php esc_html_e( 'Select File',
|
198 |
multiple: false,
|
199 |
-
button : { text : '<?php esc_html_e( 'Use file',
|
200 |
});
|
201 |
|
202 |
// Get the url when done.
|
194 |
|
195 |
// Uploader frame properties.
|
196 |
var frame = wp.media({
|
197 |
+
title: '<?php esc_html_e( 'Select File', 'mobile-menu' ) ?>',
|
198 |
multiple: false,
|
199 |
+
button : { text : '<?php esc_html_e( 'Use file', 'mobile-menu' ) ?>' }
|
200 |
});
|
201 |
|
202 |
// Get the url when done.
|
options-framework/lib/class-option-gallery.php
CHANGED
@@ -140,10 +140,10 @@ class TitanFrameworkOptionGallery extends TitanFrameworkOption {
|
|
140 |
|
141 |
// Uploader frame properties.
|
142 |
var frame = wp.media({
|
143 |
-
title: '<?php esc_html_e( 'Select Image',
|
144 |
multiple: true,
|
145 |
library: { type: 'image' },
|
146 |
-
button : { text : '<?php esc_html_e( 'Use image',
|
147 |
});
|
148 |
|
149 |
// Get the url when done.
|
140 |
|
141 |
// Uploader frame properties.
|
142 |
var frame = wp.media({
|
143 |
+
title: '<?php esc_html_e( 'Select Image', 'mobile-menu' ) ?>',
|
144 |
multiple: true,
|
145 |
library: { type: 'image' },
|
146 |
+
button : { text : '<?php esc_html_e( 'Use image', 'mobile-menu' ) ?>' }
|
147 |
});
|
148 |
|
149 |
// Get the url when done.
|
options-framework/lib/class-option-multicheck-pages.php
CHANGED
@@ -25,7 +25,7 @@ class TitanFrameworkOptionMulticheckPages extends TitanFrameworkOptionMulticheck
|
|
25 |
foreach ( self::$allPages as $page ) {
|
26 |
$title = $page->post_title;
|
27 |
if ( empty( $title ) ) {
|
28 |
-
$title = sprintf( __( 'Untitled %s',
|
29 |
}
|
30 |
$this->settings['options'][ $page->ID ] = $title;
|
31 |
}
|
25 |
foreach ( self::$allPages as $page ) {
|
26 |
$title = $page->post_title;
|
27 |
if ( empty( $title ) ) {
|
28 |
+
$title = sprintf( __( 'Untitled %s', 'mobile-menu' ), '(ID #' . $page->ID . ')' );
|
29 |
}
|
30 |
$this->settings['options'][ $page->ID ] = $title;
|
31 |
}
|
options-framework/lib/class-option-multicheck-posts.php
CHANGED
@@ -32,7 +32,7 @@ class TitanFrameworkOptionMulticheckPosts extends TitanFrameworkOptionMulticheck
|
|
32 |
foreach ( $posts as $post ) {
|
33 |
$title = $post->post_title;
|
34 |
if ( empty( $title ) ) {
|
35 |
-
$title = sprintf( __( 'Untitled %s',
|
36 |
}
|
37 |
$this->settings['options'][ $post->ID ] = $title;
|
38 |
}
|
32 |
foreach ( $posts as $post ) {
|
33 |
$title = $post->post_title;
|
34 |
if ( empty( $title ) ) {
|
35 |
+
$title = sprintf( __( 'Untitled %s', 'mobile-menu' ), '(ID #' . $post->ID . ')' );
|
36 |
}
|
37 |
$this->settings['options'][ $post->ID ] = $title;
|
38 |
}
|
options-framework/lib/class-option-multicheck.php
CHANGED
@@ -72,7 +72,7 @@ class TitanFrameworkOptionMulticheck extends TitanFrameworkOption {
|
|
72 |
*/
|
73 |
public function load_select_scripts() {
|
74 |
|
75 |
-
wp_enqueue_script( 'tf-multicheck-select-all', TitanFramework::getURL( '../js/multicheck-select-all.js', __FILE__ ), array( 'jquery' ),
|
76 |
|
77 |
}
|
78 |
|
72 |
*/
|
73 |
public function load_select_scripts() {
|
74 |
|
75 |
+
wp_enqueue_script( 'tf-multicheck-select-all', TitanFramework::getURL( '../js/multicheck-select-all.js', __FILE__ ), array( 'jquery' ), WP_MOBILE_MENU_VERSION, true );
|
76 |
|
77 |
}
|
78 |
|
options-framework/lib/class-option-save.php
CHANGED
@@ -15,7 +15,7 @@ class TitanFrameworkOptionSave extends TitanFrameworkOption {
|
|
15 |
}
|
16 |
|
17 |
if ( empty( $this->settings['save'] ) ) {
|
18 |
-
$this->settings['save'] = __( 'Save Changes',
|
19 |
}
|
20 |
|
21 |
?>
|
15 |
}
|
16 |
|
17 |
if ( empty( $this->settings['save'] ) ) {
|
18 |
+
$this->settings['save'] = __( 'Save Changes', 'mobile-menu' );
|
19 |
}
|
20 |
|
21 |
?>
|
options-framework/lib/class-option-select-categories.php
CHANGED
@@ -32,7 +32,7 @@ class TitanFrameworkOptionSelectCategories extends TitanFrameworkOptionSelect {
|
|
32 |
$categories = get_terms( $args );
|
33 |
|
34 |
$this->settings['options'] = array(
|
35 |
-
'' => '— ' . __( 'Select',
|
36 |
);
|
37 |
|
38 |
foreach ( $categories as $category ) {
|
32 |
$categories = get_terms( $args );
|
33 |
|
34 |
$this->settings['options'] = array(
|
35 |
+
'' => '— ' . __( 'Select', 'mobile-menu' ) . ' —'
|
36 |
);
|
37 |
|
38 |
foreach ( $categories as $category ) {
|
options-framework/lib/class-option-select-pages.php
CHANGED
@@ -24,14 +24,14 @@ class TitanFrameworkOptionSelectPages extends TitanFrameworkOptionSelect {
|
|
24 |
}
|
25 |
|
26 |
$this->settings['options'] = array(
|
27 |
-
'' => '— ' . __( 'Select',
|
28 |
);
|
29 |
|
30 |
// Print all the other pages
|
31 |
foreach ( self::$allPages as $page ) {
|
32 |
$title = $page->post_title;
|
33 |
if ( empty( $title ) ) {
|
34 |
-
$title = sprintf( __( 'Untitled %s',
|
35 |
}
|
36 |
$this->settings['options'][ $page->ID ] = $title;
|
37 |
}
|
24 |
}
|
25 |
|
26 |
$this->settings['options'] = array(
|
27 |
+
'' => '— ' . __( 'Select', 'mobile-menu' ) . ' —'
|
28 |
);
|
29 |
|
30 |
// Print all the other pages
|
31 |
foreach ( self::$allPages as $page ) {
|
32 |
$title = $page->post_title;
|
33 |
if ( empty( $title ) ) {
|
34 |
+
$title = sprintf( __( 'Untitled %s', 'mobile-menu' ), '(ID #' . $page->ID . ')' );
|
35 |
}
|
36 |
$this->settings['options'][ $page->ID ] = $title;
|
37 |
}
|
options-framework/lib/class-option-select-post-types.php
CHANGED
@@ -24,7 +24,7 @@ class TitanFrameworkOptionSelectPostTypes extends TitanFrameworkOptionSelect {
|
|
24 |
$post_types = tf_get_post_types( $this->settings['public'], $this->settings['value'] );
|
25 |
|
26 |
$this->settings['options'] = array(
|
27 |
-
'' => '— ' . __( 'Select',
|
28 |
);
|
29 |
|
30 |
// Print all the other pages
|
24 |
$post_types = tf_get_post_types( $this->settings['public'], $this->settings['value'] );
|
25 |
|
26 |
$this->settings['options'] = array(
|
27 |
+
'' => '— ' . __( 'Select', 'mobile-menu' ) . ' —'
|
28 |
);
|
29 |
|
30 |
// Print all the other pages
|
options-framework/lib/class-option-select-posts.php
CHANGED
@@ -33,13 +33,13 @@ class TitanFrameworkOptionSelectPosts extends TitanFrameworkOptionSelect {
|
|
33 |
$posts = get_posts( $args );
|
34 |
|
35 |
$this->settings['options'] = array(
|
36 |
-
'' => '— ' . __( 'Select',
|
37 |
);
|
38 |
|
39 |
foreach ( $posts as $post ) {
|
40 |
$title = esc_html( $post->post_title );
|
41 |
if ( empty( $title ) ) {
|
42 |
-
$title = sprintf( __( 'Untitled %s',
|
43 |
}
|
44 |
$this->settings['options'][ $post->ID ] = $title;
|
45 |
}
|
33 |
$posts = get_posts( $args );
|
34 |
|
35 |
$this->settings['options'] = array(
|
36 |
+
'' => '— ' . __( 'Select', 'mobile-menu' ) . ' —'
|
37 |
);
|
38 |
|
39 |
foreach ( $posts as $post ) {
|
40 |
$title = esc_html( $post->post_title );
|
41 |
if ( empty( $title ) ) {
|
42 |
+
$title = sprintf( __( 'Untitled %s', 'mobile-menu' ), '(ID #' . $post->ID . ')' );
|
43 |
}
|
44 |
$this->settings['options'][ $post->ID ] = $title;
|
45 |
}
|
options-framework/lib/class-option-select.php
CHANGED
@@ -64,9 +64,9 @@ class TitanFrameworkOptionSelect extends TitanFrameworkOption {
|
|
64 |
*/
|
65 |
public function load_select_scripts() {
|
66 |
|
67 |
-
wp_enqueue_script( 'tf-select2', TitanFramework::getURL( '../js/select2/select2.min.js', __FILE__ ), array( 'jquery' ),
|
68 |
-
wp_enqueue_style( 'tf-select2-style', TitanFramework::getURL( '../css/select2/select2.min.css', __FILE__ ), null,
|
69 |
-
wp_enqueue_style( 'tf-select-option-style', TitanFramework::getURL( '../css/class-option-select.css', __FILE__ ), null,
|
70 |
|
71 |
}
|
72 |
|
64 |
*/
|
65 |
public function load_select_scripts() {
|
66 |
|
67 |
+
wp_enqueue_script( 'tf-select2', TitanFramework::getURL( '../js/select2/select2.min.js', __FILE__ ), array( 'jquery' ), WP_MOBILE_MENU_VERSION, true );
|
68 |
+
wp_enqueue_style( 'tf-select2-style', TitanFramework::getURL( '../css/select2/select2.min.css', __FILE__ ), null, WP_MOBILE_MENU_VERSION, 'all' );
|
69 |
+
wp_enqueue_style( 'tf-select-option-style', TitanFramework::getURL( '../css/class-option-select.css', __FILE__ ), null, WP_MOBILE_MENU_VERSION, 'all' );
|
70 |
|
71 |
}
|
72 |
|
options-framework/lib/class-option-upload.php
CHANGED
@@ -260,10 +260,10 @@ class TitanFrameworkOptionUpload extends TitanFrameworkOption {
|
|
260 |
|
261 |
// Uploader frame properties.
|
262 |
var frame = wp.media({
|
263 |
-
title: '<?php esc_html_e( 'Select Image',
|
264 |
multiple: false,
|
265 |
library: { type: 'image' },
|
266 |
-
button : { text : '<?php esc_html_e( 'Use image',
|
267 |
});
|
268 |
|
269 |
// Get the url when done.
|
260 |
|
261 |
// Uploader frame properties.
|
262 |
var frame = wp.media({
|
263 |
+
title: '<?php esc_html_e( 'Select Image', 'mobile-menu' ) ?>',
|
264 |
multiple: false,
|
265 |
library: { type: 'image' },
|
266 |
+
button : { text : '<?php esc_html_e( 'Use image', 'mobile-menu' ) ?>' }
|
267 |
});
|
268 |
|
269 |
// Get the url when done.
|
options-framework/lib/class-titan-framework.php
CHANGED
@@ -185,7 +185,7 @@ class TitanFramework {
|
|
185 |
|
186 |
if ( is_admin() && isset( $this->optionsUsed[ $option->settings['id'] ] ) ) {
|
187 |
self::displayFrameworkError(
|
188 |
-
sprintf( __( 'All option IDs per namespace must be unique. The id %s has been used multiple times.',
|
189 |
'<code>' . $option->settings['id'] . '</code>'
|
190 |
)
|
191 |
);
|
@@ -390,7 +390,7 @@ class TitanFramework {
|
|
390 |
*/
|
391 |
public function createContainer( $settings ) {
|
392 |
if ( empty( $settings['type'] ) ) {
|
393 |
-
self::displayFrameworkError( sprintf( __( '%s needs a %s parameter.',
|
394 |
return;
|
395 |
}
|
396 |
|
@@ -400,7 +400,7 @@ class TitanFramework {
|
|
400 |
$container = false;
|
401 |
|
402 |
if ( ! class_exists( $class ) ) {
|
403 |
-
self::displayFrameworkError( sprintf( __( 'Container of type %s, does not exist.',
|
404 |
return;
|
405 |
}
|
406 |
|
@@ -622,7 +622,7 @@ class TitanFramework {
|
|
622 |
|
623 |
// Display an error message.
|
624 |
?>
|
625 |
-
<div style='margin: 20px; text-align: center;'><strong
|
626 |
<?php echo $message; ?>
|
627 |
<?php
|
628 |
if ( ! empty( $errorObject ) ) :
|
185 |
|
186 |
if ( is_admin() && isset( $this->optionsUsed[ $option->settings['id'] ] ) ) {
|
187 |
self::displayFrameworkError(
|
188 |
+
sprintf( __( 'All option IDs per namespace must be unique. The id %s has been used multiple times.', 'mobile-menu' ),
|
189 |
'<code>' . $option->settings['id'] . '</code>'
|
190 |
)
|
191 |
);
|
390 |
*/
|
391 |
public function createContainer( $settings ) {
|
392 |
if ( empty( $settings['type'] ) ) {
|
393 |
+
self::displayFrameworkError( sprintf( __( '%s needs a %s parameter.', 'mobile-menu' ), '<code>' . __FUNCTION__ . '</code>', '<code>type</code>' ) );
|
394 |
return;
|
395 |
}
|
396 |
|
400 |
$container = false;
|
401 |
|
402 |
if ( ! class_exists( $class ) ) {
|
403 |
+
self::displayFrameworkError( sprintf( __( 'Container of type %s, does not exist.', 'mobile-menu' ), '<code>' . $settings['type'] . '</code>' ) );
|
404 |
return;
|
405 |
}
|
406 |
|
622 |
|
623 |
// Display an error message.
|
624 |
?>
|
625 |
+
<div style='margin: 20px; text-align: center;'><strong>Mobile Menu Options Error:</strong>
|
626 |
<?php echo $message; ?>
|
627 |
<?php
|
628 |
if ( ! empty( $errorObject ) ) :
|
options-framework/option-framework.php
CHANGED
@@ -3,14 +3,8 @@
|
|
3 |
if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly.
|
4 |
}
|
5 |
|
6 |
-
// Used for tracking the version used.
|
7 |
-
defined( 'TF_VERSION' ) or define( 'TF_VERSION', '1.11' );
|
8 |
-
// Used for text domains.
|
9 |
-
defined( 'TF_I18NDOMAIN' ) or define( 'TF_I18NDOMAIN', 'titan-framework' );
|
10 |
// Used for general naming, e.g. nonces.
|
11 |
defined( 'TF' ) or define( 'TF', 'titan-framework' );
|
12 |
-
// Used for general naming.
|
13 |
-
defined( 'TF_NAME' ) or define( 'TF_NAME', 'Titan Framework' );
|
14 |
// Used for file includes.
|
15 |
defined( 'TF_PATH' ) or define( 'TF_PATH', trailingslashit( dirname( __FILE__ ) ) );
|
16 |
// Used for testing and checking plugin slug name.
|
3 |
if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly.
|
4 |
}
|
5 |
|
|
|
|
|
|
|
|
|
6 |
// Used for general naming, e.g. nonces.
|
7 |
defined( 'TF' ) or define( 'TF', 'titan-framework' );
|
|
|
|
|
8 |
// Used for file includes.
|
9 |
defined( 'TF_PATH' ) or define( 'TF_PATH', trailingslashit( dirname( __FILE__ ) ) );
|
10 |
// Used for testing and checking plugin slug name.
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.8
|
7 |
-
Stable tag: 2.8.2.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -71,9 +71,7 @@ No coding knowledge is required. Works with all WordPress responsive themes.
|
|
71 |
= Related Plugins =
|
72 |
* [Menu Image](https://wordpress.org/plugins/menu-image/): Easily add an image or icon in a menu item. Creating a better website menu.
|
73 |
|
74 |
-
* [Pay With Stripe](https://
|
75 |
-
|
76 |
-
###I need help or I have a doubt, check our Support
|
77 |
|
78 |
###I need help or I have a doubt, check our Support
|
79 |
* Great Support, our free support is above the average. Only the Premium support is better and faster.
|
@@ -138,6 +136,9 @@ Not available at the moment
|
|
138 |
|
139 |
|
140 |
|
|
|
|
|
|
|
141 |
= 2.8.2.3 =
|
142 |
* Fix! - Fix security issue in code from TitanFramework
|
143 |
* Fix! - Fix typo
|
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.8
|
7 |
+
Stable tag: 2.8.2.4
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
71 |
= Related Plugins =
|
72 |
* [Menu Image](https://wordpress.org/plugins/menu-image/): Easily add an image or icon in a menu item. Creating a better website menu.
|
73 |
|
74 |
+
* [Pay With Stripe](https://www.freshlightlab.com/pay-with-stripe?utm_source=wprepo-mobile-menu&utm_medium=wprepo_readme&utm_campaign=FreshlightLab+Pay+With+Stripe+Landing+Page): Sell your products on your WordPress website without any other complex e-commerce plugin.
|
|
|
|
|
75 |
|
76 |
###I need help or I have a doubt, check our Support
|
77 |
* Great Support, our free support is above the average. Only the Premium support is better and faster.
|
136 |
|
137 |
|
138 |
|
139 |
+
= 2.8.2.4 =
|
140 |
+
* Fix! - Fix issue that was opening all the submenus
|
141 |
+
|
142 |
= 2.8.2.3 =
|
143 |
* Fix! - Fix security issue in code from TitanFramework
|
144 |
* Fix! - Fix typo
|