Advanced Sidebar Menu - Version 4.7.3

Version Description

Download this release

Release Info

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

Code changes from version 4.7.1 to 4.7.3

advanced-sidebar-menu.php CHANGED
@@ -4,12 +4,12 @@ Plugin Name: Advanced Sidebar Menu
4
  Plugin URI: http://matlipe.com/advanced-sidebar-menu/
5
  Description: Creates dynamic menu based on child/parent relationship.
6
  Author: Mat Lipe
7
- Version: 4.7.1
8
  Author URI: http://matlipe.com
9
- Since: 12.12.13
10
  */
11
 
12
- define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '4.6.1' );
13
 
14
 
15
 
4
  Plugin URI: http://matlipe.com/advanced-sidebar-menu/
5
  Description: Creates dynamic menu based on child/parent relationship.
6
  Author: Mat Lipe
7
+ Version: 4.7.3
8
  Author URI: http://matlipe.com
9
+ Since: 1.7.14
10
  */
11
 
12
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '4.7.3' );
13
 
14
 
15
 
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: Mat Lipe
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40lipeimagination%2einfo&lc=US&item_name=Advanced%20Sidebar%20Menu&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
5
  Tags: menus, sidebar menu, heirchy, category menu, pages menu
6
  Requires at least: 3.1
7
- Tested up to: 3.8.0
8
- Stable tag: 4.7.1
9
 
10
  Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11
 
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40lipeimagination%2einfo&lc=US&item_name=Advanced%20Sidebar%20Menu&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
5
  Tags: menus, sidebar menu, heirchy, category menu, pages menu
6
  Requires at least: 3.1
7
+ Tested up to: 3.9.0
8
+ Stable tag: 4.7.3
9
 
10
  Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
11
 
views/page_list.php CHANGED
@@ -15,8 +15,6 @@
15
 
16
  $asm->title();
17
 
18
- $content = '';
19
-
20
  #-- list the parent page if chosen
21
  if( $asm->include_parent() ){
22
  $content .= '<ul class="parent-sidebar-menu" >';
15
 
16
  $asm->title();
17
 
 
 
18
  #-- list the parent page if chosen
19
  if( $asm->include_parent() ){
20
  $content .= '<ul class="parent-sidebar-menu" >';
widgets/category.widget.php CHANGED
@@ -5,7 +5,7 @@
5
  * Creates a Widget of parent Child Categories
6
  *
7
  * @author mat lipe
8
- * @since 12.12.13
9
  * @package Advanced Sidebar Menu
10
  *
11
  * @todo Clean this bad boy up. Still rookie code from years ago
@@ -49,7 +49,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
49
  /**
50
  * Creates a form for the Widget Options
51
  *
52
- * @since 11.4.13
53
  *
54
  * @param array $instance
55
  *
@@ -84,7 +84,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
84
  <?php echo $instance['single']; ?>/></p>
85
 
86
  <span id="new-widget-<?php echo $this->get_field_name('new_widget'); ?>" style="<?php
87
- if( $instance['single'] == checked ){
88
  echo 'display:block';
89
  } else {
90
  echo 'display:none';
@@ -123,7 +123,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
123
  <?php echo $instance['display_all']; ?>/></p>
124
 
125
  <span id="levels-<?php echo $this->get_field_name('levels'); ?>" style="<?php
126
- if( $instance['display_all'] == checked ){
127
  echo 'display:block';
128
  } else {
129
  echo 'display:none';
5
  * Creates a Widget of parent Child Categories
6
  *
7
  * @author mat lipe
8
+ * @since 1.7.14
9
  * @package Advanced Sidebar Menu
10
  *
11
  * @todo Clean this bad boy up. Still rookie code from years ago
49
  /**
50
  * Creates a form for the Widget Options
51
  *
52
+ * @since 1.7.14
53
  *
54
  * @param array $instance
55
  *
84
  <?php echo $instance['single']; ?>/></p>
85
 
86
  <span id="new-widget-<?php echo $this->get_field_name('new_widget'); ?>" style="<?php
87
+ if( $instance['single'] == 'checked' ){
88
  echo 'display:block';
89
  } else {
90
  echo 'display:none';
123
  <?php echo $instance['display_all']; ?>/></p>
124
 
125
  <span id="levels-<?php echo $this->get_field_name('levels'); ?>" style="<?php
126
+ if( $instance['display_all'] == 'checked' ){
127
  echo 'display:block';
128
  } else {
129
  echo 'display:none';
widgets/page.widget.php CHANGED
@@ -89,7 +89,7 @@ class advanced_sidebar_menu_page extends WP_Widget {
89
  name="<?php echo $this->get_field_name('css'); ?>" type="checkbox" value="checked"
90
  <?php echo $instance['css']; ?>/></p>
91
 
92
- <p> <?php _e( "Pages to Exclude, Comma Separated",'advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('exclude'); ?>"
93
  name="<?php echo $this->get_field_name('exclude'); ?>" class="widefat" type="text" value="<?php echo $instance['exclude']; ?>"/></p>
94
 
95
  <p> <?php _e( "Legacy Mode: (use pre 4.0 structure and css)",'advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('legacy_mode'); ?>"
@@ -245,8 +245,9 @@ class advanced_sidebar_menu_page extends WP_Widget {
245
  //Start the menu
246
  echo $before_widget;
247
  #-- Bring in the
 
248
  require( $asm->file_hyercy( 'page_list.php', $legacy ) );
249
- echo apply_filters('advanced_sidebar_menu_page_widget_output',$content, $args, $instance );
250
  echo $after_widget;
251
 
252
  }
89
  name="<?php echo $this->get_field_name('css'); ?>" type="checkbox" value="checked"
90
  <?php echo $instance['css']; ?>/></p>
91
 
92
+ <p> <?php _e( "Pages to Exclude (ids), Comma Separated",'advanced-sidebar-menu'); ?>: <input id="<?php echo $this->get_field_id('exclude'); ?>"
93
  name="<?php echo $this->get_field_name('exclude'); ?>" class="widefat" type="text" value="<?php echo $instance['exclude']; ?>"/></p>
94
 
95
  <p> <?php _e( "Legacy Mode: (use pre 4.0 structure and css)",'advanced-sidebar-menu'); ?> <input id="<?php echo $this->get_field_name('legacy_mode'); ?>"
245
  //Start the menu
246
  echo $before_widget;
247
  #-- Bring in the
248
+ $content = '';
249
  require( $asm->file_hyercy( 'page_list.php', $legacy ) );
250
+ echo apply_filters('advanced_sidebar_menu_page_widget_output', $content, $args, $instance );
251
  echo $after_widget;
252
 
253
  }