Version Description
- Improvement: Styling updates for WordPress 5.3
- Improvement: Add script localisation for spectrum
- Improvement: Always show WooCommerce Tags and Categories meta boxes on nav-menus.php
- Fix: Compatibility fix for TemplatesNext ToolKit (menu item settings inaccessible)
- Fix: Default white-space to normal in menu CSS
- Fix: Unsaved changes prompt incorrectly appears when changing menu icon
- Fix: Disable Link cursor style
- Fix: Edge Case PHP Warning
Download this release
Release Info
Developer | megamenu |
Plugin | Max Mega Menu |
Version | 2.7.3 |
Comparing to | |
See all releases |
Code changes from version 2.7.2 to 2.7.3
- classes/nav-menus.class.php +10 -0
- classes/settings.class.php +9 -12
- css/admin/admin.css +8 -27
- css/admin/admin.scss +5 -25
- css/megamenu.scss +3 -2
- js/admin.js +1 -0
- js/settings.js +2 -2
- megamenu.php +5 -4
- readme.txt +12 -2
classes/nav-menus.class.php
CHANGED
@@ -112,6 +112,12 @@ class Mega_Menu_Nav_Menus {
|
|
112 |
if ( $value == 'mega_menu_meta_box' ) {
|
113 |
unset( $hidden[$key] );
|
114 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
}
|
117 |
|
@@ -186,6 +192,10 @@ class Mega_Menu_Nav_Menus {
|
|
186 |
wp_deregister_script('wmu-colorbox-js');
|
187 |
wp_deregister_style('wmu-colorbox-css');
|
188 |
|
|
|
|
|
|
|
|
|
189 |
wp_enqueue_style( 'colorbox', MEGAMENU_BASE_URL . 'js/colorbox/colorbox.css', false, MEGAMENU_VERSION );
|
190 |
wp_enqueue_style( 'maxmegamenu', MEGAMENU_BASE_URL . 'css/admin/admin.css', false, MEGAMENU_VERSION );
|
191 |
|
112 |
if ( $value == 'mega_menu_meta_box' ) {
|
113 |
unset( $hidden[$key] );
|
114 |
}
|
115 |
+
if ( $value == 'add-product_cat' ) {
|
116 |
+
unset( $hidden[$key] );
|
117 |
+
}
|
118 |
+
if ( $value == 'add-product_tag' ) {
|
119 |
+
unset( $hidden[$key] );
|
120 |
+
}
|
121 |
}
|
122 |
}
|
123 |
|
192 |
wp_deregister_script('wmu-colorbox-js');
|
193 |
wp_deregister_style('wmu-colorbox-css');
|
194 |
|
195 |
+
// Compatibility fix for TemplatesNext ToolKit
|
196 |
+
wp_deregister_script('tx-main');
|
197 |
+
wp_deregister_style('tx-toolkit-admin-style');
|
198 |
+
|
199 |
wp_enqueue_style( 'colorbox', MEGAMENU_BASE_URL . 'js/colorbox/colorbox.css', false, MEGAMENU_VERSION );
|
200 |
wp_enqueue_style( 'maxmegamenu', MEGAMENU_BASE_URL . 'css/admin/admin.css', false, MEGAMENU_VERSION );
|
201 |
|
classes/settings.class.php
CHANGED
@@ -1051,7 +1051,7 @@ class Mega_Menu_Settings {
|
|
1051 |
wp_nonce_url( admin_url("admin-post.php"), 'megamenu_add_menu_location' )
|
1052 |
) );
|
1053 |
|
1054 |
-
echo "<br /><p><a class='button button-
|
1055 |
|
1056 |
?>
|
1057 |
|
@@ -1131,7 +1131,7 @@ class Mega_Menu_Settings {
|
|
1131 |
<?php wp_nonce_field( 'megamenu_clear_css_cache' ); ?>
|
1132 |
<input type="hidden" name="action" value="megamenu_clear_css_cache" />
|
1133 |
|
1134 |
-
<input type='submit' class='button button-
|
1135 |
|
1136 |
<?php if ( get_transient( 'megamenu_css_last_updated' ) ): ?>
|
1137 |
<p><em><small><?php echo sprintf(__("The menu CSS was last updated on %s", "megamenu"), date('l jS F Y H:i:s', get_transient('megamenu_css_last_updated') ) ); ?><small><em></p>
|
@@ -1210,7 +1210,7 @@ class Mega_Menu_Settings {
|
|
1210 |
echo "<label><input value='json' type='radio' checked='checked' name='format'>" . __("JSON - I want to import this theme into another site I'm developing", "megamenu") . "</label>";
|
1211 |
echo "<label><input value='php' type='radio' name='format'>" . __("PHP - I want to distribute this Menu Theme in a WordPress Theme I'm developing", "megamenu") . "<label>";
|
1212 |
|
1213 |
-
echo "<input type='submit' name='export' class='button button-
|
1214 |
|
1215 |
}
|
1216 |
|
@@ -1228,7 +1228,7 @@ class Mega_Menu_Settings {
|
|
1228 |
<?php wp_nonce_field( 'megamenu_import_theme' ); ?>
|
1229 |
<input type="hidden" name="action" value="megamenu_import_theme" />
|
1230 |
<textarea name='data'></textarea>
|
1231 |
-
<input type='submit' class='button button-
|
1232 |
</form>
|
1233 |
</td>
|
1234 |
</tr>
|
@@ -1293,14 +1293,6 @@ class Mega_Menu_Settings {
|
|
1293 |
) );
|
1294 |
|
1295 |
if ( ! is_plugin_active('megamenu-pro/megamenu-pro.php') ) {
|
1296 |
-
|
1297 |
-
//$header_links['rate_us'] = array(
|
1298 |
-
// 'url' => 'https://wordpress.org/support/plugin/megamenu/reviews/#new-post',
|
1299 |
-
// 'text' => __("If you like this plugin, please vote and support us!", "megamenu"),
|
1300 |
-
// 'target' => '_blank',
|
1301 |
-
// 'class' => 'mega-star'
|
1302 |
-
//);
|
1303 |
-
|
1304 |
$header_links['pro'] = array(
|
1305 |
'url' => 'https://www.megamenu.com/upgrade/?utm_source=free&utm_medium=settings&utm_campaign=pro',
|
1306 |
'target' => '_mmmpro',
|
@@ -4140,6 +4132,11 @@ class Mega_Menu_Settings {
|
|
4140 |
|
4141 |
wp_enqueue_script( 'accordion' );
|
4142 |
wp_enqueue_script( 'spectrum', MEGAMENU_BASE_URL . 'js/spectrum/spectrum.js', array( 'jquery' ), MEGAMENU_VERSION );
|
|
|
|
|
|
|
|
|
|
|
4143 |
wp_enqueue_script( 'mega-menu-select2', MEGAMENU_BASE_URL . 'js/select2/select2.min.js', array(), MEGAMENU_VERSION );
|
4144 |
|
4145 |
wp_enqueue_script( 'mega-menu-theme-editor', MEGAMENU_BASE_URL . 'js/settings.js', array( 'jquery', 'spectrum', 'code-editor' ), MEGAMENU_VERSION );
|
1051 |
wp_nonce_url( admin_url("admin-post.php"), 'megamenu_add_menu_location' )
|
1052 |
) );
|
1053 |
|
1054 |
+
echo "<br /><p><a class='button button-primary' href='{$add_location_url}'>" . __("Add another menu location", "megamenu") . "</a></p>";
|
1055 |
|
1056 |
?>
|
1057 |
|
1131 |
<?php wp_nonce_field( 'megamenu_clear_css_cache' ); ?>
|
1132 |
<input type="hidden" name="action" value="megamenu_clear_css_cache" />
|
1133 |
|
1134 |
+
<input type='submit' class='button button-primary' value='<?php _e("Clear CSS Cache", "megamenu"); ?>' />
|
1135 |
|
1136 |
<?php if ( get_transient( 'megamenu_css_last_updated' ) ): ?>
|
1137 |
<p><em><small><?php echo sprintf(__("The menu CSS was last updated on %s", "megamenu"), date('l jS F Y H:i:s', get_transient('megamenu_css_last_updated') ) ); ?><small><em></p>
|
1210 |
echo "<label><input value='json' type='radio' checked='checked' name='format'>" . __("JSON - I want to import this theme into another site I'm developing", "megamenu") . "</label>";
|
1211 |
echo "<label><input value='php' type='radio' name='format'>" . __("PHP - I want to distribute this Menu Theme in a WordPress Theme I'm developing", "megamenu") . "<label>";
|
1212 |
|
1213 |
+
echo "<input type='submit' name='export' class='button button-primary' value='" . __("Export Theme", "megamenu") . "' />";
|
1214 |
|
1215 |
}
|
1216 |
|
1228 |
<?php wp_nonce_field( 'megamenu_import_theme' ); ?>
|
1229 |
<input type="hidden" name="action" value="megamenu_import_theme" />
|
1230 |
<textarea name='data'></textarea>
|
1231 |
+
<input type='submit' class='button button-primary' value='<?php _e("Import Theme", "megamenu"); ?>' />
|
1232 |
</form>
|
1233 |
</td>
|
1234 |
</tr>
|
1293 |
) );
|
1294 |
|
1295 |
if ( ! is_plugin_active('megamenu-pro/megamenu-pro.php') ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1296 |
$header_links['pro'] = array(
|
1297 |
'url' => 'https://www.megamenu.com/upgrade/?utm_source=free&utm_medium=settings&utm_campaign=pro',
|
1298 |
'target' => '_mmmpro',
|
4132 |
|
4133 |
wp_enqueue_script( 'accordion' );
|
4134 |
wp_enqueue_script( 'spectrum', MEGAMENU_BASE_URL . 'js/spectrum/spectrum.js', array( 'jquery' ), MEGAMENU_VERSION );
|
4135 |
+
|
4136 |
+
wp_localize_script( 'spectrum', 'megamenu_spectrum_settings',
|
4137 |
+
apply_filters("megamenu_spectrum_localisation", array())
|
4138 |
+
);
|
4139 |
+
|
4140 |
wp_enqueue_script( 'mega-menu-select2', MEGAMENU_BASE_URL . 'js/select2/select2.min.js', array(), MEGAMENU_VERSION );
|
4141 |
|
4142 |
wp_enqueue_script( 'mega-menu-theme-editor', MEGAMENU_BASE_URL . 'js/settings.js', array( 'jquery', 'spectrum', 'code-editor' ), MEGAMENU_VERSION );
|
css/admin/admin.css
CHANGED
@@ -982,9 +982,7 @@
|
|
982 |
.nav-menus-php #cboxContent table td.mega-value {
|
983 |
font-size: 12px; }
|
984 |
.nav-menus-php #cboxContent table td.mega-value select {
|
985 |
-
font-size: 0.9em;
|
986 |
-
height: 28px;
|
987 |
-
line-height: 28px; }
|
988 |
.nav-menus-php #cboxContent table td.mega-value textarea {
|
989 |
font-size: 0.9em;
|
990 |
height: 28px;
|
@@ -1253,7 +1251,8 @@ body[class*='_page_maxmegamenu_'] .icon_dropdown .select2-choice,
|
|
1253 |
body.toplevel_page_maxmegamenu .icon_dropdown .select2-choice {
|
1254 |
padding: 0 5px 0 5px;
|
1255 |
height: 28px;
|
1256 |
-
color: #DFDFDF;
|
|
|
1257 |
|
1258 |
body[class*='_page_maxmegamenu_'] .icon_dropdown .select2-chosen i:before,
|
1259 |
body.toplevel_page_maxmegamenu .icon_dropdown .select2-chosen i:before {
|
@@ -1283,6 +1282,7 @@ body[class*='_page_maxmegamenu_'] .icon_dropdown .select2-choice > .select2-chos
|
|
1283 |
body[class*='_page_maxmegamenu_'] .select2-result-label i,
|
1284 |
body.toplevel_page_maxmegamenu .icon_dropdown .select2-choice > .select2-chosen i,
|
1285 |
body.toplevel_page_maxmegamenu .select2-result-label i {
|
|
|
1286 |
display: inline-block;
|
1287 |
width: 20px;
|
1288 |
height: 20px;
|
@@ -1294,7 +1294,6 @@ body.toplevel_page_maxmegamenu .select2-result-label i {
|
|
1294 |
font-style: normal;
|
1295 |
vertical-align: top;
|
1296 |
text-align: center;
|
1297 |
-
-webkit-transition: color .1s ease-in 0;
|
1298 |
transition: color .1s ease-in 0;
|
1299 |
-webkit-font-smoothing: antialiased;
|
1300 |
-moz-osx-font-smoothing: grayscale; }
|
@@ -1442,18 +1441,6 @@ body.toplevel_page_maxmegamenu .megamenu_header_top {
|
|
1442 |
color: white;
|
1443 |
line-height: 30px;
|
1444 |
padding: 0 10px; }
|
1445 |
-
body[class*='_page_maxmegamenu_'] .megamenu_header_top ul li.mega-star:before,
|
1446 |
-
body.toplevel_page_maxmegamenu .megamenu_header_top ul li.mega-star:before {
|
1447 |
-
font: 400 14px/28px dashicons;
|
1448 |
-
color: #ffb900;
|
1449 |
-
margin-right: 4px;
|
1450 |
-
content: "\f155";
|
1451 |
-
speak: none;
|
1452 |
-
padding: 0;
|
1453 |
-
display: inline-block;
|
1454 |
-
vertical-align: top;
|
1455 |
-
-webkit-font-smoothing: antialiased;
|
1456 |
-
-moz-osx-font-smoothing: grayscale; }
|
1457 |
|
1458 |
body[class*='_page_maxmegamenu_'] .megamenu_wrap .megamenu_submit .saved,
|
1459 |
body.toplevel_page_maxmegamenu .megamenu_wrap .megamenu_submit .saved {
|
@@ -1502,13 +1489,14 @@ body[class*='_page_maxmegamenu_'] .mm-picker-container,
|
|
1502 |
body.toplevel_page_maxmegamenu .mm-picker-container {
|
1503 |
border-radius: 3px;
|
1504 |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
|
1505 |
-
border: 1px solid #
|
1506 |
font-size: 0.9em;
|
1507 |
float: left; }
|
1508 |
body[class*='_page_maxmegamenu_'] .mm-picker-container .sp-replacer,
|
1509 |
body.toplevel_page_maxmegamenu .mm-picker-container .sp-replacer {
|
1510 |
margin: 0;
|
1511 |
-
float: left;
|
|
|
1512 |
body[class*='_page_maxmegamenu_'] .mm-picker-container .sp-palette-container,
|
1513 |
body.toplevel_page_maxmegamenu .mm-picker-container .sp-palette-container {
|
1514 |
width: 40px; }
|
@@ -1527,17 +1515,12 @@ body.toplevel_page_maxmegamenu .mm-picker-container {
|
|
1527 |
margin: 0; }
|
1528 |
body[class*='_page_maxmegamenu_'] .mm-picker-container div.chosen-color,
|
1529 |
body.toplevel_page_maxmegamenu .mm-picker-container div.chosen-color {
|
1530 |
-
background: #f7f7f7;
|
1531 |
-
-webkit-border-radius: 0 2px 2px 0;
|
1532 |
border-radius: 0 2px 2px 0;
|
1533 |
-
border-left: 1px solid #ccc;
|
1534 |
color: #444;
|
1535 |
font-size: 11px;
|
1536 |
line-height: 26px;
|
1537 |
padding: 0 6px;
|
1538 |
text-align: center;
|
1539 |
-
-webkit-box-shadow: inset 0 1px 0 #fff;
|
1540 |
-
box-shadow: inset 0 1px 0 #fff;
|
1541 |
float: left;
|
1542 |
cursor: default; }
|
1543 |
|
@@ -1650,9 +1633,7 @@ body.toplevel_page_maxmegamenu .megamenu_right {
|
|
1650 |
body.toplevel_page_maxmegamenu .megamenu_right .menu_settings table input[type=number],
|
1651 |
body.toplevel_page_maxmegamenu .megamenu_right .menu_settings table select {
|
1652 |
font-size: 0.9em;
|
1653 |
-
height: 28px;
|
1654 |
-
line-height: 28px;
|
1655 |
-
vertical-align: top; }
|
1656 |
body[class*='_page_maxmegamenu_'] .megamenu_right .menu_settings table textarea,
|
1657 |
body.toplevel_page_maxmegamenu .megamenu_right .menu_settings table textarea {
|
1658 |
width: 100%;
|
982 |
.nav-menus-php #cboxContent table td.mega-value {
|
983 |
font-size: 12px; }
|
984 |
.nav-menus-php #cboxContent table td.mega-value select {
|
985 |
+
font-size: 0.9em; }
|
|
|
|
|
986 |
.nav-menus-php #cboxContent table td.mega-value textarea {
|
987 |
font-size: 0.9em;
|
988 |
height: 28px;
|
1251 |
body.toplevel_page_maxmegamenu .icon_dropdown .select2-choice {
|
1252 |
padding: 0 5px 0 5px;
|
1253 |
height: 28px;
|
1254 |
+
color: #DFDFDF;
|
1255 |
+
border: 1px solid #7e8993; }
|
1256 |
|
1257 |
body[class*='_page_maxmegamenu_'] .icon_dropdown .select2-chosen i:before,
|
1258 |
body.toplevel_page_maxmegamenu .icon_dropdown .select2-chosen i:before {
|
1282 |
body[class*='_page_maxmegamenu_'] .select2-result-label i,
|
1283 |
body.toplevel_page_maxmegamenu .icon_dropdown .select2-choice > .select2-chosen i,
|
1284 |
body.toplevel_page_maxmegamenu .select2-result-label i {
|
1285 |
+
margin: 0;
|
1286 |
display: inline-block;
|
1287 |
width: 20px;
|
1288 |
height: 20px;
|
1294 |
font-style: normal;
|
1295 |
vertical-align: top;
|
1296 |
text-align: center;
|
|
|
1297 |
transition: color .1s ease-in 0;
|
1298 |
-webkit-font-smoothing: antialiased;
|
1299 |
-moz-osx-font-smoothing: grayscale; }
|
1441 |
color: white;
|
1442 |
line-height: 30px;
|
1443 |
padding: 0 10px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1444 |
|
1445 |
body[class*='_page_maxmegamenu_'] .megamenu_wrap .megamenu_submit .saved,
|
1446 |
body.toplevel_page_maxmegamenu .megamenu_wrap .megamenu_submit .saved {
|
1489 |
body.toplevel_page_maxmegamenu .mm-picker-container {
|
1490 |
border-radius: 3px;
|
1491 |
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
|
1492 |
+
border: 1px solid #7e8993;
|
1493 |
font-size: 0.9em;
|
1494 |
float: left; }
|
1495 |
body[class*='_page_maxmegamenu_'] .mm-picker-container .sp-replacer,
|
1496 |
body.toplevel_page_maxmegamenu .mm-picker-container .sp-replacer {
|
1497 |
margin: 0;
|
1498 |
+
float: left;
|
1499 |
+
border-right: 1px solid #7e8993; }
|
1500 |
body[class*='_page_maxmegamenu_'] .mm-picker-container .sp-palette-container,
|
1501 |
body.toplevel_page_maxmegamenu .mm-picker-container .sp-palette-container {
|
1502 |
width: 40px; }
|
1515 |
margin: 0; }
|
1516 |
body[class*='_page_maxmegamenu_'] .mm-picker-container div.chosen-color,
|
1517 |
body.toplevel_page_maxmegamenu .mm-picker-container div.chosen-color {
|
|
|
|
|
1518 |
border-radius: 0 2px 2px 0;
|
|
|
1519 |
color: #444;
|
1520 |
font-size: 11px;
|
1521 |
line-height: 26px;
|
1522 |
padding: 0 6px;
|
1523 |
text-align: center;
|
|
|
|
|
1524 |
float: left;
|
1525 |
cursor: default; }
|
1526 |
|
1633 |
body.toplevel_page_maxmegamenu .megamenu_right .menu_settings table input[type=number],
|
1634 |
body.toplevel_page_maxmegamenu .megamenu_right .menu_settings table select {
|
1635 |
font-size: 0.9em;
|
1636 |
+
min-height: 28px; }
|
|
|
|
|
1637 |
body[class*='_page_maxmegamenu_'] .megamenu_right .menu_settings table textarea,
|
1638 |
body.toplevel_page_maxmegamenu .megamenu_right .menu_settings table textarea {
|
1639 |
width: 100%;
|
css/admin/admin.scss
CHANGED
@@ -1336,8 +1336,6 @@ $header_height: 75px;
|
|
1336 |
|
1337 |
select {
|
1338 |
font-size: 0.9em;
|
1339 |
-
height: 28px;
|
1340 |
-
line-height: 28px;
|
1341 |
}
|
1342 |
textarea {
|
1343 |
font-size: 0.9em;
|
@@ -1731,6 +1729,7 @@ body.toplevel_page_maxmegamenu {
|
|
1731 |
padding: 0 5px 0 5px;
|
1732 |
height: 28px;
|
1733 |
color: $grey;
|
|
|
1734 |
}
|
1735 |
|
1736 |
.select2-chosen i:before {
|
@@ -1764,6 +1763,7 @@ body.toplevel_page_maxmegamenu {
|
|
1764 |
|
1765 |
.icon_dropdown .select2-choice > .select2-chosen i,
|
1766 |
.select2-result-label i {
|
|
|
1767 |
display: inline-block;
|
1768 |
width: 20px;
|
1769 |
height: 20px;
|
@@ -1775,7 +1775,6 @@ body.toplevel_page_maxmegamenu {
|
|
1775 |
font-style: normal;
|
1776 |
vertical-align: top;
|
1777 |
text-align: center;
|
1778 |
-
-webkit-transition: color .1s ease-in 0;
|
1779 |
transition: color .1s ease-in 0;
|
1780 |
-webkit-font-smoothing: antialiased;
|
1781 |
-moz-osx-font-smoothing: grayscale;
|
@@ -1935,19 +1934,6 @@ body.toplevel_page_maxmegamenu {
|
|
1935 |
padding: 0 10px;
|
1936 |
}
|
1937 |
}
|
1938 |
-
|
1939 |
-
&.mega-star:before {
|
1940 |
-
font: 400 14px/28px dashicons;
|
1941 |
-
color: #ffb900;
|
1942 |
-
margin-right: 4px;
|
1943 |
-
content: "\f155";
|
1944 |
-
speak: none;
|
1945 |
-
padding: 0;
|
1946 |
-
display: inline-block;
|
1947 |
-
vertical-align: top;
|
1948 |
-
-webkit-font-smoothing: antialiased;
|
1949 |
-
-moz-osx-font-smoothing: grayscale;
|
1950 |
-
}
|
1951 |
}
|
1952 |
}
|
1953 |
}
|
@@ -1995,13 +1981,14 @@ body.toplevel_page_maxmegamenu {
|
|
1995 |
.mm-picker-container {
|
1996 |
border-radius: 3px;
|
1997 |
box-shadow: 0 1px 0 rgba(0,0,0,.08);
|
1998 |
-
border: 1px solid #
|
1999 |
font-size: 0.9em;
|
2000 |
float: left;
|
2001 |
|
2002 |
.sp-replacer {
|
2003 |
margin: 0;
|
2004 |
float: left;
|
|
|
2005 |
}
|
2006 |
|
2007 |
.sp-palette-container {
|
@@ -2024,17 +2011,12 @@ body.toplevel_page_maxmegamenu {
|
|
2024 |
}
|
2025 |
|
2026 |
div.chosen-color {
|
2027 |
-
background: #f7f7f7;
|
2028 |
-
-webkit-border-radius: 0 2px 2px 0;
|
2029 |
border-radius: 0 2px 2px 0;
|
2030 |
-
border-left: 1px solid #ccc;
|
2031 |
color: $text_grey;
|
2032 |
font-size: 11px;
|
2033 |
line-height: 26px;
|
2034 |
padding: 0 6px;
|
2035 |
text-align: center;
|
2036 |
-
-webkit-box-shadow: inset 0 1px 0 $white;
|
2037 |
-
box-shadow: inset 0 1px 0 $white;
|
2038 |
float: left;
|
2039 |
cursor: default;
|
2040 |
}
|
@@ -2174,9 +2156,7 @@ body.toplevel_page_maxmegamenu {
|
|
2174 |
input[type=number],
|
2175 |
select {
|
2176 |
font-size: 0.9em;
|
2177 |
-
height: 28px;
|
2178 |
-
line-height: 28px;
|
2179 |
-
vertical-align: top;
|
2180 |
}
|
2181 |
|
2182 |
textarea {
|
1336 |
|
1337 |
select {
|
1338 |
font-size: 0.9em;
|
|
|
|
|
1339 |
}
|
1340 |
textarea {
|
1341 |
font-size: 0.9em;
|
1729 |
padding: 0 5px 0 5px;
|
1730 |
height: 28px;
|
1731 |
color: $grey;
|
1732 |
+
border: 1px solid #7e8993;
|
1733 |
}
|
1734 |
|
1735 |
.select2-chosen i:before {
|
1763 |
|
1764 |
.icon_dropdown .select2-choice > .select2-chosen i,
|
1765 |
.select2-result-label i {
|
1766 |
+
margin: 0;
|
1767 |
display: inline-block;
|
1768 |
width: 20px;
|
1769 |
height: 20px;
|
1775 |
font-style: normal;
|
1776 |
vertical-align: top;
|
1777 |
text-align: center;
|
|
|
1778 |
transition: color .1s ease-in 0;
|
1779 |
-webkit-font-smoothing: antialiased;
|
1780 |
-moz-osx-font-smoothing: grayscale;
|
1934 |
padding: 0 10px;
|
1935 |
}
|
1936 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1937 |
}
|
1938 |
}
|
1939 |
}
|
1981 |
.mm-picker-container {
|
1982 |
border-radius: 3px;
|
1983 |
box-shadow: 0 1px 0 rgba(0,0,0,.08);
|
1984 |
+
border: 1px solid #7e8993;
|
1985 |
font-size: 0.9em;
|
1986 |
float: left;
|
1987 |
|
1988 |
.sp-replacer {
|
1989 |
margin: 0;
|
1990 |
float: left;
|
1991 |
+
border-right: 1px solid #7e8993;
|
1992 |
}
|
1993 |
|
1994 |
.sp-palette-container {
|
2011 |
}
|
2012 |
|
2013 |
div.chosen-color {
|
|
|
|
|
2014 |
border-radius: 0 2px 2px 0;
|
|
|
2015 |
color: $text_grey;
|
2016 |
font-size: 11px;
|
2017 |
line-height: 26px;
|
2018 |
padding: 0 6px;
|
2019 |
text-align: center;
|
|
|
|
|
2020 |
float: left;
|
2021 |
cursor: default;
|
2022 |
}
|
2156 |
input[type=number],
|
2157 |
select {
|
2158 |
font-size: 0.9em;
|
2159 |
+
min-height: 28px;
|
|
|
|
|
2160 |
}
|
2161 |
|
2162 |
textarea {
|
css/megamenu.scss
CHANGED
@@ -54,6 +54,7 @@
|
|
54 |
visibility: inherit;
|
55 |
width: auto;
|
56 |
word-wrap: break-word;
|
|
|
57 |
|
58 |
&:before,
|
59 |
&:after {
|
@@ -190,11 +191,11 @@
|
|
190 |
|
191 |
li.mega-disable-link > a.mega-menu-link,
|
192 |
li.mega-menu-megamenu li.mega-disable-link > a.mega-menu-link {
|
193 |
-
cursor:
|
194 |
}
|
195 |
|
196 |
li.mega-menu-item-has-children.mega-disable-link > a.mega-menu-link,
|
197 |
-
li.mega-menu-megamenu li.mega-menu-item-has-children.mega-disable-link > a.mega-menu-link {
|
198 |
cursor: pointer;
|
199 |
}
|
200 |
|
54 |
visibility: inherit;
|
55 |
width: auto;
|
56 |
word-wrap: break-word;
|
57 |
+
white-space: normal;
|
58 |
|
59 |
&:before,
|
60 |
&:after {
|
191 |
|
192 |
li.mega-disable-link > a.mega-menu-link,
|
193 |
li.mega-menu-megamenu li.mega-disable-link > a.mega-menu-link {
|
194 |
+
cursor: inherit;
|
195 |
}
|
196 |
|
197 |
li.mega-menu-item-has-children.mega-disable-link > a.mega-menu-link,
|
198 |
+
li.mega-menu-megamenu > li.mega-menu-item-has-children.mega-disable-link > a.mega-menu-link {
|
199 |
cursor: pointer;
|
200 |
}
|
201 |
|
js/admin.js
CHANGED
@@ -144,6 +144,7 @@
|
|
144 |
// bind save button action
|
145 |
form.on("change", function(e) {
|
146 |
start_saving();
|
|
|
147 |
e.preventDefault();
|
148 |
$("input", form).not(e.target).removeAttr("checked");
|
149 |
var data = $(this).serialize();
|
144 |
// bind save button action
|
145 |
form.on("change", function(e) {
|
146 |
start_saving();
|
147 |
+
isDirty = false;
|
148 |
e.preventDefault();
|
149 |
$("input", form).not(e.target).removeAttr("checked");
|
150 |
var data = $(this).serialize();
|
js/settings.js
CHANGED
@@ -43,7 +43,7 @@ jQuery(function ($) {
|
|
43 |
}, 160);
|
44 |
});
|
45 |
}
|
46 |
-
|
47 |
$(".mm_colorpicker").spectrum({
|
48 |
preferredFormat: "rgb",
|
49 |
showInput: true,
|
@@ -51,7 +51,7 @@ jQuery(function ($) {
|
|
51 |
clickoutFiresChange: true,
|
52 |
showSelectionPalette: true,
|
53 |
showPalette: true,
|
54 |
-
palette: [
|
55 |
localStorageKey: "maxmegamenu.themeeditor",
|
56 |
change: function(color) {
|
57 |
if (color.getAlpha() === 0) {
|
43 |
}, 160);
|
44 |
});
|
45 |
}
|
46 |
+
|
47 |
$(".mm_colorpicker").spectrum({
|
48 |
preferredFormat: "rgb",
|
49 |
showInput: true,
|
51 |
clickoutFiresChange: true,
|
52 |
showSelectionPalette: true,
|
53 |
showPalette: true,
|
54 |
+
palette: $.isArray(megamenu_spectrum_settings.palette) ? megamenu_spectrum_settings.palette : [],
|
55 |
localStorageKey: "maxmegamenu.themeeditor",
|
56 |
change: function(color) {
|
57 |
if (color.getAlpha() === 0) {
|
megamenu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Max Mega Menu
|
5 |
* Plugin URI: https://www.megamenu.com
|
6 |
* Description: An easy to use mega menu plugin. Written the WordPress way.
|
7 |
-
* Version: 2.7.
|
8 |
* Author: megamenu.com
|
9 |
* Author URI: https://www.megamenu.com
|
10 |
* License: GPL-2.0+
|
@@ -36,7 +36,7 @@ final class Mega_Menu {
|
|
36 |
/**
|
37 |
* @var string
|
38 |
*/
|
39 |
-
public $version = '2.7.
|
40 |
|
41 |
|
42 |
/**
|
@@ -453,8 +453,9 @@ final class Mega_Menu {
|
|
453 |
$args = (object) $args;
|
454 |
|
455 |
// make sure we're working with a Mega Menu
|
456 |
-
if ( ! is_a( $args->walker, 'Mega_Menu_Walker' ) )
|
457 |
return $nav_menu;
|
|
|
458 |
|
459 |
$find = 'class="' . $args->container_class . '">';
|
460 |
|
@@ -484,7 +485,7 @@ final class Mega_Menu {
|
|
484 |
$args = (object) $args;
|
485 |
|
486 |
// make sure we're working with a Mega Menu
|
487 |
-
if ( ! is_a( $args->walker, 'Mega_Menu_Walker' ) ) {
|
488 |
return $items;
|
489 |
}
|
490 |
|
4 |
* Plugin Name: Max Mega Menu
|
5 |
* Plugin URI: https://www.megamenu.com
|
6 |
* Description: An easy to use mega menu plugin. Written the WordPress way.
|
7 |
+
* Version: 2.7.3
|
8 |
* Author: megamenu.com
|
9 |
* Author URI: https://www.megamenu.com
|
10 |
* License: GPL-2.0+
|
36 |
/**
|
37 |
* @var string
|
38 |
*/
|
39 |
+
public $version = '2.7.3';
|
40 |
|
41 |
|
42 |
/**
|
453 |
$args = (object) $args;
|
454 |
|
455 |
// make sure we're working with a Mega Menu
|
456 |
+
if ( ! $args->walker || ! is_a( $args->walker, 'Mega_Menu_Walker' ) ) {
|
457 |
return $nav_menu;
|
458 |
+
}
|
459 |
|
460 |
$find = 'class="' . $args->container_class . '">';
|
461 |
|
485 |
$args = (object) $args;
|
486 |
|
487 |
// make sure we're working with a Mega Menu
|
488 |
+
if ( ! $args->walker || ! is_a( $args->walker, 'Mega_Menu_Walker' ) ) {
|
489 |
return $items;
|
490 |
}
|
491 |
|
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Contributors: megamenu
|
3 |
Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
|
4 |
Requires at least: 4.9
|
5 |
-
Tested up to: 5.
|
6 |
Stable tag: 2.7.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -17,7 +17,6 @@ https://www.youtube.com/watch?v=44dJwP1AXT8
|
|
17 |
|
18 |
Documentation & Demo: [https://www.megamenu.com](https://www.megamenu.com)
|
19 |
|
20 |
-
|
21 |
###Mobile
|
22 |
|
23 |
* Automatic support for native touch events
|
@@ -132,6 +131,17 @@ See https://www.megamenu.com for more screenshots
|
|
132 |
|
133 |
== Changelog ==
|
134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
= 2.7.2 =
|
136 |
|
137 |
* Improvement: Show warning if there are unsaved changes when closing the menu item settings lightbox
|
2 |
Contributors: megamenu
|
3 |
Tags: menu, megamenu, mega menu, navigation, widget, dropdown menu, drag and drop, mobile, responsive, retina, theme editor, widget, shortcode, sidebar, icons, dashicons
|
4 |
Requires at least: 4.9
|
5 |
+
Tested up to: 5.3
|
6 |
Stable tag: 2.7.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
17 |
|
18 |
Documentation & Demo: [https://www.megamenu.com](https://www.megamenu.com)
|
19 |
|
|
|
20 |
###Mobile
|
21 |
|
22 |
* Automatic support for native touch events
|
131 |
|
132 |
== Changelog ==
|
133 |
|
134 |
+
= 2.7.3 =
|
135 |
+
|
136 |
+
* Improvement: Styling updates for WordPress 5.3
|
137 |
+
* Improvement: Add script localisation for spectrum
|
138 |
+
* Improvement: Always show WooCommerce Tags and Categories meta boxes on nav-menus.php
|
139 |
+
* Fix: Compatibility fix for TemplatesNext ToolKit (menu item settings inaccessible)
|
140 |
+
* Fix: Default white-space to normal in menu CSS
|
141 |
+
* Fix: Unsaved changes prompt incorrectly appears when changing menu icon
|
142 |
+
* Fix: Disable Link cursor style
|
143 |
+
* Fix: Edge Case PHP Warning
|
144 |
+
|
145 |
= 2.7.2 =
|
146 |
|
147 |
* Improvement: Show warning if there are unsaved changes when closing the menu item settings lightbox
|