diff options
Diffstat (limited to 'includes/template_head_start.php')
-rw-r--r-- | includes/template_head_start.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/includes/template_head_start.php b/includes/template_head_start.php index 31a5fb4..271cb60 100644 --- a/includes/template_head_start.php +++ b/includes/template_head_start.php @@ -1,5 +1,14 @@ <?php $__mobile = include __DIR__ . "/mobile-detect.php"; +$__inc_dir = __DIR__ . "/" . ($__mobile ? "mobile" : "desktop"); -include __DIR__ . "/" . ($__mobile ? "mobile" : "desktop") . "/template_head_start.php"; +foreach (scandir($__inc_dir . "/components") as $ent) { + if ($ent[0] === "." || !is_file($__inc_dir . "/components/" . $ent) || strcasecmp(pathinfo($ent, PATHINFO_EXTENSION), "php") !== 0) + continue; + include $__inc_dir . "/components/" . $ent; +} + +include $__inc_dir . "/template_head_start.php"; + +unset($__inc_dir); |