Responsive Select Menu - Version 1.7

Version Description

  • Ignore UberMenu Advanced Items
  • Fix notices that occur if UberMenu settings aren't saved for menu items
Download this release

Release Info

Developer sevenspark
Plugin Icon wp plugin Responsive Select Menu
Version 1.7
Comparing to
See all releases

Code changes from version 1.6 to 1.7

Files changed (2) hide show
  1. readme.txt +8 -3
  2. responsive-select-menu.php +11 -6
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: sevenspark
3
  Donate link: http://bit.ly/DonateResponsiveSelect
4
  Tags: responsive, menu, select, drop down,
5
- Requires at least: 3.6
6
- Tested up to: 4.0
7
- Stable tag: 1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -72,6 +72,11 @@ If your theme creates a menu the standard way with wp_nav_menu, it should work.
72
 
73
  == Changelog ==
74
 
 
 
 
 
 
75
  = 1.6 =
76
 
77
  * Added UberMenu 3 compatibility
2
  Contributors: sevenspark
3
  Donate link: http://bit.ly/DonateResponsiveSelect
4
  Tags: responsive, menu, select, drop down,
5
+ Requires at least: 4.0
6
+ Tested up to: 4.4.1
7
+ Stable tag: 1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
72
 
73
  == Changelog ==
74
 
75
+ = 1.7 =
76
+
77
+ * Ignore UberMenu Advanced Items
78
+ * Fix notices that occur if UberMenu settings aren't saved for menu items
79
+
80
  = 1.6 =
81
 
82
  * Added UberMenu 3 compatibility
responsive-select-menu.php CHANGED
@@ -4,14 +4,14 @@
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.6
8
  Author: Chris Mavricos, SevenSpark
9
  Author URI: http://sevenspark.com
10
  License: GPLv2
11
  Copyright 2011-2014 Chris Mavricos, SevenSpark http://sevenspark.com (email : chris@sevenspark.com)
12
  */
13
 
14
- define( 'RESPONSIVE_SELECT_MENU_VERSION', '1.6' );
15
  define( 'RESPONSIVE_SELECT_MENU_SETTINGS', 'responsive-select-menu' );
16
 
17
  require_once( 'sparkoptions/SparkOptions.class.php' ); //SevenSpark Options Panel
@@ -560,6 +560,10 @@ class ResponsiveSelectWalker extends Walker_Nav_Menu{
560
  return;
561
  }
562
 
 
 
 
 
563
  //IF UBERMENU
564
  if( $responsiveMenuSelect->getSettings()->op( 'uber-enabled' ) ){
565
 
@@ -594,25 +598,26 @@ class ResponsiveSelectWalker extends Walker_Nav_Menu{
594
  }
595
  }
596
  else if( function_exists( 'ubermenu' ) ){
 
597
  $settings = uber3_get_item_settings( $item->ID );
598
 
599
  //Nolink
600
- if( ( $settings['disable_link'] == on ) && ( $responsiveMenuSelect->getSettings()->op( 'uber-exclude-nonlinks' ) == 'on' ) ){
601
  return;
602
  }
603
 
604
  //Notext
605
- if( ( $settings['disable_text'] == on ) && ( $responsiveMenuSelect->getSettings()->op( 'uber-exclude-notext' ) == 'on' ) ){
606
  return;
607
  }
608
 
609
  //Sidebar
610
- if( ( $settings['widget_area'] || $settings['auto_widget_area'] ) && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-sidebar' ) ){
611
  return;
612
  }
613
 
614
  //Custom
615
- if( $settings['custom_content'] && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-content-overrides' ) ){
616
  return;
617
  }
618
 
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.7
8
  Author: Chris Mavricos, SevenSpark
9
  Author URI: http://sevenspark.com
10
  License: GPLv2
11
  Copyright 2011-2014 Chris Mavricos, SevenSpark http://sevenspark.com (email : chris@sevenspark.com)
12
  */
13
 
14
+ define( 'RESPONSIVE_SELECT_MENU_VERSION', '1.7' );
15
  define( 'RESPONSIVE_SELECT_MENU_SETTINGS', 'responsive-select-menu' );
16
 
17
  require_once( 'sparkoptions/SparkOptions.class.php' ); //SevenSpark Options Panel
560
  return;
561
  }
562
 
563
+ //uberp( $item );
564
+
565
+ if( $item->object == 'ubermenu-custom' ) return;
566
+
567
  //IF UBERMENU
568
  if( $responsiveMenuSelect->getSettings()->op( 'uber-enabled' ) ){
569
 
598
  }
599
  }
600
  else if( function_exists( 'ubermenu' ) ){
601
+
602
  $settings = uber3_get_item_settings( $item->ID );
603
 
604
  //Nolink
605
+ if( isset( $settings['disable_link'] ) && ( $settings['disable_link'] == on ) && ( $responsiveMenuSelect->getSettings()->op( 'uber-exclude-nonlinks' ) == 'on' ) ){
606
  return;
607
  }
608
 
609
  //Notext
610
+ if( isset( $settings['disable_text'] ) && ( $settings['disable_text'] == on ) && ( $responsiveMenuSelect->getSettings()->op( 'uber-exclude-notext' ) == 'on' ) ){
611
  return;
612
  }
613
 
614
  //Sidebar
615
+ if( isset( $settings['widget_area'] ) && ( $settings['widget_area'] || $settings['auto_widget_area'] ) && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-sidebar' ) ){
616
  return;
617
  }
618
 
619
  //Custom
620
+ if( isset( $settings['custom_content'] ) && $settings['custom_content'] && $responsiveMenuSelect->getSettings()->op( 'uber-exclude-content-overrides' ) ){
621
  return;
622
  }
623