Version Description
- Added support for Pro Version
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 4.6.0 |
Comparing to | |
See all releases |
Code changes from version 4.5.0 to 4.6.0
- advanced-sidebar-menu.php +24 -2
- readme.txt +17 -3
- widgets/category.widget.php +8 -4
- widgets/page.widget.php +10 -5
advanced-sidebar-menu.php
CHANGED
@@ -4,11 +4,14 @@ 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.
|
8 |
Author URI: http://matlipe.com
|
9 |
-
Since: 9.
|
10 |
*/
|
11 |
|
|
|
|
|
|
|
12 |
|
13 |
#-- Define Constants
|
14 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path(__FILE__) );
|
@@ -35,3 +38,22 @@ function advanced_sidebar_menu_script() {
|
|
35 |
'4.4.0'
|
36 |
);
|
37 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.6.0
|
8 |
Author URI: http://matlipe.com
|
9 |
+
Since: 11.9.13
|
10 |
*/
|
11 |
|
12 |
+
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '4.6' );
|
13 |
+
|
14 |
+
|
15 |
|
16 |
#-- Define Constants
|
17 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path(__FILE__) );
|
38 |
'4.4.0'
|
39 |
);
|
40 |
};
|
41 |
+
|
42 |
+
|
43 |
+
#-- Let know about new Pro Version
|
44 |
+
add_action( 'advanced_sidebar_menu_after_widget_form', 'advanced_sidebar_menu_pro_notice' );
|
45 |
+
function advanced_sidebar_menu_pro_notice(){
|
46 |
+
if( defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) return;
|
47 |
+
?>
|
48 |
+
<fieldset style="border: 1px solid black; border-radius: 10px; padding: 10px;">
|
49 |
+
<legend style="font-size: 14px; font-weight: bold;">Want More Options?</legend>
|
50 |
+
<p>
|
51 |
+
<strong><big><a target="blank" href="http://matlipe.com/product/advanced-sidebar-menu-pro/">Go Pro!</a></big></strong>
|
52 |
+
<p>
|
53 |
+
</fieldset>
|
54 |
+
<?php
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
|
59 |
+
|
readme.txt
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
-
===
|
|
|
2 |
Contributors: Mat Lipe
|
3 |
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¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest
|
4 |
Tags: menus, sidebar menu, heirchy, category menu, pages menu
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 4.
|
8 |
|
9 |
Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
|
10 |
|
@@ -14,6 +15,11 @@ Creates a widget for both page and categories that will display the current page
|
|
14 |
Creates a widget for both page and categories that will display the current page/category and an child pages or categories.
|
15 |
Keeps the menu clean and usable.
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
Includes Page options:
|
18 |
<ol>
|
19 |
<li>Add a title to the widget</li>
|
@@ -43,6 +49,8 @@ Templates may be overridden for customization of outputs and/or css.
|
|
43 |
|
44 |
Many built in filters for altering the way the widgets function.
|
45 |
|
|
|
|
|
46 |
|
47 |
|
48 |
== Installation ==
|
@@ -64,6 +72,9 @@ e.g.
|
|
64 |
|
65 |
== Frequently Asked Questions ==
|
66 |
|
|
|
|
|
|
|
67 |
= Version 4.0+ is not displaying the same as previous version of the plugin. How do I bring this back? =
|
68 |
|
69 |
You will find a checkbox in the widget options for Legacy Mode.
|
@@ -113,6 +124,9 @@ I do offer preminum services for buiding custom add-ons for additional functiona
|
|
113 |
|
114 |
|
115 |
== Changelog ==
|
|
|
|
|
|
|
116 |
= 4.5.0 =
|
117 |
* Improved filter structure to allow for add-ons to work more effectively
|
118 |
|
1 |
+
=== Advanced Sidebar Menu ===
|
2 |
+
|
3 |
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¤cy_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.7.1
|
8 |
+
Stable tag: 4.6.0
|
9 |
|
10 |
Creates a widget for both page and categories that will display the current page/category and all child pages or categories.
|
11 |
|
15 |
Creates a widget for both page and categories that will display the current page/category and an child pages or categories.
|
16 |
Keeps the menu clean and usable.
|
17 |
|
18 |
+
<h5>Want More Options?</h5>
|
19 |
+
|
20 |
+
<strong><big><a href="http://matlipe.com/product/advanced-sidebar-menu-pro/">Go Pro!</a></big></strong>
|
21 |
+
|
22 |
+
|
23 |
Includes Page options:
|
24 |
<ol>
|
25 |
<li>Add a title to the widget</li>
|
49 |
|
50 |
Many built in filters for altering the way the widgets function.
|
51 |
|
52 |
+
Developer Docs may be found here
|
53 |
+
<a href="http://matlipe.com/advanced-sidebar-menu/developer-docs/">http://matlipe.com/advanced-sidebar-menu/developer-docs/</a>
|
54 |
|
55 |
|
56 |
== Installation ==
|
72 |
|
73 |
== Frequently Asked Questions ==
|
74 |
|
75 |
+
Developer docs may be found here:
|
76 |
+
<a href="http://matlipe.com/advanced-sidebar-menu/developer-docs/">http://matlipe.com/advanced-sidebar-menu/developer-docs/</a>
|
77 |
+
|
78 |
= Version 4.0+ is not displaying the same as previous version of the plugin. How do I bring this back? =
|
79 |
|
80 |
You will find a checkbox in the widget options for Legacy Mode.
|
124 |
|
125 |
|
126 |
== Changelog ==
|
127 |
+
= 4.6.0 =
|
128 |
+
* Added support for Pro Version
|
129 |
+
|
130 |
= 4.5.0 =
|
131 |
* Improved filter structure to allow for add-ons to work more effectively
|
132 |
|
widgets/category.widget.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Creates a Widget of parent Child Categories
|
6 |
*
|
7 |
* @author mat lipe
|
8 |
-
* @since
|
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
|
53 |
*
|
54 |
* @param array $instance
|
55 |
*
|
@@ -141,7 +141,9 @@ class advanced_sidebar_menu_category extends WP_Widget {
|
|
141 |
echo '</select></p></span>';
|
142 |
|
143 |
|
144 |
-
do_action('advanced_sidebar_menu_category_widget_form', $instance );
|
|
|
|
|
145 |
|
146 |
}
|
147 |
|
@@ -167,7 +169,7 @@ class advanced_sidebar_menu_category extends WP_Widget {
|
|
167 |
/**
|
168 |
* Outputs the categories widget to the page
|
169 |
*
|
170 |
-
* @since
|
171 |
* @uses loads the views/category_list.php
|
172 |
*
|
173 |
* @filters apply_filters('advanced_sidebar_menu_category_widget_output', $content, $args, $instance );
|
@@ -199,6 +201,8 @@ class advanced_sidebar_menu_category extends WP_Widget {
|
|
199 |
$asm = new advancedSidebarMenu;
|
200 |
$asm->instance = $instance;
|
201 |
$asm->args = $args;
|
|
|
|
|
202 |
|
203 |
$legacy = $asm->checked('legacy_mode');
|
204 |
|
5 |
* Creates a Widget of parent Child Categories
|
6 |
*
|
7 |
* @author mat lipe
|
8 |
+
* @since 11.4.13
|
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 11.4.13
|
53 |
*
|
54 |
* @param array $instance
|
55 |
*
|
141 |
echo '</select></p></span>';
|
142 |
|
143 |
|
144 |
+
do_action('advanced_sidebar_menu_category_widget_form', $instance, $this );
|
145 |
+
|
146 |
+
do_action('advanced_sidebar_menu_after_widget_form', $instance, $this );
|
147 |
|
148 |
}
|
149 |
|
169 |
/**
|
170 |
* Outputs the categories widget to the page
|
171 |
*
|
172 |
+
* @since 11.4.13
|
173 |
* @uses loads the views/category_list.php
|
174 |
*
|
175 |
* @filters apply_filters('advanced_sidebar_menu_category_widget_output', $content, $args, $instance );
|
201 |
$asm = new advancedSidebarMenu;
|
202 |
$asm->instance = $instance;
|
203 |
$asm->args = $args;
|
204 |
+
|
205 |
+
do_action( 'advanced_sidebar_menu_widget_pre_render', $asm, $this );
|
206 |
|
207 |
$legacy = $asm->checked('legacy_mode');
|
208 |
|
widgets/page.widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Creates a Widget of parent Child Pages
|
4 |
*
|
5 |
* @author mat lipe
|
6 |
-
* @since
|
7 |
* @package Advanced Sidebar Menu
|
8 |
*
|
9 |
*/
|
@@ -46,7 +46,7 @@ class advanced_sidebar_menu_page extends WP_Widget {
|
|
46 |
*
|
47 |
* @filters do_action('advanced_sidebar_menu_page_widget_form', $instance, $this->get_field_name('parent_only'), $this->get_field_id('parent_only'));
|
48 |
*
|
49 |
-
* @since
|
50 |
*/
|
51 |
function form( $instance ) {
|
52 |
|
@@ -120,7 +120,10 @@ class advanced_sidebar_menu_page extends WP_Widget {
|
|
120 |
echo '</select></p></span>';
|
121 |
|
122 |
|
123 |
-
do_action('advanced_sidebar_menu_page_widget_form', $instance, $this->get_field_name('parent_only'), $this->get_field_id('parent_only') );
|
|
|
|
|
|
|
124 |
|
125 |
|
126 |
}
|
@@ -158,17 +161,19 @@ class advanced_sidebar_menu_page extends WP_Widget {
|
|
158 |
* apply_filters('advanced_sidebar_menu_post_type', 'page', $args, $instance );
|
159 |
*
|
160 |
*
|
161 |
-
* @since
|
162 |
*
|
163 |
* @see Geansai - pointed out a notice level error. Thanks Geansai!!
|
164 |
*/
|
165 |
function widget($args, $instance) {
|
166 |
global $wpdb, $post, $table_prefix;
|
167 |
-
|
168 |
$asm = new advancedSidebarMenu();
|
169 |
|
170 |
$asm->instance = $instance;
|
171 |
$asm->args = $args;
|
|
|
|
|
172 |
|
173 |
//The excluded pages
|
174 |
$exclude = apply_filters( 'advanced_sidebar_menu_excluded_pages', explode(',', $instance['exclude']), $post, $args, $instance, $asm );
|
3 |
* Creates a Widget of parent Child Pages
|
4 |
*
|
5 |
* @author mat lipe
|
6 |
+
* @since 11.4.13
|
7 |
* @package Advanced Sidebar Menu
|
8 |
*
|
9 |
*/
|
46 |
*
|
47 |
* @filters do_action('advanced_sidebar_menu_page_widget_form', $instance, $this->get_field_name('parent_only'), $this->get_field_id('parent_only'));
|
48 |
*
|
49 |
+
* @since 11.4.13
|
50 |
*/
|
51 |
function form( $instance ) {
|
52 |
|
120 |
echo '</select></p></span>';
|
121 |
|
122 |
|
123 |
+
do_action('advanced_sidebar_menu_page_widget_form', $instance, $this->get_field_name('parent_only'), $this->get_field_id('parent_only'), $this );
|
124 |
+
|
125 |
+
|
126 |
+
do_action('advanced_sidebar_menu_after_widget_form', $instance, $this );
|
127 |
|
128 |
|
129 |
}
|
161 |
* apply_filters('advanced_sidebar_menu_post_type', 'page', $args, $instance );
|
162 |
*
|
163 |
*
|
164 |
+
* @since 11.4.13
|
165 |
*
|
166 |
* @see Geansai - pointed out a notice level error. Thanks Geansai!!
|
167 |
*/
|
168 |
function widget($args, $instance) {
|
169 |
global $wpdb, $post, $table_prefix;
|
170 |
+
|
171 |
$asm = new advancedSidebarMenu();
|
172 |
|
173 |
$asm->instance = $instance;
|
174 |
$asm->args = $args;
|
175 |
+
|
176 |
+
do_action( 'advanced_sidebar_menu_widget_pre_render', $asm, $this );
|
177 |
|
178 |
//The excluded pages
|
179 |
$exclude = apply_filters( 'advanced_sidebar_menu_excluded_pages', explode(',', $instance['exclude']), $post, $args, $instance, $asm );
|