2025-01-30 04:50:02 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Plugin Name: Embedded themes tree
|
|
|
|
* Description: Embed your theme tree files or custom as needed
|
|
|
|
* Version: 1.0.0
|
|
|
|
* Author: Skycel
|
|
|
|
* Author URI: https://skycel.me
|
|
|
|
*/
|
|
|
|
|
|
|
|
use Skycel\CustomTree\CustomThemeTree;
|
|
|
|
|
|
|
|
require_once __DIR__ . "/custom-template.php";
|
|
|
|
require_once __DIR__ . "/functions.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);
|
|
|
|
}
|
|
|
|
|
2025-02-05 01:07:25 +01:00
|
|
|
/**
|
|
|
|
* Loads the custom tree plugin if enabled and properly configured.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
2025-01-30 04:50:02 +01:00
|
|
|
}
|
|
|
|
add_action("after_setup_theme", "test_plugin");
|
|
|
|
|
|
|
|
//new CustomThemeTree();
|