summaryrefslogtreecommitdiff
path: root/includes/template_head_start.php
blob: 271cb6090769b0397d20bbe2d176c28ff6279255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

$__mobile = include __DIR__ . "/mobile-detect.php";
$__inc_dir = __DIR__ . "/" . ($__mobile ? "mobile" : "desktop");

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);