⚰️ - Supprime le code mort et réorganise les inclusions dans le plugin CustomThemeTree
This commit is contained in:
1 parent
ed86100a4b
commit
6a50f12edb
3 files changed
-42
No files matched your search
@@ -9,22 +9,9 @@
|
||||
|
||||
use Skycel\CustomTree\CustomThemeTree;
|
||||
|
||||
require_once __DIR__ . "/custom-template.php";
|
||||
require_once __DIR__ . "/functions.php";
|
||||
require_once __DIR__ . "/includes/custom-template.inc.php";
|
||||
require_once __DIR__ . "/includes/functions.inc.php";
|
||||
|
||||
function test_plugin(): void {
|
||||
if (!\defined('USE_CUSTOMTREE_PLUGIN') || USE_CUSTOMTREE_PLUGIN !== true) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!\defined("CUSTOMTREE") || !is_array(CUSTOMTREE)) {
|
||||
new CustomThemeTree();
|
||||
} else {
|
||||
new CustomThemeTree(\CUSTOMTREE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the custom tree plugin if enabled and properly configured.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user