first upload all files
This commit is contained in:
53
Themes/Storefront/views/public/home/index.blade.php
Normal file
53
Themes/Storefront/views/public/home/index.blade.php
Normal file
@@ -0,0 +1,53 @@
|
||||
@extends('public.layout')
|
||||
|
||||
@section('title', setting('store_tagline'))
|
||||
|
||||
@section('content')
|
||||
@includeUnless(is_null($slider), 'public.home.sections.slider')
|
||||
|
||||
@if (setting('storefront_features_section_enabled'))
|
||||
<home-features :features="{{ json_encode($features) }}"></home-features>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_featured_categories_section_enabled'))
|
||||
<featured-categories :data="{{ json_encode($featuredCategories) }}"></featured-categories>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_three_column_full_width_banners_enabled'))
|
||||
<banner-three-column-full-width :data="{{ json_encode($threeColumnFullWidthBanners) }}">
|
||||
</banner-three-column-full-width>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_product_tabs_1_section_enabled'))
|
||||
<product-tabs-one :data="{{ json_encode($productTabsOne) }}"></product-tabs-one>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_top_brands_section_enabled') && $topBrands->isNotEmpty())
|
||||
<top-brands :top-brands="{{ json_encode($topBrands) }}"></top-brands>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_flash_sale_and_vertical_products_section_enabled'))
|
||||
<flash-sale-and-vertical-products :data="{{ json_encode($flashSaleAndVerticalProducts) }}">
|
||||
</flash-sale-and-vertical-products>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_two_column_banners_enabled'))
|
||||
<banner-two-column :data="{{ json_encode($twoColumnBanners) }}"></banner-two-column>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_product_grid_section_enabled'))
|
||||
<product-grid :data="{{ json_encode($productGrid) }}"></product-grid>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_three_column_banners_enabled'))
|
||||
<banner-three-column :data="{{ json_encode($threeColumnBanners) }}"></banner-three-column>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_product_tabs_2_section_enabled'))
|
||||
<product-tabs-two :data="{{ json_encode($tabProductsTwo) }}"></product-tabs-two>
|
||||
@endif
|
||||
|
||||
@if (setting('storefront_one_column_banner_enabled'))
|
||||
<banner-one-column :banner="{{ json_encode($oneColumnBanner) }}"></banner-one-column>
|
||||
@endif
|
||||
@endsection
|
||||
@@ -0,0 +1,59 @@
|
||||
<section class="home-section-wrap">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="home-section-inner">
|
||||
<div class="home-slider-wrap">
|
||||
<div
|
||||
class="home-slider"
|
||||
data-speed="{{ $slider->speed ?? '1000' }}"
|
||||
data-autoplay="{{ $slider->autoplay ?? 'false' }}"
|
||||
data-autoplay-speed="{{ $slider->autoplay_speed ?? '5000' }}"
|
||||
data-fade="{{ $slider->fade ?? 'false' }}"
|
||||
data-dots="{{ $slider->dots ?? 'true' }}"
|
||||
data-arrows="{{ $slider->arrows ?? 'true' }}"
|
||||
>
|
||||
@foreach ($slider->slides as $slide)
|
||||
<div class="slide">
|
||||
<img src="{{ $slide->file->path }}" data-animation-in="zoomInImage" class="slider-image animated">
|
||||
|
||||
<div class="slide-content {{ $slide->isAlignedLeft() ? 'align-left' : 'align-right' }}">
|
||||
<div class="captions">
|
||||
<span
|
||||
class="caption caption-1"
|
||||
data-animation-in="{{ data_get($slide->options, 'caption_1.effect', 'fadeInRight') }}"
|
||||
data-delay-in="{{ data_get($slide->options, 'caption_1.delay', '0') }}"
|
||||
>
|
||||
{!! $slide->caption_1 !!}
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="caption caption-2"
|
||||
data-animation-in="{{ data_get($slide->options, 'caption_2.effect', 'fadeInRight') }}"
|
||||
data-delay-in="{{ data_get($slide->options, 'caption_2.delay', '0.3') }}"
|
||||
>
|
||||
{!! $slide->caption_2 !!}
|
||||
</span>
|
||||
|
||||
@if ($slide->call_to_action_text)
|
||||
<a
|
||||
href="{{ $slide->call_to_action_url }}"
|
||||
class="btn btn-primary btn-slider"
|
||||
data-animation-in="{{ data_get($slide->options, 'call_to_action.effect', 'fadeInRight') }}"
|
||||
data-delay-in="{{ data_get($slide->options, 'call_to_action.delay', '0.7') }}"
|
||||
target="{{ $slide->open_in_new_window ? '_blank' : '_self' }}"
|
||||
>
|
||||
{!! $slide->call_to_action_text !!}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('public.home.sections.slider_banners')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="home-banner-wrap">
|
||||
<a href="{{ $sliderBanners['banner_1']->call_to_action_url }}"
|
||||
class="banner"
|
||||
target="{{ $sliderBanners['banner_1']->open_in_new_window ? '_blank' : '_self' }}"
|
||||
>
|
||||
<img src="{{ $sliderBanners['banner_1']->image->path }}" alt="banner">
|
||||
</a>
|
||||
|
||||
<a href="{{ $sliderBanners['banner_2']->call_to_action_url }}"
|
||||
class="banner m-t-30"
|
||||
target="{{ $sliderBanners['banner_2']->open_in_new_window ? '_blank' : '_self' }}"
|
||||
>
|
||||
<img src="{{ $sliderBanners['banner_2']->image->path }}" alt="banner">
|
||||
</a>
|
||||
</div>
|
||||
@@ -0,0 +1,62 @@
|
||||
@if (setting('newsletter_enabled'))
|
||||
<newsletter-subscription inline-template>
|
||||
<section class="subscribe-wrap d-flex justify-content-center">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-xl-14 col-lg-18">
|
||||
<div class="subscribe">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-lg-9 col-md-18">
|
||||
<div class="subscribe-text">
|
||||
<span class="title">
|
||||
{{ trans('storefront::layout.subscribe_to_our_newsletter') }}
|
||||
</span>
|
||||
|
||||
<span class="sub-title">
|
||||
{{ trans('storefront::layout.subscribe_to_our_newsletter_subtitle') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-9 col-md-18">
|
||||
<div class="subscribe-field">
|
||||
<form @submit.prevent="subscribe">
|
||||
<div class="form-group">
|
||||
<input
|
||||
type="text"
|
||||
v-model="email"
|
||||
class="form-control"
|
||||
placeholder="{{ trans('storefront::layout.enter_your_email_address') }}"
|
||||
>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-primary btn-subscribe"
|
||||
v-if="subscribed"
|
||||
v-cloak
|
||||
>
|
||||
<i class="las la-check"></i>
|
||||
{{ trans('storefront::layout.subscribed') }}
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-primary btn-subscribe"
|
||||
:class="{ 'btn-loading': subscribing }"
|
||||
v-else
|
||||
v-cloak
|
||||
>
|
||||
{{ trans('storefront::layout.subscribe') }}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</newsletter-subscription>
|
||||
@endif
|
||||
Reference in New Issue
Block a user