Version Description
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 5.1.3 |
Comparing to | |
See all releases |
Code changes from version 5.1.2 to 5.1.3
- advanced-sidebar-menu.php +2 -2
- classes/Advanced_Sidebar_Menu_Deprecated.php +1 -1
- legacy/page_list.php +4 -4
- readme.txt +1 -1
- widgets/page.widget.php +0 -2
advanced-sidebar-menu.php
CHANGED
@@ -4,12 +4,12 @@ Plugin Name: Advanced Sidebar Menu
|
|
4 |
Plugin URI: https://matlipe.com/advanced-sidebar-menu/
|
5 |
Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
Author: Mat Lipe
|
7 |
-
Version: 5.1.
|
8 |
Author URI: https://matlipe.com
|
9 |
Text Domain: advanced-sidebar-menu
|
10 |
*/
|
11 |
|
12 |
-
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '5.1.
|
13 |
|
14 |
|
15 |
#-- Define Constants
|
4 |
Plugin URI: https://matlipe.com/advanced-sidebar-menu/
|
5 |
Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
Author: Mat Lipe
|
7 |
+
Version: 5.1.3
|
8 |
Author URI: https://matlipe.com
|
9 |
Text Domain: advanced-sidebar-menu
|
10 |
*/
|
11 |
|
12 |
+
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '5.1.3' );
|
13 |
|
14 |
|
15 |
#-- Define Constants
|
classes/Advanced_Sidebar_Menu_Deprecated.php
CHANGED
@@ -53,7 +53,7 @@ class Advanced_Sidebar_Menu_Deprecated {
|
|
53 |
}
|
54 |
|
55 |
//Get the children of this page
|
56 |
-
$grandkids = $this->page_children( $pID
|
57 |
if( $grandkids ){
|
58 |
#-- Create a new menu with all the children under it
|
59 |
$content .= '<ul class="grandchild-sidebar-menu">';
|
53 |
}
|
54 |
|
55 |
//Get the children of this page
|
56 |
+
$grandkids = $this->page_children( $pID );
|
57 |
if( $grandkids ){
|
58 |
#-- Create a new menu with all the children under it
|
59 |
$content .= '<ul class="grandchild-sidebar-menu">';
|
legacy/page_list.php
CHANGED
@@ -38,20 +38,20 @@ if( $child_pages ){
|
|
38 |
foreach($child_pages as $pID){
|
39 |
|
40 |
#-- If the page is not in the excluded ones
|
41 |
-
if( $asm->is_excluded( $pID
|
42 |
#--echo the current page from the $result
|
43 |
-
wp_list_pages("post_type=".$asm->post_type."&sort_column=$asm->order_by&title_li=&echo=1&depth=1&include=".$pID
|
44 |
}
|
45 |
|
46 |
#-- if the link that was just listed is the current page we are on
|
47 |
if( $asm->page_ancestor( $pID ) ){
|
48 |
|
49 |
//Get the children of this page
|
50 |
-
$grandkids = $asm->page_children($pID
|
51 |
if( $grandkids ){
|
52 |
#-- Create a new menu with all the children under it
|
53 |
echo '<ul class="grandchild-sidebar-menu">';
|
54 |
-
wp_list_pages("post_type=".$asm->post_type."&sort_column=$asm->order_by&title_li=&echo=1&exclude=".$instance['exclude']."&child_of=".$pID
|
55 |
|
56 |
echo '</ul>';
|
57 |
}
|
38 |
foreach($child_pages as $pID){
|
39 |
|
40 |
#-- If the page is not in the excluded ones
|
41 |
+
if( $asm->is_excluded( $pID ) ){
|
42 |
#--echo the current page from the $result
|
43 |
+
wp_list_pages("post_type=".$asm->post_type."&sort_column=$asm->order_by&title_li=&echo=1&depth=1&include=".$pID);
|
44 |
}
|
45 |
|
46 |
#-- if the link that was just listed is the current page we are on
|
47 |
if( $asm->page_ancestor( $pID ) ){
|
48 |
|
49 |
//Get the children of this page
|
50 |
+
$grandkids = $asm->page_children($pID);
|
51 |
if( $grandkids ){
|
52 |
#-- Create a new menu with all the children under it
|
53 |
echo '<ul class="grandchild-sidebar-menu">';
|
54 |
+
wp_list_pages("post_type=".$asm->post_type."&sort_column=$asm->order_by&title_li=&echo=1&exclude=".$instance['exclude']."&child_of=".$pID);
|
55 |
|
56 |
echo '</ul>';
|
57 |
}
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypa
|
|
5 |
Tags: menus, sidebar menu, hierarchy, category menu, pages menu
|
6 |
Requires at least: 4.2.0
|
7 |
Tested up to: 4.4.2
|
8 |
-
Stable tag: 5.1.
|
9 |
|
10 |
== Description ==
|
11 |
|
5 |
Tags: menus, sidebar menu, hierarchy, category menu, pages menu
|
6 |
Requires at least: 4.2.0
|
7 |
Tested up to: 4.4.2
|
8 |
+
Stable tag: 5.1.3
|
9 |
|
10 |
== Description ==
|
11 |
|
widgets/page.widget.php
CHANGED
@@ -236,8 +236,6 @@ class advanced_sidebar_menu_page extends WP_Widget {
|
|
236 |
$asm->order_by = $order_by = apply_filters_ref_array( 'advanced_sidebar_menu_order_by', $filter_args );
|
237 |
|
238 |
$child_pages = $this->get_child_pages( $asm, $filter_args );
|
239 |
-
//backward compatibility
|
240 |
-
$result = $child_pages;
|
241 |
|
242 |
#---- if there are no children do not display the parent unless it is check to do so
|
243 |
if( ( !empty( $child_pages ) ) || $asm->checked( 'include_childless_parent' ) && ( !in_array( $top_parent, $asm->exclude ) ) ){
|
236 |
$asm->order_by = $order_by = apply_filters_ref_array( 'advanced_sidebar_menu_order_by', $filter_args );
|
237 |
|
238 |
$child_pages = $this->get_child_pages( $asm, $filter_args );
|
|
|
|
|
239 |
|
240 |
#---- if there are no children do not display the parent unless it is check to do so
|
241 |
if( ( !empty( $child_pages ) ) || $asm->checked( 'include_childless_parent' ) && ( !in_array( $top_parent, $asm->exclude ) ) ){
|