Version Description
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- advanced-sidebar-menu.php +1 -1
- lib/advancedSidebarMenu.php +7 -3
- readme.txt +14 -7
- widgets/page.widget.php +1 -1
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: 4.2.
|
8 |
Author URI: http://lipeimagination.info
|
9 |
Since: 5.28.13
|
10 |
*/
|
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: 4.2.2
|
8 |
Author URI: http://lipeimagination.info
|
9 |
Since: 5.28.13
|
10 |
*/
|
lib/advancedSidebarMenu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
/**
|
5 |
* These Functions are Specific to the Advanced Sidebar Menu
|
6 |
* @author Mat Lipe
|
7 |
-
* @since 5.
|
8 |
*
|
9 |
* @package Advanced Sidebar Menu
|
10 |
*/
|
@@ -276,14 +276,18 @@ class advancedSidebarMenu{
|
|
276 |
|
277 |
/**
|
278 |
* Echos the title of the widget to the page
|
279 |
-
* @since 5.
|
280 |
*/
|
281 |
function title(){
|
282 |
if( $this->instance['title'] != '' ){
|
283 |
$title = apply_filters('widget_title', $this->instance['title'], $this->args, $this->instance );
|
284 |
$title = apply_filters('advanced_sidebar_menu_widget_title', $title, $this->args, $this->instance, $this );
|
285 |
|
286 |
-
|
|
|
|
|
|
|
|
|
287 |
}
|
288 |
|
289 |
}
|
4 |
/**
|
5 |
* These Functions are Specific to the Advanced Sidebar Menu
|
6 |
* @author Mat Lipe
|
7 |
+
* @since 5.31.13
|
8 |
*
|
9 |
* @package Advanced Sidebar Menu
|
10 |
*/
|
276 |
|
277 |
/**
|
278 |
* Echos the title of the widget to the page
|
279 |
+
* @since 5.31.13
|
280 |
*/
|
281 |
function title(){
|
282 |
if( $this->instance['title'] != '' ){
|
283 |
$title = apply_filters('widget_title', $this->instance['title'], $this->args, $this->instance );
|
284 |
$title = apply_filters('advanced_sidebar_menu_widget_title', $title, $this->args, $this->instance, $this );
|
285 |
|
286 |
+
if( $this->checked('legacy_mode') ){
|
287 |
+
echo '<h4 class="widgettitle">' . $title . '</h4>';
|
288 |
+
} else {
|
289 |
+
echo $this->args['before_title'] . $title . $this->args['after_title'];
|
290 |
+
}
|
291 |
}
|
292 |
|
293 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.5.1
|
7 |
-
Stable tag: 4.2.
|
8 |
|
9 |
Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
|
10 |
|
@@ -63,19 +63,26 @@ e.g.
|
|
63 |
|
64 |
== Frequently Asked Questions ==
|
65 |
|
66 |
-
= Version 4.0 is not displaying
|
67 |
|
68 |
You will find a checkbox in the widget options for Legacy Mode.
|
69 |
|
70 |
-
= How do I
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
77 |
</code>
|
78 |
|
|
|
79 |
= How do you get the categories to display on single post pages? =
|
80 |
|
81 |
There is a checkbox in the widget options as of version 3.2 that will display the same structure for the categories the post is in.
|
4 |
Tags: menus, sidebar menu, heirchy, category menu, pages menu
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.5.1
|
7 |
+
Stable tag: 4.2.2
|
8 |
|
9 |
Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
|
10 |
|
63 |
|
64 |
== Frequently Asked Questions ==
|
65 |
|
66 |
+
= Version 4.0+ is not displaying the same as previous version of the plugin. How do I bring this back? =
|
67 |
|
68 |
You will find a checkbox in the widget options for Legacy Mode.
|
69 |
|
70 |
+
= How do I change the styling of the current page? =
|
71 |
|
72 |
+
You may add css to your theme's style.css to change the way the menu looks
|
73 |
+
|
74 |
+
For Instance This would remove the dot and change the color
|
75 |
+
<code>
|
76 |
+
.advanced-sidebar-menu li.current_page_item a {
|
77 |
+
color: black;
|
78 |
+
}
|
79 |
+
|
80 |
+
.advanced-sidebar-menu li.current_page_item {
|
81 |
+
list-style-type: none !important;
|
82 |
}
|
83 |
</code>
|
84 |
|
85 |
+
|
86 |
= How do you get the categories to display on single post pages? =
|
87 |
|
88 |
There is a checkbox in the widget options as of version 3.2 that will display the same structure for the categories the post is in.
|
widgets/page.widget.php
CHANGED
@@ -204,7 +204,7 @@ class advanced_sidebar_menu_page extends WP_Widget {
|
|
204 |
#---- if there are no children do not display the parent unless it is check to do so
|
205 |
if( (!empty($child_pages)) || $asm->checked('include_childless_parent') && (!in_array($top_parent, $exclude) ) ){
|
206 |
|
207 |
-
$legacy = $asm->checked('legacy_mode'
|
208 |
|
209 |
if( $asm->checked('css') ){
|
210 |
echo '<style type="text/css">';
|
204 |
#---- if there are no children do not display the parent unless it is check to do so
|
205 |
if( (!empty($child_pages)) || $asm->checked('include_childless_parent') && (!in_array($top_parent, $exclude) ) ){
|
206 |
|
207 |
+
$legacy = $asm->checked('legacy_mode');
|
208 |
|
209 |
if( $asm->checked('css') ){
|
210 |
echo '<style type="text/css">';
|