Advanced Sidebar Menu - Version 8.3.3

Version Description

  • Introduce data-level on all menu levels for specific targeting.
  • Minimum required version for PRO 8.4.0.
  • Tested to WordPress 5.7.2.
Download this release

Release Info

Developer Mat Lipe
Plugin Icon 128x128 Advanced Sidebar Menu
Version 8.3.3
Comparing to
See all releases

Code changes from version 8.3.2 to 8.3.3

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: 8.3.2
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  * Domain Path: /languages/
@@ -19,7 +19,7 @@ if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
19
  return;
20
  }
21
 
22
- define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '8.3.2' );
23
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.2.0' );
24
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
25
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
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: 8.3.3
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  * Domain Path: /languages/
19
  return;
20
  }
21
 
22
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '8.3.3' );
23
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.2.0' );
24
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
25
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
readme.txt CHANGED
@@ -6,7 +6,7 @@ Tags: menus, sidebar menu, hierarchy, category menu, pages menu, dynamic
6
  Requires at least: 5.2.0
7
  Tested up to: 5.7.2
8
  Requires PHP: 5.6.0
9
- Stable tag: 8.3.2
10
 
11
  == Description ==
12
 
@@ -155,6 +155,11 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
155
 
156
 
157
  == Changelog ==
 
 
 
 
 
158
  = 8.3.2 =
159
  * Fully compatible with PHP8.
160
  * Tested to WordPress 5.7.1.
@@ -241,6 +246,9 @@ Major version update. See <a href="https://onpointplugins.com/advanced-sidebar-m
241
  * Bump required PHP version to 5.4.4.
242
 
243
  == Upgrade Notice ==
 
 
 
244
  = 8.2.0 =
245
  Update to support PRO version 8.2.0
246
 
6
  Requires at least: 5.2.0
7
  Tested up to: 5.7.2
8
  Requires PHP: 5.6.0
9
+ Stable tag: 8.3.3
10
 
11
  == Description ==
12
 
155
 
156
 
157
  == Changelog ==
158
+ = 8.3.3 =
159
+ * Introduce `data-level` on all menu levels for specific targeting.
160
+ * Minimum required version for PRO 8.4.0.
161
+ * Tested to WordPress 5.7.2.
162
+
163
  = 8.3.2 =
164
  * Fully compatible with PHP8.
165
  * Tested to WordPress 5.7.1.
246
  * Bump required PHP version to 5.4.4.
247
 
248
  == Upgrade Notice ==
249
+ = 8.3.3 =
250
+ Update to support PRO version 8.4.0.
251
+
252
  = 8.2.0 =
253
  Update to support PRO version 8.2.0
254
 
src/List_Pages.php CHANGED
@@ -270,7 +270,7 @@ class List_Pages {
270
  return '';
271
  }
272
 
273
- $content = sprintf( '<ul class="grandchild-sidebar-menu level-%s children">', $level );
274
 
275
  $inside = '';
276
  foreach ( $pages as $page ) {
270
  return '';
271
  }
272
 
273
+ $content = sprintf( '<ul class="grandchild-sidebar-menu level-%s children" data-level="%s">', $level, $level + 2 );
274
 
275
  $inside = '';
276
  foreach ( $pages as $page ) {
views/page_list.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * The output of the "Advanced Sidebar Pages Menu" widget
4
  *
5
- * @since 8.0.0
6
  *
7
  * To edit copy this file to a folder in your theme called 'advanced-sidebar-menu' and edit at will.
8
  *
@@ -23,13 +23,13 @@ $current_menu->title();
23
 
24
  // Display parent page.
25
  if ( $current_menu->include_parent() ) {
26
- $content .= '<ul class="parent-sidebar-menu" >';
27
  $list_args = $list_pages->get_args( Page::LEVEL_PARENT );
28
  $content .= wp_list_pages( $list_args );
29
  }
30
 
31
  if ( ! empty( $child_pages ) ) {
32
- $content .= '<ul class="child-sidebar-menu">';
33
  // Child and grandchild pages.
34
  $content .= $list_pages->list_pages();
35
  $content .= '</ul><!-- End .child-sidebar-menu -->';
2
  /**
3
  * The output of the "Advanced Sidebar Pages Menu" widget
4
  *
5
+ * @since 8.3.3
6
  *
7
  * To edit copy this file to a folder in your theme called 'advanced-sidebar-menu' and edit at will.
8
  *
23
 
24
  // Display parent page.
25
  if ( $current_menu->include_parent() ) {
26
+ $content .= '<ul class="parent-sidebar-menu" data-level="0">';
27
  $list_args = $list_pages->get_args( Page::LEVEL_PARENT );
28
  $content .= wp_list_pages( $list_args );
29
  }
30
 
31
  if ( ! empty( $child_pages ) ) {
32
+ $content .= '<ul class="child-sidebar-menu" data-level="1">';
33
  // Child and grandchild pages.
34
  $content .= $list_pages->list_pages();
35
  $content .= '</ul><!-- End .child-sidebar-menu -->';