@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; /** * Mirrors html/home-organic.html lines 2510-2649 (`testimonial-v01 style-def style-4 type-2`). * 3-up swiper. Each slide: image TOP (410x273) + 5★ + quote + author with Verified * checkmark + 60x60 product mini-card with name + price. * * Item enrichment (avatar from testimonial.image; product fields from featured product * pool) is performed in `partials/shortcodes/testimonials/index.blade.php` for any style * matching this allowlist entry. */ $autoplay = ($shortcode->autoplay ?? 'yes') === 'yes'; // container_class: demo §7 (L2511) uses `container-2` (wider than default `container`). $allowedContainers = ['container', 'container-2', 'container-full']; $rawContainer = $shortcode->container_class ?? 'container'; $containerClass = in_array($rawContainer, $allowedContainers, true) ? $rawContainer : 'container'; @endphp