FEATURE: move templates into their own repositories
This commit is contained in:
@@ -1,87 +0,0 @@
|
||||
<?php
|
||||
namespace Templates\PragueTennisCamp;
|
||||
|
||||
use App\CMS\Contracts\Modules\TemplateHandler;
|
||||
use App\Models\Content\Content;
|
||||
use App\Models\Module;
|
||||
use App\Models\User;
|
||||
use App\Models\Widgets\WidgetArea;
|
||||
use Modules\Categories\Entities\Category;
|
||||
|
||||
class Handler implements TemplateHandler
|
||||
{
|
||||
/**
|
||||
* Register admin menu (or multiple ones)
|
||||
*
|
||||
* This cannot be in ServiceProvider because Session is started at middleware. And ServiceProvider is called before
|
||||
* starting any middleware..
|
||||
*
|
||||
* @param User $user model of logged user
|
||||
*/
|
||||
public static function registerAdminMenu(User $user)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Install module.
|
||||
*
|
||||
* This method is called after inserting info about module into database. It can be called only using Artisan in
|
||||
* CLI.
|
||||
*/
|
||||
public static function install()
|
||||
{
|
||||
WidgetArea::create(['deletable' => 0, 'code' => 'mainMenu', 'name' => 'Menu']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Uninstall template
|
||||
*
|
||||
* Delete some items in database, delete files etc.
|
||||
*
|
||||
* @param Module $template
|
||||
*/
|
||||
public static function uninstall(Module $template)
|
||||
{
|
||||
WidgetArea::where('code', 'mainMenu')
|
||||
->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of registered templates and supported modules.
|
||||
*
|
||||
* Returned array is expected to be array of arrays with following items: module, namespace and templateName.
|
||||
* Example:
|
||||
* return [
|
||||
* ['module' => 'Article', 'templateName' => 'article::template.name']
|
||||
* ];
|
||||
*
|
||||
* When no "namespace" is specified, value strtolower(module) is used instaed.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getPublicTemplatePaths()
|
||||
{
|
||||
return [
|
||||
[
|
||||
'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'
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
<?php
|
||||
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 {
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function boot() {
|
||||
if (\App::runningInConsole())
|
||||
return;
|
||||
|
||||
Presenter::$template = Template::name('widgets.contact.form');
|
||||
|
||||
$pipeline = app('displayPipeline');
|
||||
$pipeline->add(AddTraineeTeamCategory::class);
|
||||
$pipeline->add(AddHotelsCategory::class);
|
||||
}
|
||||
}
|
||||
@@ -1,202 +0,0 @@
|
||||
/* https://coolors.co/3f3f37-eef4d4-983628-ff7f11-daefb3 */
|
||||
|
||||
body {
|
||||
font-family: Ubuntu;
|
||||
text-align: justify;
|
||||
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;
|
||||
padding: 0;
|
||||
border-bottom: solid 1px #FF7F11;
|
||||
}
|
||||
|
||||
header.top-bar h1 {
|
||||
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 {
|
||||
background: none;
|
||||
}
|
||||
|
||||
header.top-bar a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
header.top-bar h1 a {
|
||||
color: #FF7F11;
|
||||
}
|
||||
|
||||
.menu .active > a {
|
||||
background: #FF7F11;
|
||||
}
|
||||
|
||||
.menu a:hover {
|
||||
background: #983628;
|
||||
transition: background 400ms linear;
|
||||
}
|
||||
|
||||
.logo {
|
||||
max-height: 25px;
|
||||
margin: 0 15px;
|
||||
}
|
||||
|
||||
/** END HEADER **/
|
||||
|
||||
.stripe {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.stripe.light {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.content-container.row {
|
||||
margin-top: 1em;
|
||||
line-height: 170%;
|
||||
padding: 1em;
|
||||
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: -100px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.orbit .stripe {
|
||||
height: 20px;
|
||||
background: rgba(255, 127, 17, 0.3);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.orbit-top {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.orbit-bottom {
|
||||
bottom: 0;
|
||||
border-bottom: solid 1px #3F3F37;
|
||||
}
|
||||
|
||||
.slow {
|
||||
transition-duration: 3500ms !important;
|
||||
}
|
||||
|
||||
.trainee-team {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
.trainee-team .thumbnail {
|
||||
max-height: 150px;
|
||||
}
|
||||
|
||||
.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;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 697 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 324 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1,289 +0,0 @@
|
||||
/**
|
||||
* Lightbox library created by binarity s.r.o.
|
||||
* www.binarity.cz
|
||||
* version 1.0.0
|
||||
*
|
||||
* Vanilla JavaScript lightbox plugin.
|
||||
*
|
||||
* Can use custom invoker passed as first argument or uses a default one - .b-lightbox.
|
||||
* This allows to have more lightbox instances on one site to categorize items.
|
||||
*
|
||||
* Default behaviour:
|
||||
* - Hides on escape keydown event - settable (options.allow_escape).
|
||||
* - Hides on background click - settable (options.allow_backgroundclick).
|
||||
* - Hide button in top right corner - settable (options.close_text).
|
||||
* - Allows usage of arrow keys (left/right) to navigate through images - settable (option.allow_arrows).
|
||||
*
|
||||
* @param options
|
||||
* @param autorun
|
||||
* @constructor
|
||||
*/
|
||||
function BLightBox(options, autorun) {
|
||||
// Instance and instance variables.
|
||||
var BLightBox = this,
|
||||
escape_key_allowed = (!(options !== undefined && options.allow_escape === false)),
|
||||
hide_on_holder_allowed = (!(options !== undefined && options.allow_backgroundclick === false)),
|
||||
arrows_allowed = (!(options !== undefined && options.allow_arrows === false)),
|
||||
close_text = (options !== undefined && options.close_text !== undefined) ? options.close_text : 'Close',
|
||||
|
||||
// DOM
|
||||
lightbox_holder = document.createElement('div'),
|
||||
invoker_string = (options !== undefined && options.invoker !== undefined) ? options.invoker : '.b-lightbox',
|
||||
invokers = document.querySelectorAll(invoker_string),
|
||||
invokers_length = invokers.length,
|
||||
lightbox_image = document.createElement('img'),
|
||||
close_label = document.createElement('a'),
|
||||
previous_button = document.createElement('a'),
|
||||
next_button = document.createElement('a'),
|
||||
lightbox_label = document.createElement('span');
|
||||
|
||||
// BLightBox DOM default settings.
|
||||
lightbox_holder.className = 'b-lightbox-holder';
|
||||
lightbox_image.className = 'b-lightbox-image';
|
||||
close_label.className = 'b-lightbox-close-button';
|
||||
close_label.textContent = close_text;
|
||||
previous_button.className = 'b-lightbox-direction previous';
|
||||
previous_button.innerHTML = '‹';
|
||||
next_button.className = 'b-lightbox-direction next';
|
||||
next_button.innerHTML = '›';
|
||||
lightbox_label.className = 'b-lightbox-label';
|
||||
|
||||
/**
|
||||
* Show new image according to data-newindex attribute on directional button
|
||||
*/
|
||||
this.loadNewImage = function(event) {
|
||||
event.stopPropagation();
|
||||
var index = event.target.getAttribute('data-newindex'),
|
||||
label = invokers[index].getAttribute('data-label');
|
||||
|
||||
if(invokers[index]) {
|
||||
lightbox_image.style.display = 'none';
|
||||
this.decideFromLoad(invokers[index]);
|
||||
lightbox_image.style.display = 'block';
|
||||
if(label != '') {
|
||||
lightbox_label.innerHTML = label;
|
||||
}
|
||||
}
|
||||
|
||||
this.lightboxImageCenter(label != ''); // Center image.
|
||||
|
||||
// Change indexes to be opened.
|
||||
previous_button.setAttribute('data-newindex', this.getPreviousIndex(index));
|
||||
next_button.setAttribute('data-newindex', this.getNextIndex(index));
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns first next index possible, or return very first index to allow rotation.
|
||||
* @param index
|
||||
* @returns {number}
|
||||
*/
|
||||
this.getNextIndex = function(index) {
|
||||
// Skip to last image if we are on the first.
|
||||
return (index == invokers_length - 1) ? 0 : parseInt(index) + 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns first previous index possible, or returns last array index to allow rotation.
|
||||
* @param index
|
||||
* @returns {number}
|
||||
*/
|
||||
this.getPreviousIndex = function(index) {
|
||||
// Skip to last image if we are on the first.
|
||||
return (index == 0) ? invokers_length - 1 : index - 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Reset ivokers_length variable for re-use.
|
||||
*/
|
||||
this.resetInvokersLength = function() {
|
||||
invokers_length = invokers.length;
|
||||
};
|
||||
|
||||
/**
|
||||
* Provides code for closing a lightbox and hiding images.
|
||||
*/
|
||||
this.listenActionClose = function(event) {
|
||||
lightbox_holder.style.display = 'none';
|
||||
lightbox_image.style.display = 'none';
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds src to lightbox image from element's style background-image.
|
||||
* Removes url() par of the string.
|
||||
* @param el
|
||||
*/
|
||||
this.loadImageFromBackgroundImage = function(el) {
|
||||
lightbox_image.src = el.style.backgroundImage.replace(/url\("?(.*[^"])"?\)/, '$1');
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds src to lightbox image from element's child img tag.
|
||||
* @param el
|
||||
*/
|
||||
this.loadImageFromChildImg = function(el) {
|
||||
var img = el.querySelector('img');
|
||||
if(img) {
|
||||
lightbox_image.src = img.src;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Move lightbox image to the center of screen.
|
||||
*/
|
||||
this.lightboxImageCenter = function(bool_label) {
|
||||
// Image
|
||||
lightbox_image.style.left = ((lightbox_holder.offsetWidth - lightbox_image.offsetWidth) / 2) + 'px';
|
||||
lightbox_image.style.top = ((lightbox_holder.offsetHeight - lightbox_image.offsetHeight) / 2) + 'px';
|
||||
|
||||
// Image label.
|
||||
if(bool_label === true) {
|
||||
lightbox_label.style.width = lightbox_image.offsetWidth + 'px';
|
||||
lightbox_label.style.left = ((lightbox_holder.offsetWidth - lightbox_image.offsetWidth) / 2) + 'px';
|
||||
lightbox_label.style.display = 'block';
|
||||
lightbox_label.style.top = (lightbox_image.offsetTop + lightbox_image.offsetHeight - lightbox_label.offsetHeight) + 'px';
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns index in invokers array or false on unsuccessful attempt to find the element.
|
||||
* @param el
|
||||
* @returns {*}
|
||||
*/
|
||||
this.getIndexInInvokers = function(el) {
|
||||
var inv_length = invokers_length;
|
||||
while(inv_length--) {
|
||||
if(invokers[inv_length].isEqualNode(el)) {
|
||||
return inv_length;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* This method decides from where to load src attribute into lightbox_image.
|
||||
* @param el
|
||||
*/
|
||||
this.decideFromLoad = function(el) {
|
||||
// Decide from which source to get image url.
|
||||
if(el.hasAttribute('data-background')) {
|
||||
this.loadImageFromBackgroundImage(el);
|
||||
} else if(el.hasAttribute('data-img')) {
|
||||
this.loadImageFromChildImg(el);
|
||||
}
|
||||
|
||||
lightbox_label.style.display = 'none';
|
||||
lightbox_label.innerHTML = '';
|
||||
};
|
||||
|
||||
/**
|
||||
* Provides code for opening a lightbox and displaying images.
|
||||
*/
|
||||
this.listenActionOpen = function(el, app, event) {
|
||||
var label = el.getAttribute('data-label');
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault(); // If element is a-tag, prevent from href requesting.
|
||||
|
||||
app.decideFromLoad(el); // Load image into lightbox_image.
|
||||
|
||||
// Change indexes to be opened.
|
||||
previous_button.setAttribute('data-newindex', app.getPreviousIndex(app.getIndexInInvokers(el)));
|
||||
next_button.setAttribute('data-newindex', app.getNextIndex(app.getIndexInInvokers(el)));
|
||||
|
||||
// Show lightbox and image.
|
||||
lightbox_holder.style.display = 'block';
|
||||
lightbox_image.style.display = 'block';
|
||||
if(label != '') {
|
||||
lightbox_label.innerHTML = label;
|
||||
}
|
||||
|
||||
// Center lightbox within the screen.
|
||||
app.lightboxImageCenter(label != '');
|
||||
};
|
||||
|
||||
/**
|
||||
* Add lightbox closing method listener to given element.
|
||||
* @param el
|
||||
*/
|
||||
this.addCloseListenerFor = function(el) {
|
||||
el.addEventListener('click', this.listenActionClose.bind(this));
|
||||
};
|
||||
|
||||
/**
|
||||
* Add lightbox opening method listener to given element.
|
||||
* @param el
|
||||
*/
|
||||
this.addOpenListenerFor = function(el) {
|
||||
var app = this;
|
||||
el.addEventListener('click', app.listenActionOpen.bind(app, el, this), true);
|
||||
};
|
||||
|
||||
/**
|
||||
* Initializes all possible listeners at once on class instance creation.
|
||||
*/
|
||||
this.initiateListeners = function() {
|
||||
// Open Listeners.
|
||||
while(invokers_length--) {
|
||||
this.addOpenListenerFor(invokers[invokers_length]);
|
||||
}
|
||||
this.resetInvokersLength();
|
||||
|
||||
// Close Listeners.
|
||||
// On background click.
|
||||
if(hide_on_holder_allowed){
|
||||
this.addCloseListenerFor(lightbox_holder);
|
||||
}
|
||||
// On escape key hit, if requested.
|
||||
if(escape_key_allowed) {
|
||||
window.addEventListener('keydown', function (event) {
|
||||
if(event.keyCode === 27) {
|
||||
BLightBox.listenActionClose();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Directional buttons.
|
||||
previous_button.addEventListener('click',this.loadNewImage.bind(this));
|
||||
next_button.addEventListener('click',this.loadNewImage.bind(this));
|
||||
// Allow directing with arrows when enabled.
|
||||
if(arrows_allowed) {
|
||||
window.addEventListener('keydown', function arrowDirections(event) {
|
||||
if(event.keyCode === 37) {
|
||||
previous_button.click();
|
||||
} else if(event.keyCode === 39) {
|
||||
next_button.click();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialization method that starts BLightBox instance.
|
||||
* @returns {*}
|
||||
*/
|
||||
this.init = function() {
|
||||
// Append lightbox background.
|
||||
document.body.appendChild(lightbox_holder);
|
||||
lightbox_holder.appendChild(previous_button);
|
||||
lightbox_holder.appendChild(lightbox_image);
|
||||
lightbox_holder.appendChild(next_button);
|
||||
lightbox_holder.appendChild(close_label);
|
||||
lightbox_holder.appendChild(lightbox_label);
|
||||
// Add event listeners for invokers.
|
||||
this.initiateListeners();
|
||||
|
||||
// Auto centering on window.resize;
|
||||
window.addEventListener('resize', function() {
|
||||
BLightBox.lightboxImageCenter();
|
||||
});
|
||||
|
||||
return BLightBox;
|
||||
};
|
||||
|
||||
// If autorun is requested, create instance.
|
||||
if(autorun !== undefined && autorun === true) {
|
||||
return this.init();
|
||||
} else {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
$(document).foundation()
|
||||
|
||||
$ ('#formSend').click (function () {
|
||||
$ (this).value = '...';
|
||||
|
||||
var form = $(this).closest('form');
|
||||
|
||||
$.ajax ({
|
||||
url: form.attr('action'),
|
||||
method: 'post',
|
||||
data: form.serialize ()
|
||||
}).done (function (resp) {
|
||||
if (resp.status == 'success') {
|
||||
alert ('Zpráva úspěšně odeslána. Odpovíme co nejdříve!');
|
||||
window.top.location.reload ();
|
||||
} else {
|
||||
alert (resp.message);
|
||||
}
|
||||
$ (this).value = "Senden";
|
||||
});
|
||||
});
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,335 +0,0 @@
|
||||
/**
|
||||
* what-input - A global utility for tracking the current input method (mouse, keyboard or touch).
|
||||
* @version v4.0.4
|
||||
* @link https://github.com/ten1seven/what-input
|
||||
* @license MIT
|
||||
*/
|
||||
(function webpackUniversalModuleDefinition(root, factory) {
|
||||
if(typeof exports === 'object' && typeof module === 'object')
|
||||
module.exports = factory();
|
||||
else if(typeof define === 'function' && define.amd)
|
||||
define("whatInput", [], factory);
|
||||
else if(typeof exports === 'object')
|
||||
exports["whatInput"] = factory();
|
||||
else
|
||||
root["whatInput"] = factory();
|
||||
})(this, function() {
|
||||
return /******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId])
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ exports: {},
|
||||
/******/ id: moduleId,
|
||||
/******/ loaded: false
|
||||
/******/ };
|
||||
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.loaded = true;
|
||||
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
|
||||
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(0);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([
|
||||
/* 0 */
|
||||
/***/ function(module, exports) {
|
||||
|
||||
module.exports = (function() {
|
||||
|
||||
/*
|
||||
---------------
|
||||
Variables
|
||||
---------------
|
||||
*/
|
||||
|
||||
// cache document.documentElement
|
||||
var docElem = document.documentElement;
|
||||
|
||||
// last used input type
|
||||
var currentInput = 'initial';
|
||||
|
||||
// last used input intent
|
||||
var currentIntent = null;
|
||||
|
||||
// form input types
|
||||
var formInputs = [
|
||||
'input',
|
||||
'select',
|
||||
'textarea'
|
||||
];
|
||||
|
||||
// list of modifier keys commonly used with the mouse and
|
||||
// can be safely ignored to prevent false keyboard detection
|
||||
var ignoreMap = [
|
||||
16, // shift
|
||||
17, // control
|
||||
18, // alt
|
||||
91, // Windows key / left Apple cmd
|
||||
93 // Windows menu / right Apple cmd
|
||||
];
|
||||
|
||||
// mapping of events to input types
|
||||
var inputMap = {
|
||||
'keyup': 'keyboard',
|
||||
'mousedown': 'mouse',
|
||||
'mousemove': 'mouse',
|
||||
'MSPointerDown': 'pointer',
|
||||
'MSPointerMove': 'pointer',
|
||||
'pointerdown': 'pointer',
|
||||
'pointermove': 'pointer',
|
||||
'touchstart': 'touch'
|
||||
};
|
||||
|
||||
// array of all used input types
|
||||
var inputTypes = [];
|
||||
|
||||
// boolean: true if touch buffer timer is running
|
||||
var isBuffering = false;
|
||||
|
||||
// map of IE 10 pointer events
|
||||
var pointerMap = {
|
||||
2: 'touch',
|
||||
3: 'touch', // treat pen like touch
|
||||
4: 'mouse'
|
||||
};
|
||||
|
||||
// touch buffer timer
|
||||
var touchTimer = null;
|
||||
|
||||
|
||||
/*
|
||||
---------------
|
||||
Set up
|
||||
---------------
|
||||
*/
|
||||
|
||||
var setUp = function() {
|
||||
|
||||
// add correct mouse wheel event mapping to `inputMap`
|
||||
inputMap[detectWheel()] = 'mouse';
|
||||
|
||||
addListeners();
|
||||
setInput();
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
---------------
|
||||
Events
|
||||
---------------
|
||||
*/
|
||||
|
||||
var addListeners = function() {
|
||||
|
||||
// `pointermove`, `MSPointerMove`, `mousemove` and mouse wheel event binding
|
||||
// can only demonstrate potential, but not actual, interaction
|
||||
// and are treated separately
|
||||
|
||||
// pointer events (mouse, pen, touch)
|
||||
if (window.PointerEvent) {
|
||||
docElem.addEventListener('pointerdown', updateInput);
|
||||
docElem.addEventListener('pointermove', setIntent);
|
||||
} else if (window.MSPointerEvent) {
|
||||
docElem.addEventListener('MSPointerDown', updateInput);
|
||||
docElem.addEventListener('MSPointerMove', setIntent);
|
||||
} else {
|
||||
|
||||
// mouse events
|
||||
docElem.addEventListener('mousedown', updateInput);
|
||||
docElem.addEventListener('mousemove', setIntent);
|
||||
|
||||
// touch events
|
||||
if ('ontouchstart' in window) {
|
||||
docElem.addEventListener('touchstart', touchBuffer);
|
||||
}
|
||||
}
|
||||
|
||||
// mouse wheel
|
||||
docElem.addEventListener(detectWheel(), setIntent);
|
||||
|
||||
// keyboard events
|
||||
docElem.addEventListener('keydown', updateInput);
|
||||
docElem.addEventListener('keyup', updateInput);
|
||||
};
|
||||
|
||||
// checks conditions before updating new input
|
||||
var updateInput = function(event) {
|
||||
|
||||
// only execute if the touch buffer timer isn't running
|
||||
if (!isBuffering) {
|
||||
var eventKey = event.which;
|
||||
var value = inputMap[event.type];
|
||||
if (value === 'pointer') value = pointerType(event);
|
||||
|
||||
if (
|
||||
currentInput !== value ||
|
||||
currentIntent !== value
|
||||
) {
|
||||
|
||||
var activeInput = (
|
||||
document.activeElement &&
|
||||
formInputs.indexOf(document.activeElement.nodeName.toLowerCase()) === -1
|
||||
) ? true : false;
|
||||
|
||||
if (
|
||||
value === 'touch' ||
|
||||
|
||||
// ignore mouse modifier keys
|
||||
(value === 'mouse' && ignoreMap.indexOf(eventKey) === -1) ||
|
||||
|
||||
// don't switch if the current element is a form input
|
||||
(value === 'keyboard' && activeInput)
|
||||
) {
|
||||
|
||||
// set the current and catch-all variable
|
||||
currentInput = currentIntent = value;
|
||||
|
||||
setInput();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// updates the doc and `inputTypes` array with new input
|
||||
var setInput = function() {
|
||||
docElem.setAttribute('data-whatinput', currentInput);
|
||||
docElem.setAttribute('data-whatintent', currentInput);
|
||||
|
||||
if (inputTypes.indexOf(currentInput) === -1) {
|
||||
inputTypes.push(currentInput);
|
||||
docElem.className += ' whatinput-types-' + currentInput;
|
||||
}
|
||||
};
|
||||
|
||||
// updates input intent for `mousemove` and `pointermove`
|
||||
var setIntent = function(event) {
|
||||
|
||||
// only execute if the touch buffer timer isn't running
|
||||
if (!isBuffering) {
|
||||
var value = inputMap[event.type];
|
||||
if (value === 'pointer') value = pointerType(event);
|
||||
|
||||
if (currentIntent !== value) {
|
||||
currentIntent = value;
|
||||
|
||||
docElem.setAttribute('data-whatintent', currentIntent);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// buffers touch events because they frequently also fire mouse events
|
||||
var touchBuffer = function(event) {
|
||||
|
||||
// clear the timer if it happens to be running
|
||||
window.clearTimeout(touchTimer);
|
||||
|
||||
// set the current input
|
||||
updateInput(event);
|
||||
|
||||
// set the isBuffering to `true`
|
||||
isBuffering = true;
|
||||
|
||||
// run the timer
|
||||
touchTimer = window.setTimeout(function() {
|
||||
|
||||
// if the timer runs out, set isBuffering back to `false`
|
||||
isBuffering = false;
|
||||
}, 200);
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
---------------
|
||||
Utilities
|
||||
---------------
|
||||
*/
|
||||
|
||||
var pointerType = function(event) {
|
||||
if (typeof event.pointerType === 'number') {
|
||||
return pointerMap[event.pointerType];
|
||||
} else {
|
||||
return (event.pointerType === 'pen') ? 'touch' : event.pointerType; // treat pen like touch
|
||||
}
|
||||
};
|
||||
|
||||
// detect version of mouse wheel event to use
|
||||
// via https://developer.mozilla.org/en-US/docs/Web/Events/wheel
|
||||
var detectWheel = function() {
|
||||
return 'onwheel' in document.createElement('div') ?
|
||||
'wheel' : // Modern browsers support "wheel"
|
||||
|
||||
document.onmousewheel !== undefined ?
|
||||
'mousewheel' : // Webkit and IE support at least "mousewheel"
|
||||
'DOMMouseScroll'; // let's assume that remaining browsers are older Firefox
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
---------------
|
||||
Init
|
||||
|
||||
don't start script unless browser cuts the mustard
|
||||
(also passes if polyfills are used)
|
||||
---------------
|
||||
*/
|
||||
|
||||
if (
|
||||
'addEventListener' in window &&
|
||||
Array.prototype.indexOf
|
||||
) {
|
||||
setUp();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
---------------
|
||||
API
|
||||
---------------
|
||||
*/
|
||||
|
||||
return {
|
||||
|
||||
// returns string: the current input type
|
||||
// opt: 'loose'|'strict'
|
||||
// 'strict' (default): returns the same value as the `data-whatinput` attribute
|
||||
// 'loose': includes `data-whatintent` value if it's more current than `data-whatinput`
|
||||
ask: function(opt) { return (opt === 'loose') ? currentIntent : currentInput; },
|
||||
|
||||
// returns array: all the detected input types
|
||||
types: function() { return inputTypes; }
|
||||
|
||||
};
|
||||
|
||||
}());
|
||||
|
||||
|
||||
/***/ }
|
||||
/******/ ])
|
||||
});
|
||||
;
|
||||
@@ -1 +0,0 @@
|
||||
!function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof exports?module.exports=t():e.whatInput=t()}(this,function(){"use strict";function e(e){clearTimeout(s),n(e),f=!0,s=setTimeout(function(){f=!1},1e3)}function t(e){f||n(e)}function n(e){var t=o(e),n=r(e),d=w[e.type];"pointer"===d&&(d=i(e)),p!==d&&(!y&&p&&"keyboard"===d&&"tab"!==v[t]&&m.indexOf(n.nodeName.toLowerCase())>=0||(p=d,a.setAttribute("data-whatinput",p),-1===h.indexOf(p)&&h.push(p))),"keyboard"===d&&u(t)}function o(e){return e.keyCode?e.keyCode:e.which}function r(e){return e.target||e.srcElement}function i(e){return"number"==typeof e.pointerType?b[e.pointerType]:e.pointerType}function u(e){-1===c.indexOf(v[e])&&v[e]&&c.push(v[e])}function d(e){var t=o(e),n=c.indexOf(v[t]);-1!==n&&c.splice(n,1)}var s,c=[],a=document.body,f=!1,p=null,m=["input","select","textarea"],y=a.hasAttribute("data-whatinput-formtyping"),w={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},h=[],v={9:"tab",13:"enter",16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"},b={2:"touch",3:"touch",4:"mouse"};return function(){var n="mousedown";window.PointerEvent?n="pointerdown":window.MSPointerEvent&&(n="MSPointerDown"),a.addEventListener(n,t),a.addEventListener("mouseenter",t),"ontouchstart"in document.documentElement&&a.addEventListener("touchstart",e),a.addEventListener("keydown",t),a.addEventListener("keyup",d)}(),{ask:function(){return p},keys:function(){return c},types:function(){return h},set:n}});
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
@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 required medium-4">
|
||||
<input required class="large" placeholder="Nachname" name="name" type="text">
|
||||
</div>
|
||||
<div class="column required medium-4">
|
||||
<input required class="large" placeholder="Vorname" name="surname" type="text">
|
||||
</div>
|
||||
<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">
|
||||
<button type="submit" class="button expanded long secondary" id="formSend">Senden</button>
|
||||
</div>
|
||||
</form>
|
||||
-43
@@ -1,43 +0,0 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (!empty($page->titlePhoto))
|
||||
<div class="row title-photo">
|
||||
<img src="@upload($page->titlePhoto)" alt="">
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row content-container">
|
||||
|
||||
<div class="column text-center m-b-25 show-for-large">
|
||||
<h1>{{$page->title}}</h1>
|
||||
</div>
|
||||
|
||||
<div class="column text-center large-4">
|
||||
<h2 class="hide-for-large">{{$page->title}}</h2>
|
||||
|
||||
<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
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
<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
@@ -1,20 +0,0 @@
|
||||
@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
@@ -1,21 +0,0 @@
|
||||
@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
@@ -1,19 +0,0 @@
|
||||
@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
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
@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
|
||||
-35
@@ -1,35 +0,0 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@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="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>
|
||||
</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>
|
||||
@endsection
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
@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
@@ -1,23 +0,0 @@
|
||||
@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
@@ -1,23 +0,0 @@
|
||||
@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
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
@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
|
||||
@@ -1,19 +0,0 @@
|
||||
<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>
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
<!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')" />
|
||||
|
||||
@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 class="@yield('bodyClass')">
|
||||
|
||||
<header class="top-bar">
|
||||
@yield('topMenu')
|
||||
</header>
|
||||
|
||||
@yield('content')
|
||||
|
||||
<div class="clearfix"></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>
|
||||
</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>
|
||||
@@ -1,8 +0,0 @@
|
||||
@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
|
||||
@@ -1,6 +0,0 @@
|
||||
@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
@@ -1,6 +0,0 @@
|
||||
@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
|
||||
@@ -1,32 +0,0 @@
|
||||
<!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=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">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@yield('pageTitle') | {{setting('pageName')}}</title>
|
||||
|
||||
<style>
|
||||
.content-container {
|
||||
width: 75%;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row content-container">
|
||||
<h1>@yield('pageTitle')</h1>
|
||||
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +0,0 @@
|
||||
@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
|
||||
@@ -1,8 +0,0 @@
|
||||
<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>
|
||||
@@ -1,9 +0,0 @@
|
||||
<?php
|
||||
return [
|
||||
'providers' => [\Templates\PragueTennisCamp\Providers\ServiceProvider::class],
|
||||
'files' => [],
|
||||
'handler' => \Templates\PragueTennisCamp\Handler::class,
|
||||
'name' => 'PragueTennisCamp s.r.o.',
|
||||
'alias' => 'PragueTennisCamp-template',
|
||||
'description' => '',
|
||||
];
|
||||
Reference in New Issue
Block a user