Version Description
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 3.4.6 |
Comparing to | |
See all releases |
Code changes from version 3.4.5 to 3.4.6
- advanced-sidebar-menu.php +2 -2
- functions.php +4 -4
- readme.txt +5 -2
advanced-sidebar-menu.php
CHANGED
@@ -4,9 +4,9 @@ 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.
|
8 |
Author URI: http://lipeimagination.info
|
9 |
-
Since: 10.
|
10 |
Email: mat@lipeimagination.info
|
11 |
*/
|
12 |
|
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
|
11 |
*/
|
12 |
|
functions.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
/**
|
5 |
* These Functions are Specific to the Advanced Sidebar Menu
|
6 |
* @author Mat Lipe
|
7 |
-
* @since 10.
|
8 |
*/
|
9 |
|
10 |
|
@@ -121,11 +121,11 @@ function notice_3_3( ){
|
|
121 |
/**
|
122 |
* If the cat is a second level cat
|
123 |
* @param obj $cat the cat
|
124 |
-
* @since
|
125 |
*/
|
126 |
-
function second_level_cat( $
|
127 |
//if this is the currrent cat or a parent of the current cat
|
128 |
-
if( $
|
129 |
$all_children = array();
|
130 |
$all_children = get_categories( array( 'child_of' => $child_cat->cat_ID ) );
|
131 |
if( !empty( $all_children ) ){
|
4 |
/**
|
5 |
* These Functions are Specific to the Advanced Sidebar Menu
|
6 |
* @author Mat Lipe
|
7 |
+
* @since 10.12.12
|
8 |
*/
|
9 |
|
10 |
|
121 |
/**
|
122 |
* If the cat is a second level cat
|
123 |
* @param obj $cat the cat
|
124 |
+
* @since 10.12.12
|
125 |
*/
|
126 |
+
function second_level_cat( $child_cat ){
|
127 |
//if this is the currrent cat or a parent of the current cat
|
128 |
+
if( $child_cat->cat_ID == get_query_var('cat' ) || in_array( $child_cat->cat_ID, $this->ancestors )){
|
129 |
$all_children = array();
|
130 |
$all_children = get_categories( array( 'child_of' => $child_cat->cat_ID ) );
|
131 |
if( !empty( $all_children ) ){
|
readme.txt
CHANGED
@@ -4,8 +4,11 @@ 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.
|
8 |
-
|
|
|
|
|
|
|
9 |
|
10 |
== Description ==
|
11 |
|
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 |
|