⚰️ - Supprime le code mort et réorganise les inclusions dans le plugin CustomThemeTree

This commit is contained in:
2025-02-05 01:14:04 +01:00
parent ed86100a4b
commit 6a50f12edb
3 changed files with 0 additions and 42 deletions

View File

@@ -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.
*