Bulk substitution across all PHP files in src/, build.php, worker.php, and web/frontend/. Updates composer.json's package name and PSR-4 autoload root accordingly. Casing matches the existing IndifferentKetchup\Codex package's namespace convention (capital K). Strictly a namespace rename. Aternos\Codex\* imports remain in place; those get re-pointed in a follow-up commit when the codex Composer dependency itself is swapped. Filename renames (docker/mclogs.ini, web/public/css/mclogs.css), README walk-through, env-var prefix changes, and visible-text branding land in subsequent commits.
45 lines
1.9 KiB
PHP
45 lines
1.9 KiB
PHP
<?php
|
|
|
|
use IndifferentKetchup\Iblogs\Config\Config;
|
|
use IndifferentKetchup\Iblogs\Config\ConfigKey;
|
|
use IndifferentKetchup\Iblogs\Frontend\Assets\AssetLoader;
|
|
use IndifferentKetchup\Iblogs\Frontend\Assets\AssetType;
|
|
use IndifferentKetchup\Iblogs\Util\URL;
|
|
|
|
?>
|
|
<meta charset="utf-8"/>
|
|
|
|
<base href="/"/>
|
|
<?= AssetLoader::getInstance()->getHTML(AssetType::CSS, "vendor/fontawesome/css/fontawesome.min.css"); ?>
|
|
<?= AssetLoader::getInstance()->getHTML(AssetType::CSS, "css/iblogs.css"); ?>
|
|
|
|
<style>
|
|
:root {
|
|
--bg: <?= htmlspecialchars(Config::getInstance()->get(ConfigKey::FRONTEND_COLOR_BACKGROUND)); ?>;
|
|
--text: <?= htmlspecialchars(Config::getInstance()->get(ConfigKey::FRONTEND_COLOR_TEXT)); ?>;
|
|
--accent: <?= htmlspecialchars(Config::getInstance()->get(ConfigKey::FRONTEND_COLOR_ACCENT)); ?>;
|
|
--error: <?= htmlspecialchars(Config::getInstance()->get(ConfigKey::FRONTEND_COLOR_ERROR)); ?>;
|
|
}
|
|
</style>
|
|
|
|
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" sizes="any"/>
|
|
<link rel="shortcut icon" href="<?= htmlspecialchars(URL::getBase()->withPath("/favicon.svg")->toString()); ?>" type="image/svg+xml">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
|
<?php if (Config::getInstance()->get(ConfigKey::FRONTEND_ANALYTICS)): ?>
|
|
<script>
|
|
let _paq = window._paq = window._paq || [];
|
|
_paq.push(['disableCookies']);
|
|
_paq.push(['trackPageView']);
|
|
_paq.push(['enableLinkTracking']);
|
|
(function () {
|
|
_paq.push(['setTrackerUrl', '/data']);
|
|
_paq.push(['setSiteId', '5']);
|
|
let d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
|
g.async = true;
|
|
g.src = '/data.js';
|
|
s.parentNode.insertBefore(g, s);
|
|
})();
|
|
</script>
|
|
<?php endif; ?>
|