Advanced Sidebar Menu - Version 3.4.7

Version Description

Download this release

Release Info

Developer Mat Lipe
Plugin Icon 128x128 Advanced Sidebar Menu
Version 3.4.7
Comparing to
See all releases

Code changes from version 3.4.6 to 3.4.7

advanced-sidebar-menu.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Advanced Sidebar Menu
4
Plugin URI: http://lipeimagination.info/wordpress/advanced-sidebar-menu/
5
Description: Creates dynamic menu based on child/parent relationship.
6
Author: Mat Lipe
7
- Version: 3.4.6
8
Author URI: http://lipeimagination.info
9
Since: 10.12.12
10
Email: mat@lipeimagination.info
4
Plugin URI: http://lipeimagination.info/wordpress/advanced-sidebar-menu/
5
Description: Creates dynamic menu based on child/parent relationship.
6
Author: Mat Lipe
7
+ Version: 3.4.7
8
Author URI: http://lipeimagination.info
9
Since: 10.12.12
10
Email: mat@lipeimagination.info
readme.txt CHANGED
@@ -4,11 +4,10 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypa
4
Tags: menus, sidebar menu, heirchy, category menu, pages menu
5
Requires at least: 3.1
6
Tested up to: 3.4.2
7
- Stable tag: 3.4.6
8
License: GPLv2
9
10
- Creates a widget for both page and categories that will display the current page/category and an child pages or categories.
11
- Keeps the menu clean and usable.
12
13
== Description ==
14
4
Tags: menus, sidebar menu, heirchy, category menu, pages menu
5
Requires at least: 3.1
6
Tested up to: 3.4.2
7
+ Stable tag: 3.4.7
8
License: GPLv2
9
10
+ Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11
12
== Description ==
13
widgets/category.widget.php CHANGED
@@ -5,7 +5,7 @@
5
* Creates a Widget of parent Child Categories
6
*
7
* @author mat lipe
8
- * @since 6/4/12
9
* @package Advanced Sidebar Menu
10
*
11
*/
@@ -128,7 +128,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
128
129
/**
130
* Outputs the categories widget to the page
131
- * @since 10.5.12
132
*
133
*/
134
function widget($args, $instance) {
@@ -196,8 +196,8 @@ class advanced_sidebar_menu_category extends WP_Widget {
196
//for depreciation
197
$all = $all_categories;
198
199
- //If there are any child categories or the include childless parent is checked
200
- if( !empty($all_categories ) || ($instance['include_childless_parent'] == 'checked' && !in_array($top_cat, $exclude)) ){
201
202
203
//Creates a new widget for each category the single page has if the options are selected to do so
@@ -205,30 +205,25 @@ class advanced_sidebar_menu_category extends WP_Widget {
205
206
//Start the menu
207
echo $before_widget;
208
-
209
- $count++; // To change the id of the widget if there are multiple
210
- $asm_once = true; //There has been a div
211
- $close = true; //The div should be closed at the end
212
- if($instance['new_widget'] == 'list'){ $close = false;} //If this is a list leave it open for possible late ones
213
214
} else {
215
$close = false;
216
}
217
218
-
219
- $asm->set_widget_vars( $instance, $top_cat, $exclude, $cat_ancestors );
220
- //Bring in the view
221
- require( $asm->file_hyercy( 'category_list.php' ) );
222
223
224
if( $close ){
225
//End the Widget Area
226
echo $after_widget;
227
}
228
-
229
-
230
-
231
-
232
} //End if any children or include childless parent
233
} //End of each cat loop
234
@@ -236,8 +231,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
236
//IF we were waiting for all the individual lists to complete
237
if( !$close && $asm_once ){
238
//End the Widget Area
239
- echo '</div>
240
- </div><!-- END #advanced-sidebar-cat-menu -->';
241
242
}
243
5
* Creates a Widget of parent Child Categories
6
*
7
* @author mat lipe
8
+ * @since 10.12.12
9
* @package Advanced Sidebar Menu
10
*
11
*/
128
129
/**
130
* Outputs the categories widget to the page
131
+ * @since 10.12.12
132
*
133
*/
134
function widget($args, $instance) {
196
//for depreciation
197
$all = $all_categories;
198
199
+ //If there are any child categories or the include childless parent is checked
200
+ if( !empty($all_categories ) || ($instance['include_childless_parent'] == 'checked' && !in_array($top_cat, $exclude)) ){
201
202
203
//Creates a new widget for each category the single page has if the options are selected to do so
205
206
//Start the menu
207
echo $before_widget;
208
+ $count++; // To change the id of the widget if there are multiple
209
+ $asm_once = true; //There has been a div
210
+ $close = true; //The div should be closed at the end
211
+ if($instance['new_widget'] == 'list'){ $close = false;} //If this is a list leave it open for possible late ones
212
213
} else {
214
$close = false;
215
}
216
217
+ $asm->set_widget_vars( $instance, $top_cat, $exclude, $cat_ancestors );
218
+ //Bring in the view
219
+ require( $asm->file_hyercy( 'category_list.php' ) );
220
221
222
if( $close ){
223
//End the Widget Area
224
echo $after_widget;
225
}
226
+
227
} //End if any children or include childless parent
228
} //End of each cat loop
229
231
//IF we were waiting for all the individual lists to complete
232
if( !$close && $asm_once ){
233
//End the Widget Area
234
+ echo $after_widget;
235
236
}
237