FEATURE #2341 @4h: add basics for template
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{$page->title}} | {{setting('pageName')}}</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.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 href="@asset('visitor/css/foundation.css')" type="text/css" rel="stylesheet">
|
||||
<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')" />
|
||||
|
||||
@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');
|
||||
|
||||
ga ('create', '{{$googleAnalyticsCode}}', 'auto');
|
||||
ga ('send', 'pageview');
|
||||
|
||||
</script>
|
||||
@endif
|
||||
<header class="top-bar">
|
||||
<div class="top-bar-left">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img src="@asset('visitor/images/logo.png')" class="logo" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<div class="top-bar-right">
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@yield('content')
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
<footer id="footer" class="stripe light">
|
||||
<div id="footer-widgets">
|
||||
@widgetArea('footer')
|
||||
</div>
|
||||
<div id="binarity" class="text-right">
|
||||
<a target="_blank" href="https://www.binarity.cz/"> binarity s.r.o.</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="@asset('visitor/js/vendor/jquery.min.js')" type="text/javascript"></script>
|
||||
<script src="@asset('visitor/js/vendor/foundation.min.js')" type="text/javascript"></script>
|
||||
<script src="@asset('visitor/js/BLightBox.js')" type="text/javascript"></script>
|
||||
<script src="@asset('visitor/js/app.js')" type="text/javascript"></script>
|
||||
|
||||
@yield('javascripts')
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,8 @@
|
||||
@extendVisitor('errors.layout')
|
||||
|
||||
@section('pageTitle', 'Stránka nenalezena')
|
||||
@section('content')
|
||||
Nějakým způsobem se stalo, že tato stránka neexistuje. Zkuste se podívat na <a href="{{route("page.index")}}">hlavní
|
||||
stránku</a>, případně nás
|
||||
<a href="{{route("page.content", ['url' => 'kontakt'])}}">kontaktujte</a> a dejte nám vědět, co je špatně.
|
||||
@endsection
|
||||
@@ -0,0 +1,6 @@
|
||||
@extendVisitor('errors.layout')
|
||||
|
||||
@section('pageTitle', 'Probíhá údržba stránek')
|
||||
@section('content')
|
||||
Právě na stránkách provádíme úpravy, vše bude v pořádku za několik málo okamžiků.
|
||||
@endsection
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
@extendVisitor('errors.layout')
|
||||
|
||||
@section('pageTitle', 'Domovská stránka neexistuje')
|
||||
@section('content')
|
||||
V systému nikdo zatím nenastavil domovskou stránku, proto vidíte tuto obrazovku. Určitě se jedná o nějakou drobnou chybu, která bude velmi brzo opravena.
|
||||
@endsection
|
||||
@@ -0,0 +1,100 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="en">
|
||||
<head>
|
||||
<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 rel="stylesheet" href="{{asset_path('visitor/css/app.css')}}">
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<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;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="text-center">
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
@@ -0,0 +1,9 @@
|
||||
@if(isset($page))
|
||||
@section('pageTitle', $page->title)
|
||||
@section('pageDescription', $page->meta_description)
|
||||
@section('pageKeywords', $page->meta_keywords)
|
||||
@section('pageTitleImage')
|
||||
@if (!empty($page->titlePhoto) && \App\CMS\Helpers\Path::upload($page->titlePhoto))@upload($page->titlePhoto)
|
||||
@else{{asset_path('visitor/images/social-cover.png')}}@endif
|
||||
@endsection
|
||||
@endif
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="row">
|
||||
|
||||
<h3 class="text-center">{{$widget->name}}</h3>
|
||||
|
||||
<div class="column small-centered large-8">
|
||||
@include('modules.contactform._partials.form', ['page' => $form ])
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user