@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')
cover_image) style="background-image: url({{ RvMedia::getImageUrl($shortcode->cover_image) }}) !important;" @endif>
@if (is_plugin_active('ads')) @foreach (get_ads_keys_from_shortcode($shortcode) as $key) {!! display_ad($key) !!} @endforeach @endif
@elseif ($style == 'style-5')
@php $categories = ! is_plugin_active('ecommerce') ? collect() : ProductCategoryHelper::getActiveTreeCategories(); @endphp @if ($categories->count())
@if ($categories->count() > 10)
{{ __('Show more...') }}
@endif
@endif
@if (is_plugin_active('ads')) @foreach (get_ads_keys_from_shortcode($shortcode) 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