운영 기능 및 GA4 대시보드 반영
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<meta name="robots" content="noindex,nofollow,noarchive">
|
||||
<title><?= e($title ?? '관리자') ?> | <?= e(config('app.legal_name')) ?> 관리자</title>
|
||||
<link rel="stylesheet" href="<?= e(asset('css/site.css')) ?>">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/content.css')) ?>">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/admin.css')) ?>">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/site.css')) ?>?v=20260810-12">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/content.css')) ?>?v=20260810-13">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/admin.css')) ?>?v=20260813-2">
|
||||
<script src="<?= e(asset('js/admin.js')) ?>?v=20260810-4" defer></script>
|
||||
</head>
|
||||
<body class="admin-body">
|
||||
<a class="skip-link" href="#admin-main">본문 바로가기</a>
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
$pageTitle = isset($title) ? $title . ' | ' . config('app.name') : config('app.name');
|
||||
$pageDescription = $description ?? '네트워크, 키폰, CCTV 설계·시공·유지보수 전문 기업';
|
||||
$canonicalPath = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/';
|
||||
$canonical = rtrim((string) config('app.base_url'), '/') . $canonicalPath;
|
||||
$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'));
|
||||
@@ -10,6 +11,10 @@ $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">
|
||||
@@ -18,7 +23,7 @@ $bizno = site_setting('bizno', '206-86-70582');
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= e($pageTitle) ?></title>
|
||||
<meta name="description" content="<?= e($pageDescription) ?>">
|
||||
<?php if (config('app.noindex', false)): ?><meta name="robots" content="noindex,nofollow,noarchive"><?php endif; ?>
|
||||
<?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">
|
||||
@@ -26,11 +31,11 @@ $bizno = site_setting('bizno', '206-86-70582');
|
||||
<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=20260805-11">
|
||||
<link rel="stylesheet" href="<?= e(asset('css/content.css')) ?>?v=20260805-9">
|
||||
<script src="<?= e(asset('js/site.js')) ?>?v=20260805-9" defer></script>
|
||||
<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>
|
||||
<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">
|
||||
@@ -69,8 +74,18 @@ $bizno = site_setting('bizno', '206-86-70582');
|
||||
<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">© 2026 <?= e($legalName) ?>. All rights reserved.</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>
|
||||
|
||||
Reference in New Issue
Block a user