@php use Botble\Base\Facades\BaseHelper; /** * Footer Style 5 — mirrors html/home-furniture.html `tf-footer footer-s5 bg-dark` * (lines 4695-4894). TOP STRIP: 4-up swiper of `box-icon_V01 style-3` (white text * on dark) for service callouts. MIDDLE: position-relative with horizontal br-lines * top/bottom + 4 columns separated by vertical br-lines (Our Store / Company+Customer+ * My Account / Newsletter). BOTTOM: footer-bottom with currency+lang + copyright + * payment list. * * Top-strip box-icon items are admin-driven via theme_option `footer_service_*` * fields (icon class, title, text), or fall back to demo defaults. */ // Top-strip service callouts (4 boxes). Used by home-furniture's footer-s5 design; // skipped by home-pet-care's footer-s5 (which has the box-icon strip rendered as a // separate site-features section ABOVE the footer instead). Toggle via theme_option // `footer_show_service_strip` (default true preserves existing behavior). $showServiceStrip = (bool) theme_option('footer_show_service_strip', true); $services = []; if ($showServiceStrip) { for ($i = 1; $i <= 4; $i++) { $defaults = [ 1 => ['icon' => 'icon-ArrowUDownLeft', 'title' => __('14-Day Returns'), 'text' => __('Risk-free shopping with easy returns.')], 2 => ['icon' => 'icon-Package', 'title' => __('Free Shipping'), 'text' => __('No extra costs, just the price you see.')], 3 => ['icon' => 'icon-Headset', 'title' => __('24/7 Support'), 'text' => __('24/7 support, always here just for you.')], 4 => ['icon' => 'icon-SealPercent', 'title' => __('Member Discounts'), 'text' => __('Special prices for our loyal customers.')], ]; $iconClass = trim((string) theme_option("footer_service_icon_$i", $defaults[$i]['icon'])); $title = trim((string) theme_option("footer_service_title_$i", $defaults[$i]['title'])); $text = trim((string) theme_option("footer_service_text_$i", $defaults[$i]['text'])); if ($title !== '' || $text !== '') { $services[] = ['icon' => $iconClass, 'title' => $title, 'text' => $text]; } } } // Customer + My Account default link lists (style-5 has the extra My Account column). $defaultMyAccountLinks = [ ['label' => __('Login'), 'url' => '/login'], ['label' => __('Sign up'), 'url' => '/register'], ['label' => __('My Account'), 'url' => '/customer/overview'], ['label' => __('Wish List'), 'url' => '/wishlist'], ]; $hasCurrencies = is_plugin_active('ecommerce') && method_exists(\Botble\Ecommerce\Supports\CurrencySupport::class, 'currencies') && get_all_currencies()->count() > 1; $hasLanguages = is_plugin_active('language') && count(\Botble\Language\Facades\Language::getSupportedLocales() ?? []) > 1; @endphp {{-- TOP STRIP: 4-up box-icon_V01 style-3 swiper --}} @if (! empty($services))
@foreach ($services as $svc)
@if (! empty($svc['icon'])) @endif
@if (! empty($svc['title']))
{!! BaseHelper::clean($svc['title']) !!}
@endif @if (! empty($svc['text']))

{!! BaseHelper::clean($svc['text']) !!}

@endif
@endforeach
@endif {{-- Footer-s5 layout CSS (dark variant with gradient hero text) lives in assets/sass/component/_inline-migrated.scss. --}} {{-- MIDDLE: 4-column footer with vertical dividers --}}
{{-- HERO TEXT: giant gradient brand name (footer-hero-text) — demo home-sport.html lines ~3950+. --}} @php $heroText = trim((string) theme_option('footer_hero_text', \Botble\Theme\Facades\Theme::getSiteTitle() . ' STORE')); @endphp @if ($heroText !== '') @endif {{-- BOTTOM: currency + lang switchers, copyright, payment list --}}