@php // Mirrors home-fashion.html `.banner-v01` markup. Theme.css doesn't yet ship // SCSS for `.banner-v01`, so we inline the size + positioning here: // - banner-v01 wrapper: position:relative; constrained height; section margin // - bn_image img: width:100%; height:100%; object-fit:cover (image fills box) // - bn_content: absolutely positioned over the image, vertical-centred // - infiniteSlide-text: absolutely anchored to bottom of the box // Use the original image (no thumbnail size). The banner source is already // sized for a 1920x620 strip; the `hero-banner` 1920x1080 thumbnail forces a // taller aspect and crops the model's head off when the box is 620px tall. $imageUrl = RvMedia::getImageUrl($shortcode->image ?? $shortcode->background_image ?? null); $alignment = in_array($shortcode->text_alignment ?? '', ['left', 'center', 'right'], true) ? $shortcode->text_alignment : 'center'; // subheading_position: render subheading 'above' or 'below' heading. // Default 'below' preserves fashion preset rendering. HomeFurniture ยง8 demo // (banner-v03 parallaxie, lines 2558-2586) has subheading ABOVE heading. // Added 2026-05-15 for HomeFurniture parity. $subheadingPosition = in_array($shortcode->subheading_position ?? '', ['above', 'below'], true) ? $shortcode->subheading_position : 'below'; // Comma-separated phrases for the looping marquee under the banner. // Empty value disables the ribbon. $marqueeRaw = trim((string) ($shortcode->marquee_text ?? 'NEW SEASON PICKS, TRENDING STYLES, LIMITED DROPS')); $marqueeItems = array_filter(array_map('trim', explode(',', $marqueeRaw))); @endphp