domain
This commit is contained in:
@@ -173,6 +173,6 @@
|
||||
</p>
|
||||
</aside>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<li data-i18n="features_free_li4">• Auswahl verschiedener Teststufen (z. B. 200 MB, 2 GB)</li>
|
||||
<li data-i18n="features_free_li5">• Keine Registrierung erforderlich</li>
|
||||
</ul>
|
||||
<a href="https://usbcheck.it/fakecheck/"
|
||||
<a href="<?= htmlspecialchars(app_primary_url() . '/fakecheck/') ?>"
|
||||
class="inline-flex mt-3 items-center text-sm font-semibold text-brand-primary hover:text-blue-300"
|
||||
data-i18n="features_free_cta">
|
||||
Start free quick check
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<?php $primaryFakecheckUrl = app_primary_url() . '/fakecheck/'; ?>
|
||||
<section id="hero" class="hero-section relative overflow-hidden">
|
||||
<div class="relative px-4 sm:px-6 lg:px-8">
|
||||
<div class="section-shell hero-shell items-center">
|
||||
@@ -15,7 +16,7 @@
|
||||
|
||||
<!-- CTAs -->
|
||||
<div class="flex flex-col sm:flex-row gap-3 sm:gap-4">
|
||||
<a href="https://usbcheck.it/fakecheck/"
|
||||
<a href="<?= htmlspecialchars($primaryFakecheckUrl) ?>"
|
||||
class="inline-flex items-center justify-center rounded-full bg-brand-primary px-6 py-3 text-sm font-semibold text-brand-bg shadow-soft hover:bg-blue-400 transition-colors"
|
||||
data-i18n="cta_quick">
|
||||
Start free quick check
|
||||
@@ -109,7 +110,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="https://usbcheck.it/fakecheck/"
|
||||
<a href="<?= htmlspecialchars($primaryFakecheckUrl) ?>"
|
||||
class="block text-center rounded-full bg-brand-primary px-4 py-2.5 text-sm font-semibold text-brand-bg hover:bg-blue-400 transition-colors"
|
||||
data-i18n="quick_cta">
|
||||
Go to free quick check
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<div>
|
||||
<h3 class="font-semibold text-brand-text" data-i18n="how_step1_title">Browser-Test starten</h3>
|
||||
<p data-i18n="how_step1_text">
|
||||
Du öffnest den Schnelltest unter <strong>usbcheck.it/fakecheck/</strong>, wählst deinen USB-Stick bzw. einen Ordner darauf aus und definierst, wie viel Daten getestet werden sollen.
|
||||
Du öffnest den Schnelltest unter <strong><?= htmlspecialchars(app_primary_url()) ?>/fakecheck/</strong>, wählst deinen USB-Stick bzw. einen Ordner darauf aus und definierst, wie viel Daten getestet werden sollen.
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
?>
|
||||
<footer class="border-t border-brand-border/70">
|
||||
<div class="mx-auto max-w-6xl px-4 sm:px-6 lg:px-8 py-6 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-brand-muted">
|
||||
<p>© <?= date('Y') ?> usbcheck.it</p>
|
||||
<p>© <?= date('Y') ?> <?= htmlspecialchars(app_primary_domain()) ?></p>
|
||||
|
||||
<div class="flex items-center gap-4">
|
||||
<a href="/impressum.php" class="hover:text-brand-primary transition-colors" data-i18n="footer_imprint"></a>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
// Aktuelle Domain + Protokoll
|
||||
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
$host = $_SERVER['HTTP_HOST'] ?? 'usbcheck.it';
|
||||
$host = $_SERVER['HTTP_HOST'] ?? app_primary_domain();
|
||||
$baseUrl = $scheme . '://' . $host;
|
||||
|
||||
// Wenn $navAnchors NICHT gesetzt ist → leeres Array
|
||||
@@ -52,12 +52,12 @@ if ($isLoggedIn) {
|
||||
<div class="flex items-center gap-3">
|
||||
<a href="/?lang=<?= htmlspecialchars($lang ?? 'de') ?>" class="flex items-center gap-3">
|
||||
<img src="<?= $baseUrl ?>/assets/img/logo_slogan.png"
|
||||
alt="usbcheck.it Logo"
|
||||
alt="<?= htmlspecialchars(app_primary_domain()) ?> Logo"
|
||||
class="h-9 w-auto">
|
||||
|
||||
<div class="hidden sm:flex flex-col leading-tight">
|
||||
<span class="font-heading font-bold text-sm uppercase tracking-[0.18em] text-brand-muted">
|
||||
usbcheck.it
|
||||
<?= htmlspecialchars(app_primary_domain()) ?>
|
||||
</span>
|
||||
<span class="text-xs text-brand-muted" data-i18n="header_slogan">
|
||||
Test USB drives
|
||||
|
||||
@@ -13,7 +13,7 @@ if (!isset($lang) || !in_array($lang, ['de', 'en', 'it', 'fr'], true)) {
|
||||
}
|
||||
|
||||
if (!isset($pageTitle) || !is_string($pageTitle) || $pageTitle === '') {
|
||||
$pageTitle = 'usbcheck.it';
|
||||
$pageTitle = app_primary_domain();
|
||||
}
|
||||
|
||||
if (!isset($pageDescription) || !is_string($pageDescription)) {
|
||||
@@ -110,6 +110,12 @@ foreach ($GLOBALS['page_header_scripts'] as $script) {
|
||||
<script>
|
||||
window.currentLang = "<?= htmlspecialchars($lang) ?>";
|
||||
window.assetsBase = "/assets"; // falls du das noch nicht hast
|
||||
window.appDomains = <?= json_encode([
|
||||
'primaryDomain' => app_primary_domain(),
|
||||
'primaryUrl' => app_primary_url(),
|
||||
'fakecheckDomain' => app_fakecheck_domain(),
|
||||
'fakecheckUrl' => app_fakecheck_url(),
|
||||
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) ?>;
|
||||
</script>
|
||||
<!-- Eigenes CSS -->
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
|
||||
@@ -1,10 +1,19 @@
|
||||
<?php if (!defined('MATOMO_SITE_ID')) return; ?>
|
||||
<?php if (!defined('MATOMO_ENABLED') || !MATOMO_ENABLED) return; ?>
|
||||
<?php
|
||||
$matomoDomains = [];
|
||||
$primaryDomain = app_primary_domain();
|
||||
$fakecheckDomain = app_fakecheck_domain();
|
||||
|
||||
$matomoDomains[] = '*.' . $primaryDomain;
|
||||
$matomoDomains[] = '*.' . $fakecheckDomain;
|
||||
$matomoDomains[] = '*.' . $primaryDomain . '/fakecheck';
|
||||
?>
|
||||
|
||||
<!-- Matomo -->
|
||||
<script>
|
||||
var _paq = window._paq = window._paq || [];
|
||||
_paq.push(["setDomains", ["*.usbcheck.it","*.ismyusbfake.com","*.usbcheck.it/fakecheck"]]);
|
||||
_paq.push(["setDomains", <?= json_encode($matomoDomains, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) ?>]);
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user