Website
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
$lang = $lang ?? 'cs';
|
||||
$branch = $branch ?? 'cz';
|
||||
$navPrefix = $navPrefix ?? '';
|
||||
|
||||
require_once __DIR__ . '/content.php';
|
||||
$fc = az_content('footer/' . (in_array($lang, ['cs','de','en','hu'], true) ? $lang : 'cs') . '.json');
|
||||
$f = ['navH'=>$fc['navH'], 'nav'=>$fc['nav'], 'frH'=>$fc['frH'], 'fr'=>$fc['fr'],
|
||||
'contactH'=>$fc['contactH'], 'ico'=>$fc['ico'] ?? '', 'privacyText'=>$fc['privacyText'],
|
||||
'cz'=>$fc['countryCz'], 'hu'=>$fc['countryHu']];
|
||||
$repProtLabel = $fc['repProt'] ?? 'Reporting protection';
|
||||
$repFormLabel = $fc['repForm'] ?? 'Reporting';
|
||||
$repProtUrl = $fc['repProtUrl'] ?? '/assets/docs/hu/reporting-data-protection.pdf';
|
||||
$repFormUrl = $fc['repFormUrl'] ?? '/assets/docs/hu/panaszbejelento-nyomtatvany.pdf';
|
||||
$privacyUrls = [
|
||||
'cz' => ['cs'=>'/cs/ochrana-osobnich-udaju/', 'de'=>'/de/datenschutz/', 'en'=>'/en/privacy-policy/'],
|
||||
'hu' => ['hu'=>'/hu/adatkezelesi-tajekoztato/', 'en'=>'/en/privacy-policy/', 'de'=>'/de/datenschutz/'],
|
||||
];
|
||||
$privacyUrl = $privacyUrls[$branch][$lang] ?? $privacyUrls['cz']['cs'];
|
||||
|
||||
$brandDesc = $fc['brandDesc'][$branch] ?? '';
|
||||
|
||||
if ($branch === 'cz') {
|
||||
$company = 'Alba-Zöchling s.r.o.';
|
||||
$mapsUrl = 'https://maps.google.com/?q=Sezemická+2757/2,+193+00+Praha+-+Horní+Počernice,+Czechia';
|
||||
$addr1 = 'Sezemická 2757/2'; $addr2 = '193 00 Praha - Horní Počernice'; $addrCountry = $f['cz'];
|
||||
$emailB64 = 'aW5mb0BhbGJhLXpvY2hsaW5nLmN6';
|
||||
} else {
|
||||
$company = 'Alba-Zöchling Kft.';
|
||||
$mapsUrl = 'https://maps.google.com/?q=8000+Székesfehérvár+Holland+fasor+9';
|
||||
$addr1 = '8000 Székesfehérvár'; $addr2 = 'Holland fasor 9.'; $addrCountry = $f['hu'];
|
||||
$emailB64 = 'aW5mb0BhbGJhLXpvY2hsaW5nLmh1';
|
||||
}
|
||||
$navAnchors = ['#hero','#sluzby','#skladovani','#tym'];
|
||||
if ($branch === 'hu') {
|
||||
$navAnchors[] = '#carrier';
|
||||
$f['nav'][] = $fc['careers'] ?? 'Careers';
|
||||
}
|
||||
$frAnchors = ['#sluzby','#sluzby','#sluzby','#skladovani'];
|
||||
$jsVersion = $jsVersion ?? '20260811';
|
||||
?>
|
||||
<footer class="ftr<?= $branch === 'hu' ? ' ftr--eu' : '' ?>" role="contentinfo">
|
||||
<div class="container">
|
||||
<div class="ftr__grid">
|
||||
|
||||
<div class="ftr__brand">
|
||||
<img src="/assets/img/logo/logo_white.webp" alt="Alba-Zöchling" class="logo" width="153" height="26">
|
||||
<p><?= $brandDesc ?></p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3><?= $f['navH'] ?></h3>
|
||||
<ul>
|
||||
<?php foreach ($navAnchors as $i => $a): ?> <li><a href="<?= $navPrefix . $a ?>"><?= $f['nav'][$i] ?></a></li>
|
||||
<?php endforeach; ?> </ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3><?= $f['frH'] ?></h3>
|
||||
<ul>
|
||||
<?php foreach ($frAnchors as $i => $a): ?> <li><a href="<?= $navPrefix . $a ?>"><?= $f['fr'][$i] ?></a></li>
|
||||
<?php endforeach; ?> </ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3><?= $f['contactH'] ?></h3>
|
||||
<div class="ftr__ci"><svg class="icon" aria-hidden="true"><use href="#icon-location-dot"/></svg><a href="<?= $mapsUrl ?>" target="_blank" rel="noopener noreferrer"><?= $addr1 ?><br><?= $addr2 ?><br><?= $addrCountry ?></a></div>
|
||||
<div class="ftr__ci"><svg class="icon" aria-hidden="true"><use href="#icon-envelope"/></svg><a href="#" data-m="<?= $emailB64 ?>"><span data-mt></span></a></div>
|
||||
<?php if ($branch === 'cz'): ?> <div class="ftr__ci"><span class="icon" aria-hidden="true" style="font-size:0.65rem;font-weight:700;color:var(--text-inv-2)"><?= $f['ico'] ?></span> 24467987</div>
|
||||
<?php else: ?> <div class="ftr__ci"><svg class="icon" aria-hidden="true"><use href="#icon-phone"/></svg><a href="#" data-t="KzM2IDIyIDUxMiA2NTA="><span data-tt></span></a></div>
|
||||
<?php endif; ?> </div>
|
||||
|
||||
</div>
|
||||
<div class="ftr__bot">
|
||||
<span>© 2026 <?= $company ?></span>
|
||||
<div class="ftr__legal">
|
||||
<?php if ($branch === 'hu' && $repProtUrl !== ''): ?> <a href="<?= $repProtUrl ?>"><?= $repProtLabel ?></a>
|
||||
<?php elseif ($branch === 'hu'): ?> <span class="ftr__soon"><?= $repProtLabel ?></span>
|
||||
<?php endif; ?><?php if ($branch === 'hu' && $repFormUrl !== ''): ?> <a href="<?= $repFormUrl ?>" download target="_blank" rel="noopener"><?= $repFormLabel ?></a>
|
||||
<?php endif; ?> <a href="<?= $privacyUrl ?>"><?= $f['privacyText'] ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<?php
|
||||
$showEuInfoblokk = $showEuInfoblokk ?? ($branch === 'hu');
|
||||
if ($showEuInfoblokk) include __DIR__ . '/eu-infoblock.php';
|
||||
?>
|
||||
<script defer src="/assets/js/main.js?v=<?= $jsVersion ?>"></script>
|
||||
Reference in New Issue
Block a user