Advanced Sidebar Menu - Version 9.0.3

Version Description

  • Fix issue with styles not loading in Elementor.
  • Tested to WordPress Core 6.0.2.
Download this release

Release Info

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

Code changes from version 9.0.2 to 9.0.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: 9.0.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', '9.0.2' );
23
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.0.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: 9.0.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', '9.0.3' );
23
  define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.0.0' );
24
  define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
25
  define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );
js/dist/admin.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"admin.css","mappings":"AAAA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B,eAAe;EACf;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT;AACF;AACA;EACE;AACF,C;ACzCA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,WAAW;EACX;AACF,C;ACVA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%20iALJnA%3E","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%20Stgdji%3E","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/%3Cinput%20css%20ULcO4g%3E"],"sourcesContent":[".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n display: block !important\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n padding: 10px;\n margin: 2px;\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600\n}\n.spin-wrap {\n position: relative;\n min-height: 100px\n}\n.spin {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -9px 0 0 -9px\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n width: 100%;\n justify-content: center\n}",".error {\n padding: 10px;\n margin: 2px;\n border: 4px double #d63638;\n font-weight: 600\n}"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"admin.css","mappings":"AAAA;EACE,2BAA2B;EAC3B,sBAAsB;EACtB;AACF;AACA;EACE;AACF;AACA;EACE,2BAA2B;EAC3B,kBAAkB;EAClB;AACF;AACA;EACE,eAAe;EACf,YAAY;EACZ;AACF;AACA;EACE,2BAA2B;EAC3B;AACF;AACA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B,eAAe;EACf;AACF;AACA;EACE,kBAAkB;EAClB;AACF;AACA;EACE,kBAAkB;EAClB,QAAQ;EACR,SAAS;EACT;AACF;AACA;EACE;AACF,C;ACzCA;EACE;AACF;AACA;EACE,gBAAgB;EAChB;AACF;AACA;EACE,WAAW;EACX;AACF,C;ACVA;EACE,aAAa;EACb,WAAW;EACX,0BAA0B;EAC1B;AACF,C","sources":["webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%20BOzXfU%3E","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/%3Cinput%20css%20Q5gq9t%3E","webpack://@onpointplugins/advanced-sidebar-menu/./src/gutenberg/blocks/pages/%3Cinput%20css%20PvbcMA%3E"],"sourcesContent":[".placeholder :global(.components-placeholder__label) {\n /* stylelint-disable-line */\n flex-direction: column;\n width: 100%\n}\n.placeholder :global(.components-placeholder__instructions) {\n display: block !important\n}\n.placeholder :global(.components-placeholder__instructions) {\n /* stylelint-disable-line */\n text-align: center;\n width: 100%\n}\n.placeholder :global(.dashicons) {\n font-size: 30px;\n height: 35px;\n width: 35px\n}\n.placeholder :global(.components-placeholder__fieldset) {\n /* stylelint-disable-line */\n text-align: center\n}\n.error {\n padding: 10px;\n margin: 2px;\n border: 4px double #d63638;\n font-size: 14px;\n font-weight: 600\n}\n.spin-wrap {\n position: relative;\n min-height: 100px\n}\n.spin {\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -9px 0 0 -9px\n}\n.spin-content {\n opacity: .2\n}",".wrap ul {\n margin-block-end: 1em\n}\n.wrap li {\n list-style: disc;\n margin: 0 0 0 15px\n}\n.button {\n width: 100%;\n justify-content: center\n}",".error {\n padding: 10px;\n margin: 2px;\n border: 4px double #d63638;\n font-weight: 600\n}"],"names":[],"sourceRoot":""}
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: block, widget, dynamic, hierarchy, menus, sidebar menu, category, pages, parent, child, automatic
6
  Requires at least: 5.8.0
7
- Tested up to: 6.0.1
8
  Requires PHP: 7.0.0
9
- Stable tag: 9.0.2
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -165,6 +165,10 @@ Yes. Based on whatever page, post or category you are on, the menu will change a
165
 
166
 
167
  == Changelog ==
 
 
 
 
168
  = 9.0.2 =
169
  * Moved `advanced-sidebar-menu` CSS class to block widget wraps.
170
  * Introduced `isScreen` helper to make screen conditionals cleaner.
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: block, widget, dynamic, hierarchy, menus, sidebar menu, category, pages, parent, child, automatic
6
  Requires at least: 5.8.0
7
+ Tested up to: 6.1.0
8
  Requires PHP: 7.0.0
9
+ Stable tag: 9.0.3
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
165
 
166
 
167
  == Changelog ==
168
+ = 9.0.3 =
169
+ * Fix issue with styles not loading in Elementor.
170
+ * Tested to WordPress Core 6.0.2.
171
+
172
  = 9.0.2 =
173
  * Moved `advanced-sidebar-menu` CSS class to block widget wraps.
174
  * Introduced `isScreen` helper to make screen conditionals cleaner.
src/Notice.php CHANGED
@@ -145,6 +145,9 @@ class Notice {
145
  * @param \WP_Widget $widget - Widget class.
146
  */
147
  public function preview( array $instance, \WP_Widget $widget ) {
 
 
 
148
  $src = 'pages-widget-min.webp?version=' . ADVANCED_SIDEBAR_BASIC_VERSION;
149
  if ( Category::NAME === $widget->id_base ) {
150
  $src = 'category-widget-min.webp?version=' . ADVANCED_SIDEBAR_BASIC_VERSION;
145
  * @param \WP_Widget $widget - Widget class.
146
  */
147
  public function preview( array $instance, \WP_Widget $widget ) {
148
+ if ( \defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) {
149
+ return;
150
+ }
151
  $src = 'pages-widget-min.webp?version=' . ADVANCED_SIDEBAR_BASIC_VERSION;
152
  if ( Category::NAME === $widget->id_base ) {
153
  $src = 'category-widget-min.webp?version=' . ADVANCED_SIDEBAR_BASIC_VERSION;
src/Scripts.php CHANGED
@@ -26,8 +26,11 @@ class Scripts {
26
  public function hook() {
27
  add_action( 'init', [ $this, 'register_gutenberg_scripts' ] );
28
  add_action( 'admin_enqueue_scripts', [ $this, 'admin_scripts' ] );
 
29
  // Elementor support.
 
30
  add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'admin_scripts' ] );
 
31
  // UGH! Beaver Builder hack.
32
  if ( isset( $_GET['fl_builder'] ) ) { // phpcs:ignore
33
  add_action( 'wp_enqueue_scripts', [ $this, 'admin_scripts' ] );
26
  public function hook() {
27
  add_action( 'init', [ $this, 'register_gutenberg_scripts' ] );
28
  add_action( 'admin_enqueue_scripts', [ $this, 'admin_scripts' ] );
29
+
30
  // Elementor support.
31
+ add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'register_gutenberg_scripts' ] );
32
  add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'admin_scripts' ] );
33
+
34
  // UGH! Beaver Builder hack.
35
  if ( isset( $_GET['fl_builder'] ) ) { // phpcs:ignore
36
  add_action( 'wp_enqueue_scripts', [ $this, 'admin_scripts' ] );