Version Description
- Fixed option closing tag order for valid HTML markup
Download this release
Release Info
Developer | sevenspark |
Plugin | Responsive Select Menu |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- readme.txt +5 -0
- responsive-select-menu.php +6 -39
readme.txt
CHANGED
@@ -64,10 +64,15 @@ in the menu.
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
67 |
= 1.0 =
|
68 |
* Initial version
|
69 |
|
70 |
|
71 |
== Upgrade Notice ==
|
72 |
|
|
|
|
|
73 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 1.1 =
|
68 |
+
* Fixed option closing tag order for valid HTML markup
|
69 |
+
|
70 |
= 1.0 =
|
71 |
* Initial version
|
72 |
|
73 |
|
74 |
== Upgrade Notice ==
|
75 |
|
76 |
+
= 1.1 =
|
77 |
+
* Upgrade to ensure valid markup - won't change your settings.
|
78 |
|
responsive-select-menu.php
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
Plugin Name: Responsive Select Menu
|
5 |
Plugin URI: http://wpmegamenu.com/responsive-select-menu
|
6 |
Description: Turn your menu into a select box at small viewport sizes
|
7 |
-
Version: 1.
|
8 |
Author: Chris Mavricos, SevenSpark
|
9 |
Author URI: http://sevenspark.com
|
10 |
Copyright 2011-2012 Chris Mavricos, SevenSpark http://sevenspark.com (email : chris@sevenspark.com)
|
11 |
*/
|
12 |
|
13 |
-
define( 'RESPONSIVE_SELECT_MENU_VERSION', '1.
|
14 |
define( 'RESPONSIVE_SELECT_MENU_SETTINGS', 'responsive-select-menu' );
|
15 |
|
16 |
require_once( 'sparkoptions/SparkOptions.class.php' ); //SevenSpark Options Panel
|
@@ -482,46 +482,13 @@ class ResponsiveSelectWalker extends Walker_Nav_Menu{
|
|
482 |
$item_output = $args->before;
|
483 |
$item_output .= $dashes . $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
|
484 |
$item_output .= $args->after;
|
485 |
-
|
486 |
$output.= $item_output;
|
|
|
|
|
487 |
}
|
488 |
|
489 |
function end_el(&$output, $item, $depth) {
|
490 |
-
|
491 |
-
if( $item->url == '#' && $responsiveMenuSelect->getSettings()->op( 'exclude-hashes' ) ){
|
492 |
-
return;
|
493 |
-
}
|
494 |
-
//IF UBERMENU
|
495 |
-
if( $responsiveMenuSelect->getSettings()->op( 'uber-enabled' ) ){
|
496 |
-
|
497 |
-
global $uberMenu;
|
498 |
-
$settings = $uberMenu->getSettings();
|
499 |
-
|
500 |
-
//Test override settings
|
501 |
-
$override = get_post_meta( $item->ID, '_menu_item_shortcode', true);
|
502 |
-
$overrideOn = /*$depth > 0 && */ $settings->op( 'wpmega-shortcodes' ) && !empty( $override ) ? true : false;
|
503 |
-
|
504 |
-
//Test sidebar settings
|
505 |
-
$sidebar = get_post_meta( $item->ID, '_menu_item_sidebars', true);
|
506 |
-
$sidebarOn = ( $settings->op( 'wpmega-top-level-widgets' ) || $depth > 0 ) && $settings->op( 'wpmega-sidebars' ) && !empty( $sidebar ) ? true : false;
|
507 |
-
|
508 |
-
$notext = get_post_meta( $item->ID, '_menu_item_notext', true ) == 'on' || $item->title == UBERMENU_NOTEXT ? true : false;
|
509 |
-
$nolink = get_post_meta( $item->ID, '_menu_item_nolink', true ) == 'on' ? true : false;
|
510 |
-
|
511 |
-
if( $nolink && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-nonlinks' ) ){
|
512 |
-
return;
|
513 |
-
}
|
514 |
-
if( $notext && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-notext' ) ){
|
515 |
-
return;
|
516 |
-
}
|
517 |
-
if( $sidebarOn && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-sidebar' ) ){
|
518 |
-
return;
|
519 |
-
}
|
520 |
-
if( $overrideOn && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-content-overrides' ) ){
|
521 |
-
return;
|
522 |
-
}
|
523 |
-
|
524 |
-
}
|
525 |
-
$output .= "</option>\n";
|
526 |
}
|
527 |
}
|
4 |
Plugin Name: Responsive Select Menu
|
5 |
Plugin URI: http://wpmegamenu.com/responsive-select-menu
|
6 |
Description: Turn your menu into a select box at small viewport sizes
|
7 |
+
Version: 1.1
|
8 |
Author: Chris Mavricos, SevenSpark
|
9 |
Author URI: http://sevenspark.com
|
10 |
Copyright 2011-2012 Chris Mavricos, SevenSpark http://sevenspark.com (email : chris@sevenspark.com)
|
11 |
*/
|
12 |
|
13 |
+
define( 'RESPONSIVE_SELECT_MENU_VERSION', '1.1' );
|
14 |
define( 'RESPONSIVE_SELECT_MENU_SETTINGS', 'responsive-select-menu' );
|
15 |
|
16 |
require_once( 'sparkoptions/SparkOptions.class.php' ); //SevenSpark Options Panel
|
482 |
$item_output = $args->before;
|
483 |
$item_output .= $dashes . $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
|
484 |
$item_output .= $args->after;
|
485 |
+
|
486 |
$output.= $item_output;
|
487 |
+
|
488 |
+
$output .= "</option>\n";
|
489 |
}
|
490 |
|
491 |
function end_el(&$output, $item, $depth) {
|
492 |
+
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
}
|
494 |
}
|