@if (is_plugin_active('simple-slider') && count($sliders) > 0 && $sliders->loadMissing('metadata') && $slider->loadMissing('metadata')) @php $style = $slider->getMetaData('simple_slider_style', true); @endphp @if ($style == 'style-3')
@if (is_plugin_active('ads')) @foreach (get_ads_keys_from_shortcode($shortcode) as $key) {!! display_ad($key, 'banner-' . ($loop->index + 1)) !!} @endforeach @endif
@elseif ($style == 'style-4')
{!! Theme::partial('shortcodes.sliders.grid', compact('sliders', 'shortcode') + ['class' => 'style-4']) !!}
@elseif ($style == 'style-2') @php $ads = []; if (is_plugin_active('ads')) { $ads = get_ads_keys_from_shortcode($shortcode); } @endphp
cover_image) style="background-image: url({{ RvMedia::getImageUrl($shortcode->cover_image) }}) !important;" @endif>
! empty($ads)])>
@if (! empty($ads))
@foreach ($ads as $key) {!! display_ad($key) !!} @endforeach
@endif
@elseif ($style == 'style-5') @php $ads = []; if (is_plugin_active('ads')) { $ads = get_ads_keys_from_shortcode($shortcode); } @endphp
@php $categories = ! is_plugin_active('ecommerce') ? collect() : ProductCategoryHelper::getActiveTreeCategories(); @endphp @if ($categories->isNotEmpty())
@if ($categories->count() > 10)
{{ __('Show more...') }}
@endif
@endif
! empty($ads), 'col-xl-10' => empty($ads)])>
@if (! empty($ads))
@foreach ($ads as $key)
{!! display_ad($key, 'banner-' . ($loop->index + 1)) !!}
@endforeach
@endif
@else
{!! Theme::partial('shortcodes.sliders.grid', compact('sliders', 'shortcode') + ['class' => 'style-4', 'itemClass' => 'rectangle']) !!}
@endif @endif