Skip to content

Commit

Permalink
Update plugin: advanced-sidebar-menu.
Browse files Browse the repository at this point in the history
Name: Advanced Sidebar Menu
New version: 9.5.2
Previous version: 9.4.3
  • Loading branch information
boonebgorges committed Jul 9, 2024
1 parent 173f056 commit e169116
Show file tree
Hide file tree
Showing 40 changed files with 1,322 additions and 578 deletions.
66 changes: 13 additions & 53 deletions wp-content/plugins/advanced-sidebar-menu/advanced-sidebar-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://onpointplugins.com/advanced-sidebar-menu/
* Description: Creates dynamic menus based on parent/child relationship of your pages or categories.
* Author: OnPoint Plugins
* Version: 9.4.3
* Version: 9.5.2
* Author URI: https://onpointplugins.com
* Text Domain: advanced-sidebar-menu
* Domain Path: /languages/
Expand All @@ -19,31 +19,18 @@
return;
}

define( 'ADVANCED_SIDEBAR_MENU_BASIC_VERSION', '9.4.3' );
define( 'ADVANCED_SIDEBAR_MENU_BASIC_VERSION', '9.5.2' );
define( 'ADVANCED_SIDEBAR_MENU_REQUIRED_PRO_VERSION', '9.2.0' );
define( 'ADVANCED_SIDEBAR_MENU_DIR', plugin_dir_path( __FILE__ ) );
define( 'ADVANCED_SIDEBAR_MENU_URL', plugin_dir_url( __FILE__ ) );

use Advanced_Sidebar_Menu\Blocks\Block_Abstract;
use Advanced_Sidebar_Menu\Blocks\Categories;
use Advanced_Sidebar_Menu\Blocks\Pages;
use Advanced_Sidebar_Menu\Cache;
use Advanced_Sidebar_Menu\Core;
use Advanced_Sidebar_Menu\Debug;
use Advanced_Sidebar_Menu\List_Pages;
use Advanced_Sidebar_Menu\Menus\Category;
use Advanced_Sidebar_Menu\Menus\Menu_Abstract;
use Advanced_Sidebar_Menu\Menus\Page;
use Advanced_Sidebar_Menu\Notice;
use Advanced_Sidebar_Menu\Scripts;
use Advanced_Sidebar_Menu\Traits\Memoize;
use Advanced_Sidebar_Menu\Traits\Singleton;
use Advanced_Sidebar_Menu\Utils;
use Advanced_Sidebar_Menu\Walkers\Category_Walker;
use Advanced_Sidebar_Menu\Walkers\Page_Walker;
use Advanced_Sidebar_Menu\Widget\Category as Widget_Category;
use Advanced_Sidebar_Menu\Widget\Page as Widget_Page;
use Advanced_Sidebar_Menu\Widget\Widget_Abstract;

/**
* Load the plugin
Expand Down Expand Up @@ -71,50 +58,23 @@ function advanced_sidebar_menu_load() {
add_action( 'plugins_loaded', 'advanced_sidebar_menu_load' );

/**
* Autoload classes from PSR4 src directory
* Mirrored after Composer dump-autoload for performance
* Autoload classes from PSR4 src directory.
*
* @param string $class_name - class being loaded.
*
* @return void
*/
function advanced_sidebar_menu_autoload( $class_name ) {
$classes = [
// Widgets.
Widget_Abstract::class => 'Widget/Widget_Abstract.php',
Widget_Page::class => 'Widget/Page.php',
Widget_Category::class => 'Widget/Category.php',

// Blocks.
Block_Abstract::class => 'Blocks/Block_Abstract.php',
Categories::class => 'Blocks/Categories.php',
Pages::class => 'Blocks/Pages.php',

// Core.
Cache::class => 'Cache.php',
Core::class => 'Core.php',
Debug::class => 'Debug.php',
List_Pages::class => 'List_Pages.php',
Notice::class => 'Notice.php',
Scripts::class => 'Scripts.php',
Utils::class => 'Utils.php',

// Menus.
Category::class => 'Menus/Category.php',
Menu_Abstract::class => 'Menus/Menu_Abstract.php',
Page::class => 'Menus/Page.php',

// Traits.
Memoize::class => 'Traits/Memoize.php',
Singleton::class => 'Traits/Singleton.php',

// Walkers.
Category_Walker::class => 'Walkers/Category_Walker.php',
Page_Walker::class => 'Walkers/Page_Walker.php',
];
if ( isset( $classes[ $class_name ] ) ) {
require __DIR__ . '/src/' . $classes[ $class_name ];
$parts = \explode( '\\', $class_name );
if ( 'Advanced_Sidebar_Menu' === \array_shift( $parts ) && \file_exists( __DIR__ . '/src/' . \implode( DIRECTORY_SEPARATOR, $parts ) . '.php' ) ) {
require __DIR__ . '/src/' . \implode( DIRECTORY_SEPARATOR, $parts ) . '.php';
}
}

spl_autoload_register( 'advanced_sidebar_menu_autoload' );

/**
* Cleanup any caches on deactivation.
*/
register_deactivation_hook( __FILE__, function() {
Cache::instance()->clear_cache_group();
} );

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions wp-content/plugins/advanced-sidebar-menu/js/dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"advanced-sidebar-menu-admin.min.css": {
"src": "advanced-sidebar-menu-admin.min.css",
"integrity": "sha384-Ofr9APPxMa/+y5iO0y+w+5M0BBzW6Gr9rXIwI3WXsTsZnaLtMIx2V3cEYQ8Df2eX",
"hash": "e7ee1c7315f4013a6882"
"integrity": "sha384-+2jpgtUD9u23pklfvTFOvRkaHVgDuzfW6gIdwRFQSShdIuF+USkwriU6UsRwZTu2",
"hash": "292daa5e387f693b6345"
},
"advanced-sidebar-menu-admin.min.js": {
"src": "advanced-sidebar-menu-admin.min.js",
Expand All @@ -11,13 +11,13 @@
},
"advanced-sidebar-menu-block-editor.min.css": {
"src": "advanced-sidebar-menu-block-editor.min.css",
"integrity": "sha384-W7M0UhU8PPgQXqTg+tFOHMssmzMgUSPHz7AaM6+PtvEntsJ7Aki/vKo0l4JxDe3M",
"hash": "014adb535a0f70846a0c"
"integrity": "sha384-xVifUtcWhS4pfDZNZ+ZI6vPxpul5GLMIE+W+0aP6fC3iRFKT1dvZedACxqj4/Zj/",
"hash": "93f2672e0ec0777555ae"
},
"advanced-sidebar-menu-block-editor.min.js": {
"src": "advanced-sidebar-menu-block-editor.min.js",
"integrity": "sha384-UqftMpcVWhsUF+xCLGF4yycdemXHZCZ3qhez3KyRyZ33vvMPrREtXWCDojL3Dh5F",
"hash": "54cf835318d876981da7"
"integrity": "sha384-X4VtX28Saef7egxeqNd5Z5Us8MbR2Kx3aaOJg4shcENx/8ouJ9t83TSdT2Z7oBOF",
"hash": "06aab554f8f82b58e8ce"
},
"advanced-sidebar-menu-block-editor.min.js.LICENSE.txt": {
"src": "advanced-sidebar-menu-block-editor.min.js.LICENSE.txt",
Expand Down
Loading

0 comments on commit e169116

Please sign in to comment.