FEATURE: add template for hotels
This commit is contained in:
+13
-10
@@ -1,17 +1,20 @@
|
||||
@if (isset($page->hotelsCategory))
|
||||
<div class="hotels">
|
||||
<h2>{{$page->hotelsCategory->name}}</h2>
|
||||
|
||||
@foreach($page->hotelsCategory->content as $i => $subpage)
|
||||
<div class="column"
|
||||
data-equalizer-watch>
|
||||
@if(!empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
<h4>{{$subpage->title}}</h4>
|
||||
<div class="row hotel">
|
||||
<div class="column large-3 medium-4">
|
||||
@if(!empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@thumbnail($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
</div>
|
||||
<div class="column large-9 medium-8">
|
||||
<h4>
|
||||
<a href="{{route('page.content', ['url' => $subpage->url])}}">{{$subpage->title}}</a>
|
||||
</h4>
|
||||
|
||||
{!! $subpage->pageContent !!}
|
||||
{!! $subpage->pageContent !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
+8
-6
@@ -4,16 +4,18 @@
|
||||
data-options="animationDuration:3000; animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">
|
||||
<ul class="orbit-container">
|
||||
@foreach($images as $i => $image)
|
||||
<li class="orbit-slide slow @if($i == 0) is-active @endif">
|
||||
<li class="orbit-slide {{$slideClass or ''}} @if($i == 0) is-active @endif">
|
||||
<img class="orbit-image" src="@upload($image->filename)" alt="" />
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<nav class="orbit-bullets">
|
||||
@foreach($images as $i => $image)
|
||||
<button @if($i == 0) class="is-active" @endif data-slide="{{$i}}"></button>
|
||||
@endforeach
|
||||
</nav>
|
||||
@if(!isset($hideBullets))
|
||||
<nav class="orbit-bullets">
|
||||
@foreach($images as $i => $image)
|
||||
<button @if($i == 0) class="is-active" @endif data-slide="{{$i}}"></button>
|
||||
@endforeach
|
||||
</nav>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@include('modules.staticpages.visitor._partials.slider')
|
||||
@include('modules.staticpages.visitor._partials.slider', ['slideClass' => 'slow'])
|
||||
<header class="hide-for-small-only top-bar centered text-center">
|
||||
@widgetArea('mainMenu')
|
||||
</header>
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row content-container">
|
||||
<h1>{{$page->title}}</h1>
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
@include('modules.staticpages.visitor._partials.slider')
|
||||
</div>
|
||||
@endsection
|
||||
@@ -50,7 +50,7 @@
|
||||
@widgetArea('footer')
|
||||
</div>
|
||||
<div id="binarity" class="text-right">
|
||||
<a target="_blank" href="https://www.binarity.cz/"> binarity s.r.o.</a>
|
||||
<a target="_blank" href="https://www.binarity.cz/">binarity s.r.o.</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user