Version Description
- Improved position of close icon in widget previews.
- Improved plugin links utm structure.
- Added a "Go PRO" action to the plugins list.
- Prevented overrides of non-public post types during debugging.
Download this release
Release Info
Developer | Mat Lipe |
Plugin | Advanced Sidebar Menu |
Version | 8.7.2 |
Comparing to | |
See all releases |
Code changes from version 8.7.1 to 8.7.2
- advanced-sidebar-menu.php +2 -2
- readme.txt +7 -1
- resources/css/advanced-sidebar-menu.css +6 -2
- src/Core.php +3 -0
- src/Debug.php +9 -0
- src/Notice.php +19 -2
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.7.
|
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.7.
|
23 |
define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.5.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.7.2
|
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.7.2' );
|
23 |
define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '8.5.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.9.0
|
8 |
Requires PHP: 5.6.0
|
9 |
-
Stable tag: 8.7.
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -161,6 +161,12 @@ Yes. Based on whatever page, post or category you are on, the menu will change a
|
|
161 |
|
162 |
|
163 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
164 |
= 8.7.1 =
|
165 |
* Fine tune widgets styles for WordPress 5.9.
|
166 |
* Tested to WordPress 5.9.
|
6 |
Requires at least: 5.2.0
|
7 |
Tested up to: 5.9.0
|
8 |
Requires PHP: 5.6.0
|
9 |
+
Stable tag: 8.7.2
|
10 |
|
11 |
== Description ==
|
12 |
|
161 |
|
162 |
|
163 |
== Changelog ==
|
164 |
+
= 8.7.2 =
|
165 |
+
* Improved position of close icon in widget previews.
|
166 |
+
* Improved plugin links utm structure.
|
167 |
+
* Added a "Go PRO" action to the plugins list.
|
168 |
+
* Prevented overrides of non-public post types during debugging.
|
169 |
+
|
170 |
= 8.7.1 =
|
171 |
* Fine tune widgets styles for WordPress 5.9.
|
172 |
* Tested to WordPress 5.9.
|
resources/css/advanced-sidebar-menu.css
CHANGED
@@ -180,12 +180,16 @@ select.advanced-sidebar-menu-block-field {
|
|
180 |
transition: all 300ms linear;
|
181 |
position: absolute;
|
182 |
font-size: 40px;
|
183 |
-
|
184 |
-
right:
|
185 |
cursor: pointer;
|
186 |
display: none;
|
187 |
}
|
188 |
|
|
|
|
|
|
|
|
|
189 |
.advanced-sidebar-menu-close-icon:hover {
|
190 |
color: #000;
|
191 |
}
|
180 |
transition: all 300ms linear;
|
181 |
position: absolute;
|
182 |
font-size: 40px;
|
183 |
+
margin: 5px 0 0 0;
|
184 |
+
right: 40px;
|
185 |
cursor: pointer;
|
186 |
display: none;
|
187 |
}
|
188 |
|
189 |
+
.block-editor-page .advanced-sidebar-menu-close-icon {
|
190 |
+
right: 25px;
|
191 |
+
}
|
192 |
+
|
193 |
.advanced-sidebar-menu-close-icon:hover {
|
194 |
color: #000;
|
195 |
}
|
src/Core.php
CHANGED
@@ -15,6 +15,9 @@ use Advanced_Sidebar_Menu\Widget\Page;
|
|
15 |
class Core {
|
16 |
use Singleton;
|
17 |
|
|
|
|
|
|
|
18 |
/**
|
19 |
* Actions
|
20 |
*/
|
15 |
class Core {
|
16 |
use Singleton;
|
17 |
|
18 |
+
const PLUGIN_FILE = 'advanced-sidebar-menu/advanced-sidebar-menu.php';
|
19 |
+
|
20 |
+
|
21 |
/**
|
22 |
* Actions
|
23 |
*/
|
src/Debug.php
CHANGED
@@ -48,8 +48,17 @@ class Debug {
|
|
48 |
if ( empty( $_GET[ self::DEBUG_PARAM ] ) ) { //phpcs:ignore
|
49 |
return $instance;
|
50 |
}
|
|
|
51 |
$overrides = Utils::instance()->array_map_recursive( 'sanitize_text_field', (array) $_GET[ self::DEBUG_PARAM ] ); //phpcs:ignore
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
return wp_parse_args( $overrides, $instance );
|
54 |
}
|
55 |
|
48 |
if ( empty( $_GET[ self::DEBUG_PARAM ] ) ) { //phpcs:ignore
|
49 |
return $instance;
|
50 |
}
|
51 |
+
|
52 |
$overrides = Utils::instance()->array_map_recursive( 'sanitize_text_field', (array) $_GET[ self::DEBUG_PARAM ] ); //phpcs:ignore
|
53 |
|
54 |
+
// Do not allow passing a non-public post type.
|
55 |
+
if ( isset( $overrides['post_type'] ) ) {
|
56 |
+
$type = get_post_type_object( $overrides['post_type'] );
|
57 |
+
if ( $type && ! $type->public ) {
|
58 |
+
unset( $overrides['post_type'] );
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
return wp_parse_args( $overrides, $instance );
|
63 |
}
|
64 |
|
src/Notice.php
CHANGED
@@ -24,6 +24,8 @@ class Notice {
|
|
24 |
add_action( 'advanced-sidebar-menu/widget/category/right-column', [ $this, 'info_panel' ], 1, 2 );
|
25 |
add_action( 'advanced-sidebar-menu/widget/page/right-column', [ $this, 'info_panel' ], 1, 2 );
|
26 |
|
|
|
|
|
27 |
if ( $this->is_conflicting_pro_version() ) {
|
28 |
add_action( 'all_admin_notices', [ $this, 'pro_version_warning' ] );
|
29 |
}
|
@@ -104,7 +106,7 @@ class Notice {
|
|
104 |
<li><?php esc_html_e( 'Priority support with access to members only support area.', 'advanced-sidebar-menu' ); ?></li>
|
105 |
<li>
|
106 |
<a
|
107 |
-
href="https://onpointplugins.com/product/advanced-sidebar-menu-pro
|
108 |
target="_blank"
|
109 |
style="text-decoration: none;">
|
110 |
<?php esc_html_e( 'So much more...', 'advanced-sidebar-menu' ); ?>
|
@@ -113,7 +115,7 @@ class Notice {
|
|
113 |
</ol>
|
114 |
<a
|
115 |
class="button-primary"
|
116 |
-
href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1"
|
117 |
target="_blank"
|
118 |
>
|
119 |
<?php esc_html_e( 'Upgrade', 'advanced-sidebar-menu' ); ?>
|
@@ -159,4 +161,19 @@ class Notice {
|
|
159 |
<?php
|
160 |
}
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
}
|
24 |
add_action( 'advanced-sidebar-menu/widget/category/right-column', [ $this, 'info_panel' ], 1, 2 );
|
25 |
add_action( 'advanced-sidebar-menu/widget/page/right-column', [ $this, 'info_panel' ], 1, 2 );
|
26 |
|
27 |
+
add_filter( 'plugin_action_links_' . Core::PLUGIN_FILE, [ $this, 'plugin_action_link' ] );
|
28 |
+
|
29 |
if ( $this->is_conflicting_pro_version() ) {
|
30 |
add_action( 'all_admin_notices', [ $this, 'pro_version_warning' ] );
|
31 |
}
|
106 |
<li><?php esc_html_e( 'Priority support with access to members only support area.', 'advanced-sidebar-menu' ); ?></li>
|
107 |
<li>
|
108 |
<a
|
109 |
+
href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=widget-more&utm_campaign=gopro&utm_medium=wp-dash"
|
110 |
target="_blank"
|
111 |
style="text-decoration: none;">
|
112 |
<?php esc_html_e( 'So much more...', 'advanced-sidebar-menu' ); ?>
|
115 |
</ol>
|
116 |
<a
|
117 |
class="button-primary"
|
118 |
+
href="https://onpointplugins.com/product/advanced-sidebar-menu-pro/?trigger_buy_now=1&utm_source=widget-upgrade&utm_campaign=gopro&utm_medium=wp-dash"
|
119 |
target="_blank"
|
120 |
>
|
121 |
<?php esc_html_e( 'Upgrade', 'advanced-sidebar-menu' ); ?>
|
161 |
<?php
|
162 |
}
|
163 |
|
164 |
+
|
165 |
+
/**
|
166 |
+
* Display a "Go PRO" action link in plugins list.
|
167 |
+
*
|
168 |
+
* @param array $actions - Array of actions and their link.
|
169 |
+
*
|
170 |
+
* @return array
|
171 |
+
*/
|
172 |
+
public function plugin_action_link( array $actions ) {
|
173 |
+
if ( ! \defined( 'ADVANCED_SIDEBAR_MENU_PRO_VERSION' ) ) {
|
174 |
+
$actions['go-pro'] = sprintf( '<a href="%1$s" target="_blank" style="color:#3db634;font-weight:700;">%2$s</a>', 'https://onpointplugins.com/product/advanced-sidebar-menu-pro/?utm_source=wp-plugins&utm_campaign=gopro&utm_medium=wp-dash', __( 'Go PRO', 'advanced-sidebar-menu' ) );
|
175 |
+
}
|
176 |
+
return $actions;
|
177 |
+
}
|
178 |
+
|
179 |
}
|