@php /** * 3-card collection row matching home-jewelry.html "Section Collection" * (lines 1851-1903): tf-grid-layout md-col-3 with category-v07 cards. * Each card shows image + name + "Shop Now" inline link. * * Knobs: * card_image_size โ RvMedia size string for the card image. Default * 'thumb' (400x400 SQUARE โ back-compat with HomeFurniture * / HomeElectronics callers). HomeJewelry ยง5 demo art is * landscape 457x320 โ pass 'original' (falsey RvMedia size) * to render the original aspect without center-cropping. * Allowlist: 'thumb' | 'product-list' | 'hero-banner' | 'original'. */ $cardImageSizeRaw = trim((string) ($shortcode->card_image_size ?? 'thumb')); $cardImageSizeAllowed = ['thumb', 'product-list', 'hero-banner', 'original']; if (! in_array($cardImageSizeRaw, $cardImageSizeAllowed, true)) { $cardImageSizeRaw = 'thumb'; } $cardImageSize = $cardImageSizeRaw === 'original' ? false : $cardImageSizeRaw; @endphp