Advanced Sidebar Menu - Version 7.7.4

Version Description

Download this release

Release Info

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

Code changes from version 7.7.3 to 7.7.4

Files changed (3) hide show
  1. advanced-sidebar-menu.php +7 -16
  2. readme.txt +18 -18
  3. src/Scripts.php +1 -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.3
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  *
@@ -12,12 +12,13 @@
12
  */
13
 
14
  use Advanced_Sidebar_Menu\Scripts;
 
15
 
16
  if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
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
 
@@ -46,7 +47,7 @@ if ( ! function_exists( 'advanced_sidebar_menu_load' ) ) {
46
  * @return void
47
  */
48
  function advanced_sidebar_menu_autoload( $class ) {
49
- $classes = array(
50
  // widgets.
51
  'Advanced_Sidebar_Menu__Widget__Widget' => 'Widget/Widget.php',
52
  'Advanced_Sidebar_Menu_Widget_Page' => 'Widget/Page.php',
@@ -59,7 +60,7 @@ function advanced_sidebar_menu_autoload( $class ) {
59
  'Advanced_Sidebar_Menu_List_Pages' => 'List_Pages.php',
60
  'Advanced_Sidebar_Menu_Menu' => 'Menu.php',
61
  'Advanced_Sidebar_Menu_Page_Walker' => 'Page_Walker.php',
62
- 'Advanced_Sidebar_Menu\Scripts' => 'Scripts.php',
63
 
64
  // menus.
65
  'Advanced_Sidebar_Menu_Menus_Category' => 'Menus/Category.php',
@@ -67,8 +68,8 @@ function advanced_sidebar_menu_autoload( $class ) {
67
  'Advanced_Sidebar_Menu_Menus_Page' => 'Menus/Page.php',
68
 
69
  // Traits.
70
- 'Advanced_Sidebar_Menu\Traits\Singleton' => 'Traits/Singleton.php',
71
- );
72
  if ( isset( $classes[ $class ] ) ) {
73
  require __DIR__ . '/src/' . $classes[ $class ];
74
  }
@@ -110,16 +111,6 @@ function advanced_sidebar_menu_widget_docs( $instance, WP_Widget $widget ) {
110
  <?php
111
  }
112
 
113
- /**
114
- * Legacy method now deprecated.
115
- *
116
- * @deprecated In favor of \Advanced_Sidebar_Menu\Scripts::instance()->admin_scripts()
117
- */
118
- function advanced_sidebar_menu_script() {
119
- _deprecated_function( 'advanced_sidebar_menu_script', '7.8.0', '\Advanced_Sidebar_Menu\Scripts::instance()->admin_scripts()' );
120
- \Advanced_Sidebar_Menu\Scripts::instance()->admin_scripts();
121
- }
122
-
123
  /**
124
  * Notify widget users about the PRO options
125
  *
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.4
8
  * Author URI: https://onpointplugins.com
9
  * Text Domain: advanced-sidebar-menu
10
  *
12
  */
13
 
14
  use Advanced_Sidebar_Menu\Scripts;
15
+ use Advanced_Sidebar_Menu\Traits\Singleton;
16
 
17
  if ( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ) {
18
  return;
19
  }
20
 
21
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.7.4' );
22
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
23
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
24
 
47
  * @return void
48
  */
49
  function advanced_sidebar_menu_autoload( $class ) {
50
+ $classes = [
51
  // widgets.
52
  'Advanced_Sidebar_Menu__Widget__Widget' => 'Widget/Widget.php',
53
  'Advanced_Sidebar_Menu_Widget_Page' => 'Widget/Page.php',
60
  'Advanced_Sidebar_Menu_List_Pages' => 'List_Pages.php',
61
  'Advanced_Sidebar_Menu_Menu' => 'Menu.php',
62
  'Advanced_Sidebar_Menu_Page_Walker' => 'Page_Walker.php',
63
+ Scripts::class => 'Scripts.php',
64
 
65
  // menus.
66
  'Advanced_Sidebar_Menu_Menus_Category' => 'Menus/Category.php',
68
  'Advanced_Sidebar_Menu_Menus_Page' => 'Menus/Page.php',
69
 
70
  // Traits.
71
+ Singleton::class => 'Traits/Singleton.php',
72
+ ];
73
  if ( isset( $classes[ $class ] ) ) {
74
  require __DIR__ . '/src/' . $classes[ $class ];
75
  }
111
  <?php
112
  }
113
 
 
 
 
 
 
 
 
 
 
 
114
  /**
115
  * Notify widget users about the PRO options
116
  *
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.4.1
8
  Requires PHP: 5.6.0
9
- Stable tag: 7.7.3
10
 
11
  == Description ==
12
 
@@ -18,7 +18,7 @@ Keeps the menu clean and usable. Only related items display so you don't have to
18
 
19
  <blockquote><a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Pro version 3.10.0</a> is now available with support to exclude and change titles of navigation menu items using each page's settings!</blockquote>
20
 
21
- <h4>Features</h4>
22
  * Page and Category widgets.
23
  * Option to display or not display the highest level parent page or category.
24
  * Option to display the menu when there is only the highest level parent.
@@ -29,9 +29,9 @@ Keeps the menu clean and usable. Only related items display so you don't have to
29
  * Option to display or not display categories on single posts.
30
  * Ability to display each single post's category in a new widget or in same list.
31
 
32
- <h4>Page Widget Options</h4>
33
  * Add a title to the widget
34
- * Display highest level parent page
35
  * Display menu when there is only the parent page
36
  * Order pages by (date, title, page order)
37
  * Use built in styling (very plain styling, for more advanced styling <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>)
@@ -39,9 +39,9 @@ Keeps the menu clean and usable. Only related items display so you don't have to
39
  * Always display child Pages
40
  * Number of levels of child pages to display when always display child pages is checked
41
 
42
- <h4>Category Widget Options</h4>
43
  * Add a title to the widget
44
- * Display highest level parent category
45
  * Display menu when there is only the parent category
46
  * Use built in styling (very plain styling, for more advanced styling <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>)
47
  * Display categories on single posts
@@ -50,7 +50,7 @@ Keeps the menu clean and usable. Only related items display so you don't have to
50
  * Always display child categories
51
  * Levels of Categories to display when always display child categories is checked
52
 
53
- <h4>Pro Features</h4>
54
  * Priority support.
55
  * Ability to customize each page's link text.
56
  * Click and drag styling for page, category, and navigation menu widgets.
@@ -63,7 +63,7 @@ Keeps the menu clean and usable. Only related items display so you don't have to
63
  * Accordion menu support for pages, categories, and navigation menus.
64
  * Accordion icon style and color selection.
65
  * Accordion option to keep all sections closed until clicked.
66
- * Accordion option to include highest level parent in accordion.
67
  * Ability to exclude a page from all menus using a simple checkbox.
68
  * Link ordering for the category widget.
69
  * Number of levels of pages to show when always displayed child pages is not checked.
@@ -78,29 +78,29 @@ Keeps the menu clean and usable. Only related items display so you don't have to
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>
85
  * English (US)
86
  * German (de_DE)
87
 
88
- <h4>Developers</h4>
89
  Developer docs may be found <a target="_blank" href="https://onpointplugins.com/advanced-sidebar-menu/developer-docs/">here</a>.
90
 
91
- <h4>Contribute</h4>
92
  Send pull requests via the <a target="_blank" href="https://github.com/lipemat/advanced-sidebar-menu">GitHub Repo</a>
93
 
94
 
95
  == Installation ==
96
 
97
- Use the standard WordPress plugins search and install feature.
98
 
99
  Manual Installation
100
 
101
  1. Upload the `advanced-sidebar-menu` folder to the `/wp-content/plugins/` directory
102
  1. Activate the plugin through the 'Plugins' menu in WordPress
103
- 1. Drag the "Advanced Sidebar Pages Menu" widget or the "Advanced Sidebar Categories Menu" widget into a sidebar.
104
 
105
 
106
  == Screenshots ==
@@ -119,8 +119,8 @@ The widgets in this plugin are smart enough to not show up on pages or categorie
119
 
120
  The most common causes for this confusion come from one of these reasons:
121
  1. The incorrect widget was selected (there are different widgets for categories or pages).
122
- 2. "Display highest level parent page" or "Display highest level parent category" is not checked.
123
- 3. The widget is currently not being viewed on a Page (for the pages widget) or Category (for the categories widget).
124
 
125
  = How do I change the styling of the current page? =
126
 
@@ -199,7 +199,7 @@ Yes. Based on whatever page, post, or category you are on, the menu will change
199
  = 7.0.0 =
200
  * Restructure the codebase to a more modern PSR4 structure
201
  * Improve cache handling
202
- * Improve verbiage in admin
203
  * Implement new actions and filters
204
  * Rebuild templates for improved stability and future changes
205
  * Improve performance
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.4.2
8
  Requires PHP: 5.6.0
9
+ Stable tag: 7.7.4
10
 
11
  == Description ==
12
 
18
 
19
  <blockquote><a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Pro version 3.10.0</a> is now available with support to exclude and change titles of navigation menu items using each page's settings!</blockquote>
20
 
21
+ <h3>Features</h3>
22
  * Page and Category widgets.
23
  * Option to display or not display the highest level parent page or category.
24
  * Option to display the menu when there is only the highest level parent.
29
  * Option to display or not display categories on single posts.
30
  * Ability to display each single post's category in a new widget or in same list.
31
 
32
+ <h3>Page Widget Options</h3>
33
  * Add a title to the widget
34
+ * Display the highest level parent page
35
  * Display menu when there is only the parent page
36
  * Order pages by (date, title, page order)
37
  * Use built in styling (very plain styling, for more advanced styling <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>)
39
  * Always display child Pages
40
  * Number of levels of child pages to display when always display child pages is checked
41
 
42
+ <h3>Category Widget Options</h3>
43
  * Add a title to the widget
44
+ * Display the highest level parent category
45
  * Display menu when there is only the parent category
46
  * Use built in styling (very plain styling, for more advanced styling <a href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/" target="_blank">Go Pro!</a>)
47
  * Display categories on single posts
50
  * Always display child categories
51
  * Levels of Categories to display when always display child categories is checked
52
 
53
+ <h3>Pro Features</h3>
54
  * Priority support.
55
  * Ability to customize each page's link text.
56
  * Click and drag styling for page, category, and navigation menu widgets.
63
  * Accordion menu support for pages, categories, and navigation menus.
64
  * Accordion icon style and color selection.
65
  * Accordion option to keep all sections closed until clicked.
66
+ * Accordion option to include the highest level parent in accordion.
67
  * Ability to exclude a page from all menus using a simple checkbox.
68
  * Link ordering for the category widget.
69
  * Number of levels of pages to show when always displayed child pages is not checked.
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
+ <h3>Currently ships with the following languages</h3>
85
  * English (US)
86
  * German (de_DE)
87
 
88
+ <h3>Developers</h3>
89
  Developer docs may be found <a target="_blank" href="https://onpointplugins.com/advanced-sidebar-menu/developer-docs/">here</a>.
90
 
91
+ <h3>Contribute</h3>
92
  Send pull requests via the <a target="_blank" href="https://github.com/lipemat/advanced-sidebar-menu">GitHub Repo</a>
93
 
94
 
95
  == Installation ==
96
 
97
+ Use the standard WordPress plugins search and install.
98
 
99
  Manual Installation
100
 
101
  1. Upload the `advanced-sidebar-menu` folder to the `/wp-content/plugins/` directory
102
  1. Activate the plugin through the 'Plugins' menu in WordPress
103
+ 1. Drag the "Advanced Sidebar Pages Menu" widget, or the "Advanced Sidebar Categories Menu" widget into a sidebar.
104
 
105
 
106
  == Screenshots ==
119
 
120
  The most common causes for this confusion come from one of these reasons:
121
  1. The incorrect widget was selected (there are different widgets for categories or pages).
122
+ 2. "Display the highest level parent page" or "Display the highest level parent category" is not checked.
123
+ 3. The widget is currently not being viewed on a Page (for the pages' widget) or Category (for the categories' widget).
124
 
125
  = How do I change the styling of the current page? =
126
 
199
  = 7.0.0 =
200
  * Restructure the codebase to a more modern PSR4 structure
201
  * Improve cache handling
202
+ * Improve verbiage in the admin
203
  * Implement new actions and filters
204
  * Rebuild templates for improved stability and future changes
205
  * Improve performance
src/Scripts.php CHANGED
@@ -8,7 +8,7 @@ use Advanced_Sidebar_Menu\Traits\Singleton;
8
  * Scripts and styles.
9
  *
10
  * @author Mat Lipe
11
- * @since 7.8.0
12
  */
13
  class Scripts {
14
  use Singleton;
8
  * Scripts and styles.
9
  *
10
  * @author Mat Lipe
11
+ * @since 7.7.0
12
  */
13
  class Scripts {
14
  use Singleton;