Advanced Sidebar Menu - Version 7.0.2

Version Description

Download this release

Release Info

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

Code changes from version 7.0.1 to 7.0.2

advanced-sidebar-menu.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Advanced Sidebar Menu
4
Plugin URI: https://matlipe.com/advanced-sidebar-menu/
5
Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
6
Author: Mat Lipe
7
- Version: 7.0.1
8
Author URI: https://matlipe.com
9
Text Domain: advanced-sidebar-menu
10
*/
@@ -14,7 +14,7 @@ if( defined( 'ADVANCED_SIDEBAR_BASIC_VERSION' ) ){
14
return;
15
}
16
17
- define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.0.1' );
18
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
19
20
if( !function_exists( 'advanced_sidebar_menu_load' ) ){
4
Plugin URI: https://matlipe.com/advanced-sidebar-menu/
5
Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
6
Author: Mat Lipe
7
+ Version: 7.0.2
8
Author URI: https://matlipe.com
9
Text Domain: advanced-sidebar-menu
10
*/
14
return;
15
}
16
17
+ define( 'ADVANCED_SIDEBAR_BASIC_VERSION', '7.0.2' );
18
define( 'ADVANCED_SIDEBAR_DIR', plugin_dir_path( __FILE__ ) );
19
20
if( !function_exists( 'advanced_sidebar_menu_load' ) ){
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=paypa
5
Tags: menus, sidebar menu, hierarchy, category menu, pages menu
6
Requires at least: 4.6.0
7
Tested up to: 4.9.1
8
- Stable tag: 7.0.1
9
10
== Description ==
11
5
Tags: menus, sidebar menu, hierarchy, category menu, pages menu
6
Requires at least: 4.6.0
7
Tested up to: 4.9.1
8
+ Stable tag: 7.0.2
9
10
== Description ==
11
src/Core.php CHANGED
@@ -28,15 +28,9 @@ class Advanced_Sidebar_Menu_Core {
28
* @return void
29
*/
30
public function include_plugin_styles() {
31
- static $included;
32
- if( $included ){
33
- return;
34
- }
35
- $included = true;
36
-
37
?>
38
<style>
39
- <?php include $this->get_template_part( 'sidebar-menu.css' ); ?>
40
</style>
41
<?php
42
}
28
* @return void
29
*/
30
public function include_plugin_styles() {
31
?>
32
<style>
33
+ <?php include_once $this->get_template_part( 'sidebar-menu.css' ); ?>
34
</style>
35
<?php
36
}
src/Debug.php CHANGED
@@ -27,10 +27,10 @@ class Advanced_Sidebar_Menu_Debug {
27
*/
28
public function print_instance( $asm, $widget ){
29
?>
30
- <script class="<?= self::DEBUG_PARAM; ?>">
31
- var <?= self::DEBUG_PARAM; ?> = window.<?= self::DEBUG_PARAM; ?> || {};
32
- <?= self::DEBUG_PARAM; ?>['version'] = '<?= ADVANCED_SIDEBAR_BASIC_VERSION; ?>';
33
- <?= self::DEBUG_PARAM; ?>['<?= $widget->id; ?>'] = <?= json_encode( $asm->instance ); ?>;
34
</script>
35
<?php
36
}
27
*/
28
public function print_instance( $asm, $widget ){
29
?>
30
+ <script class="<?php echo self::DEBUG_PARAM; ?>">
31
+ var <?php echo self::DEBUG_PARAM; ?> = window.<?php echo self::DEBUG_PARAM; ?> || {};
32
+ <?php echo self::DEBUG_PARAM; ?>['version'] = '<?php echo ADVANCED_SIDEBAR_BASIC_VERSION; ?>';
33
+ <?php echo self::DEBUG_PARAM; ?>['<?php echo $widget->id; ?>'] = <?php echo json_encode( $asm->instance ); ?>;
34
</script>
35
<?php
36
}
src/Widget/Page.php CHANGED
@@ -119,7 +119,7 @@ class Advanced_Sidebar_Menu_Widget_Page extends WP_Widget {
119
value="checked"
120
data-js="advanced-sidebar-menu/widget/page/display_all"
121
onclick="javascript:asm_reveal_element( 'levels-<?php echo $this->get_field_id( self::LEVELS ); ?>' )"
122
- <?= $instance[ self::DISPLAY_ALL ]; ?>/>
123
</p>
124
125
<span id="levels-<?php echo $this->get_field_id( self::LEVELS ); ?>" style="<?php
@@ -165,7 +165,7 @@ class Advanced_Sidebar_Menu_Widget_Page extends WP_Widget {
165
166
167
/**
168
- * Widget Ouput
169
*
170
* @since 7.0.0
171
*
119
value="checked"
120
data-js="advanced-sidebar-menu/widget/page/display_all"
121
onclick="javascript:asm_reveal_element( 'levels-<?php echo $this->get_field_id( self::LEVELS ); ?>' )"
122
+ <?php echo $instance[ self::DISPLAY_ALL ]; ?>/>
123
</p>
124
125
<span id="levels-<?php echo $this->get_field_id( self::LEVELS ); ?>" style="<?php
165
166
167
/**
168
+ * Widget Output
169
*
170
* @since 7.0.0
171
*