95 lines
6.5 KiB
PHP
95 lines
6.5 KiB
PHP
<?php
|
|
$pageTitle = isset($title) ? $title . ' | ' . config('app.name') : config('app.name');
|
|
$pageDescription = $description ?? '네트워크, 키폰, CCTV 설계·시공·유지보수 전문 기업';
|
|
$canonicalPath = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/';
|
|
$canonical = isset($canonicalUrl) ? (string) $canonicalUrl : rtrim((string) config('app.base_url'), '/') . $canonicalPath;
|
|
$robotsNoindex = config('app.noindex', false) || !empty($noindex);
|
|
$legalName = site_setting('legal_name', config('app.legal_name'));
|
|
$phone = site_setting('phone', config('app.contact.phone'));
|
|
$phoneSub = site_setting('phone_sub', config('app.contact.phone_sub'));
|
|
$fax = site_setting('fax', config('app.contact.fax'));
|
|
$email = site_setting('email', config('app.contact.email'));
|
|
$address = site_setting('address', config('app.contact.address'));
|
|
$bizno = site_setting('bizno', '206-86-70582');
|
|
$analyticsMeasurementId = (string) config('app.analytics.measurement_id', '');
|
|
$analyticsHost = strtolower((string) preg_replace('/:\d+$/', '', $_SERVER['HTTP_HOST'] ?? ''));
|
|
$analyticsEnabled = config('app.base_path') === '' && in_array($analyticsHost, ['gtsit.co.kr', 'www.gtsit.co.kr'], true);
|
|
$analyticsConsentKey = 'gtsit_analytics_consent_v' . config('app.analytics.consent_version', '1') . ($analyticsEnabled ? '' : '_preview');
|
|
?>
|
|
<!doctype html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><?= e($pageTitle) ?></title>
|
|
<meta name="description" content="<?= e($pageDescription) ?>">
|
|
<?php if ($robotsNoindex): ?><meta name="robots" content="noindex,nofollow,noarchive"><?php endif; ?>
|
|
<link rel="canonical" href="<?= e($canonical) ?>">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:locale" content="ko_KR">
|
|
<meta property="og:site_name" content="<?= e(config('app.name')) ?>">
|
|
<meta property="og:title" content="<?= e($pageTitle) ?>">
|
|
<meta property="og:description" content="<?= e($pageDescription) ?>">
|
|
<meta property="og:url" content="<?= e($canonical) ?>">
|
|
<link rel="stylesheet" href="<?= e(asset('css/site.css')) ?>?v=20260812-01">
|
|
<link rel="stylesheet" href="<?= e(asset('css/content.css')) ?>?v=20260810-13">
|
|
<script src="<?= e(asset('js/site.js')) ?>?v=20260812-01" defer></script>
|
|
</head>
|
|
<body data-analytics-consent data-analytics-enabled="<?= $analyticsEnabled ? 'true' : 'false' ?>" data-analytics-measurement-id="<?= e($analyticsMeasurementId) ?>" data-analytics-consent-key="<?= e($analyticsConsentKey) ?>">
|
|
<a class="skip-link" href="#main-content">본문 바로가기</a>
|
|
<header class="site-header">
|
|
<div class="header-inner">
|
|
<a class="brand" href="/" aria-label="<?= e($legalName) ?> 홈">
|
|
<img class="brand-logo" src="<?= e(asset('images/company-logo-v3.png')) ?>" alt="" width="64" height="30">
|
|
<span class="brand-copy"><strong><?= e($legalName) ?></strong></span>
|
|
</a>
|
|
<button class="menu-toggle" type="button" aria-expanded="false" aria-controls="site-navigation">
|
|
<span class="sr-only">메뉴 열기</span><span></span><span></span><span></span>
|
|
</button>
|
|
<nav id="site-navigation" class="site-navigation" aria-label="주요 메뉴">
|
|
<a href="/"<?= is_active_path('/') ? ' aria-current="page"' : '' ?>>홈</a>
|
|
<a href="/blog"<?= is_active_path('/blog') ? ' aria-current="page"' : '' ?>>블로그</a>
|
|
<a href="/contact"<?= is_active_path('/contact') ? ' aria-current="page"' : '' ?>>1:1 문의</a>
|
|
</nav>
|
|
<div class="header-actions">
|
|
<a class="header-phone" href="tel:<?= e($phone) ?>"><?= e($phone) ?></a>
|
|
<a class="button button-primary button-small" href="/contact">상담문의</a>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main id="main-content"><?= $content ?></main>
|
|
|
|
<section class="cta-band" aria-labelledby="cta-title">
|
|
<div class="container cta-inner">
|
|
<div><h2 id="cta-title">통신 인프라 구축, 어디서부터 시작할지 고민되세요?</h2><p>현장 상황에 맞는 상담과 견적을 안내해 드립니다.</p></div>
|
|
<div class="cta-actions"><a class="button button-light" href="tel:<?= e($phone) ?>">전화상담 <?= e($phone) ?></a><a class="button button-outline-light" href="/contact">1:1 온라인 문의</a></div>
|
|
</div>
|
|
</section>
|
|
|
|
<footer class="site-footer">
|
|
<div class="container footer-grid">
|
|
<div><a class="brand footer-brand" href="/"><img class="brand-logo" src="<?= e(asset('images/company-logo-v3.png')) ?>" alt="" width="56" height="26"><span class="brand-copy"><strong><?= e($legalName) ?></strong></span></a><p>네트워크·키폰·CCTV 설계부터 시공·유지보수까지 책임집니다.</p></div>
|
|
<div><h2>바로가기</h2><a href="/">홈</a><a href="/blog">블로그</a><a href="/contact">1:1 문의</a><a href="/privacy">개인정보처리방침</a></div>
|
|
<div><h2>연락처</h2><p>대표번호 <?= e($phone) ?><br>경기지점 <?= e($phoneSub) ?><br>FAX <?= e($fax) ?><br>이메일 <?= e($email) ?></p></div>
|
|
<div><h2>사업자 정보</h2><p><?= e($legalName) ?><br>사업자등록번호 <?= e($bizno) ?><br><?= e($address) ?></p></div>
|
|
</div>
|
|
<div class="container footer-bottom"><span>© 2026 <?= e($legalName) ?>. All rights reserved.</span><button type="button" data-cookie-settings>통계 쿠키 설정</button></div>
|
|
</footer>
|
|
<aside class="cookie-consent" data-cookie-consent hidden aria-labelledby="cookie-consent-title" aria-describedby="cookie-consent-description">
|
|
<div>
|
|
<strong id="cookie-consent-title">방문 통계 쿠키 안내</strong>
|
|
<p id="cookie-consent-description">사이트 개선을 위해 Google Analytics 통계 쿠키와 이에 따른 국외 이전을 사용합니다. 거부해도 모든 기능을 이용할 수 있습니다. <a href="/privacy#policy-cookie">자세히 보기</a></p>
|
|
</div>
|
|
<div class="cookie-consent-actions">
|
|
<button type="button" class="button button-secondary" data-cookie-decline>거부</button>
|
|
<button type="button" class="button button-primary" data-cookie-accept>허용</button>
|
|
</div>
|
|
</aside>
|
|
<a class="floating-call" href="tel:<?= e($phone) ?>" aria-label="전화상담 <?= e($phone) ?>">
|
|
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/></svg>
|
|
<span>전화상담</span>
|
|
</a>
|
|
</body>
|
|
</html>
|