Version Description
- Fix widget info pane links.
- Fix widget editing on mobile devices.
- Tested up to PHP 7.4
- Tested up to WordPress Core version 5.4.1
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 7.7.3 |
Comparing to | |
See all releases |
Code changes from version 7.7.2 to 7.7.3
- advanced-sidebar-menu.php +21 -2
- readme.txt +8 -27
- resources/css/advanced-sidebar-menu.css +4 -0
- src/Widget/Category.php +9 -4
- src/Widget/Page.php +8 -6
advanced-sidebar-menu.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
|
5 |
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
* Author: OnPoint Plugins
|
7 |
-
* Version: 7.7.
|
8 |
* Author URI: https://onpointplugins.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
*
|
@@ -17,7 +17,7 @@ if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
|
|
17 |
return;
|
18 |
}
|
19 |
|
20 |
-
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.7.
|
21 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
|
22 |
define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
|
23 |
|
@@ -90,6 +90,25 @@ function advanced_sidebar_menu_translate() {
|
|
90 |
|
91 |
add_action( 'advanced-sidebar-menu/widget/category/right-column', 'advanced_sidebar_menu_upgrade_notice', 1, 2 );
|
92 |
add_action( 'advanced-sidebar-menu/widget/page/right-column', 'advanced_sidebar_menu_upgrade_notice', 1, 2 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
/**
|
95 |
* Legacy method now deprecated.
|
4 |
* Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
|
5 |
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
|
6 |
* Author: OnPoint Plugins
|
7 |
+
* Version: 7.7.3
|
8 |
* Author URI: https://onpointplugins.com
|
9 |
* Text Domain: advanced-sidebar-menu
|
10 |
*
|
17 |
return;
|
18 |
}
|
19 |
|
20 |
+
define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.7.3' );
|
21 |
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
|
22 |
define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
|
23 |
|
90 |
|
91 |
add_action( 'advanced-sidebar-menu/widget/category/right-column', 'advanced_sidebar_menu_upgrade_notice', 1, 2 );
|
92 |
add_action( 'advanced-sidebar-menu/widget/page/right-column', 'advanced_sidebar_menu_upgrade_notice', 1, 2 );
|
93 |
+
add_action( 'advanced-sidebar-menu/widget/page/after-form', 'advanced_sidebar_menu_widget_docs', 99, 2 );
|
94 |
+
add_action( 'advanced-sidebar-menu/widget/category/after-form', 'advanced_sidebar_menu_widget_docs', 99, 2 );
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Add a link to widget docs inside the widget.
|
98 |
+
*
|
99 |
+
* @param array $instance - Widget settings.
|
100 |
+
* @param WP_Widget $widget - Current widget.
|
101 |
+
*/
|
102 |
+
function advanced_sidebar_menu_widget_docs( $instance, WP_Widget $widget ) {
|
103 |
+
$anchor = 'advanced_sidebar_menu_category' === $widget->id_base ? 'categories-menu' : 'pages-menu';
|
104 |
+
?>
|
105 |
+
<p style="text-align: right">
|
106 |
+
<a href="https://onpointplugins.com/advanced-sidebar-menu/#advanced-sidebar-<?php echo esc_attr( $anchor ); ?>" target="blank">
|
107 |
+
<?php esc_html_e( 'widget documentation', 'advanced-sidebar-menu' ); ?>
|
108 |
+
</a>
|
109 |
+
</p>
|
110 |
+
<?php
|
111 |
+
}
|
112 |
|
113 |
/**
|
114 |
* Legacy method now deprecated.
|
readme.txt
CHANGED
@@ -4,9 +4,9 @@ Contributors: Mat Lipe, onpointplugins
|
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&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, hierarchy, category menu, pages menu
|
6 |
Requires at least: 4.8.0
|
7 |
-
Tested up to: 5.4.
|
8 |
Requires PHP: 5.6.0
|
9 |
-
Stable tag: 7.7.
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -155,6 +155,12 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
|
|
155 |
|
156 |
|
157 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
= 7.7.2 =
|
159 |
* Tested to 5.3.3.
|
160 |
* Change default "levels to display" to All.
|
@@ -204,31 +210,6 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
|
|
204 |
* Code improvements
|
205 |
* Performance improvements via shared child retrieval
|
206 |
|
207 |
-
= 6.3.0
|
208 |
-
* Improve category class handling for pro version accordion support
|
209 |
-
|
210 |
-
= 6.2.0 =
|
211 |
-
* Improve sorting of categories
|
212 |
-
|
213 |
-
= 6.1.0 =
|
214 |
-
* Improve page list view
|
215 |
-
* Add advanced_sidebar_menu_list_pages_args filter
|
216 |
-
|
217 |
-
= 6.0.0 =
|
218 |
-
* Remove legacy template support
|
219 |
-
* Restructure plugin
|
220 |
-
* Introduce 'advanced_sidebar_menu_template_part' filter
|
221 |
-
|
222 |
-
|
223 |
-
= 5.1.0 =
|
224 |
-
* Convert query over to get_posts() to allow for more extendability
|
225 |
-
* Implement object caching to improve performance for environments using external object caches
|
226 |
-
* Begin modernizing the naming conventions of methods and improving PHPdocs
|
227 |
-
|
228 |
-
= 5.0.0 =
|
229 |
-
* Greatly improved performance
|
230 |
-
* Improved code structure
|
231 |
-
|
232 |
== Upgrade Notice ==
|
233 |
= 7.7.0 =
|
234 |
Update to support PRO version 3.10.0
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypal%40onpointplugins%2ecom&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, hierarchy, category menu, pages menu
|
6 |
Requires at least: 4.8.0
|
7 |
+
Tested up to: 5.4.1
|
8 |
Requires PHP: 5.6.0
|
9 |
+
Stable tag: 7.7.3
|
10 |
|
11 |
== Description ==
|
12 |
|
155 |
|
156 |
|
157 |
== Changelog ==
|
158 |
+
= 7.7.3 =
|
159 |
+
* Fix widget info pane links.
|
160 |
+
* Fix widget editing on mobile devices.
|
161 |
+
* Tested up to PHP 7.4
|
162 |
+
* Tested up to WordPress Core version 5.4.1
|
163 |
+
|
164 |
= 7.7.2 =
|
165 |
* Tested to 5.3.3.
|
166 |
* Change default "levels to display" to All.
|
210 |
* Code improvements
|
211 |
* Performance improvements via shared child retrieval
|
212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
== Upgrade Notice ==
|
214 |
= 7.7.0 =
|
215 |
Update to support PRO version 3.10.0
|
resources/css/advanced-sidebar-menu.css
CHANGED
@@ -24,6 +24,10 @@
|
|
24 |
.advanced-sidebar-menu-column {
|
25 |
width: 100%;
|
26 |
}
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
/** Elementor specific styles **/
|
24 |
.advanced-sidebar-menu-column {
|
25 |
width: 100%;
|
26 |
}
|
27 |
+
|
28 |
+
.advanced-sidebar-menu-column-right {
|
29 |
+
margin-left: 0;
|
30 |
+
}
|
31 |
}
|
32 |
|
33 |
/** Elementor specific styles **/
|
src/Widget/Category.php
CHANGED
@@ -37,13 +37,17 @@ class Advanced_Sidebar_Menu_Widget_Category extends Advanced_Sidebar_Menu__Widge
|
|
37 |
|
38 |
protected static $hooked = false;
|
39 |
|
40 |
-
|
|
|
|
|
41 |
public function __construct() {
|
42 |
-
$widget_ops
|
43 |
'classname' => 'advanced-sidebar-menu advanced-sidebar-category',
|
44 |
'description' => __( 'Creates a menu of all the categories using the child/parent relationship', 'advanced-sidebar-menu' ),
|
45 |
-
|
46 |
-
$control_ops =
|
|
|
|
|
47 |
|
48 |
parent::__construct( 'advanced_sidebar_menu_category', __( 'Advanced Sidebar Categories Menu', 'advanced-sidebar-menu' ), $widget_ops, $control_ops );
|
49 |
|
@@ -53,6 +57,7 @@ class Advanced_Sidebar_Menu_Widget_Category extends Advanced_Sidebar_Menu__Widge
|
|
53 |
}
|
54 |
}
|
55 |
|
|
|
56 |
/**
|
57 |
* @notice Anything using the column actions must use the $widget class passed
|
58 |
* via do_action instead of $this
|
37 |
|
38 |
protected static $hooked = false;
|
39 |
|
40 |
+
/**
|
41 |
+
* Register the widget.
|
42 |
+
*/
|
43 |
public function __construct() {
|
44 |
+
$widget_ops = [
|
45 |
'classname' => 'advanced-sidebar-menu advanced-sidebar-category',
|
46 |
'description' => __( 'Creates a menu of all the categories using the child/parent relationship', 'advanced-sidebar-menu' ),
|
47 |
+
];
|
48 |
+
$control_ops = [
|
49 |
+
'width' => wp_is_mobile() ? false : 620,
|
50 |
+
];
|
51 |
|
52 |
parent::__construct( 'advanced_sidebar_menu_category', __( 'Advanced Sidebar Categories Menu', 'advanced-sidebar-menu' ), $widget_ops, $control_ops );
|
53 |
|
57 |
}
|
58 |
}
|
59 |
|
60 |
+
|
61 |
/**
|
62 |
* @notice Anything using the column actions must use the $widget class passed
|
63 |
* via do_action instead of $this
|
src/Widget/Page.php
CHANGED
@@ -33,14 +33,17 @@ class Advanced_Sidebar_Menu_Widget_Page extends Advanced_Sidebar_Menu__Widget__W
|
|
33 |
protected static $hooked = false;
|
34 |
|
35 |
|
|
|
|
|
|
|
36 |
public function __construct() {
|
37 |
-
$widget_ops
|
38 |
'classname' => 'advanced-sidebar-menu',
|
39 |
'description' => __( 'Creates a menu of all the pages using the child/parent relationship', 'advanced-sidebar-menu' ),
|
40 |
-
|
41 |
-
$control_ops =
|
42 |
-
'width' => 620,
|
43 |
-
|
44 |
|
45 |
parent::__construct( 'advanced_sidebar_menu', __( 'Advanced Sidebar Pages Menu', 'advanced-sidebar-menu' ), $widget_ops, $control_ops );
|
46 |
|
@@ -48,7 +51,6 @@ class Advanced_Sidebar_Menu_Widget_Page extends Advanced_Sidebar_Menu__Widget__W
|
|
48 |
self::$hooked = true;
|
49 |
$this->hook();
|
50 |
}
|
51 |
-
|
52 |
}
|
53 |
|
54 |
|
33 |
protected static $hooked = false;
|
34 |
|
35 |
|
36 |
+
/**
|
37 |
+
* Register the widget.
|
38 |
+
*/
|
39 |
public function __construct() {
|
40 |
+
$widget_ops = [
|
41 |
'classname' => 'advanced-sidebar-menu',
|
42 |
'description' => __( 'Creates a menu of all the pages using the child/parent relationship', 'advanced-sidebar-menu' ),
|
43 |
+
];
|
44 |
+
$control_ops = [
|
45 |
+
'width' => wp_is_mobile() ? false : 620,
|
46 |
+
];
|
47 |
|
48 |
parent::__construct( 'advanced_sidebar_menu', __( 'Advanced Sidebar Pages Menu', 'advanced-sidebar-menu' ), $widget_ops, $control_ops );
|
49 |
|
51 |
self::$hooked = true;
|
52 |
$this->hook();
|
53 |
}
|
|
|
54 |
}
|
55 |
|
56 |
|