JQuery Accordion Menu Widget - Version 3.1.2

Version Description

  • Updated: accordion shortcode
Download this release

Release Info

Developer remix4
Plugin Icon wp plugin JQuery Accordion Menu Widget
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

Files changed (2) hide show
  1. dcwp_jquery_accordion.php +10 -7
  2. readme.txt +6 -2
dcwp_jquery_accordion.php CHANGED
@@ -5,7 +5,7 @@
5
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
6
  Description: Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes. Features include - handles multiple levels, saved state using cookies and option of selecting "click" or "hover" events for triggering the menu.
7
  Author: Lee Chestnutt
8
- Version: 3.1.1
9
  Author URI: http://www.designchemical.com
10
  */
11
 
@@ -85,12 +85,13 @@ function dcwp_dc_jqaccordion_shortcode($atts){
85
  $_SESSION['dc_jqaccordion_menu'] = $_SESSION['dc_jqaccordion_menu'] != '' ? $_SESSION['dc_jqaccordion_menu'] + 1 : 1 ;
86
  $id = $id == '' ? 's'.$_SESSION['dc_jqaccordion_menu'] : 's'.$id ;
87
  $menuId = 'dc_jqaccordion_widget-'.$id.'-item';
 
88
 
89
  if($skin != 'No Theme'){
90
- echo "\n\t<link rel=\"stylesheet\" href=\"".dc_jqaccordion::get_plugin_directory()."/skin.php?widget_id=".$id."&amp;skin=".strtolower($skin)."\" type=\"text/css\" media=\"screen\" />";
91
  }
92
 
93
- echo '<script type="text/javascript">
94
  jQuery(document).ready(function($) {
95
  jQuery("#'.$menuId.'").dcAccordion({
96
  eventType: "'.$event.'",
@@ -108,14 +109,16 @@ function dcwp_dc_jqaccordion_shortcode($atts){
108
  });
109
  });
110
  </script>';
111
- echo '<div class="dcjq-accordion" id="'.$menuId.'">';
112
- echo wp_nav_menu(
113
  array(
114
  'fallback_cb' => '',
115
  'menu' => $menu,
116
- 'menu_class' => $menu_class
 
117
  )
118
  );
119
- echo '</div>';
 
120
  }
121
  ?>
5
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
6
  Description: Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes. Features include - handles multiple levels, saved state using cookies and option of selecting "click" or "hover" events for triggering the menu.
7
  Author: Lee Chestnutt
8
+ Version: 3.1.2
9
  Author URI: http://www.designchemical.com
10
  */
11
 
85
  $_SESSION['dc_jqaccordion_menu'] = $_SESSION['dc_jqaccordion_menu'] != '' ? $_SESSION['dc_jqaccordion_menu'] + 1 : 1 ;
86
  $id = $id == '' ? 's'.$_SESSION['dc_jqaccordion_menu'] : 's'.$id ;
87
  $menuId = 'dc_jqaccordion_widget-'.$id.'-item';
88
+ $out = '';
89
 
90
  if($skin != 'No Theme'){
91
+ $out .= "\n\t<link rel=\"stylesheet\" href=\"".dc_jqaccordion::get_plugin_directory()."/skin.php?widget_id=".$id."&amp;skin=".strtolower($skin)."\" type=\"text/css\" media=\"screen\" />";
92
  }
93
 
94
+ $out .= '<script type="text/javascript">
95
  jQuery(document).ready(function($) {
96
  jQuery("#'.$menuId.'").dcAccordion({
97
  eventType: "'.$event.'",
109
  });
110
  });
111
  </script>';
112
+ $out .= '<div class="dcjq-accordion" id="'.$menuId.'">';
113
+ $out .= wp_nav_menu(
114
  array(
115
  'fallback_cb' => '',
116
  'menu' => $menu,
117
+ 'menu_class' => $menu_class,
118
+ 'echo' => false
119
  )
120
  );
121
+ $out .= '</div>';
122
+ return $out;
123
  }
124
  ?>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: remix4
3
  Donate link: http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/#form-donate
4
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, widget
5
  Requires at least: 3.0
6
- Tested up to: 3.13
7
- Stable tag: 3.1.1
8
 
9
  Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes.
10
 
@@ -57,6 +57,7 @@ skin - black/blue/clean/demo/graphite/grey (default = No Theme)
57
  For more information please check out the plugin home page:
58
 
59
  [__Plugin Home Page__](http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/)
 
60
  [__See Demo__](http://www.designchemical.com/lab/demo-wordpress-vertical-accordion-menu-plugin/)
61
 
62
  == Installation ==
@@ -86,6 +87,9 @@ Another likely cause is due to other non-functioning plugins, which may have err
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 3.1.1 =
90
  * Updated: wp_enqueue_script hook
91
 
3
  Donate link: http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/#form-donate
4
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, widget
5
  Requires at least: 3.0
6
+ Tested up to: 3.4.2
7
+ Stable tag: 3.1.2
8
 
9
  Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes.
10
 
57
  For more information please check out the plugin home page:
58
 
59
  [__Plugin Home Page__](http://www.designchemical.com/blog/index.php/wordpress-plugins/wordpress-plugin-jquery-vertical-accordion-menu-widget/)
60
+
61
  [__See Demo__](http://www.designchemical.com/lab/demo-wordpress-vertical-accordion-menu-plugin/)
62
 
63
  == Installation ==
87
 
88
  == Changelog ==
89
 
90
+ = 3.1.2 =
91
+ * Updated: accordion shortcode
92
+
93
  = 3.1.1 =
94
  * Updated: wp_enqueue_script hook
95