@php /** * Blog Modern — RIGHT sidebar. * * Renders, in order: a "Featured story" card (only when a featured post exists), * a pure-CSS promo/CTA block, and a newsletter signup widget. No Swiper, no * carousel — static markup only. Reads ONLY its passed vars, like blog-sidebar.php. * * @var array|null $featured most-viewed post row, or null (see DATA CONTRACT) * @var string $activeCat selected category slug (optional, currently unused) */ $featured = $featured ?? null; $activeCat = $activeCat ?? ''; $searchTerm = $searchTerm ?? ''; // Unique suffix so the newsletter field id never collides with the left sidebar. $uid = $uid ?? substr(md5('blog-modern-right'), 0, 6); @endphp @if ($featured) @endif
@if (setting('newsletter_provider_blog', 'local') !== 'off') @endif