FEATURE: add template for hotels
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<label class="control-label">
|
||||
@lang('admin/contents.field_publishedFrom')
|
||||
@lang('admin/contents.field_published_from')
|
||||
</label>
|
||||
|
||||
<input type="datetime" class="form-control" name="publishedFrom" value="{{old('publishedFrom', $page->publishedFrom)}}"
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<div class="col-lg-6">
|
||||
<label class="control-label">
|
||||
@lang('admin/contents.field_publishedTo')
|
||||
@lang('admin/contents.field_published_to')
|
||||
</label>
|
||||
|
||||
<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)
|
||||
{
|
||||
if ($page->template == 'staticpages::pageWithHotels') {
|
||||
$category = Category::where('url', 'hotels')
|
||||
$category = Category::where('url', 'hotely')
|
||||
->first();
|
||||
|
||||
$page->hotelsCategory = $category;
|
||||
|
||||
+12
-5
@@ -86,6 +86,11 @@ header.top-bar h1 a {
|
||||
background: #F8FEF0;
|
||||
box-shadow: 0 0 10px #CBCBCB;
|
||||
border-radius: 5px 5px 0 0;
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
.content-container h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.orbit {
|
||||
@@ -144,11 +149,13 @@ header.top-bar h1 a {
|
||||
border: solid 1px #CCC;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin-bottom: 150px;
|
||||
.hotel {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
#footer-widgets {
|
||||
#footer {
|
||||
margin-bottom: 50px;
|
||||
width: 98%;
|
||||
border-top: solid 2px #FF7F11;
|
||||
background: #3F3F37;
|
||||
padding: 1em;
|
||||
@@ -156,8 +163,8 @@ header.top-bar h1 a {
|
||||
color: #EEF4D4;
|
||||
}
|
||||
|
||||
#binarity {
|
||||
margin-top: 2em;
|
||||
#binarity, #binarity a {
|
||||
color: #ABA48E;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 639px) {
|
||||
|
||||
+10
-7
@@ -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>
|
||||
<div class="row hotel">
|
||||
<div class="column large-3 medium-4">
|
||||
@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
|
||||
<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 !!}
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@endif
|
||||
+3
-1
@@ -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>
|
||||
|
||||
@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
|
||||
Reference in New Issue
Block a user