@php $layout = theme_option('product_list_layout'); $requestLayout = request()->input('layout'); if ($requestLayout && in_array($requestLayout, array_keys(get_product_single_layouts()))) { $layout = $requestLayout; } $layout = ($layout && in_array($layout, array_keys(get_product_single_layouts()))) ? $layout : 'product-full-width'; Theme::asset()->usePath() ->add('custom-scrollbar-css', 'plugins/mcustom-scrollbar/jquery.mCustomScrollbar.css'); Theme::asset()->container('footer')->usePath() ->add('custom-scrollbar-js', 'plugins/mcustom-scrollbar/jquery.mCustomScrollbar.js', ['jquery']); [$categories, $brands, $tags, $rand, $categoriesRequest, $urlCurrent, $categoryId, $maxFilterPrice] = EcommerceHelper::dataForFilter($category ?? null); @endphp @if ($layout === 'product-full-width') @else
@if($categories->isNotEmpty()) @endif @if ($maxFilterPrice) @endif @if ($brands->isNotEmpty()) @endif @if ($tags->isNotEmpty()) @endif {!! render_product_swatches_filter([ 'view' => Theme::getThemeNamespace('views.ecommerce.attributes.attributes-filter-sidebar-renderer') ]) !!}
@endif