-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
41 lines (33 loc) · 1.2 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace tangible;
use tangible\framework as framework;
if (!class_exists('tangible\\framework')) {
class framework {
static $state;
};
framework::$state = (object) [];
}
(include __DIR__ . '/module-loader.php')(new class {
public $name = 'tangible_framework';
public $version = '20241023';
function load() {
framework::$state->version = $this->version;
framework::$state->path = __DIR__;
framework::$state->url = untrailingslashit(plugins_url('/', __FILE__));
// Load this first so others can use tangible\see()
require_once __DIR__ . '/log/index.php';
require_once __DIR__ . '/admin/index.php';
require_once __DIR__ . '/ajax/index.php';
require_once __DIR__ . '/api/index.php';
require_once __DIR__ . '/date/index.php';
require_once __DIR__ . '/format/index.php';
require_once __DIR__ . '/hjson/index.php';
require_once __DIR__ . '/interface/index.php';
require_once __DIR__ . '/markdown/index.php';
require_once __DIR__ . '/object/index.php';
require_once __DIR__ . '/plugin/index.php';
require_once __DIR__ . '/preact/index.php';
require_once __DIR__ . '/select/index.php';
do_action($this->name . '_ready');
}
});