@version(2) @php if (!function_exists('rl_nl2br_escape')) { // 줄바꿈을 살려서 내보낸다. 템플릿에서 클로저를 쓰면 컴파일이 깨지므로 함수로 둔다 function rl_nl2br_escape($rl_t) { return nl2br(escape(preg_replace('//i', "\n", (string)$rl_t))); } } $rl_hero_h = $rl->hero_height ?? 'full'; $rl_hero_img = trim((string)($rl->hero_image ?? '')); $rl_hero_title = trim((string)($rl->hero_title ?? '')); $rl_hero_kicker = trim((string)($rl->hero_kicker ?? '')); $rl_hero_text = trim((string)($rl->hero_text ?? '')); $rl_hero_url = trim((string)($rl->hero_link_url ?? '')); $rl_hero_label = trim((string)($rl->hero_link_text ?? '')); $rl_marquee_raw = trim((string)($rl->marquee_text ?? '')); $rl_marquee = []; foreach (explode('|', $rl_marquee_raw) as $rl_mq) { $rl_mq = trim($rl_mq); if ($rl_mq !== '') { $rl_marquee[] = $rl_mq; } } $rl_marquee_speed = $rl->marquee_speed ?? 'normal'; @endphp
@if ($rl_hero_kicker !== ''){{ $rl_hero_kicker }}@endif @if ($rl_hero_title !== '')

{!! rl_nl2br_escape($rl_hero_title) !!}

@endif @if ($rl_hero_text !== '')

{!! rl_nl2br_escape($rl_hero_text) !!}

@endif @if ($rl_hero_url !== '' && $rl_hero_label !== '') {{ $rl_hero_label }} @endif
@if (count($rl_marquee)) @endif