Version Description
- FIXED: Fatal error when active theme is Element Theme!
Download this release
Release Info
| Developer | WPDevHQ |
| Plugin | |
| Version | 1.0.5 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.4 to 1.0.5
- elementor-navmenu.php +3 -3
- modules/menus/widgets/default-navmenu.php +1 -1
- modules/menus/widgets/mega-menu.php +1 -1
- modules/menus/widgets/navmenu-overlay.php +1 -1
- plugin.php +2 -2
- readme.txt +5 -2
elementor-navmenu.php
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
* Description: Adds new NavMenus to the Elementor Page Builder plugin. Now with Site Branding options, search box, basic MegaMenu and Fullscreen Menu Overlay
|
| 5 |
* Plugin URI: https://wpdevhq.com/
|
| 6 |
* Author: WPDevHQ
|
| 7 |
-
* Version: 1.0.
|
| 8 |
* Author URI: https://wpdevhq.com/
|
| 9 |
*
|
| 10 |
* Text Domain: elementor-menus
|
|
@@ -12,7 +12,7 @@
|
|
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
| 14 |
|
| 15 |
-
define( 'ELEMENTOR_MENUS_VERSION', '1.0.
|
| 16 |
|
| 17 |
define( 'ELEMENTOR_MENUS__FILE__', __FILE__ );
|
| 18 |
define( 'ELEMENTOR_MENUS_PLUGIN_BASE', plugin_basename( ELEMENTOR_MENUS__FILE__ ) );
|
|
@@ -109,7 +109,7 @@ if ( ! function_exists( '_is_elementor_installed' ) ) {
|
|
| 109 |
}
|
| 110 |
}
|
| 111 |
|
| 112 |
-
function
|
| 113 |
$menus = wp_get_nav_menus();
|
| 114 |
$items = array();
|
| 115 |
$i = 0;
|
| 4 |
* Description: Adds new NavMenus to the Elementor Page Builder plugin. Now with Site Branding options, search box, basic MegaMenu and Fullscreen Menu Overlay
|
| 5 |
* Plugin URI: https://wpdevhq.com/
|
| 6 |
* Author: WPDevHQ
|
| 7 |
+
* Version: 1.0.5
|
| 8 |
* Author URI: https://wpdevhq.com/
|
| 9 |
*
|
| 10 |
* Text Domain: elementor-menus
|
| 12 |
|
| 13 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
| 14 |
|
| 15 |
+
define( 'ELEMENTOR_MENUS_VERSION', '1.0.5' );
|
| 16 |
|
| 17 |
define( 'ELEMENTOR_MENUS__FILE__', __FILE__ );
|
| 18 |
define( 'ELEMENTOR_MENUS_PLUGIN_BASE', plugin_basename( ELEMENTOR_MENUS__FILE__ ) );
|
| 109 |
}
|
| 110 |
}
|
| 111 |
|
| 112 |
+
function navmenu_navbar_menu_choices() {
|
| 113 |
$menus = wp_get_nav_menus();
|
| 114 |
$items = array();
|
| 115 |
$i = 0;
|
modules/menus/widgets/default-navmenu.php
CHANGED
|
@@ -50,7 +50,7 @@ class Default_Navmenu extends Widget_Base {
|
|
| 50 |
[
|
| 51 |
'label' => __( 'Select Menu', 'elementor-navmenu' ),
|
| 52 |
'type' => Controls_Manager::SELECT,
|
| 53 |
-
'options' =>
|
| 54 |
'default' => '',
|
| 55 |
]
|
| 56 |
);
|
| 50 |
[
|
| 51 |
'label' => __( 'Select Menu', 'elementor-navmenu' ),
|
| 52 |
'type' => Controls_Manager::SELECT,
|
| 53 |
+
'options' => navmenu_navbar_menu_choices(),
|
| 54 |
'default' => '',
|
| 55 |
]
|
| 56 |
);
|
modules/menus/widgets/mega-menu.php
CHANGED
|
@@ -49,7 +49,7 @@ class Mega_Menu extends Widget_Base {
|
|
| 49 |
[
|
| 50 |
'label' => __( 'Select Menu', 'elementor-navmenu' ),
|
| 51 |
'type' => Controls_Manager::SELECT,
|
| 52 |
-
'options' =>
|
| 53 |
'default' => '',
|
| 54 |
]
|
| 55 |
);
|
| 49 |
[
|
| 50 |
'label' => __( 'Select Menu', 'elementor-navmenu' ),
|
| 51 |
'type' => Controls_Manager::SELECT,
|
| 52 |
+
'options' => navmenu_navbar_menu_choices(),
|
| 53 |
'default' => '',
|
| 54 |
]
|
| 55 |
);
|
modules/menus/widgets/navmenu-overlay.php
CHANGED
|
@@ -49,7 +49,7 @@ class Navmenu_Overlay extends Widget_Base {
|
|
| 49 |
[
|
| 50 |
'label' => __( 'Select Menu', 'elementor-navmenu' ),
|
| 51 |
'type' => Controls_Manager::SELECT,
|
| 52 |
-
'options' =>
|
| 53 |
'default' => '',
|
| 54 |
]
|
| 55 |
);
|
| 49 |
[
|
| 50 |
'label' => __( 'Select Menu', 'elementor-navmenu' ),
|
| 51 |
'type' => Controls_Manager::SELECT,
|
| 52 |
+
'options' => navmenu_navbar_menu_choices(),
|
| 53 |
'default' => '',
|
| 54 |
]
|
| 55 |
);
|
plugin.php
CHANGED
|
@@ -44,7 +44,7 @@ class Plugin {
|
|
| 44 |
*/
|
| 45 |
public function __clone() {
|
| 46 |
// Cloning instances of the class is forbidden
|
| 47 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'elementor-menus' ), '1.0.
|
| 48 |
}
|
| 49 |
|
| 50 |
/**
|
|
@@ -55,7 +55,7 @@ class Plugin {
|
|
| 55 |
*/
|
| 56 |
public function __wakeup() {
|
| 57 |
// Unserializing instances of the class is forbidden
|
| 58 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'elementor-menus' ), '1.0.
|
| 59 |
}
|
| 60 |
|
| 61 |
/**
|
| 44 |
*/
|
| 45 |
public function __clone() {
|
| 46 |
// Cloning instances of the class is forbidden
|
| 47 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'elementor-menus' ), '1.0.5' );
|
| 48 |
}
|
| 49 |
|
| 50 |
/**
|
| 55 |
*/
|
| 56 |
public function __wakeup() {
|
| 57 |
// Unserializing instances of the class is forbidden
|
| 58 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'elementor-menus' ), '1.0.5' );
|
| 59 |
}
|
| 60 |
|
| 61 |
/**
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
Contributors: WPDevHQ
|
| 4 |
Tags: elementor, pagebuilder, page builder, page builder menu, page builder navmenu, menu builder, builder navigation menus, navigation, menus, navmenu, nav menu
|
| 5 |
Requires at least: 4.4
|
| 6 |
-
Tested up to: 4.
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
|
@@ -54,6 +54,9 @@ Done! :)
|
|
| 54 |
* For the time being, any changes made to both of the above can be viewed on the frontend of the site. A fix is being sought and will be implemented as soon as a viable solution is found!
|
| 55 |
|
| 56 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
| 57 |
= 1.0.4 =
|
| 58 |
* NEW: Added options for alignment and padding for submenu items
|
| 59 |
|
| 3 |
Contributors: WPDevHQ
|
| 4 |
Tags: elementor, pagebuilder, page builder, page builder menu, page builder navmenu, menu builder, builder navigation menus, navigation, menus, navmenu, nav menu
|
| 5 |
Requires at least: 4.4
|
| 6 |
+
Tested up to: 4.8.0
|
| 7 |
+
Stable tag: 1.0.5
|
| 8 |
License: GPLv3
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
| 10 |
|
| 54 |
* For the time being, any changes made to both of the above can be viewed on the frontend of the site. A fix is being sought and will be implemented as soon as a viable solution is found!
|
| 55 |
|
| 56 |
== Changelog ==
|
| 57 |
+
= 1.0.5 =
|
| 58 |
+
* FIXED: Fatal error when active theme is Element Theme!
|
| 59 |
+
|
| 60 |
= 1.0.4 =
|
| 61 |
* NEW: Added options for alignment and padding for submenu items
|
| 62 |
|
