@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') @foreach($sliders as $slider) @if ($slider->link && !($shortcode->show_newsletter_form == 'yes' && is_plugin_active('newsletter'))) @endif first) style="display: none;" @endif> {!! Theme::partial('shortcodes.sliders.content', compact('slider', 'shortcode')) !!} @php $tabletImage = $slider->getMetaData('tablet_image', true) ?: $slider->image; $mobileImage = $slider->getMetaData('mobile_image', true) ?: $tabletImage; @endphp @if ($slider->link && !($shortcode->show_newsletter_form == 'yes' && is_plugin_active('newsletter'))) @endif @endforeach @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> @foreach($sliders as $slider) @if ($slider->link && !($shortcode->show_newsletter_form == 'yes' && is_plugin_active('newsletter'))) @endif @php $tabletImage = $slider->getMetaData('tablet_image', true) ?: $slider->image; $mobileImage = $slider->getMetaData('mobile_image', true) ?: $tabletImage; @endphp {!! Theme::partial('shortcodes.sliders.content', compact('slider', 'shortcode')) !!} @if ($slider->link && !($shortcode->show_newsletter_form == 'yes' && is_plugin_active('newsletter'))) @endif @endforeach @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()) @foreach ($categories->take(10) as $category) @if ($categoryImage = $category->icon_image) @elseif ($categoryIcon = $category->icon) @endif {{ $category->name }} @endforeach @if ($categories->count() > 10) @foreach ($categories->skip(10) as $category) @if ($categoryImage = $category->icon_image) @elseif ($categoryIcon = $category->icon) @endif {{ $category->name }} @endforeach {{ __('Show more...') }} @endif @endif @foreach($sliders as $slider) @if ($slider->link && !($shortcode->show_newsletter_form == 'yes' && is_plugin_active('newsletter'))) @endif @php $tabletImage = $slider->getMetaData('tablet_image', true) ?: $slider->image; $mobileImage = $slider->getMetaData('mobile_image', true) ?: $tabletImage; @endphp {!! Theme::partial('shortcodes.sliders.content', compact('slider', 'shortcode')) !!} @if ($slider->link && !($shortcode->show_newsletter_form == 'yes' && is_plugin_active('newsletter'))) @endif @endforeach @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