NavMenu Addon For Elementor - Version 1.0.4

Version Description

  • NEW: Added options for alignment and padding for submenu items
Download this release

Release Info

Developer WPDevHQ
Plugin Icon wp plugin NavMenu Addon For Elementor
Version 1.0.4
Comparing to
See all releases

Code changes from version 1.0.3 to 1.0.4

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.3
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.1' );
16
 
17
  define( 'ELEMENTOR_MENUS__FILE__', __FILE__ );
18
  define( 'ELEMENTOR_MENUS_PLUGIN_BASE', plugin_basename( ELEMENTOR_MENUS__FILE__ ) );
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.4
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.4' );
16
 
17
  define( 'ELEMENTOR_MENUS__FILE__', __FILE__ );
18
  define( 'ELEMENTOR_MENUS_PLUGIN_BASE', plugin_basename( ELEMENTOR_MENUS__FILE__ ) );
modules/menus/widgets/default-navmenu.php CHANGED
@@ -131,6 +131,53 @@ class Default_Navmenu extends Widget_Base {
131
  ]
132
  );
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  $this->end_controls_section();
135
 
136
  $this->start_controls_section(
131
  ]
132
  );
133
 
134
+ $this->end_controls_section();
135
+
136
+ $this->start_controls_section(
137
+ 'submenu_content',
138
+ [
139
+ 'label' => __( 'Submenu', 'elementor-navmenu' ),
140
+ ]
141
+ );
142
+
143
+ $this->add_responsive_control(
144
+ 'submenu_align',
145
+ [
146
+ 'label' => __( 'Item Alignment', 'elementor-navmenu' ),
147
+ 'type' => Controls_Manager::CHOOSE,
148
+ 'options' => [
149
+ 'left' => [
150
+ 'title' => __( 'Left', 'elementor-navmenu' ),
151
+ 'icon' => 'fa fa-align-left',
152
+ ],
153
+ 'center' => [
154
+ 'title' => __( 'Center', 'elementor-woostore' ),
155
+ 'icon' => 'fa fa-align-center',
156
+ ],
157
+ 'right' => [
158
+ 'title' => __( 'Right', 'elementor-navmenu' ),
159
+ 'icon' => 'fa fa-align-right',
160
+ ],
161
+ ],
162
+ 'default' => '',
163
+ 'selectors' => [
164
+ '{{WRAPPER}} .elementor-navigation .sub-menu .menu-item a' => 'text-align: {{VALUE}};',
165
+ ],
166
+ ]
167
+ );
168
+
169
+ $this->add_control(
170
+ 'sub_padding',
171
+ [
172
+ 'label' => __( 'Item Padding', 'elementor-navmenu' ),
173
+ 'type' => Controls_Manager::DIMENSIONS,
174
+ 'size_units' => [ 'px', 'em', '%' ],
175
+ 'selectors' => [
176
+ '{{WRAPPER}} .elementor-navigation .sub-menu .menu-item a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
177
+ ],
178
+ ]
179
+ );
180
+
181
  $this->end_controls_section();
182
 
183
  $this->start_controls_section(
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.3
7
- Stable tag: 1.0.3
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -54,6 +54,8 @@ 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
 
58
  = 1.0.3 =
59
  * FIXED: Bug that cause drop down menu to fall behind elements in some designs.
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.3
7
+ Stable tag: 1.0.4
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.4 =
58
+ * NEW: Added options for alignment and padding for submenu items
59
 
60
  = 1.0.3 =
61
  * FIXED: Bug that cause drop down menu to fall behind elements in some designs.