Version Description
- bugfix : try to prevent other plugins lowering the z-index value of UI dialog
- bugfix : corrected a 'count()' typo in the walker class when checking for multiple Current Item candidates
- verified for WordPress 4.9.4
Download this release
Release Info
Developer | wizzud |
Plugin | Custom Menu Wizard Widget |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- custom-menu-wizard.css +3 -2
- custom-menu-wizard.php +7 -2
- doc/cmw-doc.html +14 -5
- include/class.walker.php +4 -1
- readme.txt +15 -4
custom-menu-wizard.css
CHANGED
@@ -70,8 +70,9 @@ a.widget-custom-menu-wizard-fieldset.cmw-collapsed-fieldset::before {content:"\f
|
|
70 |
.cmw-assistance-dialog .cmw-dialog-fixed-absolute {font-weight:normal; padding-left:6px; position:absolute; right:45px; top:4px;}
|
71 |
.cmw-assistance-dialog .cmw-dialog-fixed-absolute .dashicons-before::before {line-height:inherit;}
|
72 |
.cmw-assistance-dialog .ui-dialog-title {display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:65% !important;}
|
73 |
-
/*...for customizer, make sure the assist goes above .wp-full-overlay, and for WP4.1 it needs to go above sidebar, so do regardless
|
74 |
-
|
|
|
75 |
/*...menu...*/
|
76 |
.widget-custom-menu-wizard-dialog .cmw-demo-themenu {float:left; margin:0 0.5em 0.5em 0;}
|
77 |
.widget-custom-menu-wizard-dialog .cmw-demo-themenu-ul {font-size:0.8333em; line-height:1.75;}
|
70 |
.cmw-assistance-dialog .cmw-dialog-fixed-absolute {font-weight:normal; padding-left:6px; position:absolute; right:45px; top:4px;}
|
71 |
.cmw-assistance-dialog .cmw-dialog-fixed-absolute .dashicons-before::before {line-height:inherit;}
|
72 |
.cmw-assistance-dialog .ui-dialog-title {display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:65% !important;}
|
73 |
+
/*...for customizer, make sure the assist goes above .wp-full-overlay, and for WP4.1 it needs to go above sidebar, so do regardless;
|
74 |
+
also needs !important to try to prevent other plugins (which specify !important) overriding to a lower value!...*/
|
75 |
+
.ui-front.cmw-assistance-dialog {z-index:600000 !important;}
|
76 |
/*...menu...*/
|
77 |
.widget-custom-menu-wizard-dialog .cmw-demo-themenu {float:left; margin:0 0.5em 0.5em 0;}
|
78 |
.widget-custom-menu-wizard-dialog .cmw-demo-themenu-ul {font-size:0.8333em; line-height:1.75;}
|
custom-menu-wizard.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Custom Menu Wizard
|
4 |
* Plugin URI: http://wordpress.org/plugins/custom-menu-wizard/
|
5 |
* Description: Show any part of a custom menu in a Widget, or in content using a Shortcode. Customise the output with extra classes or html; filter by current menu item or a specific item; set a depth, show the parent(s), change the list style, etc. Use the included emulator to assist with the filter settings.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: Roger Barrett
|
8 |
* Author URI: http://www.wizzud.com/
|
9 |
* License: GPL2+
|
@@ -11,6 +11,11 @@
|
|
11 |
*/
|
12 |
defined( 'ABSPATH' ) or exit();
|
13 |
/*
|
|
|
|
|
|
|
|
|
|
|
14 |
* v3.3.0 change log
|
15 |
* - fixed bug : determination of current item failed when a "current page" item had itself as an ancestor
|
16 |
* - change : minimum WP version is now 3.9 (because require .dashicons-before)
|
@@ -199,7 +204,7 @@ if( !class_exists( 'Custom_Menu_Wizard_Plugin' ) ){
|
|
199 |
//declare the main plugin class...
|
200 |
class Custom_Menu_Wizard_Plugin {
|
201 |
|
202 |
-
public static $version = '3.3.
|
203 |
public static $script_handle = 'custom-menu-wizard-plugin-script';
|
204 |
public static $widget_class = 'Custom_Menu_Wizard_Widget';
|
205 |
public static $localised_texts = 'Custom_Menu_Wizard_Texts';
|
3 |
* Plugin Name: Custom Menu Wizard
|
4 |
* Plugin URI: http://wordpress.org/plugins/custom-menu-wizard/
|
5 |
* Description: Show any part of a custom menu in a Widget, or in content using a Shortcode. Customise the output with extra classes or html; filter by current menu item or a specific item; set a depth, show the parent(s), change the list style, etc. Use the included emulator to assist with the filter settings.
|
6 |
+
* Version: 3.3.1
|
7 |
* Author: Roger Barrett
|
8 |
* Author URI: http://www.wizzud.com/
|
9 |
* License: GPL2+
|
11 |
*/
|
12 |
defined( 'ABSPATH' ) or exit();
|
13 |
/*
|
14 |
+
* v3.3.1 change log
|
15 |
+
* - fixed bug : z-index of UI dialog was being overriden by other plugins
|
16 |
+
* - fixed bug : corrected a 'count()' typo in the walker class when checking for multiple "current item" candidates
|
17 |
+
* - verified against lastest WP version
|
18 |
+
*
|
19 |
* v3.3.0 change log
|
20 |
* - fixed bug : determination of current item failed when a "current page" item had itself as an ancestor
|
21 |
* - change : minimum WP version is now 3.9 (because require .dashicons-before)
|
204 |
//declare the main plugin class...
|
205 |
class Custom_Menu_Wizard_Plugin {
|
206 |
|
207 |
+
public static $version = '3.3.1';
|
208 |
public static $script_handle = 'custom-menu-wizard-plugin-script';
|
209 |
public static $widget_class = 'Custom_Menu_Wizard_Widget';
|
210 |
public static $localised_texts = 'Custom_Menu_Wizard_Texts';
|
doc/cmw-doc.html
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
|
|
3 |
<meta charset="utf-8">
|
4 |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
@@ -116,11 +117,11 @@ div > ul > li > ul, div > ol > li > ul {
|
|
116 |
<p>
|
117 |
<strong>Requires at least:</strong> 3.9</p>
|
118 |
<p>
|
119 |
-
<strong>Tested up to:</strong> 4.
|
120 |
<p>
|
121 |
-
<strong>Stable tag:</strong> 3.3.
|
122 |
<p>
|
123 |
-
|
124 |
|
125 |
<hr id="scroll-default" />
|
126 |
|
@@ -144,7 +145,7 @@ div > ul > li > ul, div > ol > li > ul {
|
|
144 |
<div role="tabpanel" class="tab-pane fade in active" id="Description">
|
145 |
<h2>Description</h2>
|
146 |
<p>This plugin is a boosted version of the WordPress "Custom Menu" widget.
|
147 |
-
It provides full control over most of the parameters available when calling WP's <a href="
|
148 |
|
149 |
<p><strong>Important!</strong> This plugin provides <strong><em>nothing</em></strong> - <em>zip, zilch, nada, bupkis</em> - in the way of frontend styling! The
|
150 |
appearance of any final output is down to you and your theme, so if you're just looking for something to re-style
|
@@ -1351,6 +1352,14 @@ because Version 2 will <strong>not</strong> be supported beyond Version 3.</p>
|
|
1351 |
</div> </div>
|
1352 |
<div role="tabpanel" class="tab-pane fade" id="Changelog">
|
1353 |
<h2>Changelog</h2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1354 |
<h4>3.3.0</h4>
|
1355 |
|
1356 |
<ul>
|
@@ -1638,7 +1647,7 @@ because Version 2 will <strong>not</strong> be supported beyond Version 3.</p>
|
|
1638 |
<div class="gototop" data-spy="affix" data-offset-top="100"><a class='btn btn-info' href='#Top'><span class="glyphicon glyphicon-chevron-up"></span><span class="sr-only">go to top of page</span></a></div>
|
1639 |
|
1640 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
1641 |
-
<script src="https://
|
1642 |
<script type="text/javascript">
|
1643 |
jQuery(function($){
|
1644 |
var scrollWin = function(to){
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
+
<head>
|
4 |
<meta charset="utf-8">
|
5 |
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
117 |
<p>
|
118 |
<strong>Requires at least:</strong> 3.9</p>
|
119 |
<p>
|
120 |
+
<strong>Tested up to:</strong> 4.9.4</p>
|
121 |
<p>
|
122 |
+
<strong>Stable tag:</strong> 3.3.1</p>
|
123 |
<p>
|
124 |
+
<strong>License:</strong> GPLv2 or later</p>
|
125 |
|
126 |
<hr id="scroll-default" />
|
127 |
|
145 |
<div role="tabpanel" class="tab-pane fade in active" id="Description">
|
146 |
<h2>Description</h2>
|
147 |
<p>This plugin is a boosted version of the WordPress "Custom Menu" widget.
|
148 |
+
It provides full control over most of the parameters available when calling WP's <a href="https://developer.wordpress.org/reference/functions/wp_nav_menu/" target='_blank'>wp_nav_menu()<small class="glyphicon glyphicon-new-window offsite-link" aria-hidden="true"></small></a> function, as well as providing pre-filtering of the menu items in order to be able to select a specific portion of the custom menu. It also automatically adds a couple of custom classes. And there's a shortcode that enables you to include the widget's output in your content.</p>
|
149 |
|
150 |
<p><strong>Important!</strong> This plugin provides <strong><em>nothing</em></strong> - <em>zip, zilch, nada, bupkis</em> - in the way of frontend styling! The
|
151 |
appearance of any final output is down to you and your theme, so if you're just looking for something to re-style
|
1352 |
</div> </div>
|
1353 |
<div role="tabpanel" class="tab-pane fade" id="Changelog">
|
1354 |
<h2>Changelog</h2>
|
1355 |
+
<h4>3.3.1</h4>
|
1356 |
+
|
1357 |
+
<ul>
|
1358 |
+
<li>bugfix : try to prevent other plugins lowering the z-index value of UI dialog</li>
|
1359 |
+
<li>bugfix : corrected a 'count()' typo in the walker class when checking for multiple Current Item candidates</li>
|
1360 |
+
<li>verified for WordPress 4.9.4</li>
|
1361 |
+
</ul>
|
1362 |
+
|
1363 |
<h4>3.3.0</h4>
|
1364 |
|
1365 |
<ul>
|
1647 |
<div class="gototop" data-spy="affix" data-offset-top="100"><a class='btn btn-info' href='#Top'><span class="glyphicon glyphicon-chevron-up"></span><span class="sr-only">go to top of page</span></a></div>
|
1648 |
|
1649 |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
1650 |
+
<script src="https://unpkg.com/packery@2/dist/packery.pkgd.min.js"></script>
|
1651 |
<script type="text/javascript">
|
1652 |
jQuery(function($){
|
1653 |
var scrollWin = function(to){
|
include/class.walker.php
CHANGED
@@ -340,7 +340,10 @@ class Custom_Menu_Wizard_Walker extends Walker_Nav_Menu {
|
|
340 |
// - the intersect will return the root and the child
|
341 |
// - both the root and the child are current so both will be upgraded
|
342 |
// so, yes.
|
343 |
-
|
|
|
|
|
|
|
344 |
foreach( $currentItem as $k => $v ){
|
345 |
//if item is *just current* (ie. marked as current, without being either ancestor or parent)...
|
346 |
if( substr( $k, 0, 1 ) == 'a' ){
|
340 |
// - the intersect will return the root and the child
|
341 |
// - both the root and the child are current so both will be upgraded
|
342 |
// so, yes.
|
343 |
+
|
344 |
+
//v3.3.1 : oops!
|
345 |
+
//if( count( $currentItem > 1 ) ){
|
346 |
+
if( count( $currentItem ) > 1 ){
|
347 |
foreach( $currentItem as $k => $v ){
|
348 |
//if item is *just current* (ie. marked as current, without being either ancestor or parent)...
|
349 |
if( substr( $k, 0, 1 ) == 'a' ){
|
readme.txt
CHANGED
@@ -3,16 +3,18 @@ Contributors: wizzud
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KP2LVCBXNCEB4
|
4 |
Tags: menu,widget,navigation,custom menu,partial menu,current item,current page,menu level,menu branch,menu shortcode,menu widget,advanced,enhanced
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 3.3.
|
8 |
-
|
|
|
|
|
9 |
|
10 |
Show branches or levels of your menu in a widget, or in content using a shortcode, with full customisation.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
This plugin is a boosted version of the WordPress "Custom Menu" widget.
|
15 |
-
It provides full control over most of the parameters available when calling WP's [wp_nav_menu()](
|
16 |
|
17 |
**Important!** This plugin provides ***nothing*** - *zip, zilch, nada, bupkis* - in the way of frontend styling! The
|
18 |
appearance of any final output is down to you and your theme, so if you're just looking for something to re-style
|
@@ -992,6 +994,11 @@ because Version 2 will **not** be supported beyond Version 3.
|
|
992 |
|
993 |
== Changelog ==
|
994 |
|
|
|
|
|
|
|
|
|
|
|
995 |
= 3.3.0 =
|
996 |
* change : **minimum WordPress version is now 3.9!** (because require .dashicons-before, as part of needing to dump jQuery UI theme)
|
997 |
* bugfix : __! Possible Breaker !__ fixed incorrect determination of current item when a "current menu item" has a duplicate of itself as an ancestor (hopefully rare). There is a (very slight) chance that this may affect your displayed menu : if it does, toggle the Fallback option for *If more than 1 possible Current Item*, and I apologise for not catching the problem earlier
|
@@ -1175,6 +1182,10 @@ because Version 2 will **not** be supported beyond Version 3.
|
|
1175 |
|
1176 |
== Upgrade Notice ==
|
1177 |
|
|
|
|
|
|
|
|
|
1178 |
= 3.3.0 =
|
1179 |
__! Important !__ : Minimum WordPress version is now 3.9.
|
1180 |
__! Possible Breaker !__ : Fixed bug with incorrect determination of current item when a "current menu item" has
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KP2LVCBXNCEB4
|
4 |
Tags: menu,widget,navigation,custom menu,partial menu,current item,current page,menu level,menu branch,menu shortcode,menu widget,advanced,enhanced
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 3.3.1
|
8 |
+
Requires PHP: 5.4
|
9 |
+
License: GPLv2 or later
|
10 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
Show branches or levels of your menu in a widget, or in content using a shortcode, with full customisation.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
This plugin is a boosted version of the WordPress "Custom Menu" widget.
|
17 |
+
It provides full control over most of the parameters available when calling WP's [wp_nav_menu()](https://developer.wordpress.org/reference/functions/wp_nav_menu/) function, as well as providing pre-filtering of the menu items in order to be able to select a specific portion of the custom menu. It also automatically adds a couple of custom classes. And there's a shortcode that enables you to include the widget's output in your content.
|
18 |
|
19 |
**Important!** This plugin provides ***nothing*** - *zip, zilch, nada, bupkis* - in the way of frontend styling! The
|
20 |
appearance of any final output is down to you and your theme, so if you're just looking for something to re-style
|
994 |
|
995 |
== Changelog ==
|
996 |
|
997 |
+
= 3.3.1 =
|
998 |
+
* bugfix : try to prevent other plugins lowering the z-index value of UI dialog
|
999 |
+
* bugfix : corrected a 'count()' typo in the walker class when checking for multiple Current Item candidates
|
1000 |
+
* verified for WordPress 4.9.4
|
1001 |
+
|
1002 |
= 3.3.0 =
|
1003 |
* change : **minimum WordPress version is now 3.9!** (because require .dashicons-before, as part of needing to dump jQuery UI theme)
|
1004 |
* bugfix : __! Possible Breaker !__ fixed incorrect determination of current item when a "current menu item" has a duplicate of itself as an ancestor (hopefully rare). There is a (very slight) chance that this may affect your displayed menu : if it does, toggle the Fallback option for *If more than 1 possible Current Item*, and I apologise for not catching the problem earlier
|
1182 |
|
1183 |
== Upgrade Notice ==
|
1184 |
|
1185 |
+
= 3.3.1 =
|
1186 |
+
Fix a bug with determination of multiple occurences of Current Item, and try to prevent other plugins lowering the UIdialog z-index.
|
1187 |
+
Verified for WordPress v4.9.4
|
1188 |
+
|
1189 |
= 3.3.0 =
|
1190 |
__! Important !__ : Minimum WordPress version is now 3.9.
|
1191 |
__! Possible Breaker !__ : Fixed bug with incorrect determination of current item when a "current menu item" has
|