FEATURE: add template for hotels
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<label class="control-label">
|
<label class="control-label">
|
||||||
@lang('admin/contents.field_publishedFrom')
|
@lang('admin/contents.field_published_from')
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="datetime" class="form-control" name="publishedFrom" value="{{old('publishedFrom', $page->publishedFrom)}}"
|
<input type="datetime" class="form-control" name="publishedFrom" value="{{old('publishedFrom', $page->publishedFrom)}}"
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<label class="control-label">
|
<label class="control-label">
|
||||||
@lang('admin/contents.field_publishedTo')
|
@lang('admin/contents.field_published_to')
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<input type="datetime" class="form-control" name="publishedTo" value="{{old('publishedTo', $page->publishedTo)}}"
|
<input type="datetime" class="form-control" name="publishedTo" value="{{old('publishedTo', $page->publishedTo)}}"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class AddHotelsCategory implements Process
|
|||||||
function handle(Content & $page)
|
function handle(Content & $page)
|
||||||
{
|
{
|
||||||
if ($page->template == 'staticpages::pageWithHotels') {
|
if ($page->template == 'staticpages::pageWithHotels') {
|
||||||
$category = Category::where('url', 'hotels')
|
$category = Category::where('url', 'hotely')
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
$page->hotelsCategory = $category;
|
$page->hotelsCategory = $category;
|
||||||
|
|||||||
+12
-5
@@ -86,6 +86,11 @@ header.top-bar h1 a {
|
|||||||
background: #F8FEF0;
|
background: #F8FEF0;
|
||||||
box-shadow: 0 0 10px #CBCBCB;
|
box-shadow: 0 0 10px #CBCBCB;
|
||||||
border-radius: 5px 5px 0 0;
|
border-radius: 5px 5px 0 0;
|
||||||
|
width: 98%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-container h1 {
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.orbit {
|
.orbit {
|
||||||
@@ -144,11 +149,13 @@ header.top-bar h1 a {
|
|||||||
border: solid 1px #CCC;
|
border: solid 1px #CCC;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer {
|
.hotel {
|
||||||
margin-bottom: 150px;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer-widgets {
|
#footer {
|
||||||
|
margin-bottom: 50px;
|
||||||
|
width: 98%;
|
||||||
border-top: solid 2px #FF7F11;
|
border-top: solid 2px #FF7F11;
|
||||||
background: #3F3F37;
|
background: #3F3F37;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
@@ -156,8 +163,8 @@ header.top-bar h1 a {
|
|||||||
color: #EEF4D4;
|
color: #EEF4D4;
|
||||||
}
|
}
|
||||||
|
|
||||||
#binarity {
|
#binarity, #binarity a {
|
||||||
margin-top: 2em;
|
color: #ABA48E;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 639px) {
|
@media screen and (max-width: 639px) {
|
||||||
|
|||||||
+10
-7
@@ -1,17 +1,20 @@
|
|||||||
@if (isset($page->hotelsCategory))
|
@if (isset($page->hotelsCategory))
|
||||||
<div class="hotels">
|
<div class="hotels">
|
||||||
<h2>{{$page->hotelsCategory->name}}</h2>
|
|
||||||
|
|
||||||
@foreach($page->hotelsCategory->content as $i => $subpage)
|
@foreach($page->hotelsCategory->content as $i => $subpage)
|
||||||
<div class="column"
|
<div class="row hotel">
|
||||||
data-equalizer-watch>
|
<div class="column large-3 medium-4">
|
||||||
@if(!empty($subpage->titlePhoto))
|
@if(!empty($subpage->titlePhoto))
|
||||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
<img class="thumbnail" src="@thumbnail($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||||
@endif
|
@endif
|
||||||
<h4>{{$subpage->title}}</h4>
|
</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>
|
||||||
@endforeach
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
@endif
|
@endif
|
||||||
+3
-1
@@ -4,16 +4,18 @@
|
|||||||
data-options="animationDuration:3000; animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">
|
data-options="animationDuration:3000; animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">
|
||||||
<ul class="orbit-container">
|
<ul class="orbit-container">
|
||||||
@foreach($images as $i => $image)
|
@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="" />
|
<img class="orbit-image" src="@upload($image->filename)" alt="" />
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@if(!isset($hideBullets))
|
||||||
<nav class="orbit-bullets">
|
<nav class="orbit-bullets">
|
||||||
@foreach($images as $i => $image)
|
@foreach($images as $i => $image)
|
||||||
<button @if($i == 0) class="is-active" @endif data-slide="{{$i}}"></button>
|
<button @if($i == 0) class="is-active" @endif data-slide="{{$i}}"></button>
|
||||||
@endforeach
|
@endforeach
|
||||||
</nav>
|
</nav>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@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">
|
<header class="hide-for-small-only top-bar centered text-center">
|
||||||
@widgetArea('mainMenu')
|
@widgetArea('mainMenu')
|
||||||
</header>
|
</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
|
||||||
Reference in New Issue
Block a user