@php use Botble\Base\Facades\BaseHelper; use Botble\Media\Facades\RvMedia; // Resolve and validate the chosen footer style. $allowedFooterStyles = ['style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6', 'style-7', 'style-8', 'style-9']; $footerStyle = (string) theme_option('footer_style', 'style-1'); if (! in_array($footerStyle, $allowedFooterStyles, true)) { $footerStyle = 'style-1'; } // Per-style modifier classes appended to `tf-footer`. Outer wrapper does NOT // emit `footer-style-{N}` — the demo HTML uses pure semantic classes only // (e.g. `tf-footer position-relative` for the home-fashion default). $footerModifiers = [ 'style-1' => 'position-relative', 'style-2' => 'footer-s2 type-reverse bg-dark', 'style-3' => 'footer-s3 bg-dark', 'style-4' => 'footer-s4 position-relative', 'style-5' => 'footer-s5 bg-dark', // Style-6 = light cream variant of style-5 (matches home-jewelry's `tf-footer footer-s5 bg-main-5`). // Demo home-jewelry footer wrapper has NO `type-light` token — drop to match demo verbatim. 'style-6' => 'footer-s5 bg-main-5', // Style-7 = light 4-col footer with `footer-s6` wrapper (matches home-baby + home-decor). 'style-7' => 'footer-s6', // Style-8 = white-bg variant of style-5 (matches home-fashion-2 `footer-s5 bg-white` verbatim — no `type-light`). 'style-8' => 'footer-s5 bg-white', // Style-9 = bare `tf-footer` (no modifier — matches home-decor + home-fashion-3 footer wrappers). // Inner partial (style-9.blade.php) handles content layout. Falls back to style-1 if missing. 'style-9' => '', ]; $extraModifier = $footerModifiers[$footerStyle] ?? ''; // Per-preset wrapper modifier OVERRIDE — replaces $extraModifier entirely. // Use when a demo's `