Commit 27f802bb by Bagus Pambudi

fix gallery carousel

parent cb66027f
......@@ -53,7 +53,7 @@ class FrontController extends Controller
$agenda = Agenda::where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->get();
$quote = Design::where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
......@@ -89,7 +89,7 @@ class FrontController extends Controller
$agenda = Agenda::with(['rEn'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::with(['rEn'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->get();
$quote = Design::with(['rEn'])->where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
......@@ -125,7 +125,7 @@ class FrontController extends Controller
$agenda = Agenda::with(['rDe'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::with(['rDe'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->get();
$quote = Design::with(['rDe'])->where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
......@@ -161,7 +161,7 @@ class FrontController extends Controller
$agenda = Agenda::with(['rSa'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::with(['rSa'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->get();
$quote = Design::with(['rSa'])->where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
......@@ -197,7 +197,7 @@ class FrontController extends Controller
$agenda = Agenda::with(['rZh'])->where('info_status', '1')->where('event_date', '>=', date('Y-m-d'))->orderby('event_date', 'asc')->get();
$slider = Slider::where('is_active', '1')->orderby('created_at', 'desc')->get();
$menu = Menu::with(['rZh'])->orderby('urutan', 'asc')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->limit('4')->get();
$gallery = Gallery::where('is_active', '1')->orderBy('created_at', 'asc')->get();
$quote = Design::with(['rZh'])->where('name_design', 'quote')->get();
$widget_right = Design::where('name_design', 'widget_right')->orderBy('urutan', 'ASC')->get();
$widget_left = Design::where('name_design', 'widget_left')->orderBy('urutan', 'ASC')->get();
......
......@@ -221,8 +221,34 @@
<h2>Galeri</h2>
<hr>
</div>
<div class="carousel_wrapper">
<div class="margin-top">
<div id="owl_shop_carousel" class="owl-carousel">
@foreach($gallery as $value)
<div class="shop_carousel">
<div class="shop_item">
<div class="entry">
@if ($setting['external_storage'] == 1)
<img src="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}" alt="" class="img-responsive">
@else
<img src="{{ url('/storage/gallery/' . $value->thumbnail) }}" alt="" class="img-responsive">
@endif
<div class="magnifier">
<div class="buttons">
<a class="st" rel="bookmark" href="{{ $setting['url_static'] . '/' . $setting['directory'] . '/gallery/' . $value->gallery }}"><i class="button"></i>{{$value->title}}</a>
</div><!-- end buttons -->
</div><!-- end magnifier -->
</div><!-- end entry -->
</div><!-- end item -->
</div><!-- end shop carousel -->
@endforeach
</div><!-- end padding-top -->
</div><!-- end carousel_wrapper -->
</div>
<!-- end container -->
<!-- end container -->{{--
<div class="portfolio_wrapper padding-top" style="position: relative; overflow: hidden; height: 372px;">
<div class="portfolio_item" style="position: absolute; left: 0px; top: 0px; transform: translate(0px, 30px); width: 379px;">
<div class="entry">
......@@ -282,7 +308,7 @@
</div><!-- end entry -->
</div><!-- end portfolio_item -->
@endif
</div>
</div>--}}
<div class="clearfix"></div>
</section>
@endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment