@version(2) @load('./lang') @load('../../assets/heritage.css') @load('css/layout.css') @load('js/layout.js') {{-- 영문 제목용 Raleway (한글은 Pretendard 로 폴백) --}} @php $hr = $layout_info; $hr_width = (int)($hr->content_width ?? 1440) ?: 1440; $hr_scheme = $hr->color_scheme ?? 'auto'; $hr_point = trim((string)($hr->point_color ?? '')) ?: '#cda25a'; $hr_menu = array_values($gnb->list ?? []); $hr_current = null; foreach ($hr_menu as $hr_m) { if (!empty($hr_m['selected']) || !empty($hr_m['open'])) { $hr_current = $hr_m; break; } } $hr_type = $hr->layout_type ?? 'sub'; // 뒤에 x 가 붙은 토큰(slx/sfx)은 같은 유형에서 서브 타이틀 밴드만 뺀다 $hr_class_map = ['m' => 'main', 'sl' => 'sub', 'sf' => 'sub_full', 'slx' => 'sub', 'sfx' => 'sub_full']; $hr_no_subhead = false; $hr_selected_class = ''; foreach ($hr_menu as $hr_m) { if (empty($hr_m['selected']) && empty($hr_m['open'])) continue; $hr_selected_class = (string)($hr_m['class'] ?? ''); foreach ((array)($hr_m['list'] ?? []) as $hr_m2) { if (empty($hr_m2['selected']) && empty($hr_m2['open'])) continue; $hr_selected_class = (string)($hr_m2['class'] ?? '') ?: $hr_selected_class; foreach ((array)($hr_m2['list'] ?? []) as $hr_m3) { if (!empty($hr_m3['selected'])) { $hr_selected_class = (string)($hr_m3['class'] ?? '') ?: $hr_selected_class; } } } break; } $hr_has_class_type = false; foreach (preg_split('/\s+/', trim($hr_selected_class)) as $hr_token) { if (isset($hr_class_map[$hr_token])) { $hr_type = $hr_class_map[$hr_token]; $hr_has_class_type = true; $hr_no_subhead = substr($hr_token, -1) === 'x'; break; } } $hr_module_info = \Context::get('current_module_info'); $hr_module_now = is_object($hr_module_info) ? (string)($hr_module_info->module ?? '') : ''; // 사이트 대문은 메뉴 클래스 지정이 없으면 메인(비주얼)으로 본다. // 대문에 sl/sf 클래스를 넣으면 그 지정이 우선한다. $hr_site_info = \Context::get('site_module_info'); $hr_home_mid = is_object($hr_site_info) ? (string)($hr_site_info->mid ?? '') : ''; $hr_now_mid = is_object($hr_module_info) ? (string)($hr_module_info->mid ?? '') : ''; if (!$hr_has_class_type && $hr_home_mid !== '' && $hr_now_mid === $hr_home_mid) { $hr_type = 'main'; } $hr_full_modules = ['member', 'communication', 'zittme_pay', 'integration_search']; if (!$hr_has_class_type && in_array($hr_module_now, $hr_full_modules, true)) { $hr_type = 'sub_full'; } $hr_lnb = ($hr_type === 'sub' && $hr_current && !empty($hr_current['list'])) ? $hr_current : null; $hr_visuals = array_values((array)($hr->visuals ?? [])); $hr_visual_mode = $hr->show_visual ?? 'main'; $hr_show_visual = count($hr_visuals) && $hr_visual_mode !== 'none' && ($hr_visual_mode === 'all' || $hr_type === 'main'); $hr_interval = max(0, (int)($hr->visual_interval ?? 6)); $hr_footer_info = array_values(array_filter(array_map('trim', explode("\n", (string)($hr->footer_info ?? ''))))); @endphp {{-- 창 스크롤바는 html 이 그린다. 점 색이 감싸는 요소에만 있으면 거기까지 닿지 않는다 --}}
@include('_header') @if ($hr_show_visual) @include('_visual') @endif {{-- 서브 타이틀 밴드. slx/sfx 는 표시하지 않는다 --}} @if (!$hr_show_visual && $hr_type !== 'main' && !$hr_no_subhead) @php $hr_sub_title = trim((string)(\Context::getBrowserTitle() ?: ($hr_module_info->browser_title ?? ''))); @endphp @if ($hr_sub_title !== '')

{{ $hr_sub_title }}

@endif @endif
@if ($hr_lnb) @endif
{!! $content !!}
@include('_footer')