Merge branch 'dev' into module_profiler
This commit is contained in:
@@ -66,46 +66,22 @@ class Handler implements TemplateHandler
|
||||
'module' => 'StaticPages',
|
||||
'templateName' => 'staticpages::admin.templatePath'
|
||||
],
|
||||
|
||||
[
|
||||
'module' => 'ArticleList',
|
||||
'alias' => config('articlelist.alias'),
|
||||
'templateName' => 'articlelist::module.templatePath'
|
||||
],
|
||||
[
|
||||
'module' => 'Article',
|
||||
'alias' => config('articleias'),
|
||||
'templateName' => 'article::module.templatePath'
|
||||
],
|
||||
|
||||
[
|
||||
'module' => 'ContactForm',
|
||||
'templateName' => 'contactform::admin/adminMenu.templatePath'
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare Content object to be rendered using Blade template
|
||||
*
|
||||
* @param Content $content
|
||||
*/
|
||||
public static function beforeRender(Content & $content)
|
||||
{
|
||||
if ($content->isHomepage) {
|
||||
$category = Category::where('url', 'trenersky-tym')
|
||||
->first();
|
||||
|
||||
$content->traineeTeamCategory = $category;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify input data into format which can be understood by edit template
|
||||
*
|
||||
* @param Content $content
|
||||
*/
|
||||
public static function beforePopulatingEditForm(Content & $content)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Slightly modify Content object before saving into database.
|
||||
*
|
||||
* This way we can do almost whatever we want - even in template
|
||||
*
|
||||
* @param Content $content
|
||||
* @param $request
|
||||
*/
|
||||
public static function beforeSave(Content & $content, $inputData)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Templates\PragueTennisCamp\Pipeline;
|
||||
|
||||
use App\CMS\Contracts\Content\DisplayPipeline\Process;
|
||||
use App\Models\Content\Content;
|
||||
use Modules\Categories\Entities\Category;
|
||||
|
||||
class AddHotelsCategory implements Process
|
||||
{
|
||||
/**
|
||||
* Process and modify given page
|
||||
*
|
||||
* @param Content $page
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function handle(Content & $page)
|
||||
{
|
||||
if ($page->template == 'staticpages::pageWithHotels') {
|
||||
$category = Category::where('url', 'hotely')
|
||||
->first();
|
||||
|
||||
$page->hotelsCategory = $category;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Templates\PragueTennisCamp\Pipeline;
|
||||
|
||||
use App\CMS\Contracts\Content\DisplayPipeline\Process;
|
||||
use App\Models\Content\Content;
|
||||
use Modules\Categories\Entities\Category;
|
||||
|
||||
class AddTraineeTeamCategory implements Process
|
||||
{
|
||||
/**
|
||||
* Process and modify given page
|
||||
*
|
||||
* @param Content $page
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function handle(Content & $page)
|
||||
{
|
||||
if ($page->template == 'staticpages::traineeTeam' || $page->isHomepage == true) {
|
||||
$category = Category::where('url', 'trenersky-tym')
|
||||
->first();
|
||||
|
||||
$page->traineeTeamCategory = $category;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,8 @@ namespace Templates\PragueTennisCamp\Providers;
|
||||
|
||||
use App\CMS\Helpers\Template;
|
||||
use Modules\ContactForm\Widgets\Form\Presenter;
|
||||
use Templates\PragueTennisCamp\Pipeline\AddHotelsCategory;
|
||||
use Templates\PragueTennisCamp\Pipeline\AddTraineeTeamCategory;
|
||||
|
||||
class ServiceProvider extends \Illuminate\Support\ServiceProvider
|
||||
{
|
||||
@@ -22,5 +24,9 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
|
||||
}
|
||||
|
||||
Presenter::$template = Template::name('widgets.contact.form');
|
||||
|
||||
$pipeline = app('displayPipeline');
|
||||
$pipeline->add(AddTraineeTeamCategory::class);
|
||||
$pipeline->add(AddHotelsCategory::class);
|
||||
}
|
||||
}
|
||||
+117
-30
@@ -3,16 +3,44 @@
|
||||
body {
|
||||
font-family: Ubuntu;
|
||||
text-align: justify;
|
||||
background: #eef4d4 url("./images/bg.png");
|
||||
background: #EEF4D4 url("./images/bg.png");
|
||||
}
|
||||
|
||||
body.photo-bg {
|
||||
background: url("./images/clay-bg.jpg") no-repeat fixed;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
font-family: Comfortaa;
|
||||
color: #FF7F11;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #FF7F11;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #983628;
|
||||
}
|
||||
|
||||
/** HEADER **/
|
||||
header.top-bar {
|
||||
background: #3f3f37;
|
||||
background: #3F3F37;
|
||||
padding: 0;
|
||||
border-bottom: solid 1px #FF7F11;
|
||||
}
|
||||
|
||||
header.top-bar h1 {
|
||||
font-size: 100%;
|
||||
font-size: 130%;
|
||||
line-height: 38px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header.top-bar.centered .menu li {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
header.top-bar ul {
|
||||
@@ -23,59 +51,62 @@ header.top-bar a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
header.top-bar h1 a {
|
||||
color: #FF7F11;
|
||||
}
|
||||
|
||||
.menu .active > a {
|
||||
background: #ff7f11;
|
||||
background: #FF7F11;
|
||||
}
|
||||
|
||||
.menu a:hover {
|
||||
background: #983628;
|
||||
transition: background 400ms linear;
|
||||
}
|
||||
|
||||
.logo {
|
||||
max-height: 35px;
|
||||
max-height: 25px;
|
||||
margin: 0 15px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
font-family: Comfortaa;
|
||||
color: #ff7f11;
|
||||
}
|
||||
|
||||
|
||||
/** END HEADER **/
|
||||
|
||||
.stripe {
|
||||
padding: 50px;
|
||||
margin: 50px 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.stripe.light {
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.stripe h1 {
|
||||
color: white;
|
||||
font-size: 270%;
|
||||
}
|
||||
|
||||
.stripe p {
|
||||
padding-left: 150px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.content-container.row {
|
||||
margin-top: 1em;
|
||||
line-height: 170%;
|
||||
padding: 1em;
|
||||
background: #FFFEF0;
|
||||
background: #F8FEF0;
|
||||
box-shadow: 0 0 10px #CBCBCB;
|
||||
border-radius: 5px 5px 0 0;
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
.content-container h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.orbit {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: silver;
|
||||
}
|
||||
|
||||
.orbit-bullets {
|
||||
margin-top: -54px;
|
||||
padding-bottom: 11px;
|
||||
margin-top: -100px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.orbit .stripe {
|
||||
height: 20px;
|
||||
background: rgba(255,255,255, 0.2);
|
||||
background: rgba(255, 127, 17, 0.3);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
@@ -89,26 +120,82 @@ h1, h2, h3, h4 {
|
||||
|
||||
.orbit-bottom {
|
||||
bottom: 0;
|
||||
border-bottom: solid 1px #3F3F37;
|
||||
}
|
||||
|
||||
.slow {
|
||||
transition-duration: 4500ms !important;
|
||||
transition-duration: 3500ms !important;
|
||||
}
|
||||
|
||||
.trainee-team {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.trainee-team .thumbnail {
|
||||
max-height: 150px;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin-top: 10em;
|
||||
.trainee-team p {
|
||||
line-height: 20%;
|
||||
}
|
||||
|
||||
.trainee-team ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.trainee-team h2, .trainee-team h3, .trainee-team h4 {
|
||||
font-size: 130%;
|
||||
}
|
||||
|
||||
.rounded {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.title-photo img {
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
|
||||
.trainer {
|
||||
max-width: 25%;
|
||||
padding: 3px;
|
||||
border: solid 1px #CCC;
|
||||
}
|
||||
|
||||
.hotel {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.required input, .required textarea {
|
||||
float: left;
|
||||
width: calc(100% - 13px);
|
||||
}
|
||||
.required:after {
|
||||
color: red;
|
||||
content: ' *';
|
||||
float: right;
|
||||
margin-top: 4%;
|
||||
}
|
||||
|
||||
.green {
|
||||
color: #00A000;
|
||||
}
|
||||
|
||||
#footer {
|
||||
margin-bottom: 50px;
|
||||
width: 98%;
|
||||
border-top: solid 2px #FF7F11;
|
||||
background: #3F3F37;
|
||||
padding: 1em;
|
||||
border-radius: 0 0 5px 5px;
|
||||
color: #EEF4D4;
|
||||
}
|
||||
|
||||
#binarity, #binarity a {
|
||||
color: #ABA48E;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 639px) {
|
||||
.menu > li {
|
||||
display: block !important;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 616 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 4.3 KiB |
@@ -1,7 +1,7 @@
|
||||
$(document).foundation()
|
||||
|
||||
$ ('#formSend').click (function () {
|
||||
$ (this).value = 'Odesílám...';
|
||||
$ (this).value = '...';
|
||||
|
||||
var form = $(this).closest('form');
|
||||
|
||||
@@ -16,6 +16,6 @@ $ ('#formSend').click (function () {
|
||||
} else {
|
||||
alert (resp.message);
|
||||
}
|
||||
$ (this).value = "ODESLAT";
|
||||
$ (this).value = "Senden";
|
||||
});
|
||||
});
|
||||
+27
-8
@@ -1,16 +1,35 @@
|
||||
@if(session('success'))
|
||||
<div class="green text-center">E-mail war gesendet.</div>
|
||||
@endif
|
||||
|
||||
<form action="{{route('email.send', ['formId' => $page->id])}}" method="post">
|
||||
{!! csrf_field() !!}
|
||||
<div class="column medium-6">
|
||||
<input class="large" placeholder="jméno a příjmení" name="name" type="text">
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="Nachname" name="name" type="text">
|
||||
</div>
|
||||
<div class="column medium-6">
|
||||
<input class="large" placeholder="telefon" name="phone" type="text">
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="Vorname" name="surname" type="text">
|
||||
</div>
|
||||
<div class="column medium-12">
|
||||
<input class="large" placeholder="e-mail" name="email" type="text">
|
||||
<textarea class="large" placeholder="zpráva" name="message"></textarea>
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="E-mail" name="email" type="email">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="Anzahl Personen" name="personCount" type="text">
|
||||
</div>
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="Anreise" name="from" type="text">
|
||||
</div>
|
||||
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="Abreise" name="to" type="text">
|
||||
</div>
|
||||
|
||||
<div class="column required medium-12">
|
||||
<textarea required class="large" placeholder="Nachricht" name="message"></textarea>
|
||||
</div>
|
||||
<div class="column medium-6 right">
|
||||
<a href="#" class="button expanded long secondary" id="formSend">ODESLAT</a>
|
||||
<button type="submit" class="button expanded long secondary" id="formSend">Senden</button>
|
||||
</div>
|
||||
</form>
|
||||
+25
-49
@@ -1,61 +1,37 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="content-container">
|
||||
<div class="row content-container">
|
||||
|
||||
<div class="column text-center m-b-25 show-for-large">
|
||||
<h2>Kontakt</h2>
|
||||
<h2>{{$page->title}}</h2>
|
||||
</div>
|
||||
|
||||
<div class="large-12 column columns p-lr-0 contact-detail">
|
||||
<div class="column text-right large-4">
|
||||
<h2 class="hide-for-large">Kontakt</h2>
|
||||
<p class="contact-p green-text"><b>{{$page->moduleSettings['companyName']}}</b></p>
|
||||
<p class="contact-p">
|
||||
{!! nl2br($page->moduleSettings['address']) !!}
|
||||
<br>
|
||||
-<br>
|
||||
tel.: {{$page->moduleSettings['phone']}}<br>
|
||||
e-mail: <a href="mailto:{{$page->moduleSettings['email']}}">{{$page->moduleSettings['email']}}</a>
|
||||
</p>
|
||||
<br>
|
||||
</div>
|
||||
<div id="map" class="column large-8" style="height: 250px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column text-center large-4">
|
||||
<h2 class="hide-for-large">{{$page->title}}</h2>
|
||||
|
||||
<div class="large-12 column stripe light" id="contact-form">
|
||||
<div class="column large-12 medium-8 small-12 medium-centered p-lr-0 p-lr-15-sm">
|
||||
<h4 class="text-center uppercase m-b-25 bold">Napište nám</h4>
|
||||
<h4>{{$page->moduleSettings['companyName']}}</h4>
|
||||
|
||||
<p>
|
||||
{!! nl2br($page->moduleSettings['address']) !!}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
tel.: {{$page->moduleSettings['phone']}}<br>
|
||||
e-mail: <a href="mailto:{{$page->moduleSettings['email']}}">{{$page->moduleSettings['email']}}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="column large-8" id="contact-form">
|
||||
@include('modules.contactform._partials.form')
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('javascripts')
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCjADMGOysqt0ibo9mD5Cr8rs47ZQF8rKQ&callback=initMap"
|
||||
async defer></script>
|
||||
<script type="text/javascript">
|
||||
function initMap() {
|
||||
var myLatLng = {
|
||||
lat: parseFloat ('{{$page->moduleSettings['gpsLat']}}'),
|
||||
lng: parseFloat ('{{$page->moduleSettings['gpsLng']}}')
|
||||
};
|
||||
|
||||
// Create a map object and specify the DOM element for display.
|
||||
var map = new google.maps.Map (document.getElementById ('map'), {
|
||||
center: myLatLng,
|
||||
scrollwheel: false,
|
||||
zoom: 18
|
||||
});
|
||||
|
||||
// Create a marker and set its position.
|
||||
var marker = new google.maps.Marker ({
|
||||
map: map,
|
||||
position: myLatLng,
|
||||
title: '{{$page->moduleSettings['companyName']}}'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
<p>Nová zpráva od {{$data->name}} {{$data->surname}}</p>
|
||||
<p>E-mail: {{$data->email}}</p>
|
||||
<p>Od: {{$data->from}}</p>
|
||||
<p>Do: {{$data->to}}</p>
|
||||
<p>Osob: {{$data->personCount}}</p>
|
||||
|
||||
<p>
|
||||
{{$data->message}}
|
||||
</p>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
@if (isset($page->hotelsCategory))
|
||||
<div class="hotels">
|
||||
@foreach($page->hotelsCategory->content as $i => $subpage)
|
||||
<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 !!}
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
@php $images = $page->files()->where('mime_type', 'like', 'image%')->get(); @endphp
|
||||
@if(count($images) > 0)
|
||||
<div class="orbit" role="region" data-orbit
|
||||
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 {{$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
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
@if (isset($page->traineeTeamCategory))
|
||||
<div class="text-center trainee-team">
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-12 medium-{{ceil(12/count($page->traineeTeamCategory->content))}}"
|
||||
data-equalizer-watch>
|
||||
@if(empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@asset('visitor/images/avatar.png')" alt="{{$subpage->title}}">
|
||||
@else
|
||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
<h4>{{$subpage->title}}</h4>
|
||||
|
||||
{!! $subpage->pageContent !!}
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
+11
-4
@@ -1,14 +1,21 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (!empty($page->titlePhoto))
|
||||
<div class="row title-photo">
|
||||
<img src="@upload($page->titlePhoto)" alt="">
|
||||
</div>
|
||||
@endif
|
||||
<div class="row content-container">
|
||||
<h1>{{$page->title}}</h1>
|
||||
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
+25
-40
@@ -1,50 +1,35 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('content')
|
||||
@php $images = $page->files()->where('mime_type', 'like', 'image%')->get(); @endphp
|
||||
@if(count($images) > 0)
|
||||
<div class="orbit" role="region" data-orbit
|
||||
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">
|
||||
<img class="orbit-image" src="@upload($image->filename)" alt="" />
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
<nav class="orbit-bullets">
|
||||
@foreach($images as $i => $image)
|
||||
<button @if($i == 0) class="is-active" @endif data-slide="{{$i}}"></button>
|
||||
@endforeach
|
||||
</nav>
|
||||
@section('topMenu')
|
||||
<h1 class="text-center">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img class="logo" src="@asset('visitor/images/logo.png')" alt="">
|
||||
{{setting('pageName')}}
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<div class="stripe orbit-top"></div>
|
||||
<div class="stripe orbit-bottom"></div>
|
||||
<div class="title-bar text-right" data-responsive-toggle="main-menu" data-hide-for="medium">
|
||||
<button class="menu-icon" type="button" data-toggle></button>
|
||||
</div>
|
||||
|
||||
<header class="hide-for-small hide-for-medium hide-for-large top-bar centered text-center">
|
||||
<div id="main-menu">
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
@endif
|
||||
</header>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@include('modules.staticpages.visitor._partials.slider', ['slideClass' => 'slow'])
|
||||
<header class="hide-for-small-only top-bar centered text-center">
|
||||
@widgetArea('mainMenu')
|
||||
</header>
|
||||
|
||||
|
||||
<div class="row content-container">
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
<div class="text-center stripe light trainee-team">
|
||||
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-6 medium-{{ceil(12/count($page->traineeTeamCategory->content))}}"
|
||||
data-equalizer-watch>
|
||||
<a href="{{route('page.content', ['url' => $subpage->url])}}">
|
||||
@if(empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@asset('visitor/images/avatar.png')" alt="{{$subpage->title}}">
|
||||
@else
|
||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
<h4>{{$subpage->title}}</h4>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+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
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (!empty($page->titlePhoto))
|
||||
<div class="row title-photo">
|
||||
<img src="@upload($page->titlePhoto)" alt="">
|
||||
</div>
|
||||
@endif
|
||||
<div class="row content-container">
|
||||
<h1>{{$page->title}}</h1>
|
||||
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
@include('modules.staticpages.visitor._partials.hotelList')
|
||||
</div>
|
||||
@endsection
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (!empty($page->titlePhoto))
|
||||
<div class="row title-photo">
|
||||
<img src="@upload($page->titlePhoto)" alt="">
|
||||
</div>
|
||||
@endif
|
||||
<div class="row content-container">
|
||||
<h1>{{$page->title}}</h1>
|
||||
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
@include('modules.staticpages.visitor._partials.traineeTeamList')
|
||||
</div>
|
||||
@endsection
|
||||
+6
-6
@@ -1,19 +1,19 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row content-container">
|
||||
|
||||
<div class="text-center">
|
||||
<img src="@upload($page->titlePhoto)" class="rounded trainer" alt="">
|
||||
<h2>{{$page->title}}</h2>
|
||||
</div>
|
||||
|
||||
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
@@ -0,0 +1,19 @@
|
||||
<div class="title-bar text-right" data-responsive-toggle="main-menu" data-hide-for="medium">
|
||||
<button class="menu-icon" type="button" data-toggle></button>
|
||||
</div>
|
||||
|
||||
<div id="main-menu">
|
||||
<div class="top-bar-left hide-for-medium-only hide-for-small-only">
|
||||
<h1 class="text-center">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img class="logo" src="@asset('visitor/images/logo.png')" alt="">
|
||||
{{setting('pageName')}}
|
||||
</a>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="top-bar-right">
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,51 +12,45 @@
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/motion-ui/1.1.1/motion-ui.min.css" />
|
||||
<link rel="stylesheet" href="@asset('visitor/css/app.css')" />
|
||||
|
||||
@if (!empty($googleAnalyticsCode))
|
||||
<script>
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function () {
|
||||
(i[r].q = i[r].q || []).push (arguments)
|
||||
}, i[r].l = 1 * new Date ();
|
||||
a = s.createElement (o),
|
||||
m = s.getElementsByTagName (o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore (a, m)
|
||||
}) (window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
|
||||
ga ('create', '{{$googleAnalyticsCode}}', 'auto');
|
||||
ga ('send', 'pageview');
|
||||
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@include('visitor.metaInformation')
|
||||
</head>
|
||||
<body>
|
||||
@if (!empty($googleAnalyticsCode))
|
||||
<script>
|
||||
(function (i, s, o, g, r, a, m) {
|
||||
i['GoogleAnalyticsObject'] = r;
|
||||
i[r] = i[r] || function () {
|
||||
(i[r].q = i[r].q || []).push (arguments)
|
||||
}, i[r].l = 1 * new Date ();
|
||||
a = s.createElement (o),
|
||||
m = s.getElementsByTagName (o)[0];
|
||||
a.async = 1;
|
||||
a.src = g;
|
||||
m.parentNode.insertBefore (a, m)
|
||||
}) (window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||
<body class="@yield('bodyClass')">
|
||||
|
||||
ga ('create', '{{$googleAnalyticsCode}}', 'auto');
|
||||
ga ('send', 'pageview');
|
||||
|
||||
</script>
|
||||
@endif
|
||||
<header class="top-bar">
|
||||
<div class="top-bar-left hide-for-small-only">
|
||||
<h1>
|
||||
<a href="{{route('page.index')}}">
|
||||
{{setting('pageName')}}
|
||||
</a>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="top-bar-right">
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
@yield('topMenu')
|
||||
</header>
|
||||
|
||||
@yield('content')
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<footer id="footer" class="stripe light">
|
||||
<div id="footer-widgets">
|
||||
@widgetArea('footer')
|
||||
</div>
|
||||
|
||||
<footer class="row" id="footer">
|
||||
<div id="footer-widgets" class=" text-center">
|
||||
@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>
|
||||
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
|
||||
<link href='https://fonts.googleapis.com/css?family=Hind+Siliguri:400,500,700,300&subset=latin,latin-ext'
|
||||
rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,500,700&subset=latin-ext,latin' rel='stylesheet'
|
||||
type='text/css'>
|
||||
<link href="https://fonts.googleapis.com/css?family=Comfortaa&subset=latin-ext" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{asset_path('visitor/css/app.css')}}">
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
@@ -13,88 +14,19 @@
|
||||
<title>@yield('pageTitle') | {{setting('pageName')}}</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
font-size: 150%;
|
||||
line-height: 150%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
font-weight: 100;
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #7cad2a;
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: white;
|
||||
.content-container {
|
||||
width: 75%;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="text-center">
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<a href="{{route('page.index')}}">
|
||||
<img src="{{asset_path('visitor/images/menu_logo.png')}}" class="PragueTennisCamp-logo-menu" alt="PragueTennisCamp s.r.o.">
|
||||
</a>
|
||||
</header>
|
||||
<div class="row content-container">
|
||||
<h1>@yield('pageTitle')</h1>
|
||||
|
||||
<h1>@yield('pageTitle')</h1>
|
||||
|
||||
<div class="row">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
<footer id="footer">
|
||||
@if (!empty(setting('facebookProfile')))
|
||||
|
||||
<a href="{{setting('facebookProfile')}}" target="_blank">
|
||||
<i class="fa fa-fw fa-facebook-official fb-color"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (!empty(setting('linkedInProfile')))
|
||||
<a href="{{setting('linkedInProfile')}}" target="_blank">
|
||||
<i class="fa fa-fw fa-linkedin in-color"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(!empty(setting('gplusProfile')))
|
||||
<a href="{{setting('gplusProfile')}}" target="_blank">
|
||||
<i class="fa fa-fw fa-google-plus gp-color"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
</footer>
|
||||
|
||||
{{--<ul class="social-icons menu">--}}
|
||||
{{--<a href="{{setting('facebookProfile')}}" target="_blank">--}}
|
||||
{{--<i class="fa fa-fw fa-2x fa-facebook-official fb-color"></i>--}}
|
||||
{{--</a>--}}
|
||||
|
||||
{{--<li>--}}
|
||||
{{--<a href="{{setting('linkedInProfile')}}" target="_blank">--}}
|
||||
{{--<i class="fa fa-fw fa-2x fa-linkedin in-color"></i>--}}
|
||||
{{--</a>--}}
|
||||
{{--</li>--}}
|
||||
|
||||
{{--<li>--}}
|
||||
{{--<a href="{{setting('gplusProfile')}}" target="_blank">--}}
|
||||
{{--<i class="fa fa-fw fa-2x fa-google-plus gp-color"></i>--}}
|
||||
{{--</a>--}}
|
||||
{{--</li>--}}
|
||||
{{--</ul>--}}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user