Advanced Sidebar Menu - Version 7.7.1

Version Description

  • Tested to 5.3.3.
  • Change default "levels to display" to All.
Download this release

Release Info

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

Code changes from version 7.7.0 to 7.7.1

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.0
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.0' );
21
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
22
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
23
 
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.1
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.1' );
21
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
22
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
23
 
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&currency_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.3.0
8
  Requires PHP: 5.6.0
9
- Stable tag: 7.7.0
10
 
11
  == Description ==
12
 
@@ -73,12 +73,12 @@ Keeps the menu clean and usable. Only related items display so you don't have to
73
  * Optionally display child page siblings when on a child page. With our without grandchildren available. .
74
  * Ability to display the widgets everywhere the sidebar displays.
75
  * Ability to select the parent page/category when using the display widget everywhere option.
76
- * Ability to display assigned posts or custom post types under categories. **NEW**
77
  * Ability to select which levels of categories assigned posts should display under. **NEW**
78
  * Ability to limit the number of posts or custom post types to display under categories.
79
  * Support for custom navigation menus from Appearance -> Menus.
80
- * Ability to display the current Navigation Menu's items parents and children only.
81
- * Optionally display the top level Navigation Menu's items when there are no child items or not viewing a menu item. **NEW**
82
  * Access to members only support area.
83
 
84
  <h4>Currently ships with the following languages</h4>
@@ -155,6 +155,10 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
155
 
156
 
157
  == Changelog ==
 
 
 
 
158
  = 7.7.0 =
159
  * Enable accordion previews when editing via Beaver Builder.
160
  * Greatly improve widget styles and UI when using Elementor.
@@ -224,31 +228,6 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
224
  * Greatly improved performance
225
  * Improved code structure
226
 
227
- = 4.7.0 =
228
- * Added Internationalization (I18n) support
229
-
230
- = 4.6.0 =
231
- * Added support for Pro Version
232
-
233
- = 4.5.0 =
234
- * Improved filter structure to allow for add-ons to work more effectively
235
-
236
-
237
- = 4.4.0 =
238
- * Added a has_children class to page links with hidden children
239
-
240
- = 4.3.0 =
241
- * Added many filters into the category widget for things like taxonomies, parent category, display on override, order by, and much more. There is no UI support for any of this yet, but developers may now tap into this.
242
-
243
- = 4.2.0 =
244
- * Added Order By Selection in Page Widget
245
-
246
- = 4.0.0 =
247
- * Added support for an unlimited number of page levels
248
- * Change structure slightly for future enhancements
249
- * Added Legacy Mode for backwards compatibility
250
-
251
-
252
  == Upgrade Notice ==
253
  = 7.7.0 =
254
  Update to support PRO version 3.10.0
@@ -256,30 +235,3 @@ Update to support PRO version 3.10.0
256
  = 7.6.6 =
257
  Update to support PRO version 3.9.3
258
 
259
- = 7.5.0 =
260
- Update to support PRO version 3.6.0
261
-
262
- = 7.4.7 =
263
- Update to support PRO version 3.5.0
264
-
265
- = 7.4.2 =
266
- Update to support PRO version 3.4.3
267
-
268
- = 7.4.0 =
269
- Update to support PRO version 3.4.0
270
-
271
- = 7.2.2 =
272
- Update to support PRO version 3.2.0
273
-
274
- = 7.1.2 =
275
- Update to support PRO version 3.1.0
276
-
277
- = 7.0.0 =
278
- The templates have been improved drastically. While the old version 6 templates will work for now they have been deprecated and will one day stop working. If you are using custom templates please being converting them to the new structure.
279
-
280
- = 6.0.0 =
281
- If you are using the Pro version of this plugin be sure to update to Pro version 1.4.4 to keep all functionality intact with this version.
282
-
283
- = 5.0.0 =
284
- If you used a custom page_list.php template previously you may want to redo it on this version to take advantage of the new structure.
285
-
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&currency_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.3.3
8
  Requires PHP: 5.6.0
9
+ Stable tag: 7.7.1
10
 
11
  == Description ==
12
 
73
  * Optionally display child page siblings when on a child page. With our without grandchildren available. .
74
  * Ability to display the widgets everywhere the sidebar displays.
75
  * Ability to select the parent page/category when using the display widget everywhere option.
76
+ * Ability to display assigned posts or custom post types under categories.
77
  * Ability to select which levels of categories assigned posts should display under. **NEW**
78
  * Ability to limit the number of posts or custom post types to display under categories.
79
  * Support for custom navigation menus from Appearance -> Menus.
80
+ * Ability to display the current Navigation Menu's items parents, siblings and children only.
81
+ * Optionally display the top level Navigation Menu's items when there are no child items or not viewing a menu item.
82
  * Access to members only support area.
83
 
84
  <h4>Currently ships with the following languages</h4>
155
 
156
 
157
  == Changelog ==
158
+ = 7.7.1 =
159
+ * Tested to 5.3.3.
160
+ * Change default "levels to display" to All.
161
+
162
  = 7.7.0 =
163
  * Enable accordion previews when editing via Beaver Builder.
164
  * Greatly improve widget styles and UI when using Elementor.
228
  * Greatly improved performance
229
  * Improved code structure
230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  == Upgrade Notice ==
232
  = 7.7.0 =
233
  Update to support PRO version 3.10.0
235
  = 7.6.6 =
236
  Update to support PRO version 3.9.3
237
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/Menus/Abstract.php CHANGED
@@ -30,13 +30,6 @@ abstract class Advanced_Sidebar_Menu_Menus_Abstract {
30
  */
31
  public $args = array();
32
 
33
- /**
34
- * @deprecated
35
- *
36
- * @var array
37
- */
38
- public $exclude = array();
39
-
40
  /**
41
  * Widget instance
42
  *
@@ -206,7 +199,7 @@ abstract class Advanced_Sidebar_Menu_Menus_Abstract {
206
  /**
207
  * Is this id excluded from this menu?
208
  *
209
- * @param int $id
210
  *
211
  * @return bool
212
  */
30
  */
31
  public $args = array();
32
 
 
 
 
 
 
 
 
33
  /**
34
  * Widget instance
35
  *
199
  /**
200
  * Is this id excluded from this menu?
201
  *
202
+ * @param int $id ID of the object.
203
  *
204
  * @return bool
205
  */
src/Menus/Category.php CHANGED
@@ -54,8 +54,8 @@ class Advanced_Sidebar_Menu_Menus_Category extends Advanced_Sidebar_Menu_Menus_A
54
  /**
55
  * Return the list of args for wp_list_categories()
56
  *
57
- * @param string $level - level of menu so we have full control of updates
58
- * @param WP_Term $term - Term for child and grandchild
59
  *
60
  * @return array
61
  */
@@ -73,7 +73,7 @@ class Advanced_Sidebar_Menu_Menus_Category extends Advanced_Sidebar_Menu_Menus_A
73
  if ( null === $level ) {
74
  return $args;
75
  }
76
- // @todo switch these to constants to be use across basic and pro.
77
  switch ( $level ) {
78
  case self::LEVEL_PARENT:
79
  $args['hide_empty'] = 0;
54
  /**
55
  * Return the list of args for wp_list_categories()
56
  *
57
+ * @param string $level - level of menu so we have full control of updates.
58
+ * @param WP_Term $term - Term for child and grandchild.
59
  *
60
  * @return array
61
  */
73
  if ( null === $level ) {
74
  return $args;
75
  }
76
+
77
  switch ( $level ) {
78
  case self::LEVEL_PARENT:
79
  $args['hide_empty'] = 0;
src/Menus/Page.php CHANGED
@@ -152,14 +152,13 @@ class Advanced_Sidebar_Menu_Menus_Page extends Advanced_Sidebar_Menu_Menus_Abstr
152
  }
153
 
154
 
 
 
 
 
 
155
  public function get_excluded_ids() {
156
- $excluded = parent::get_excluded_ids();
157
- if ( ! empty( $this->exclude ) ) {
158
- //backward compatibility for PRO version
159
- $excluded = array_merge( $excluded, $this->exclude );
160
- }
161
-
162
- return apply_filters( 'advanced_sidebar_menu_excluded_pages', $excluded, $this->get_current_post(), $this->args, $this->instance, $this );
163
  }
164
 
165
 
152
  }
153
 
154
 
155
+ /**
156
+ * Get ids of any pages excluded via widget settings.
157
+ *
158
+ * @return array|mixed
159
+ */
160
  public function get_excluded_ids() {
161
+ return apply_filters( 'advanced_sidebar_menu_excluded_pages', parent::get_excluded_ids(), $this->get_current_post(), $this->args, $this->instance, $this );
 
 
 
 
 
 
162
  }
163
 
164
 
src/Widget/Page.php CHANGED
@@ -27,7 +27,7 @@ class Advanced_Sidebar_Menu_Widget_Page extends Advanced_Sidebar_Menu__Widget__W
27
  self::USE_PLUGIN_STYLES => false,
28
  self::EXCLUDE => false,
29
  self::DISPLAY_ALL => false,
30
- self::LEVELS => 1,
31
  );
32
 
33
  protected static $hooked = false;
27
  self::USE_PLUGIN_STYLES => false,
28
  self::EXCLUDE => false,
29
  self::DISPLAY_ALL => false,
30
+ self::LEVELS => 100,
31
  );
32
 
33
  protected static $hooked = false;