Merge branch 'template_support' into dev
This commit is contained in:
@@ -4,6 +4,12 @@
|
||||
|
||||
@section('content')
|
||||
|
||||
@if(!count($templates))
|
||||
<div class="alert alert-warning">
|
||||
@lang('admin/contents.noTemplates')
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" enctype="multipart/form-data" action="{{route('content.editPost', ['pageId' => $page->id])}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
|
||||
@@ -35,11 +35,17 @@
|
||||
<div class="row p-tb-15">
|
||||
<div class="col-md-1 hidden-sm-down text-center with-placeholder">
|
||||
<a href="{{route('content.edit', ['id' => $page->id])}}">
|
||||
@if(!empty($page->title_photo))
|
||||
<img src="@upload($page->title_photo)" class="placeholder" alt="{{$page->title}}" />
|
||||
@if(!view()->exists(\App\Helpers\Template::name($page->template, false)))
|
||||
<i class="fa fa-2x text-warning fa-warning" data-toggle="tooltip"
|
||||
title="@lang('admin/contents.invalidTemplateSelected')"></i>
|
||||
@else
|
||||
<img src="{{asset('resources/assets/admin/img/placeholder.png')}}" class="placeholder"
|
||||
alt="{{$page->title}}" />
|
||||
@if(!empty($page->title_photo))
|
||||
<img src="@upload($page->title_photo)" class="placeholder" alt="{{$page->title}}" />
|
||||
@else
|
||||
<img src="{{asset('resources/assets/admin/img/placeholder.png')}}"
|
||||
class="placeholder"
|
||||
alt="{{$page->title}}" />
|
||||
@endif
|
||||
@endif
|
||||
</a>
|
||||
</div>
|
||||
@@ -71,14 +77,16 @@
|
||||
@if(!$page->is_homepage)
|
||||
<li>
|
||||
|
||||
<a href="{{route('content.setHomepage', ['id' => $page->id])}}" data-toggle="tooltip" title="@lang('admin/contents.setHomepage')">
|
||||
<a href="{{route('content.setHomepage', ['id' => $page->id])}}"
|
||||
data-toggle="tooltip" title="@lang('admin/contents.setHomepage')">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<li>
|
||||
<a class="edit" href="{{route('content.edit', ['id' => $page->id])}}" data-toggle="tooltip" title="@lang('admin/contents.editPlain')">
|
||||
<a class="edit" href="{{route('content.edit', ['id' => $page->id])}}"
|
||||
data-toggle="tooltip" title="@lang('admin/contents.editPlain')">
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
</li>
|
||||
@@ -86,7 +94,8 @@
|
||||
@if($page->status == \App\Models\Content::STATUS_DRAFT)
|
||||
<li>
|
||||
<a href="{{route('content.changeStatus', ['id' => $page->id, 'status' => \App\Models\Content::STATUS_PUBLIC])}}"
|
||||
class="confirm" data-toggle="tooltip" title="@lang('admin/contents.makePublic')">
|
||||
class="confirm" data-toggle="tooltip"
|
||||
title="@lang('admin/contents.makePublic')">
|
||||
<i class="fa fa-eye"></i>
|
||||
</a>
|
||||
</li>
|
||||
@@ -115,7 +124,8 @@
|
||||
|
||||
<li>
|
||||
<a href="{{route('content.delete', ['id' => $page->id])}}"
|
||||
class="button tiny alert remove confirm" data-toggle="tooltip" title="@lang('admin/contents.deletePage')"><i
|
||||
class="button tiny alert remove confirm" data-toggle="tooltip"
|
||||
title="@lang('admin/contents.deletePage')"><i
|
||||
class="fa fa-trash-o"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -27,18 +27,24 @@
|
||||
<div class="item-actions-block">
|
||||
<ul class="item-actions-list">
|
||||
<li>
|
||||
<a class="edit" href="{{route('widgetareas.edit', ['id' => $area->id])}}"><i
|
||||
<a class="edit" data-toggle="tooltip"
|
||||
title="@lang('admin/widgetAreas.editTooltip')"
|
||||
href="{{route('widgetareas.edit', ['id' => $area->id])}}"><i
|
||||
class="fa fa-pencil"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{route('widgets.associate', ['widgetArea' => $area->id])}}"><i
|
||||
class="fa fa-plus"></i></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="confirm remove"
|
||||
href="{{route('widgetareas.delete', ['id' => $area->id])}}"><i
|
||||
class="fa fa-trash"></i></a>
|
||||
<a href="{{route('widgets.associate', ['widgetArea' => $area->id])}}"
|
||||
data-toggle="tooltip"
|
||||
title="@lang('admin/widgetAreas.associateWidgets')">
|
||||
<i class="fa fa-plus"></i></a>
|
||||
</li>
|
||||
@if($area->deletable)
|
||||
<li>
|
||||
<a class="confirm remove" data-toggle="tooltip" title="@lang('admin/widgetAreas.delete')"
|
||||
href="{{route('widgetareas.delete', ['id' => $area->id])}}"><i
|
||||
class="fa fa-trash"></i></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -4,31 +4,58 @@
|
||||
@section('pageDescription', @trans('admin/widgets.descriptionOfWidgets'))
|
||||
|
||||
@section('content')
|
||||
@if (count($widgets))
|
||||
<table class="table table-striped full-width">
|
||||
<tr>
|
||||
<th>@lang('admin/widgets.widgetType')</th>
|
||||
<th>@lang('admin/widgets.name')</th>
|
||||
<th>@lang('admin/widgets.description')</th>
|
||||
<th>@lang('admin/widgets.actions')</th>
|
||||
</tr>
|
||||
@if (count($widgets))
|
||||
<table class="table table-striped item-list">
|
||||
<tr>
|
||||
<th>@lang('admin/widgets.widgetType')</th>
|
||||
<th>@lang('admin/widgets.name')</th>
|
||||
<th>@lang('admin/widgets.description')</th>
|
||||
<th>@lang('admin/widgets.actions')</th>
|
||||
</tr>
|
||||
@foreach($widgets as $widget)
|
||||
<tr>
|
||||
<td>{{trans(call_user_func([$widget->widget_type_handler, 'getName']))}}</td>
|
||||
<td><a href="{{route('widgets.edit', ['id' => $widget->id])}}">{{$widget->name}}</a></td>
|
||||
<td>{{$widget->description}}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{route('widgets.edit', ['id' => $widget->id])}}"><i class="fa fa-fw fa-pencil"></i></a>
|
||||
<a href="{{route('widgets.delete', ['id' => $widget->id])}}"><i class="fa fa-fw remove fa-trash"></i></a>
|
||||
|
||||
|
||||
<div class="item-actions-dropdown">
|
||||
<a class="item-actions-toggle-btn">
|
||||
<span class="inactive"><i class="fa fa-cog"></i></span>
|
||||
<span class="active"><i class="fa fa-chevron-circle-right"></i></span>
|
||||
</a>
|
||||
<div class="item-actions-block">
|
||||
<ul class="item-actions-list">
|
||||
<li>
|
||||
<a class="edit" data-toggle="tooltip"
|
||||
title="@lang('admin/widgets.editTooltip')"
|
||||
href="{{route('widgets.edit', ['id' => $widget->id])}}"><i
|
||||
class="fa fa-pencil"></i></a>
|
||||
</li>
|
||||
|
||||
@if($widget->deletable)
|
||||
<li>
|
||||
<a class="confirm remove" data-toggle="tooltip"
|
||||
title="@lang('admin/widgets.delete')"
|
||||
href="{{route('widgets.delete', ['id' => $widget->id])}}"><i
|
||||
class="fa fa-trash"></i></a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</table>
|
||||
|
||||
{!! $widgets->render() !!}
|
||||
@else
|
||||
<div class="alert alert-info">
|
||||
<em>@lang('admin/widgets.noEntries')</em>
|
||||
</div>
|
||||
@endif
|
||||
{!! $widgets->render() !!}
|
||||
@else
|
||||
<div class="alert alert-info">
|
||||
<em>@lang('admin/widgets.noEntries')</em>
|
||||
</div>
|
||||
@endif
|
||||
@stop
|
||||
@@ -1,58 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/actionLog.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/actionLog.overview')</h2>
|
||||
</div>
|
||||
|
||||
<div class="row" data-equalizer>
|
||||
@if (!empty($actions))
|
||||
<ul class="accordion" data-accordion>
|
||||
@foreach($actions as $action)
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<a class="accordion-title">
|
||||
<img src="{{\App\Helpers\Gravatar::img($action->email, 20)}}" alt="{{$action->email}}" />
|
||||
<strong>{{$action->name}}</strong>
|
||||
{{date('d.m.Y', strtotime($action->created_at))}}
|
||||
</a>
|
||||
<div class="accordion-content" data-tab-content>
|
||||
<div class="row">
|
||||
<div class="column large-1 text-center">
|
||||
<img src="{{\App\Helpers\Gravatar::img($action->email, 70)}}"
|
||||
alt="{{$action->email}}" />
|
||||
<p>
|
||||
{{$action->user_name}}<br />
|
||||
{{date('G:i', strtotime($action->created_at))}}</p>
|
||||
</div>
|
||||
<div class="column large-11">
|
||||
<div class="row column">
|
||||
{{$action->value}}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row column">
|
||||
<p>
|
||||
<strong>@lang('admin/actionLog.ip')</strong>: {{$action->ip}},
|
||||
<br />
|
||||
<strong>@lang('admin/actionLog.userAgent')</strong>: {{$action->user_agent}}
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@else
|
||||
<em>@lang('admin/userManagement.noActions')</em>
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row pagination">
|
||||
{!! $actions->render() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/contents.edit', ['name' => e($page->title)]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/contents.edit', ['name' => e($page->title)])</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@include('admin.content.editForm')
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,33 +0,0 @@
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" enctype="multipart/form-data" action="{{route('content.editPost', ['pageId' => $page->id])}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
@include('admin.content.formInputs')
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<button type="submit" class="button success">@lang('admin/contents.edit', ['name' => $page->title])</button>
|
||||
</div>
|
||||
|
||||
@if ($historySize > 0)
|
||||
<div class="columns text-right large-6">
|
||||
<a class="button warning" href="{{route('content.history', ['id' => $page->id])}}">@lang('admin/contents.showHistory', ['count' => $historySize])</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section('javascripts')
|
||||
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])
|
||||
@stop
|
||||
@@ -1,17 +0,0 @@
|
||||
<ul class="tabs" data-tabs id="static-page-controls">
|
||||
@foreach($formSectionNames as $section => $sectionName)
|
||||
<li class="tabs-title @if($sectionName == reset($formSectionNames)) is-active @endif">
|
||||
<a href="#{{$section}}" @if($sectionName == reset($formSectionNames)) aria-selected="true" @endif>
|
||||
{{trans($sectionName)}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<div class="tabs-content" data-tabs-content="static-page-controls">
|
||||
@foreach($formSections as $section => $view)
|
||||
<div class="tabs-panel @if($view == reset($formSections)) is-active @endif" id="{{$section}}">
|
||||
@include($view)
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@@ -1,50 +0,0 @@
|
||||
@if($page->title_photo)
|
||||
<div class="row">
|
||||
<div class="column large-12 title-photo text-center">
|
||||
<img src="{{config('app.upload_url')}}/{{$page->title_photo}}" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-12">
|
||||
<label>
|
||||
@lang('admin/contents.uploadTitleImage')
|
||||
<input type="file" id="titlePhoto" name="titlePhoto" />
|
||||
</label>
|
||||
@if (isset($errors) && $errors->has('titlePhoto'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('titlePhoto') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<label>
|
||||
@lang('admin/contents.template')
|
||||
|
||||
<select name="template">
|
||||
@foreach($templates as $template)
|
||||
<option value="{{$template->template_name}}"
|
||||
@if(old('template', $page->template) == $template->template_name) selected @endif>
|
||||
{{$template->name}}
|
||||
@if($template->description != '')
|
||||
- {{str_limit($template->description, 60)}}
|
||||
@endif
|
||||
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if (isset($errors) && $errors->has('template'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('template') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,103 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/contents.field_title')
|
||||
|
||||
<input type="text" name="title" class="slug-source" placeholder="@lang('admin/contents.field_title')"
|
||||
value="{{old('title', $page->title)}}" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="columns large-4">
|
||||
<label>
|
||||
@lang('admin/contents.field_url')
|
||||
|
||||
<input type="text" name="url" class="slug-target" placeholder="@lang('admin/contents.field_url')"
|
||||
value="{{old('url', $page->url)}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('url'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('url') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
<div class="column large-2 text-center">
|
||||
<label>
|
||||
@lang('admin/contents.lockUrl')<br />
|
||||
|
||||
<input type="checkbox" value="1" id="lockUrl"
|
||||
@if(old('lockUrl') || ($page->id > 0 && \Illuminate\Support\Str::slug($page->title) != $page->url)) checked
|
||||
@endif name="lockUrl" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
<select name="status">
|
||||
@foreach($contentStatuses as $status => $translation)
|
||||
<option value="{{$status}}" @if(old('status', $page->status) == $status) selected @endif>
|
||||
{{$translation}}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if (isset($errors) && $errors->has('status'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('status') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="column large-6">
|
||||
<label>
|
||||
<select name="parentPage">
|
||||
<option value="">@lang('admin/contents.noParentPage')</option>
|
||||
|
||||
@foreach($rootPages as $rootPage)
|
||||
<option value="{{$rootPage->id}}"
|
||||
@if(old('parent_page', $page->parent_id) == $rootPage->id) selected @endif>
|
||||
{{$rootPage->title}}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if (isset($errors) && $errors->has('parentPage'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('parentPage') }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if($module->support_categories && count($categories))
|
||||
<div class="column large-12">
|
||||
<label>
|
||||
@lang('admin/contents.category')
|
||||
|
||||
<select name="category">
|
||||
<option value=""> ---</option>
|
||||
@foreach($categories as $category)
|
||||
<option value="{{$category->id}}"
|
||||
@if($category->id == old('category', $page->category_id)) selected @endif>
|
||||
{{str_repeat(' - ', $category->real_depth)}} {{$category->name}}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<label>
|
||||
<textarea name="pageContent" id="pageContent" class="wysiwyg-editor">
|
||||
{{old('pageContent', $page->content)}}
|
||||
</textarea>
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,20 +0,0 @@
|
||||
<div class="row">
|
||||
|
||||
@if(count($page->files))
|
||||
<div class="column large-6">
|
||||
<ul>
|
||||
@foreach($page->files as $file)
|
||||
<li><label><input type="checkbox" name="keepAssigned[{{$file->id}}]" checked /> {{$file->original_filename}}</label></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/contents.files')
|
||||
|
||||
<input type="file" name="files[]" multiple />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,18 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<label>
|
||||
@lang('admin/contents.field_meta_keywords')
|
||||
|
||||
<input type="text" name="metaKeywords" value="{{old('meta_keywords', $page->meta_keywords)}}" placeholder="@lang('admin/contents.field_meta_keywords')" />
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<label>
|
||||
@lang('admin/contents.field_meta_description')
|
||||
|
||||
<textarea name="metaDescription" placeholder="@lang('admin/contents.field_meta_description')" rows="5">{{old('meta_description', $page->meta_description)}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,31 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/contents.field_published_from')
|
||||
|
||||
<input type="datetime" name="published_from" value="{{old('published_from', $page->published_from)}}"
|
||||
placeholder="@lang('admin/contents.field_published_from')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('published_from'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('published_from') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/contents.field_published_to')
|
||||
|
||||
<input type="datetime" name="published_to" value="{{old('published_to', $page->published_to)}}"
|
||||
placeholder="@lang('admin/contents.field_published_to')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('published_to'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('published_to') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/contents.new', ['name' => $moduleName]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/contents.new', ['name' => $moduleName])</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@include('admin.content.newForm')
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,27 +0,0 @@
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" enctype="multipart/form-data" action="{{route('content.newPost', ['moduleId' => $moduleId])}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
@include('admin.content.formInputs')
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<button type="submit" class="button success">@lang('admin/contents.save')</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@section('javascripts')
|
||||
@include('admin.snippets.ckEditor', ['textareaId' => 'pageContent'])
|
||||
@stop
|
||||
@@ -1,39 +0,0 @@
|
||||
@extends('admin/layout')
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<h1>@lang('admin/contents.overview')</h1>
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@if (!$homepage)
|
||||
<div class="row">
|
||||
<div class="callout alert">
|
||||
<strong>@lang('admin/contents.noHomepage')</strong>
|
||||
</div>
|
||||
</div>
|
||||
@elseif(!$homepage->isPublic())
|
||||
<div class="row">
|
||||
<div class="callout warning">
|
||||
<strong>@lang('admin/contents.homepageProtected')</strong>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('admin.content.overviewTiles')
|
||||
|
||||
<div class="row">
|
||||
{!! $pages->render() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,83 +0,0 @@
|
||||
@forelse($pages as $page)
|
||||
<div class="page callout page {{$page->status}} row">
|
||||
|
||||
<div class="row column">
|
||||
@if ($page->parent_id && $page->parent_url)
|
||||
<span class="parent">
|
||||
@lang('admin/contents.parentPage'):
|
||||
<a href="{{route('content.edit', ['id' => $page->parent_id])}}">{{$page->parent_title}}</a>,
|
||||
</span>
|
||||
@endif
|
||||
|
||||
<span class="author">{{$page->author_name}}</span>,
|
||||
<span class="date">{{date('d.m.Y', strtotime($page->created_at))}}</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="column large-1">
|
||||
@if ($page->title_photo)
|
||||
<a href="{{route('content.edit', ['id' => $page->id])}}">
|
||||
<img src="@upload($page->title_photo)" class="float-left" alt="" />
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="column large-8">
|
||||
<h4>
|
||||
<a href="{{route('content.edit', ['id' => $page->id])}}">
|
||||
{{$page->title}}
|
||||
<small>(@lang($page->module_name))</small>
|
||||
</a>
|
||||
</h4>
|
||||
|
||||
<p class="perex">
|
||||
@if (trim($page->meta_description))
|
||||
{{str_limit($page->meta_description)}}
|
||||
@else
|
||||
{{str_limit(strip_tags($page->content))}}
|
||||
@endif
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="controls column float-right large-3">
|
||||
@if($page->is_homepage)
|
||||
<a class="button tiny disabled">
|
||||
<i class="fa fa-home"></i>
|
||||
@lang('admin/contents.alreadyHomepage')
|
||||
</a>
|
||||
@else
|
||||
<a href="{{route('content.setHomepage', ['id' => $page->id])}}"
|
||||
class="button tiny success">
|
||||
<i class="fa fa-home"></i>
|
||||
@lang('admin/contents.setHomepage')
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<a href="{{route('content.edit', ['id' => $page->id])}}" class="button tiny success">
|
||||
<i class="fa fa-edit"></i>
|
||||
@lang('admin/contents.editPlain')
|
||||
</a>
|
||||
|
||||
@if($page->status == \App\Models\Content::STATUS_DRAFT)
|
||||
<a href="{{route('content.changeStatus', ['id' => $page->id, 'status' => \App\Models\Content::STATUS_PUBLIC])}}"
|
||||
class="button tiny success confirm">
|
||||
<i class="fa fa-eye"></i> @lang('admin/contents.makePublic')</a>
|
||||
<a href="{{route('content.changeStatus', ['id' => $page->id, 'status' => \App\Models\Content::STATUS_PROTECTED])}}"
|
||||
class="button tiny warning confirm">
|
||||
<i class="fa fa-lock"></i> @lang('admin/contents.makeProtected')</a>
|
||||
@else
|
||||
<a href="{{route('page.content', ['url' => $page->url])}}" target="_blank"
|
||||
class="button tiny secondary"><i
|
||||
class="fa fa-desktop"></i> @lang('admin/contents.viewPage')</a>
|
||||
<a href="{{route('content.changeStatus', ['id' => $page->id, 'status' => \App\Models\Content::STATUS_DRAFT])}}"
|
||||
class="button tiny warning confirm"><i
|
||||
class="fa fa-eye-slash"></i> @lang('admin/contents.makeDraft')</a>
|
||||
@endif
|
||||
|
||||
<a href="{{route('content.delete', ['id' => $page->id])}}"
|
||||
class="button tiny alert confirm"><i
|
||||
class="fa fa-remove"></i> @lang('admin/contents.deletePage')</a>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<em>@lang('admin/contents.noPagesAvailable')</em>
|
||||
@endforelse
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/customFields.edit', ['name' => $field->name]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/customFields.edit', ['name' => $field->name])</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@include('admin.customFields.editForm')
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,136 +0,0 @@
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{route('customfields.editPost', ['id' => $field->id])}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.name')
|
||||
<input type="text" placeholder="@lang('admin/customFields.name')" value="{{$field->name}}" name="name">
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-6 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.description')
|
||||
|
||||
<textarea rows="5" name="description" placeholder="@lang('admin/customFields.description')">{{$field->description}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="large-6 columns">
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.type')
|
||||
|
||||
<select name="type" disabled>
|
||||
@foreach($types as $type => $translation)
|
||||
<option value="{{$type}}"@if($field->type_id == $type) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if (isset($errors) && $errors->has('type'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('type') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.resource')
|
||||
|
||||
<select name="resource" disabled>
|
||||
@foreach($resources as $resource => $translation)
|
||||
<option value="{{$resource}}"@if($field->resource_id == $resource) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if (isset($errors) && $errors->has('resource'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('resource') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.required')
|
||||
|
||||
<input type="checkbox" placeholder="@lang('admin/customFields.required')" @if ($field->required) checked="checked" @endif name="required">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/customFields.possibleValues')
|
||||
|
||||
<textarea placeholder="@lang('admin/customFields.possibleValues')" name="possibleValues" rows="4">{{$field->possibleValues}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/customFields.defaultValue')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.defaultValue')" value="{{$field->defaultValue}}" name="defaultValue">
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.regExp')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.regExp')" value="{{$field->regExp}}" name="regExp">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="large-6 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.minLength')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.minLength')" value="{{$field->minLength}}" name="minLength">
|
||||
|
||||
@if (isset($errors) && $errors->has('minLength'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('minLength') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
<div class="large-6 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.maxLength')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.maxLength')" value="{{$field->macLength}}" name="maxLength">
|
||||
|
||||
@if (isset($errors) && $errors->has('maxLength'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('maxLength') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>
|
||||
<button type="submit" class="button success">@lang('admin/customFields.createNew')</button>
|
||||
</label>
|
||||
</form>
|
||||
@@ -1,26 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/customFields.new'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/customFields.new')</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
@include('admin.customFields.newForm')
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,124 +0,0 @@
|
||||
<form method="POST" action="{{route('customfields.newPost')}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.name')
|
||||
<input type="text" placeholder="@lang('admin/customFields.name')" value="{{old('name')}}" name="name">
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-6 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.description')
|
||||
|
||||
<textarea rows="5" name="description" placeholder="@lang('admin/customFields.description')">{{old('description')}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="large-6 columns">
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.type')
|
||||
|
||||
<select name="type">
|
||||
@foreach($types as $type => $translation)
|
||||
<option value="{{$type}}"@if(old('type') == $type) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if (isset($errors) && $errors->has('type'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('type') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.resource')
|
||||
|
||||
<select name="resource">
|
||||
@foreach($resources as $resource => $translation)
|
||||
<option value="{{$resource}}"@if(old('resource') == $resource) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
@if (isset($errors) && $errors->has('resource'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('resource') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.required')
|
||||
|
||||
<input type="checkbox" placeholder="@lang('admin/customFields.required')" @if (old('required')) checked="checked" @endif name="required">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/customFields.possibleValues')
|
||||
|
||||
<textarea placeholder="@lang('admin/customFields.possibleValues')" name="possibleValues" rows="4">{{old('possibleValues')}}</textarea>
|
||||
</label>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<label>
|
||||
@lang('admin/customFields.defaultValue')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.defaultValue')" value="{{old('defaultValue')}}" name="defaultValue">
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/customFields.regExp')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.regExp')" value="{{old('regExp')}}" name="regExp">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="large-6 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.minLength')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.minLength')" value="{{old('minLength')}}" name="minLength">
|
||||
|
||||
@if (isset($errors) && $errors->has('minLength'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('minLength') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
<div class="large-6 columns">
|
||||
<label>
|
||||
@lang('admin/customFields.maxLength')
|
||||
|
||||
<input type="text" placeholder="@lang('admin/customFields.maxLength')" value="{{old('macLength')}}" name="maxLength">
|
||||
|
||||
@if (isset($errors) && $errors->has('maxLength'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('maxLength') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<label>
|
||||
<button type="submit" class="button success">@lang('admin/customFields.createNew')</button>
|
||||
</label>
|
||||
</form>
|
||||
@@ -1,74 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/customFields.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/customFields.overview')</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
{{--draw tabs--}}
|
||||
@if (!empty($usedResources))
|
||||
<ul class="tabs" data-tabs id="customFieldsOverview">
|
||||
<?php $isFirst = true?>
|
||||
@foreach($usedResources as $i => $resource)
|
||||
<li class="tabs-title @if($isFirst)is-active @endif"><a href="#customFieldResource{{$resource}}">@lang($resources[$resource])</a></li>
|
||||
<?php $isFirst = false?>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
{{--display list of custom fields--}}
|
||||
<?php $isFirst = true?>
|
||||
<div class="tabs-content" data-tabs-content="customFieldsOverview">
|
||||
@foreach($customFields as $resourceId => $fields)
|
||||
<div class="tabs-panel @if($isFirst)is-active @endif" id="customFieldResource{{$resourceId}}">
|
||||
<table class="full-width">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>@lang('admin/customFields.name')</th>
|
||||
<th>@lang('admin/customFields.description')</th>
|
||||
<th>@lang('admin/customFields.type')</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($fields as $field)
|
||||
<tr>
|
||||
<td>{{$field->name}}</td>
|
||||
<td>{{str_limit($field->description)}}</td>
|
||||
<td>@lang($types[$field->type_id])</td>
|
||||
<td>
|
||||
<a href="{{route('customfields.delete', ['id' => $field->id])}}"><i class="fa red confirm fa-remove"></i></a>
|
||||
<a href="{{route('customfields.edit', ['id' => $field->id])}}"><i class="fa green fa-edit"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php $isFirst = false?>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@else
|
||||
<em>@lang('admin/customFields.noFields')</em>
|
||||
@endif
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,7 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>Dashboard</h1>
|
||||
|
||||
some fancy content
|
||||
@stop
|
||||
@@ -1,20 +0,0 @@
|
||||
<h3>@lang('admin/fileManager.editDirectory')</h3>
|
||||
|
||||
<form method="POST" action="{{route('upload.postEditDirectory', ['id' => $directory->id])}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.directoryName')
|
||||
|
||||
<input type="text" name="name" value="{{old('name', $directory->name)}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.directoryDescription')
|
||||
|
||||
<textarea name="description" rows="3">{{old('description', $directory->description)}}</textarea>
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">@lang('admin/fileManager.editDirectory')</button>
|
||||
|
||||
</form>
|
||||
@@ -1,36 +0,0 @@
|
||||
<h3>@lang('admin/fileManager.newDirectory')</h3>
|
||||
|
||||
<form method="POST" action="{{route('upload.postNewDirectory')}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
@if($directory->id)
|
||||
<input type="hidden" value="{{$directory->id}}" name="parentDirectory" />
|
||||
@endif
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.directoryName')
|
||||
|
||||
<input type="text" name="name" value="{{old('name')}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.directoryDescription')
|
||||
|
||||
<textarea name="description" rows="2">{{old('description')}}</textarea>
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">@lang('admin/fileManager.newDirectory')</button>
|
||||
|
||||
</form>
|
||||
@@ -1,36 +0,0 @@
|
||||
<div class="tile-overview" data-equalizer>
|
||||
|
||||
@if($directory->id)
|
||||
<div class="columns large-2">
|
||||
<div class="item directory" data-equalizer-watch>
|
||||
<div class="preview row">
|
||||
<a href="{{route('upload.overview', ['id' => $directory->parent_id])}}">
|
||||
<i class="fa fa-level-up"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="detail row text-center highlight">
|
||||
@lang('admin/fileManager.parentDirectory')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@forelse($subdirectories as $dir)
|
||||
|
||||
<div class="columns large-2">
|
||||
<div class="item directory" data-equalizer-watch>
|
||||
<div class="preview row">
|
||||
<a href="{{route('upload.overview', ['id' => $dir->id])}}">
|
||||
<i class="fa fa-folder"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="detail row text-center highlight">
|
||||
{{str_limit($dir->name, 15)}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
{{--<em>@lang('admin/fileManager.noSubdirectories')</em>--}}
|
||||
@endforelse
|
||||
</div>
|
||||
@@ -1,58 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/fileManager.edit', ['name' => $file->original_filename]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/fileManager.edit', ['name' => $file->original_filename])</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
<div class="large-preview">
|
||||
{!! \App\Helpers\FileManager::getLargePreview($file) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
|
||||
<div class="row callout secondary">
|
||||
<div class="column">
|
||||
<h3>{{$file->original_filename}}</h3>
|
||||
|
||||
<ul>
|
||||
<li>@lang('admin/fileManager.createdAt'): {{$file->created_at}}</li>
|
||||
<li>@lang('admin/fileManager.updatedAt'): {{$file->updated_at}}</li>
|
||||
<li>@lang('admin/fileManager.mime'): {{$file->mime_type}}</li>
|
||||
<li>@lang('admin/fileManager.hash'): <span title="{{$file->file_hash}}">{{str_limit($file->file_hash, 10)}}</span></li>
|
||||
<li>@lang('admin/fileManager.url'): <a href="{{config('app.upload_url')}}/{{$file->filename}}">{{$file->filename}}</a></li>
|
||||
<li>@lang('admin/fileManager.fileSize'): {{\App\Helpers\FileManager::getFormattedSize($file)}}</li>
|
||||
|
||||
@foreach($extraInfo as $column => $info)
|
||||
<li>{{$column}}: {{$info}}</li>
|
||||
@endforeach
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@include('admin.fileManager.editForm')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('head_stylesheets')
|
||||
<link rel="stylesheet" href="{{asset('/resources/assets/js/vendor/highlightjs/style/default.css')}}">
|
||||
@stop
|
||||
|
||||
@section('javascripts')
|
||||
|
||||
<script type="text/javascript" src="{{asset('/resources/assets/js/vendor/highlightjs/highlight.min.js')}}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@@ -1,53 +0,0 @@
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<form method="POST" action="{{route('upload.postEdit', ['id' => $file->id])}}" enctype="multipart/form-data">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.name')
|
||||
|
||||
<input type="text" name="name" id="name" value="{{$file->name}}"/>
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.keywords')
|
||||
|
||||
<input type="text" name="keywords" id="keywords" value="{{$file->keywords}}"/>
|
||||
|
||||
@if (isset($errors) && $errors->has('keywords'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('keywords') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.description')
|
||||
|
||||
<textarea rows="3" name="description" id="description">{{$file->description}}</textarea>
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button primary">@lang('admin/fileManager.editButton')</button>
|
||||
<a href="{{route('upload.delete', ['id' => $file->id])}}" class="button text-center confirm alert pull-right" title="@lang('admin/fileManager.delete')">
|
||||
<i class="fa fa-remove"></i>
|
||||
</a>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
<div class="row tile-overview" data-equalizer>
|
||||
@forelse($files as $file)
|
||||
<div class="columns large-2">
|
||||
<div class="item" data-equalizer-watch>
|
||||
<div class="preview row" title="{{ \App\Helpers\FileManager::getFormattedSize($file) }}">
|
||||
<a href="{{route('upload.detail', ['id' => $file->id])}}">
|
||||
{!! \App\Helpers\FileManager::getPreview($file) !!}
|
||||
</a>
|
||||
</div>
|
||||
<div class="detail row text-center">
|
||||
<div class="highlight">
|
||||
{{str_limit($file->original_filename, 15)}}
|
||||
</div>
|
||||
<div class="small">
|
||||
{{$file->mime_type}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="controls row">
|
||||
<a href="{{route('upload.detail', ['id' => $file->id])}}" class="button text-center primary column large-6" title="@lang('admin/fileManager.edit')">
|
||||
<i class="fa fa-edit"></i>
|
||||
</a>
|
||||
<a href="{{route('upload.delete', ['id' => $file->id])}}" class="button text-center confirm alert column large-6" title="@lang('admin/fileManager.delete')">
|
||||
<i class="fa fa-remove"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<em>@lang('admin/fileManager.noFiles')</em>
|
||||
@endforelse
|
||||
</div>
|
||||
@@ -1,52 +0,0 @@
|
||||
<h3>@lang('admin/fileManager.newFile')</h3>
|
||||
|
||||
<form method="POST" action="{{route('upload.postFile')}}" enctype="multipart/form-data">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
@if(isset($directory))
|
||||
<input type="hidden" name="directoryId" value="{{$directory->id}}" />
|
||||
@endif
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.selectFile')
|
||||
|
||||
<input type="file" multiple name="files[]" id="file" />
|
||||
|
||||
@if (isset($errors) && $errors->has('files[]'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('files[]') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.name')
|
||||
|
||||
<input type="text" name="name" id="name" value="{{old('name')}}"/>
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.keywords')
|
||||
|
||||
<input type="text" name="keywords" id="keywords" value="{{old('keywords')}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('keywords'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('keywords') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/fileManager.description')
|
||||
|
||||
<textarea rows="3" name="description" id="description">{{old('description')}}</textarea>
|
||||
</label>
|
||||
<button type="submit" class="button primary">@lang('admin/fileManager.upload')</button>
|
||||
</form>
|
||||
@@ -1,71 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@if ($directory->id)
|
||||
@section('pageName', @trans('admin/fileManager.directories', ['directory' => $directory->name]))
|
||||
@else
|
||||
@section('pageName', @trans('admin/fileManager.rootDirectories'))
|
||||
@endif
|
||||
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<h2>
|
||||
@if ($directory->id)
|
||||
@lang('admin/fileManager.directories', ['directory' => $directory->name])
|
||||
@else
|
||||
@lang('admin/fileManager.rootDirectories')
|
||||
@endif
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="columns large-8">
|
||||
<div class="row">
|
||||
@include('admin.fileManager.directories.subdirectoriesTiles')
|
||||
</div>
|
||||
<div class="row">
|
||||
@include('admin.fileManager.filesTiles')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="column large-4">
|
||||
<ul class="accordion" data-accordion data-allow-all-closed="true">
|
||||
<li class="accordion-item is-active" data-accordion-item>
|
||||
<a href="#" class="accordion-title">@lang('admin/fileManager.newFile')</a>
|
||||
|
||||
<div class="accordion-content" data-tab-content>
|
||||
@include('admin.fileManager.newFileForm')
|
||||
</div>
|
||||
</li>
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<a href="#" class="accordion-title">@lang('admin/fileManager.newDirectory')</a>
|
||||
|
||||
<div class="accordion-content" data-tab-content>
|
||||
@include('admin.fileManager.directories.newForm')
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@if ($directory->id)
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<a href="#" class="accordion-title">@lang('admin/fileManager.editDirectory')</a>
|
||||
|
||||
<div class="accordion-content" data-tab-content>
|
||||
@include('admin.fileManager.directories.editForm')
|
||||
</div>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,25 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/history.diffPageName', ['column' => $columnName]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/history.diffPageName', ['column' => $columnName])</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row callout">
|
||||
{!! $diff !!}
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<a href="{{route('content.history', ['id' => $change->content_id])}}" class="button success">
|
||||
@lang('admin/history.backToOverview')
|
||||
</a>
|
||||
|
||||
<a href="{{route('content.edit', ['id' => $change->content_id])}}" class="button success">
|
||||
@lang('admin/history.backToEdit')
|
||||
</a>
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,35 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/history.pageName', ['name' => $page->title]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/history.pageName', ['name' => $page->title])</h2>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<ul class="accordion" data-accordion>
|
||||
@foreach($history['changesets'] as $revision => $changes)
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<a class="accordion-title">
|
||||
<strong>{{$history['info'][$revision]['user']['name']}}</strong> |
|
||||
{{$history['info'][$revision]['changed_at']}} |
|
||||
{{trans_choice('admin/history.numOfChanges', count($changes))}}
|
||||
</a>
|
||||
|
||||
@foreach($changes as $change)
|
||||
<div class="accordion-content" data-tab-content>
|
||||
<strong>{{$change->column_trans}}</strong>: {!! $change->diff !!}
|
||||
</div>
|
||||
@endforeach
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<a href="{{route('content.edit', ['id' => $page->id])}}" class="button success">
|
||||
@lang('admin/history.backToEdit')
|
||||
</a>
|
||||
@stop
|
||||
@@ -1,75 +0,0 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
@yield('head_meta')
|
||||
<title>@yield('pageName', @trans('admin/common.admin')) | {{isset($pageName) ? $pageName : ''}}</title>
|
||||
<link rel="stylesheet" href="{{asset('resources/assets/css/foundation.min.css')}}" />
|
||||
<link rel="stylesheet" href="{{asset('resources/assets/css/font-awesome.min.css')}}" />
|
||||
<link rel="stylesheet" href="{{asset('resources/assets/css/admin.css')}}" />
|
||||
@yield('head_stylesheets')
|
||||
</head>
|
||||
<body class="admin">
|
||||
|
||||
<div id="container">
|
||||
|
||||
<header class="row nav top-bar">
|
||||
<section class="logo columns small-1 medium-3 large-2">
|
||||
<ul class="dropdown menu language_bar_chooser" data-dropdown-menu>
|
||||
<li>
|
||||
<a href="#">@lang(LaravelLocalization::getCurrentLocaleName())</a>
|
||||
<ul class="menu">
|
||||
@foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
|
||||
<li @if(LaravelLocalization::getCurrentLocale() == $localeCode) class="active" @endif>
|
||||
<a rel="alternate" hreflang="{{$localeCode}}"
|
||||
href="{{LaravelLocalization::getLocalizedURL($localeCode) }}">
|
||||
{{ $properties['native'] }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="heading columns small-10 medium-8 large-8">
|
||||
@include('admin.search.miniSearchForm')
|
||||
</section>
|
||||
|
||||
<section class="profile columns small-10 medium-1 large-2">
|
||||
<ul class="vertical dropdown menu" data-dropdown-menu>
|
||||
<li>
|
||||
<a href="#">
|
||||
<img src="{{Auth::user()->gravatar(25)}}" alt="" />
|
||||
{{Auth::user()->getAttribute('name')}}
|
||||
</a>
|
||||
{!! Menu::render('profileMenu', 'foundation-dropdown-initialized') !!}
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</header>
|
||||
|
||||
<div class="row">
|
||||
<section class="sidebar large-2 columns">
|
||||
{!! Menu::render('mainMenu', 'foundation-drilldown') !!}
|
||||
</section>
|
||||
|
||||
<section class="content small-11 medium-9 large-10 columns">
|
||||
@yield('content')
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer class="row text-center">
|
||||
© {{isset($pageName) ? $pageName : ''}} {{date('Y')}}
|
||||
</footer>
|
||||
</div>
|
||||
<script src="{{asset('resources/assets/js/vendor/jquery.min.js')}}"></script>
|
||||
<script src="{{asset('resources/assets/js/vendor/what-input.min.js')}}"></script>
|
||||
<script src="{{asset('resources/assets/js/foundation.min.js')}}"></script>
|
||||
<script src="{{asset('resources/assets/js/app.js')}}"></script>
|
||||
|
||||
@yield('javascripts')
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,74 +0,0 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@lang('admin/loginForm.login') | {{isset($pageName) ? $pageName : ''}}</title>
|
||||
<link rel="stylesheet" href="{{asset('/resources/assets/css/foundation.css')}}" />
|
||||
<link rel="stylesheet" href="{{asset('/resources/assets/css/admin.css')}}" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="medium-6 medium-centered large-4 large-centered columns login-form">
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ route('login') }}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="row column log-in-form{{ $errors->has('email') ? ' has-error' : '' }}">
|
||||
<h4 class="text-center">@lang('admin/loginForm.formHeading')</h4>
|
||||
|
||||
<label>
|
||||
@lang('admin/loginForm.email')
|
||||
<input type="text" placeholder="somebody@example.com" value="{{old('email')}}" name="email">
|
||||
|
||||
@if ($errors->has('email'))
|
||||
<div data-alert class="callout alert text-center small">
|
||||
{{ $errors->first('email') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/loginForm.password')
|
||||
<input type="password" placeholder="@lang('admin/loginForm.password')" name="password">
|
||||
|
||||
@if ($errors->has('password'))
|
||||
<div data-alert class="callout alert text-center small">
|
||||
{{ $errors->first('password') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
{{--<label>--}}
|
||||
{{--@lang('admin/loginForm.rememberMe')--}}
|
||||
{{--<input type="checkbox" name="remember">--}}
|
||||
{{--</label>--}}
|
||||
|
||||
<p>
|
||||
<button type="submit" class="button expanded">@lang('admin/loginForm.login')</button>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{{asset('/resources/assets/js/vendor/jquery.min.js')}}"></script>
|
||||
<script src="{{asset('/resources/assets/js/vendor/what-input.min.js')}}"></script>
|
||||
<script src="{{asset('/resources/assets/js/foundation.min.js')}}"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,9 +0,0 @@
|
||||
<form action="{{route('search')}}" method="get">
|
||||
<div class="input-group">
|
||||
<input type="text" class="input-group-field" value="@if(isset($search)){{$search}}@endif" placeholder="@lang('search.term')" name="search" />
|
||||
|
||||
<div class="input-group-button">
|
||||
<button class="button success"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -1 +0,0 @@
|
||||
@include('admin.search.form')
|
||||
@@ -1,41 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('search.pageTitle'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('search.pageTitle')</h2>
|
||||
</div>
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($search)
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
<h3>@lang('search.results')</h3>
|
||||
@include('admin.search.results')
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
<h3>@lang('search.term')</h3>
|
||||
@include('admin.search.form')
|
||||
</div>
|
||||
</div>
|
||||
@else
|
||||
<div class="row">
|
||||
@include('admin.search.form')
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@stop
|
||||
@@ -1,7 +0,0 @@
|
||||
|
||||
@foreach($results as $id => $result)
|
||||
<div class="search-result" id="{{$id}}">
|
||||
<h4>{{$result['name']}} ({{$result['count']}})</h4>
|
||||
{!! $result['content'] !!}
|
||||
</div>
|
||||
@endforeach
|
||||
@@ -1,3 +0,0 @@
|
||||
<div class="content search-result">
|
||||
<h3>{{$page->title}}</h3>
|
||||
</div>
|
||||
@@ -1,50 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/settings.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/settings.overview')</h2>
|
||||
</div>
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<ul class="tabs" data-tabs id="static-page-controls">
|
||||
@foreach($formSections as $id => $section)
|
||||
<li class="tabs-title @if($section->getId() == reset($formSections)->getId()) is-active @endif">
|
||||
<a href="#{{$id}}" @if($section->getId() == reset($formSections)->getId()) aria-selected="true" @endif>
|
||||
{{trans($section->getName())}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<form action="{{route('settings.save')}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<div class="tabs-content" data-tabs-content="static-page-controls">
|
||||
@foreach($formSections as $id => $section)
|
||||
<div class="tabs-panel @if($id == reset($formSections)->getId()) is-active @endif" id="{{$section->getId()}}">
|
||||
@include($section->getView())
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<button type="submit" class="button success">@lang('admin/settings.save')</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,27 +0,0 @@
|
||||
<label>
|
||||
@lang('admin/settings.pageName')
|
||||
|
||||
<input type="text" name="pageName" value="{{old('pageName', isset($settings->pageName) ? $settings->pageName['val'] : '')}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('pageName'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('pageName') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.author')
|
||||
|
||||
<input type="text" name="author" value="{{old('author', isset($settings->author) ? $settings->author['val'] : '')}}" />
|
||||
|
||||
@include('admin.settings.snippets.commonSettings', ['field' => 'author'])
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.googleAnalyticsCode')
|
||||
|
||||
<input type="text" name="googleAnalyticsCode" value="{{old('googleAnalyticsCode', isset($settings->googleAnalyticsCode) ? $settings->googleAnalyticsCode['val'] : '')}}" />
|
||||
|
||||
@include('admin.settings.snippets.commonSettings', ['field' => 'googleAnalyticsCode'])
|
||||
</label>
|
||||
@@ -1,13 +0,0 @@
|
||||
<label>
|
||||
@lang('admin/settings.metaKeywords')
|
||||
|
||||
<input type="text" name="metaKeywords"
|
||||
value="{{old('metaKeywords', isset($settings->metaKeywords) ? $settings->metaKeywords['val'] : '')}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.metaDescription')
|
||||
|
||||
<textarea name="metaDescription"
|
||||
rows="3">{{old('metaDescription', isset($settings->metaDescription) ? $settings->metaDescription['val'] : '')}}</textarea>
|
||||
</label>
|
||||
@@ -1,29 +0,0 @@
|
||||
<label>
|
||||
@lang('admin/settings.social.facebook')
|
||||
|
||||
<input type="text" name="facebookProfile" value="{{old('facebookProfile', isset($settings->facebookProfile) ? $settings->facebookProfile['val'] : '')}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.social.twitter')
|
||||
|
||||
<input type="text" name="twitterProfile" value="{{old('twitterProfile', isset($settings->twitterProfile) ? $settings->twitterProfile['val'] : '')}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.social.pinterest')
|
||||
|
||||
<input type="text" name="pinterestProfile" value="{{old('pinterestProfile', isset($settings->pinterestProfile) ? $settings->pinterestProfile['val'] : '')}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.social.gplus')
|
||||
|
||||
<input type="text" name="gplusProfile" value="{{old('gplusProfile', isset($settings->gplusProfile) ? $settings->gplusProfile['val'] : '')}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/settings.social.instagram')
|
||||
|
||||
<input type="text" name="instagramProfile" value="{{old('instagramProfile', isset($settings->instagramProfile) ? $settings->instagramProfile['val'] : '')}}" />
|
||||
</label>
|
||||
@@ -1,5 +0,0 @@
|
||||
<input type="checkbox" name="commonSettings[{{$field}}]" value="1"
|
||||
@if(!isset($settings->{$field}) || $settings->{$field}['lang'] == null)
|
||||
checked
|
||||
@endif />
|
||||
@lang('admin/settings.commonSettings')
|
||||
@@ -1,21 +0,0 @@
|
||||
<div class="ace-editor-container large">
|
||||
<textarea class="ace-editor-textarea" name="{{$name}}" id="{{$name}}">{{$value}}</textarea>
|
||||
|
||||
<div class="ace-editor" id="{{$name}}Editor">{{$value}}</div>
|
||||
</div>
|
||||
|
||||
@section('javascripts')
|
||||
<script src="{{asset('resources/assets/js/vendor/ace/ace.js')}}"></script>
|
||||
|
||||
<script type="application/javascript">
|
||||
var editor = ace.edit("{{$name}}Editor");
|
||||
editor.setTheme("ace/theme/{{$theme}}");
|
||||
editor.getSession().setMode("ace/mode/{{$mode}}");
|
||||
|
||||
var textarea = $('#{{$name}}');//.hide();
|
||||
editor.getSession().setValue(textarea.val());
|
||||
editor.getSession().on('change', function(){
|
||||
textarea.val(editor.getSession().getValue());
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,26 +0,0 @@
|
||||
<script src="{{asset('/resources/assets/js/vendor/ckeditor/ckeditor.js')}}"></script>
|
||||
|
||||
<script type="application/javascript">
|
||||
CKEDITOR.replace ('{{$textareaId}}', {
|
||||
uiColor: "#F5F5F5",
|
||||
forcePasteAsPlainText: true,
|
||||
entities: false,
|
||||
basicEntities: false,
|
||||
entities_greek: false,
|
||||
entities_latin: false,
|
||||
removePlugins: 'elementspath,about,scayt',
|
||||
extraPlugins: 'justify',
|
||||
toolbarGroups: [
|
||||
{name: 'undo', groups: ['undo']},
|
||||
{name: 'styles'},
|
||||
{name: 'basicstyles', groups: ['basicstyles', 'cleanup']},
|
||||
{name: 'paragraph', groups: ['list', 'indent', 'align', 'blocks']},
|
||||
{name: 'links'},
|
||||
{name: 'editing', groups: ['find', 'selection']},
|
||||
{name: 'insert'},
|
||||
{name: 'forms'},
|
||||
{name: 'document', groups: ['mode', 'document', 'doctools']},
|
||||
{name: 'tools'}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
@@ -1,25 +0,0 @@
|
||||
@if($directory->parent_id)
|
||||
<a href="{{route('templates.overview', ['path' => $directory->parent_id])}}" class="button full-width secondary">
|
||||
@lang('admin/templates.parentDirectory') <i class="fa fa-level-up"></i>
|
||||
</a>
|
||||
<br />
|
||||
@endif
|
||||
|
||||
<h4>@lang($directory->name)</h4>
|
||||
|
||||
{{--@if (true || isset($isWritable) && $isWritable)--}}
|
||||
{{--<div class="text-right">--}}
|
||||
{{--<a href="{{route('templates.new', ['pathId' => $directory->id])}}"><i class="fa fa-plus"></i> @lang('admin/templates.new')</a> <br />--}}
|
||||
{{--</div>--}}
|
||||
{{--@endif--}}
|
||||
|
||||
<div>
|
||||
|
||||
<h5>@lang('admin/templates.subdirectories')</h5>
|
||||
|
||||
@forelse($subdirectories as $subdirectory)
|
||||
<a href="{{route('templates.overview', ['path' => $subdirectory->id])}}">{{trans($subdirectory->name)}}</a>
|
||||
@empty
|
||||
<em>@lang('admin/templates.noSubdirectories')</em>
|
||||
@endforelse
|
||||
</div>
|
||||
@@ -1,14 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/templates.edit', ['name' => $template->template_name]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/templates.edit', ['name' => $template->template_name])</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@include('admin.templates.editForm')
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,54 +0,0 @@
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (!$isWritable)
|
||||
<div data-alert class="callout warning">
|
||||
@lang('admin/templates.notWritable', ['file' => $path->path])
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form action="{{route('templates.postEdit', ['id' => $template->id])}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
<div style="height: 30em">
|
||||
@include('admin.snippets.aceEditor', [
|
||||
'value' => old('templateContent', $templateContent),
|
||||
'theme' => 'xcode',
|
||||
'mode' => 'html',
|
||||
'name' => 'templateContent'
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="column large-4">
|
||||
<label>
|
||||
@lang('admin/templates.name')
|
||||
|
||||
<input type="text" name="name" value="{{old('name', $template->name)}}" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/templates.description')
|
||||
|
||||
<textarea name="description" rows="3">{{old('description', $template->description)}}</textarea>
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">
|
||||
@lang('admin/templates.edit', ['name' => $template->template_name])
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/templates.overview'))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('admin/templates.overview')</h1>
|
||||
|
||||
@if (session('success'))
|
||||
<div data-alert class="callout success">
|
||||
<strong>{{ session('success') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div data-alert class="callout alert">
|
||||
<strong>{{ session('error') }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-9">
|
||||
@include('admin.templates.templatesTiles')
|
||||
</div>
|
||||
|
||||
<div class="column large-3">
|
||||
<div class="callout">
|
||||
@include('admin.templates.directoriesList')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
@@ -1,69 +0,0 @@
|
||||
<div class="tile-overview" data-equalizer>
|
||||
@forelse($templates as $template)
|
||||
<div class="columns large-3">
|
||||
<div class="item" data-equalizer-watch>
|
||||
<div class="detail row text-center">
|
||||
<div class="highlight" title="{{$template->name}}">
|
||||
{{str_limit($template->name, 15)}}
|
||||
</div>
|
||||
<div>
|
||||
{{str_limit($template->description, 150)}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="controls row">
|
||||
@if($isWritable)
|
||||
<a data-template-id="{{$template->id}}" data-template-name="{{$template->template_name}}"
|
||||
class="button primary column large-6 copy-template"
|
||||
title="@lang('admin/templates.copy')">
|
||||
<i class="fa fa-copy"></i>
|
||||
</a>
|
||||
@else
|
||||
<a href="#" class="button primary disabled column large-6"
|
||||
title="@lang('admin/templates.cannotCopy')">
|
||||
<i class="fa fa-copy"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if ($template->editable)
|
||||
<a href="{{route('templates.edit', ['id' => $template->id])}}"
|
||||
class="button success column large-6"
|
||||
title="@lang('admin/templates.edit', ['name' => $template->name])">
|
||||
<i class="fa fa-edit"></i>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@empty
|
||||
<em>@lang('admin/templates.noTemplates')</em>
|
||||
@endforelse
|
||||
</div>
|
||||
|
||||
@section('javascripts')
|
||||
<script type="text/javascript">
|
||||
$ ('.copy-template').click (function () {
|
||||
var link = $ (this);
|
||||
var templateId = link.data ('template-id');
|
||||
var templateName = link.data ('template-name');
|
||||
templateName = templateName.substr (templateName.search ('::') + 2, templateName.length);
|
||||
|
||||
var newTemplateName = prompt ("@lang('admin/templates.newTemplateName')", templateName + "_" + "@lang('admin/templates.newTemplateNameSuffix')");
|
||||
|
||||
// no name given - give up
|
||||
if (newTemplateName == null) return;
|
||||
|
||||
// copy given template
|
||||
$.post ('{{route('templates.postCopy')}}', {
|
||||
templateId: templateId,
|
||||
newName: newTemplateName,
|
||||
_token: "{{csrf_token()}}"
|
||||
}, function (data) {
|
||||
if (data.status == 'success') {
|
||||
location.reload ();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,66 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/userManagement.detail', ['name' => $user->name, 'email' => $user->email]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h3>@lang('admin/userManagement.detail', ['name' => str_limit($user->name, 20), 'email' => $user->email])</h3>
|
||||
|
||||
<div class="columns large-4">
|
||||
<div class="callout">
|
||||
<div class="user-img text-center">
|
||||
<img src="{{$user->gravatar(200)}}" alt="" />
|
||||
</div>
|
||||
<div class="user-detail text-center">
|
||||
<ul>
|
||||
<li>{{$user->name}}</li>
|
||||
<li>{{$user->email}}</li>
|
||||
|
||||
{{--todo: add custom fields--}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="callout">
|
||||
<h3>@lang('admin/userManagement.usersActions')</h3>
|
||||
|
||||
@if (!empty($actions))
|
||||
<ul class="accordion" data-accordion>
|
||||
@foreach($actions as $action)
|
||||
<li class="accordion-item" data-accordion-item>
|
||||
<a class="accordion-title">{{$action->name}}</a>
|
||||
<div class="accordion-content" data-tab-content>
|
||||
{{date('d.m.Y G:i', strtotime($action->created_at))}} <br />
|
||||
{{$action->value}}
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@else
|
||||
<em>@lang('admin/userManagement.noActions')</em>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="columns large-8">
|
||||
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="callout">
|
||||
<h3>@lang('admin/userManagement.editUser', ['name' => str_limit($user->name, 20), 'email' => $user->email])</h3>
|
||||
@include('admin.userManagement.editForm')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,24 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/userManagement.editUser', ['name' => str_limit($user->name, 20), 'email' => $user->email]))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h1>@lang('admin/userManagement.editUser', ['name' => str_limit($user->name, 20), 'email' => $user->email])</h1>
|
||||
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('admin.userManagement.editForm')
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,64 +0,0 @@
|
||||
<form method="POST" action="{{route('users.editPost', ['id' => $user->id])}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.name')
|
||||
<input type="text" placeholder="@lang('admin/userManagement.name')" value="{{$user->name}}" name="name">
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.email')
|
||||
|
||||
<input type="text" name="email" value="{{$user->email}}" placeholder="somebody@example.com">
|
||||
|
||||
@if (isset($errors) && $errors->has('email'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('email') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.password') <em>(@lang('admin/userManagement.passwordLeaveEmpty'))</em>
|
||||
|
||||
<input type="text" name="password" value="">
|
||||
</label>
|
||||
|
||||
@if (\Auth::user()->role == \App\Models\User::ROLE_ADMIN && \Auth::user()->id != $user->id)
|
||||
<label>
|
||||
@lang('admin/userManagement.roles')
|
||||
|
||||
<select name="role">
|
||||
@foreach($roles as $role => $translation)
|
||||
<option value="{{$role}}" @if($role == $user->role) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if (isset($errors) && $errors->has('role'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('role') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.status')
|
||||
|
||||
<select name="status">
|
||||
@foreach($states as $status => $translation)
|
||||
<option value="{{$status}}" @if($status == $user->status) selected @endif>{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if (isset($errors) && $errors->has('role'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('role') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<label>
|
||||
<button type="submit" class="button success">@lang('admin/userManagement.update')</button>
|
||||
</label>
|
||||
</form>
|
||||
@@ -1,22 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/userManagement.addNewUser'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1>@lang('admin/userManagement.addNewUser')</h1>
|
||||
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@include('admin.userManagement.newForm', ['roles' => $roles])
|
||||
@stop
|
||||
@@ -1,54 +0,0 @@
|
||||
<form method="POST" action="{{route('users.newPost')}}">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.name')
|
||||
<input type="text" placeholder="@lang('admin/userManagement.name')" name="name">
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.email')
|
||||
|
||||
<input type="text" name="email" placeholder="somebody@example.com">
|
||||
|
||||
@if (isset($errors) && $errors->has('email'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('email') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.password')
|
||||
|
||||
<input type="text" name="password">
|
||||
|
||||
@if (isset($errors) && $errors->has('password'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('password') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.roles')
|
||||
|
||||
<select name="role">
|
||||
@foreach($roles as $role => $translation)
|
||||
<option value="{{$role}}">{{$translation}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
|
||||
@if (isset($errors) && $errors->has('role'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('role') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<label>
|
||||
<button type="submit" class="button success">@lang('admin/userManagement.register')</button>
|
||||
</label>
|
||||
</form>
|
||||
@@ -1,41 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/userManagement.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/userManagement.overview')</h2>
|
||||
|
||||
<p>
|
||||
@foreach($statuses as $status => $translation)
|
||||
<a class="button tiny @if($status != $currentStatus) secondary @else primary @endif" href="{{route('users.overview', ['status' => $status])}}">{{$translation}}</a>
|
||||
@endforeach
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row" data-equalizer>
|
||||
@forelse($users as $user)
|
||||
<div class="user-detail large-2 medium-3 small-4 columns">
|
||||
<div class="callout text-center small" data-equalizer-watch>
|
||||
<a href="{{route('users.detail', ['id' => $user->id])}}" data-tooltip title="{{$roles[$user->role]}}">
|
||||
<div class="user-img">
|
||||
<img src="{{$user->gravatar(350)}}" alt="" />
|
||||
</div>
|
||||
<div class="user-info text-center">
|
||||
{{ $user->name}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<em>@lang('admin/userManagement.noUsers')</em>
|
||||
@endforelse
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row pagination">
|
||||
{!! $users->render() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/widgetAreas.edit', ['name' => $area->name]))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('admin/widgetAreas.edit', ['name' => $area->name])</h1>
|
||||
|
||||
@include('admin.widgets.area.editForm')
|
||||
@stop
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form action="{{route('widgetareas.postEdit', ['id' => $area->id])}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('admin/widgetAreas.name')
|
||||
|
||||
<input type="text" name="name" value="{{$area->name}}" placeholder="@lang('admin/widgetAreas.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/widgetAreas.code')
|
||||
|
||||
<input type="text" name="code" disabled="true" value="{{$area->code}}"
|
||||
placeholder="@lang('admin/widgetAreas.code')" />
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/widgetAreas.description')
|
||||
|
||||
<textarea rows="3" name="description"
|
||||
placeholder="@lang('admin/widgetAreas.description')">{{$area->description}}</textarea>
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">@lang('admin/widgetAreas.editButton')</button>
|
||||
</form>
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/widgetAreas.new'))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('admin/widgetAreas.new')</h1>
|
||||
|
||||
@include('admin.widgets.area.newForm')
|
||||
@stop
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
@if (!isset($hideMessages))
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{route('widgetareas.postNew')}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('admin/widgetAreas.name')
|
||||
|
||||
<input type="text" name="name" value="{{old("name")}}" placeholder="@lang('admin/widgetAreas.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/widgetAreas.code')
|
||||
|
||||
<input type="text" name="code" value="{{old("code")}}" placeholder="@lang('admin/widgetAreas.code')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('code'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('code') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('admin/widgetAreas.description')
|
||||
|
||||
<textarea rows="3" name="description"
|
||||
placeholder="@lang('admin/widgetAreas.description')">{{old("description")}}</textarea>
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">@lang('admin/widgetAreas.createNew')</button>
|
||||
</form>
|
||||
@@ -1,62 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/widgetAreas.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/widgetAreas.overview')</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="column large-8">
|
||||
@if (count($areas) > 0)
|
||||
<table class="full-width">
|
||||
<tr>
|
||||
<th>@lang('admin/widgetAreas.name')</th>
|
||||
<th>@lang('admin/widgetAreas.code')</th>
|
||||
<th>@lang('admin/widgetAreas.description')</th>
|
||||
<th>@lang('admin/widgetAreas.actions')</th>
|
||||
</tr>
|
||||
@foreach($areas as $area)
|
||||
<tr>
|
||||
<td>{{$area->name}}</td>
|
||||
<td>{{$area->code}}</td>
|
||||
<td>{{str_limit($area->description, 100)}}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{route('widgets.associate', ['widgetArea' => $area->id])}}"><i class="fa fa-plus"></i></a>
|
||||
<a href="{{route('widgetareas.edit', ['id' => $area->id])}}"><i class="fa fa-edit"></i></a>
|
||||
<a href="{{route('widgetareas.delete', ['id' => $area->id])}}"><i
|
||||
class="fa fa-remove confirm"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@else
|
||||
<em>@lang('admin/widgetAreas.noEntries')</em>
|
||||
@endif
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
<h3>@lang('admin/widgetAreas.new')</h3>
|
||||
|
||||
@include('admin.widgets.area.newForm', ['hideMessages' => true])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pagination">
|
||||
{!! $areas->render() !!}
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,79 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/widgets.overview'))
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="column large-9 tile-overview" data-equalizer>
|
||||
|
||||
<h2>@lang('admin/widgets.overview')</h2>
|
||||
|
||||
@forelse($widgets as $widget)
|
||||
<div class="column large-4">
|
||||
<div class="item" data-equalizer-watch>
|
||||
<h4>{{str_limit($widget->name, 20)}}</h4>
|
||||
<p>
|
||||
{{trans(call_user_func([$widget->widget_type_handler, 'getName']))}}
|
||||
</p>
|
||||
<p>
|
||||
{{str_limit($widget->description, 150)}}
|
||||
</p>
|
||||
|
||||
<div class="controls row text-center">
|
||||
<a href="{{route('widgets.edit', ['id' => $widget->id])}}" class="button column large-6 primary"><i class="fa fa-edit"></i></a>
|
||||
|
||||
@if (in_array($widget->id, $associatedWidgetIds))
|
||||
<a href="{{route('widgets.deleteAssociation', ['widgetId' => $widget->id, 'widgetArea' => $widgetArea->id])}}"
|
||||
class="button column confirm large-6 alert">
|
||||
<i class="fa fa-remove"></i>
|
||||
</a>
|
||||
@else
|
||||
<a href="{{route('widgets.makeAssociation', ['widgetId' => $widget->id, 'widgetArea' => $widgetArea->id])}}"
|
||||
class="button column large-6 success"><i class="fa fa-plus"></i></a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
<em>@lang('admin/widgets.noEntries')</em>
|
||||
@endforelse
|
||||
|
||||
<div class="row">
|
||||
{!! $widgets->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="column large-3">
|
||||
<h2>{{$widgetArea->name}}</h2>
|
||||
|
||||
<p>
|
||||
{{$widgetArea->description}}
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li>@lang('admin/widgets.createdAt'): {{$widgetArea->created_at}}</li>
|
||||
<li>@lang('admin/widgets.updatedAt'): {{$widgetArea->updated_at}}</li>
|
||||
</ul>
|
||||
|
||||
<a href="{{route('widgetareas.edit', ['id' => $widgetArea->id])}}">@lang('admin/widgetAreas.editButton')</a>
|
||||
|
||||
@if (!empty($associatedWidgetIds))
|
||||
<h3>@lang('admin/widgets.preview')</h3>
|
||||
|
||||
@widgetArea($widgetArea->code)
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@@ -1,20 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/htmlCode.edit', ['name' => $widget->name]))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/htmlCode.edit', ['name' => $widget->name])</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
@include('admin.widgets.htmlCode.editForm')
|
||||
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
<h3>@lang('widgets/htmlCode.preview')</h3>
|
||||
|
||||
@widgetPreview($widget)
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
@if (!isset($hideMessages))
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{route('widgets.postEdit', ['id' => $widget->id])}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('widgets/htmlCode.name')
|
||||
|
||||
<input type="text" name="name" value="{{$widget->name}}" placeholder="@lang('widgets/htmlCode.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/htmlCode.description')
|
||||
|
||||
<input type="text" name="description" placeholder="@lang('widgets/htmlCode.description')"
|
||||
value="{{$widget->description}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/htmlCode.containerClass')
|
||||
|
||||
<input type="text" name="containerClass" placeholder="@lang('widgets/htmlCode.containerClass')"
|
||||
value="{{$settings->containerClass}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('containerClass'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/htmlCode.code')
|
||||
|
||||
<textarea rows="4" name="code" placeholder="@lang('widgets/htmlCode.code')">{{$settings->code}}</textarea>
|
||||
|
||||
@if (isset($errors) && $errors->has('code'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('code') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">@lang('widgets/htmlCode.editExisting')</button>
|
||||
</form>
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/htmlCode.new'))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/htmlCode.new')</h1>
|
||||
|
||||
@include('admin.widgets.htmlCode.newForm')
|
||||
@stop
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
@if (!isset($hideMessages))
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{route('widgets.postNew', ['type' => $type])}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('widgets/htmlCode.name')
|
||||
|
||||
<input type="text" name="name" value="{{old("name")}}" placeholder="@lang('widgets/htmlCode.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/htmlCode.description')
|
||||
|
||||
<input type="text" name="description" placeholder="@lang('widgets/htmlCode.description')"
|
||||
value="{{old("description")}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/htmlCode.containerClass')
|
||||
|
||||
<input type="text" name="containerClass" placeholder="@lang('widgets/htmlCode.containerClass')"
|
||||
value="{{old("containerClass")}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('containerClass'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/htmlCode.code')
|
||||
|
||||
<textarea rows="4" name="code" placeholder="@lang('widgets/htmlCode.code')">{{old("code")}}</textarea>
|
||||
|
||||
@if (isset($errors) && $errors->has('code'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('code') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<button type="submit" class="button success">@lang('widgets/htmlCode.createNew')</button>
|
||||
</form>
|
||||
@@ -1,20 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/menu.edit', ['name' => $widget->name]))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/menu.edit', ['name' => $widget->name])</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
@include('admin.widgets.menu.form', ['formAction' => route('widgets.postEdit', ['id' => $widget->id])])
|
||||
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
<h3>@lang('widgets/menu.preview')</h3>
|
||||
|
||||
@widgetPreview($widget)
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
@if (!isset($hideMessages))
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{$formAction}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('widgets/menu.name')
|
||||
|
||||
<input type="text" name="name" value="{{old("name", $widget->name)}}" placeholder="@lang('widgets/menu.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/menu.description')
|
||||
|
||||
<input type="text" name="description" placeholder="@lang('widgets/menu.description')"
|
||||
value="{{old("description", $widget->description)}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<textarea name="moduleSettings" id="menuConfig">{}</textarea>
|
||||
|
||||
<button type="submit" class="button success">@lang('widgets/menu.createNew')</button>
|
||||
</form>
|
||||
|
||||
|
||||
<ul class="tabs" data-tabs id="createMenu">
|
||||
@foreach($extensions as $extension)
|
||||
<li class="tabs-title @if($extension->getId() == reset($extensions)->getId()) is-active @endif">
|
||||
<a href="#{{$extension->getId()}}" @if($extension->getId() == reset($extensions)->getId()) aria-selected="true" @endif>
|
||||
{{trans($extension->getName())}}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<div class="tabs-content" data-tabs-content="createMenu">
|
||||
@foreach($extensions as $extension)
|
||||
<div class="tabs-panel @if($extension->getId() == reset($extensions)->getId()) is-active @endif" id="{{$extension->getId()}}">
|
||||
<h4>{{$extension->getName()}}</h4>
|
||||
<p>{{$extension->getDescription()}}</p>
|
||||
|
||||
<form action="#" id="menuItem-{{$extension->getId()}}" class="menuItems" data-extension="{{$extension->getId()}}">
|
||||
@include($extension->getFormExtensionTemplate())
|
||||
|
||||
<div class="row">
|
||||
<button class="button" type="submit"><i class="fa fa-plus"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@section('javascripts')
|
||||
<script type="text/javascript">
|
||||
$('.menuItems').submit(function () {
|
||||
var id = $(this).data('extension');
|
||||
var existingSettings = {};
|
||||
|
||||
try {
|
||||
existingSettings = JSON.parse ($ ('#menuConfig').val ());
|
||||
} catch (err) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
$(this).find(':input').each(function () {
|
||||
var name = $(this).attr('name');
|
||||
var value = $(this).val();
|
||||
|
||||
alert('name: '+name+", value: "+value);
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/menu.new'))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/menu.new')</h1>
|
||||
|
||||
@include('admin.widgets.menu.form', ['formAction' => route('widgets.postNew', ['type' => $type])])
|
||||
@stop
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<label>
|
||||
@lang('widgets.url')
|
||||
|
||||
<input type="text" name="url" id="urlField"/>
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets.anchor')
|
||||
|
||||
<input type="text" name="anchor" id="anchorField"/>
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets.openInNewWindow')
|
||||
|
||||
<input type="checkbox" checked="checked" name="openInNewWindow" id="openInNewWindowField"/>
|
||||
</label>
|
||||
@@ -1,20 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/menu.edit', ['name' => $widget->name]))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/menu.edit', ['name' => $widget->name])</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
@include('admin.widgets.menu.form', ['formAction' => route('widgets.postEdit', ['id' => $widget->id])])
|
||||
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
<h3>@lang('widgets/menu.preview')</h3>
|
||||
|
||||
@widgetPreview($widget)
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
@if (!isset($hideMessages))
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{$formAction}}" id="widget-menu" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('widgets/menu.name')
|
||||
|
||||
<input type="text" name="name" value="{{old("name", $widget->name)}}"
|
||||
placeholder="@lang('widgets/menu.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/menu.description')
|
||||
|
||||
<input type="text" name="description" placeholder="@lang('widgets/menu.description')"
|
||||
value="{{old("description", $widget->description)}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/menu.containerClass')
|
||||
|
||||
<input type="text" name="containerClass" placeholder="@lang('widgets/menu.containerClass')"
|
||||
value="{{old("containerClass")}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('containerClass'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<input type="hidden" name="settings" id="widgetSettings" value="{{json_encode($widget->settingsObj->links)}}" />
|
||||
|
||||
<div class="row column">
|
||||
<h3>@lang('widgets/menu.addedPages')</h3>
|
||||
|
||||
<div id="menu-items-container">
|
||||
@foreach($widget->settingsObj->links as $pageId => $details)
|
||||
<span class="label" data-page-id="{{$pageId}}" id="item-{{$pageId}}">{{$details->text}}</span>
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row column">
|
||||
<button type="submit" class="button success">@lang('widgets/menu.save')</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="row column">
|
||||
<h3>@lang('widgets/menu.availablePages')</h3>
|
||||
|
||||
@foreach ($pages as $page)
|
||||
<a href="#" class="button primary @if(isset($widget->settingsObj->links->{$page->id})) secondary @endif menu-item"
|
||||
data-page-url="{{$page->url}}" data-page-id="{{$page->id}}" id="page-{{$page->id}}">{{$page->title}}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
|
||||
@section('javascripts')
|
||||
<script type="text/javascript">
|
||||
$ ('#widget-menu').submit (function () {
|
||||
var items = {};
|
||||
var i = 0;
|
||||
$ ('#menu-items-container').children ().each (function () {
|
||||
var id = $ (this).data ('page-id');
|
||||
items[id] = {
|
||||
id: id,
|
||||
type: 'content',
|
||||
text: $ (this).text (),
|
||||
order: i++,
|
||||
children: {}
|
||||
};
|
||||
});
|
||||
|
||||
// check if menu is not empty
|
||||
if (i == 0) {
|
||||
alert ('@lang('widgets/menu.noLinks')');
|
||||
return false;
|
||||
}
|
||||
|
||||
$ ('#widgetSettings').val (JSON.stringify (items));
|
||||
});
|
||||
|
||||
$ ('.menu-item').click (function () {
|
||||
var url = $ (this).data ('page-url');
|
||||
var text = $ (this).text ();
|
||||
var id = $ (this).data ('page-id');
|
||||
|
||||
if ($ (this).hasClass ('secondary')) {
|
||||
// remove
|
||||
$ ('#item-' + id).remove ();
|
||||
} else {
|
||||
// add
|
||||
$ ('#menu-items-container').append ('<span class="label" id="item-' + id + '" data-page-id="' + id + '">' + text + '</span> ');
|
||||
}
|
||||
|
||||
// distinguish between added and not-added page
|
||||
$ (this).toggleClass ('secondary');
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -1,7 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/menu.new')</h1>
|
||||
|
||||
@include('admin.widgets.menu.form', ['formAction' => route('widgets.postNew', ['type' => $type])])
|
||||
@endsection
|
||||
@@ -1,19 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/orbitSlider.edit', ['name' => $widget->name]))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/orbitSlider.edit', ['name' => $widget->name])</h1>
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-8">
|
||||
@include('admin.widgets.orbitSlider.form', ['formAction' => route('widgets.postEdit', ['id' => $widget->id])])
|
||||
</div>
|
||||
<div class="column large-4">
|
||||
<h3>@lang('widgets/orbitSlider.preview')</h3>
|
||||
|
||||
@widgetPreview($widget)
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
@if (!isset($hideMessages))
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<form action="{{$formAction}}" method="POST">
|
||||
{!! csrf_field() !!}
|
||||
<label>
|
||||
@lang('widgets/orbitSlider.name')
|
||||
|
||||
<input type="text" name="name" value="{{old('name', $widget->name)}}"
|
||||
placeholder="@lang('widgets/orbitSlider.name')" />
|
||||
|
||||
@if (isset($errors) && $errors->has('name'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('name') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/orbitSlider.description')
|
||||
|
||||
<input type="text" name="description" placeholder="@lang('widgets/orbitSlider.description')"
|
||||
value="{{old('description', $widget->description)}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('description'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<div class="row">
|
||||
<div class="column large-10">
|
||||
<label>
|
||||
@lang('widgets/orbitSlider.imagesPerSlide')
|
||||
|
||||
<select name="imagePerSlide">
|
||||
@foreach($availableColumns as $value => $name)
|
||||
<option value="{{$value}}"
|
||||
@if (old('imagePerSlide', $settings->imagePerSlide) == $value) selected="selected" @endif>
|
||||
{{$name}}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="column large-2 text-center">
|
||||
<label>@lang('widgets/orbitSlider.displayBullets')</label>
|
||||
|
||||
<div class="switch">
|
||||
<input class="switch-input" id="displayBullets" type="checkbox"
|
||||
@if($settings->displayBullets) checked="checked" @endif name="displayBullets">
|
||||
<label class="switch-paddle" for="displayBullets">
|
||||
<span class="show-for-sr">@lang('widgets/orbitSlider.displayBullets')</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<h4>@lang('widgets/orbitSlider.extraSettings')</h4>
|
||||
|
||||
<label>
|
||||
@lang('widgets/orbitSlider.containerClass')
|
||||
|
||||
<input type="text" name="containerClass" placeholder="@lang('widgets/orbitSlider.containerClass')"
|
||||
value="{{old('containerClass', $settings->sliderClass)}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('containerClass'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/orbitSlider.slideContainerClass')
|
||||
|
||||
<input type="text" name="slideContainerClass" placeholder="@lang('widgets/orbitSlider.slideContainerClass')"
|
||||
value="{{old('slideContainerClass', $settings->slideContainerClass)}}" />
|
||||
|
||||
@if (isset($errors) && $errors->has('slideContainerClass'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('description') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
<label>
|
||||
@lang('widgets/orbitSlider.code')
|
||||
|
||||
<textarea rows="4" name="code" placeholder="@lang('widgets/orbitSlider.code')">{{old('code', $settings->code)}}</textarea>
|
||||
|
||||
@if (isset($errors) && $errors->has('code'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('code') }}
|
||||
</div>
|
||||
@endif
|
||||
</label>
|
||||
|
||||
@if($settings->directoryId)
|
||||
<div class="row column text-center">
|
||||
<a href="{{route('upload.overview', ['id' => $settings->directoryId])}}"
|
||||
class="button expanded large success">@lang('widgets/orbitSlider.upload')</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<button type="submit" class="button success">@lang('widgets/orbitSlider.editExisting')</button>
|
||||
@@ -1,10 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('widgets/htmlCode.new'))
|
||||
|
||||
@section('content')
|
||||
<h1>@lang('widgets/orbitSlider.new')</h1>
|
||||
|
||||
@include('admin.widgets.orbitSlider.form', ['formAction' => route('widgets.postNew', ['type' => $type])])
|
||||
@stop
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/widgets.overview'))
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<h2>@lang('admin/widgets.overview')</h2>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@if (session('success'))
|
||||
<div class="callout success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (session('error'))
|
||||
<div class="callout alert">
|
||||
{{ session('error') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (count($widgets))
|
||||
<table class="full-width">
|
||||
<tr>
|
||||
<th>@lang('admin/widgets.widgetType')</th>
|
||||
<th>@lang('admin/widgets.name')</th>
|
||||
<th>@lang('admin/widgets.description')</th>
|
||||
<th>@lang('admin/widgets.actions')</th>
|
||||
</tr>
|
||||
@foreach($widgets as $widget)
|
||||
<tr>
|
||||
<td>{{trans(call_user_func([$widget->widget_type_handler, 'getName']))}}</td>
|
||||
<td>{{$widget->name}}</td>
|
||||
<td>{{$widget->description}}</td>
|
||||
<td class="text-center">
|
||||
<a href="{{route('widgets.edit', ['id' => $widget->id])}}"><i class="fa fa-edit"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
{!! $widgets->render() !!}
|
||||
@else
|
||||
<em>@lang('admin/widgets.noEntries')</em>
|
||||
@endif
|
||||
</div>
|
||||
@stop
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 49 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 47 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 937 B |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
-656
@@ -1,656 +0,0 @@
|
||||
.slide-in-down.mui-enter, .slide-in-left.mui-enter, .slide-in-up.mui-enter, .slide-in-right.mui-enter, .slide-out-down.mui-leave, .slide-out-right.mui-leave, .slide-out-up.mui-leave, .slide-out-left.mui-leave, .fade-in.mui-enter, .fade-out.mui-leave, .hinge-in-from-top.mui-enter, .hinge-in-from-right.mui-enter, .hinge-in-from-bottom.mui-enter, .hinge-in-from-left.mui-enter, .hinge-in-from-middle-x.mui-enter, .hinge-in-from-middle-y.mui-enter, .hinge-out-from-top.mui-leave, .hinge-out-from-right.mui-leave, .hinge-out-from-bottom.mui-leave, .hinge-out-from-left.mui-leave, .hinge-out-from-middle-x.mui-leave, .hinge-out-from-middle-y.mui-leave, .scale-in-up.mui-enter, .scale-in-down.mui-enter, .scale-out-up.mui-leave, .scale-out-down.mui-leave, .spin-in.mui-enter, .spin-out.mui-leave, .spin-in-ccw.mui-enter, .spin-out-ccw.mui-leave {
|
||||
transition-duration: 500ms;
|
||||
transition-timing-function: linear;
|
||||
}
|
||||
|
||||
.slide-in-down.mui-enter {
|
||||
-webkit-transform: translateY(-100%);
|
||||
transform: translateY(-100%);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-in-down.mui-enter.mui-enter-active {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.slide-in-left.mui-enter {
|
||||
-webkit-transform: translateX(-100%);
|
||||
transform: translateX(-100%);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-in-left.mui-enter.mui-enter-active {
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.slide-in-up.mui-enter {
|
||||
-webkit-transform: translateY(100%);
|
||||
transform: translateY(100%);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-in-up.mui-enter.mui-enter-active {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.slide-in-right.mui-enter {
|
||||
-webkit-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-in-right.mui-enter.mui-enter-active {
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.slide-out-down.mui-leave {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-out-down.mui-leave.mui-leave-active {
|
||||
-webkit-transform: translateY(-100%);
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
.slide-out-right.mui-leave {
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-out-right.mui-leave.mui-leave-active {
|
||||
-webkit-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
}
|
||||
|
||||
.slide-out-up.mui-leave {
|
||||
-webkit-transform: translateY(0);
|
||||
transform: translateY(0);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-out-up.mui-leave.mui-leave-active {
|
||||
-webkit-transform: translateY(-100%);
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
.slide-out-left.mui-leave {
|
||||
-webkit-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.slide-out-left.mui-leave.mui-leave-active {
|
||||
-webkit-transform: translateX(-100%);
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.fade-in.mui-enter {
|
||||
opacity: 0;
|
||||
transition-property: opacity;
|
||||
}
|
||||
|
||||
.fade-in.mui-enter.mui-enter-active {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.fade-out.mui-leave {
|
||||
opacity: 1;
|
||||
transition-property: opacity;
|
||||
}
|
||||
|
||||
.fade-out.mui-leave.mui-leave-active {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-top.mui-enter {
|
||||
-webkit-transform: perspective(2000px) rotateX(-90deg);
|
||||
transform: perspective(2000px) rotateX(-90deg);
|
||||
-webkit-transform-origin: top;
|
||||
transform-origin: top;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-top.mui-enter.mui-enter-active {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-in-from-right.mui-enter {
|
||||
-webkit-transform: perspective(2000px) rotateY(-90deg);
|
||||
transform: perspective(2000px) rotateY(-90deg);
|
||||
-webkit-transform-origin: right;
|
||||
transform-origin: right;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-right.mui-enter.mui-enter-active {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-in-from-bottom.mui-enter {
|
||||
-webkit-transform: perspective(2000px) rotateX(90deg);
|
||||
transform: perspective(2000px) rotateX(90deg);
|
||||
-webkit-transform-origin: bottom;
|
||||
transform-origin: bottom;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-bottom.mui-enter.mui-enter-active {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-in-from-left.mui-enter {
|
||||
-webkit-transform: perspective(2000px) rotateY(90deg);
|
||||
transform: perspective(2000px) rotateY(90deg);
|
||||
-webkit-transform-origin: left;
|
||||
transform-origin: left;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-left.mui-enter.mui-enter-active {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-in-from-middle-x.mui-enter {
|
||||
-webkit-transform: perspective(2000px) rotateX(-90deg);
|
||||
transform: perspective(2000px) rotateX(-90deg);
|
||||
-webkit-transform-origin: center;
|
||||
transform-origin: center;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-middle-x.mui-enter.mui-enter-active {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-in-from-middle-y.mui-enter {
|
||||
-webkit-transform: perspective(2000px) rotateY(-90deg);
|
||||
transform: perspective(2000px) rotateY(-90deg);
|
||||
-webkit-transform-origin: center;
|
||||
transform-origin: center;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-in-from-middle-y.mui-enter.mui-enter-active {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-top.mui-leave {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
-webkit-transform-origin: top;
|
||||
transform-origin: top;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-top.mui-leave.mui-leave-active {
|
||||
-webkit-transform: perspective(2000px) rotateX(-90deg);
|
||||
transform: perspective(2000px) rotateX(-90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-out-from-right.mui-leave {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
-webkit-transform-origin: right;
|
||||
transform-origin: right;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-right.mui-leave.mui-leave-active {
|
||||
-webkit-transform: perspective(2000px) rotateY(-90deg);
|
||||
transform: perspective(2000px) rotateY(-90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-out-from-bottom.mui-leave {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
-webkit-transform-origin: bottom;
|
||||
transform-origin: bottom;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-bottom.mui-leave.mui-leave-active {
|
||||
-webkit-transform: perspective(2000px) rotateX(90deg);
|
||||
transform: perspective(2000px) rotateX(90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-out-from-left.mui-leave {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
-webkit-transform-origin: left;
|
||||
transform-origin: left;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-left.mui-leave.mui-leave-active {
|
||||
-webkit-transform: perspective(2000px) rotateY(90deg);
|
||||
transform: perspective(2000px) rotateY(90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-out-from-middle-x.mui-leave {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
-webkit-transform-origin: center;
|
||||
transform-origin: center;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-middle-x.mui-leave.mui-leave-active {
|
||||
-webkit-transform: perspective(2000px) rotateX(-90deg);
|
||||
transform: perspective(2000px) rotateX(-90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hinge-out-from-middle-y.mui-leave {
|
||||
-webkit-transform: perspective(2000px) rotate(0deg);
|
||||
transform: perspective(2000px) rotate(0deg);
|
||||
-webkit-transform-origin: center;
|
||||
transform-origin: center;
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.hinge-out-from-middle-y.mui-leave.mui-leave-active {
|
||||
-webkit-transform: perspective(2000px) rotateY(-90deg);
|
||||
transform: perspective(2000px) rotateY(-90deg);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.scale-in-up.mui-enter {
|
||||
-webkit-transform: scale(0.5);
|
||||
transform: scale(0.5);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.scale-in-up.mui-enter.mui-enter-active {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.scale-in-down.mui-enter {
|
||||
-webkit-transform: scale(1.5);
|
||||
transform: scale(1.5);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.scale-in-down.mui-enter.mui-enter-active {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.scale-out-up.mui-leave {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.scale-out-up.mui-leave.mui-leave-active {
|
||||
-webkit-transform: scale(1.5);
|
||||
transform: scale(1.5);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.scale-out-down.mui-leave {
|
||||
-webkit-transform: scale(1);
|
||||
transform: scale(1);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.scale-out-down.mui-leave.mui-leave-active {
|
||||
-webkit-transform: scale(0.5);
|
||||
transform: scale(0.5);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.spin-in.mui-enter {
|
||||
-webkit-transform: rotate(-0.75turn);
|
||||
transform: rotate(-0.75turn);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.spin-in.mui-enter.mui-enter-active {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.spin-out.mui-leave {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.spin-out.mui-leave.mui-leave-active {
|
||||
-webkit-transform: rotate(0.75turn);
|
||||
transform: rotate(0.75turn);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.spin-in-ccw.mui-enter {
|
||||
-webkit-transform: rotate(0.75turn);
|
||||
transform: rotate(0.75turn);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.spin-in-ccw.mui-enter.mui-enter-active {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.spin-out-ccw.mui-leave {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
transition-property: -webkit-transform, opacity;
|
||||
transition-property: transform, opacity;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.spin-out-ccw.mui-leave.mui-leave-active {
|
||||
-webkit-transform: rotate(-0.75turn);
|
||||
transform: rotate(-0.75turn);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.slow {
|
||||
transition-duration: 750ms !important;
|
||||
}
|
||||
|
||||
.fast {
|
||||
transition-duration: 250ms !important;
|
||||
}
|
||||
|
||||
.linear {
|
||||
transition-timing-function: linear !important;
|
||||
}
|
||||
|
||||
.ease {
|
||||
transition-timing-function: ease !important;
|
||||
}
|
||||
|
||||
.ease-in {
|
||||
transition-timing-function: ease-in !important;
|
||||
}
|
||||
|
||||
.ease-out {
|
||||
transition-timing-function: ease-out !important;
|
||||
}
|
||||
|
||||
.ease-in-out {
|
||||
transition-timing-function: ease-in-out !important;
|
||||
}
|
||||
|
||||
.bounce-in {
|
||||
transition-timing-function: cubic-bezier(0.485, 0.155, 0.24, 1.245) !important;
|
||||
}
|
||||
|
||||
.bounce-out {
|
||||
transition-timing-function: cubic-bezier(0.485, 0.155, 0.515, 0.845) !important;
|
||||
}
|
||||
|
||||
.bounce-in-out {
|
||||
transition-timing-function: cubic-bezier(0.76, -0.245, 0.24, 1.245) !important;
|
||||
}
|
||||
|
||||
.short-delay {
|
||||
transition-delay: 300ms !important;
|
||||
}
|
||||
|
||||
.long-delay {
|
||||
transition-delay: 700ms !important;
|
||||
}
|
||||
|
||||
.shake {
|
||||
-webkit-animation-name: shake-7;
|
||||
animation-name: shake-7;
|
||||
}
|
||||
|
||||
@-webkit-keyframes shake-7 {
|
||||
0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% {
|
||||
-webkit-transform: translateX(7%);
|
||||
transform: translateX(7%);
|
||||
}
|
||||
5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% {
|
||||
-webkit-transform: translateX(-7%);
|
||||
transform: translateX(-7%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes shake-7 {
|
||||
0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90% {
|
||||
-webkit-transform: translateX(7%);
|
||||
transform: translateX(7%);
|
||||
}
|
||||
5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95% {
|
||||
-webkit-transform: translateX(-7%);
|
||||
transform: translateX(-7%);
|
||||
}
|
||||
}
|
||||
|
||||
.spin-cw {
|
||||
-webkit-animation-name: spin-cw-1turn;
|
||||
animation-name: spin-cw-1turn;
|
||||
}
|
||||
|
||||
@-webkit-keyframes spin-cw-1turn {
|
||||
0% {
|
||||
-webkit-transform: rotate(-1turn);
|
||||
transform: rotate(-1turn);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin-cw-1turn {
|
||||
0% {
|
||||
-webkit-transform: rotate(-1turn);
|
||||
transform: rotate(-1turn);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
}
|
||||
}
|
||||
|
||||
.spin-ccw {
|
||||
-webkit-animation-name: spin-cw-1turn;
|
||||
animation-name: spin-cw-1turn;
|
||||
}
|
||||
|
||||
@keyframes spin-cw-1turn {
|
||||
0% {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(1turn);
|
||||
transform: rotate(1turn);
|
||||
}
|
||||
}
|
||||
|
||||
.wiggle {
|
||||
-webkit-animation-name: wiggle-7deg;
|
||||
animation-name: wiggle-7deg;
|
||||
}
|
||||
|
||||
@-webkit-keyframes wiggle-7deg {
|
||||
40%, 50%, 60% {
|
||||
-webkit-transform: rotate(7deg);
|
||||
transform: rotate(7deg);
|
||||
}
|
||||
35%, 45%, 55%, 65% {
|
||||
-webkit-transform: rotate(-7deg);
|
||||
transform: rotate(-7deg);
|
||||
}
|
||||
0%, 30%, 70%, 100% {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes wiggle-7deg {
|
||||
40%, 50%, 60% {
|
||||
-webkit-transform: rotate(7deg);
|
||||
transform: rotate(7deg);
|
||||
}
|
||||
35%, 45%, 55%, 65% {
|
||||
-webkit-transform: rotate(-7deg);
|
||||
transform: rotate(-7deg);
|
||||
}
|
||||
0%, 30%, 70%, 100% {
|
||||
-webkit-transform: rotate(0);
|
||||
transform: rotate(0);
|
||||
}
|
||||
}
|
||||
|
||||
.infinite {
|
||||
-webkit-animation-iteration-count: infinite;
|
||||
animation-iteration-count: infinite;
|
||||
}
|
||||
|
||||
.slow {
|
||||
-webkit-animation-duration: 750ms !important;
|
||||
animation-duration: 750ms !important;
|
||||
}
|
||||
|
||||
.fast {
|
||||
-webkit-animation-duration: 250ms !important;
|
||||
animation-duration: 250ms !important;
|
||||
}
|
||||
|
||||
.linear {
|
||||
-webkit-animation-timing-function: linear !important;
|
||||
animation-timing-function: linear !important;
|
||||
}
|
||||
|
||||
.ease {
|
||||
-webkit-animation-timing-function: ease !important;
|
||||
animation-timing-function: ease !important;
|
||||
}
|
||||
|
||||
.ease-in {
|
||||
-webkit-animation-timing-function: ease-in !important;
|
||||
animation-timing-function: ease-in !important;
|
||||
}
|
||||
|
||||
.ease-out {
|
||||
-webkit-animation-timing-function: ease-out !important;
|
||||
animation-timing-function: ease-out !important;
|
||||
}
|
||||
|
||||
.ease-in-out {
|
||||
-webkit-animation-timing-function: ease-in-out !important;
|
||||
animation-timing-function: ease-in-out !important;
|
||||
}
|
||||
|
||||
.bounce-in {
|
||||
-webkit-animation-timing-function: cubic-bezier(0.485, 0.155, 0.24, 1.245) !important;
|
||||
animation-timing-function: cubic-bezier(0.485, 0.155, 0.24, 1.245) !important;
|
||||
}
|
||||
|
||||
.bounce-out {
|
||||
-webkit-animation-timing-function: cubic-bezier(0.485, 0.155, 0.515, 0.845) !important;
|
||||
animation-timing-function: cubic-bezier(0.485, 0.155, 0.515, 0.845) !important;
|
||||
}
|
||||
|
||||
.bounce-in-out {
|
||||
-webkit-animation-timing-function: cubic-bezier(0.76, -0.245, 0.24, 1.245) !important;
|
||||
animation-timing-function: cubic-bezier(0.76, -0.245, 0.24, 1.245) !important;
|
||||
}
|
||||
|
||||
.short-delay {
|
||||
-webkit-animation-delay: 300ms !important;
|
||||
animation-delay: 300ms !important;
|
||||
}
|
||||
|
||||
.long-delay {
|
||||
-webkit-animation-delay: 700ms !important;
|
||||
animation-delay: 700ms !important;
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
window.addEventListener('load', function() {
|
||||
var lightbox = new BLightBox({
|
||||
invoker: '.b-invo',
|
||||
close_text: 'Zavřít'
|
||||
}, true);
|
||||
|
||||
var gallery_links = document.querySelectorAll('.b-invo'),
|
||||
gallery_links_i = gallery_links.length;
|
||||
});
|
||||
|
||||
$ (function () {
|
||||
$ (document).foundation ();
|
||||
});
|
||||
|
||||
function showResponsiveMenu() {
|
||||
var menuHolder = document.getElementById('responsive-menu');
|
||||
menuHolder.style.display="block";
|
||||
menuHolder.style.height = document.documentElement.clientHeight + 'px';
|
||||
menuHolder.style.height = window.innerHeight + 'px';
|
||||
menuHolder.style.height = '100%;';
|
||||
}
|
||||
|
||||
function hideResponsiveMenu() {
|
||||
var menuHolder = document.getElementById('responsive-menu');
|
||||
menuHolder.style.display="none";
|
||||
}
|
||||
|
||||
window.onresize = function() {
|
||||
if(window.innerWidth >= 1023) {
|
||||
menuHolder.style.display="block";
|
||||
menuHolder.style.height = "auto";
|
||||
} else {
|
||||
hideResponsiveMenu();
|
||||
}
|
||||
};
|
||||
-258
@@ -1,258 +0,0 @@
|
||||
body,h1,h2,h3,h4,h5,h6, * {font-family: 'Ubuntu', sans-serif; color: #414042;}
|
||||
a, a:link, a:hover {color: #46c1be; font-weight: 500;}
|
||||
a:hover {text-decoration: underline;}
|
||||
|
||||
#binarity {width: 100%; display: block; opacity: 0.65; color: #46c1be; text-align: center; margin-bottom: 15px; margin-top:15px; font-size: 0.8rem;}
|
||||
#binarity img {margin-left: 10px; margin-right: 5px; height: 18px; width: auto; position: relative; top: -2px;}
|
||||
#binarity a, #binarity a:hover {color: #46c1be; font-weight: 700;}
|
||||
|
||||
.m-t-25 {margin-top: 25px;}
|
||||
.m-t-50 {margin-top: 50px;}
|
||||
.m-b-25 {margin-bottom: 25px;}
|
||||
.m-l-40 {margin-left: 40px;}
|
||||
.p-lr-15 {padding-left: 15px; padding-right: 15px;}
|
||||
.p-lr-0 {padding-left: 0; padding-right: 0;}
|
||||
.p-25 {padding: 25px !important;}
|
||||
.p-b-0 {padding-bottom: 0 !important;}
|
||||
.rounded {border-radius: 3px;}
|
||||
.large.rounded,.expanded.rounded {border-radius: 6px;}
|
||||
.button {padding: 0.4em 2.3em; font-size: 0.7rem;}
|
||||
.button.secondary {background-color: #4D4D4F;}
|
||||
.button.success {background-color: #46c1be;}
|
||||
.button.success:hover, .button.success:focus, .button.success:active, .button.success.active {background-color: #4D4D4F;}
|
||||
.button.large, .button.expanded {font-size:0.9rem; padding: 0.9em 2.4em; font-weight: 700; margin-bottom: 0;}
|
||||
.button.large.long {padding: 0.9em 4em; text-transform: uppercase;}
|
||||
.button.expanded.long {height: 3rem; padding: 1em 4em;}
|
||||
.w-t {color: #ffffff}
|
||||
.green-text {color: #46c1be !important;}
|
||||
.dark {color: #414042 !important;}
|
||||
.uppercase {text-transform: uppercase;}
|
||||
.bold {font-weight: 700;}
|
||||
.pointer {cursor: pointer;}
|
||||
.has-tip {z-index: 1000}
|
||||
.b-invo {cursor: pointer;}
|
||||
|
||||
[type="text"], [type="password"], [type="date"], [type="datetime"], [type="datetime-local"], [type="month"], [type="week"], [type="email"],
|
||||
[type="number"], [type="search"], [type="tel"], [type="time"], [type="url"], [type="color"], textarea,
|
||||
[type="text"]:focus, [type="password"]:focus, [type="date"]:focus, [type="datetime"]:focus, [type="datetime-local"]:focus, [type="month"]:focus, [type="week"]:focus,
|
||||
[type="email"]:focus, [type="number"]:focus, [type="search"]:focus, [type="tel"]:focus, [type="time"]:focus, [type="url"]:focus, [type="color"]:focus, textarea:focus
|
||||
{
|
||||
border: 0; box-shadow: none; color: #46c1be; font-weight: 500; padding: 1rem; line-height: 2rem; height: 3rem;
|
||||
}
|
||||
textarea, textarea:focus {height: 120px;}
|
||||
[type="text"]:focus,[type="text"]:not(:empty), [type="password"]:focus, [type="date"]:focus, [type="datetime"]:focus, [type="datetime-local"]:focus, [type="month"]:focus, [type="week"]:focus,
|
||||
[type="email"]:focus, [type="number"]:focus, [type="search"]:focus, [type="tel"]:focus, [type="time"]:focus, [type="url"]:focus, [type="color"]:focus, textarea:focus {
|
||||
color: #414042;
|
||||
}
|
||||
|
||||
.subpages.column {float: none; display: inline-block; margin-top: 50px;}
|
||||
.subpages.column:last-child:not(:first-child), .subpages.columns:last-child:not(:first-child) { float: none;}
|
||||
|
||||
.top-bar {position: relative; top: 0; width: 100%;}
|
||||
.top-bar.homepage {position: absolute; top: 0; width: 100%;}
|
||||
.top-bar, .top-bar ul {background-color: transparent; z-index: 500;}
|
||||
|
||||
.menu > li:not(.menu-text) > a {font-weight: 700; text-transform:uppercase; color: #4D4D4F}
|
||||
.menu > li:not(.menu-text) > a.active,.menu > li:not(.menu-text).active > a {color: #46c1be}
|
||||
.top-bar-right {margin-top: 75px;}
|
||||
#show-menu {font-size: 1.4rem; line-height: 1.4; margin-top: -10px;}
|
||||
#logo {width:225px; height: auto;}
|
||||
|
||||
.orbit.header {position: relative; z-index: 1;}
|
||||
.orbit.header .orbit-next, .orbit.header .orbit-previous { background-color: #ffffff; color: #4d4d4f; padding: 40px;}
|
||||
.orbit.header .orbit-next:hover, .orbit.header .orbit-previous:hover { background-color: #46c1be; color: #ffffff;}
|
||||
.orbit.header .orbit-next {border-top-left-radius: 50%; border-bottom-left-radius: 50%; right: -70px;}
|
||||
.orbit.header .orbit-next i {position: relative; left: -30px;}
|
||||
.orbit.header .orbit-previous {border-top-right-radius: 50%; border-bottom-right-radius: 50%; left: -70px;}
|
||||
.orbit.header .orbit-previous i {position: relative; left: 30px;}
|
||||
.orbit.header .orbit-slide {position: relative;}
|
||||
.orbit.header .orbit-slide:before {content: ''; position: absolute; top: 20%; width: 100%; display: block; height: 60%; background-color: rgba(77, 77, 79, 0.70); }
|
||||
.orbit.header .orbit-slide .img {width: 100%; height: 800px; background-size: cover; background-position: center center}
|
||||
.orbit.header .orbit-slide h2, .orbit.header .orbit-slide h3 {
|
||||
position: absolute; top: 0; color: #ffffff; font-family: Lobster, Helvetica, Arial, sans-serif;
|
||||
text-align: center; width: 100%;
|
||||
}
|
||||
.orbit.header .orbit-slide h2 {top: 35%; font-size: 5.2rem;}
|
||||
.orbit.header .orbit-slide h3 {top: calc(38% + 4.2rem); font-size: 3.5rem;}
|
||||
.orbit.header .orbit-bullets {position: absolute; margin: auto; width: 100%; top: 63%;}
|
||||
.orbit.header .orbit-bullets button {width: .95rem; height: .95rem; margin: .35rem; background-color: #ffffff;}
|
||||
.orbit.header .orbit-bullets button.is-active, .orbit-bullets button:hover {background-color: #f58020;}
|
||||
#chevron-down {position: absolute; z-index: 350; display: block; top: 75%; left: calc(50% - 12px); opacity: 0.6; color: #ffffff; cursor: pointer;}
|
||||
#chevron-down:hover {color: #f58020}
|
||||
|
||||
#content h2 {text-transform: uppercase; font-size: 1.5rem; font-weight: 400; text-align: center;}
|
||||
#content h3 {text-align: center; text-transform: uppercase; }
|
||||
#content h4 {font-size: 1.35rem;}
|
||||
hr {border-bottom: 0;width: 5%; margin: 0 auto; position: relative; top: -15px; display:inline-block; height: 1px; background-color: #46c1be}
|
||||
#content p {line-height: 1.3; font-size: 0.9rem;}
|
||||
#content p.small {font-size: .75rem;}
|
||||
|
||||
.grey-wrapper {background-color: #f1f1f1; padding: 50px 0; display: block;}
|
||||
.green-wrapper {background-color: #46c1be; padding: 50px 0; display: block;}
|
||||
.white-wrapper {background-color: #ffffff; padding: 50px 0; display: block;}
|
||||
.backgrounded {background-image: url(images/background_o_nas._white.jpg); background-size: cover; background-position: center center; }
|
||||
|
||||
.assortment-h5 {text-align: center; text-transform: uppercase; font-weight: 500; font-size: 1.1rem;}
|
||||
.assortment-p {font-size: 0.8rem; text-align: center; margin: 15px auto 10px; width: 50%;}
|
||||
.assortment-more-btn {color: #46c1be; text-transform: uppercase; font-style: italic; text-align: center; font-size: 0.85rem; width: 100%; display: inline-block; font-weight: 500;}
|
||||
img.thumbnail {border-radius: 50%; width: 100%; height: auto; box-shadow: none; border-width: 2px; border-color: #ffffff;}
|
||||
img.thumbnail.assortment {width: 250px;}
|
||||
img.thumbnail:focus, img.thumbnail:hover {box-shadow: none; border-color: #ffffff;}
|
||||
|
||||
.sale-image-holder>img {width: 100%; height: auto; border: 1px solid #414042;}
|
||||
.sale-image-holder {margin-bottom: 15px; position: relative; cursor: pointer;}
|
||||
.sale-item-data {display: block; opacity: 0; width: calc(100% - 0.9375rem * 2);height: 100%; position: absolute; top: 0; left: 0.9375rem; background-color: rgba(70, 193, 190, 0.7); color: #ffffff;}
|
||||
.sale-item-data * {color: #ffffff;}
|
||||
.sale-item-data h5 {text-transform: uppercase; font-size: 0.9rem; text-align: center; padding: 15px 10px 0 10px; font-weight: 700; margin-bottom: 0;}
|
||||
.sale-item-data p {margin: -5px auto 0; padding: 0 auto; text-align: center; font-size: 0.8rem;}
|
||||
.sale-item-data p.price {margin-top: 10px; font-weight: 700; font-size: 0.9rem;}
|
||||
|
||||
.gallery-image-holder>img {width: 100%; height: 250px; border: 1px solid #414042; border-radius: 50%;}
|
||||
.gallery-image-holder {margin-bottom: 15px; height: 250px; position: relative; cursor: pointer;}
|
||||
.gallery-image-holder.column:last-child:not(:first-child), .gallery-image-holder.columns:last-child:not(:first-child),
|
||||
.product-category.column:last-child:not(:first-child), .product-category.columns:last-child:not(:first-child),
|
||||
.orbit.footer .column:last-child:not(:first-child), .orbit.footer .columns:last-child:not(:first-child){
|
||||
float: left;
|
||||
}
|
||||
.product-category {margin-bottom: 25px;}
|
||||
.product-category:nth-child(3n) {text-align:left;}
|
||||
.product-category:nth-child(3n+1) {text-align:right;}
|
||||
.product-category:nth-child(3n+2) {text-align:center;}
|
||||
|
||||
.gallery-item-data {display: block; opacity: 0; width: calc(100% - 0.9375rem * 2);height: 100%; position: absolute; top: 0; left: 0.9375rem; background-color: rgba(65, 64, 66, 0.71); color: #ffffff;}
|
||||
.gallery-item-data * {color: #ffffff;}
|
||||
.gallery-item-data h5 {text-transform: uppercase; font-size: 1.1rem; text-align: center; padding: 15px 10px 0 10px; font-weight: 700; margin-bottom: 0;}
|
||||
.gallery-item-data p {margin: 5px; padding: 0 auto; text-align: center; font-size: 0.8rem;}
|
||||
.gallery-item-data p.price {margin-top: 10px; font-weight: 700; font-size: 1.1rem;}
|
||||
|
||||
.white-wrapper h6 {color: #46c1be; text-transform: uppercase; font-size: 1.3rem;}
|
||||
.white-wrapper h6.lowercase {text-transform: none; font-size: 1.2rem;}
|
||||
|
||||
.design-ul-block li {list-style-image: url(images/bullet.png); margin: 15px 30px 25px 30px;}
|
||||
.design-ul-block li h6 {position: relative; top: -7px;}
|
||||
.bullet-h6 h6 {text-transform: none; font-size: 1.2rem;}
|
||||
.bullet-h6 h6:before {content: ''; background-image: url(images/bullet.png); height: 28px; width: 28px; display: inline-block; margin-right: 10px; position: relative; top: 7px;}
|
||||
#content .bullet-h6 p { margin: 7px 30px 30px 40px; font-size: .75rem;}
|
||||
|
||||
.orbit.footer .orbit-next, .orbit.footer .orbit-previous { background-color: #46c1be; padding: 40px;}
|
||||
.orbit.footer .orbit-next:hover, .orbit.footer .orbit-previous:hover { background-color: #f58020;}
|
||||
.orbit.footer .fa {color: #ffffff;}
|
||||
.orbit.footer .orbit-next {border-top-left-radius: 50%; border-bottom-left-radius: 50%; right: -70px;}
|
||||
.orbit.footer .orbit-next i {position: relative; left: -30px;}
|
||||
.orbit.footer .orbit-previous {border-top-right-radius: 50%; border-bottom-right-radius: 50%; left: -70px;}
|
||||
.orbit.footer .orbit-previous i {position: relative; left: 30px;}
|
||||
.orbit.footer .orbit-slide {position: relative; height: 260px;}
|
||||
.orbit.footer .orbit-slide img {width: 100%; height: auto;}
|
||||
|
||||
.image-bullet {margin-right: 7px; position: relative; top: -3px;}
|
||||
.contact-p {margin-bottom: 0; padding-right: 50px; line-height: 1rem; font-weight: 300;}
|
||||
#content p.contact-p.green-text>b {color: #46c1be !important;}
|
||||
|
||||
footer {padding-top: 50px;}
|
||||
footer .menu {display: inline-block;}
|
||||
footer a {color: #414042; font-weight: 500;}
|
||||
.footer-info * {color: #414042 !important;}
|
||||
footer a:hover {color: #46c1be !important;}
|
||||
.social-icons .fa-stack-2x {color: #46c1be;}
|
||||
.social-icons a:hover .fa-stack-2x {color: #414042;}
|
||||
.social-icons .fa.w-t {color: #ffffff;}
|
||||
|
||||
@media (max-width:1023px) {
|
||||
#responsive-menu {display: none;}
|
||||
.top-bar-right .menu.hide-for-large {font-size: 1.5rem; position: absolute; right: 0; top: 25px;}
|
||||
#logo {width:160px; height: auto;}
|
||||
.top-bar-right {margin-top: 0;}
|
||||
|
||||
.orbit.header .orbit-next, .orbit.header .orbit-previous {font-size: 0.7rem; transform: translateY(-20%);}
|
||||
.orbit.header .orbit-slide {height: 600px}
|
||||
.orbit.header .orbit-slide:before { top: 30%; height: 50%;}
|
||||
.orbit.header .orbit-slide .img {height: 600px;}
|
||||
.orbit.header .orbit-slide h2 {top: 35%; font-size: 3.8rem;}
|
||||
.orbit.header .orbit-slide h3 {top: calc(38% + 3rem); font-size: 2.7rem;}
|
||||
#chevron-down {top: 73%;}
|
||||
|
||||
.assortment-h5 {text-align: left; margin-left: 175px; font-size: 1.0rem;}
|
||||
.assortment-p {text-align: left; margin-left: 175px; font-size: 0.75rem; width: 100%;}
|
||||
.assortment-more-btn {text-align: left; margin-left: 175px; display: block;}
|
||||
img.thumbnail {float: left; width: 150px; height: 150px;}
|
||||
|
||||
.contact-detail {text-align: center; margin-top: -50px;}
|
||||
#content .contact-detail h2{text-align: center; font-size: 1rem; font-weight: 500; margin-bottom: 25px; margin-top: 25px;}
|
||||
#content .contact-p {text-align: center; padding-right: 0; font-size: 0.8rem; line-height: 1.1;}
|
||||
|
||||
#responsive-menu {z-index: 500; width: 50%; height: 100%; min-height: 100%; position: absolute; top: -0; left: 50%; background-color: rgba(70, 193, 190, 0.8); }
|
||||
#hidden-menu-divider {display: block; margin: 50px auto 20px; font-size: 1.8rem; color: #ffffff; text-align: center; font-weight: 500;}
|
||||
.menu {height: auto;}
|
||||
.top-bar-right .menu li {display: block; text-align: center; font-size: 1.8rem;}
|
||||
#responsive-menu .menu li:first-child {margin-top: 100px;}
|
||||
.top-bar-right .menu li a { font-weight: 500;}
|
||||
#responsive-menu .menu li a.active,
|
||||
#responsive-menu .menu li a:hover,
|
||||
#responsive-menu .menu li a:hover *,
|
||||
#responsive-menu .menu li.active a {
|
||||
color: #ffffff; text-decoration: none;
|
||||
}
|
||||
#unload-menu {position: absolute; top: 0; float: right; margin: 10px;}
|
||||
#unload-menu:hover * {color: #ffffff;}
|
||||
}
|
||||
@media (max-width:639px) {
|
||||
#logo {width: 150px; height: auto;}
|
||||
|
||||
.orbit.header .orbit-next, .orbit.header .orbit-previous {font-size: 0.7rem; transform: translateY(-20%);}
|
||||
.orbit.header .orbit-slide {height: 500px}
|
||||
.orbit.header .orbit-slide:before { top: 35%; height: 45%;}
|
||||
.orbit.header .orbit-slide .img {height: 500px;}
|
||||
.orbit.header .orbit-slide h2 {top: 42%; padding: 20px 100px; line-height: 0.9;}
|
||||
.orbit.header .orbit-slide h3 {display: none;}
|
||||
.orbit.header .orbit-bullets {display: none;}
|
||||
#chevron-down {display: none;}
|
||||
|
||||
.assortment-h5 {text-align: left; margin-left: 185px; font-size: 1.3rem;}
|
||||
.assortment-p {text-align: left; margin-left: 185px; font-size: 0.75rem; width: 100%;}
|
||||
.assortment-more-btn {text-align: left; margin-left: 185px; display: block;}
|
||||
img.thumbnail {float: left; width: 150px; height: auto;}
|
||||
|
||||
#content h4 {font-size: 1rem; line-height: 1; width: 50%; float: left; padding-left: 30px; padding-right: 30px; text-align: left;}
|
||||
#questions .button { margin-top: 7px !important;}
|
||||
|
||||
#design h6, #design p {text-align: center;}
|
||||
.design-ul-block {width: 95%; margin: auto;}
|
||||
#design .design-ul-block li h6, #design .design-ul-block li p {text-align: left;}
|
||||
#design .bullet-h6 h6,#content .bullet-h6 p {text-align: left;}
|
||||
|
||||
.contact-detail {text-align: center; margin-top: -50px;}
|
||||
#content .contact-detail h2{text-align: center; font-size: 1rem; font-weight: 500; margin-bottom: 25px; margin-top: 25px;}
|
||||
#content .contact-p {text-align: center; padding-right: 0; font-size: 0.8rem; line-height: 1.1;}
|
||||
|
||||
.orbit.footer .orbit-slide {height: auto;}
|
||||
.orbit.footer .orbit-slide .small-6{margin-bottom: 10px; float: left;}
|
||||
.orbit.footer .orbit-slide .small-6:nth-child(even):after{}
|
||||
.orbit.footer .orbit-slide .img {height: 530px;}
|
||||
|
||||
.assorment-holder .small-12 {text-align: center !important; margin-bottom: 15px;}
|
||||
.small-extra-large {font-size: 1.2rem !important; width: 80%;}
|
||||
|
||||
footer {padding-top: 20px;}
|
||||
|
||||
.p-lr-50-sm {padding-left: 50px; padding-right: 50px;}
|
||||
|
||||
#responsive-menu {z-index: 500; width: 100%; height: 100%; min-height: 100%; position: absolute; top: 0; left: 0; background-color: rgba(70, 193, 190, 0.8); }
|
||||
#hidden-menu-divider {display: block; margin: 40px auto 20px; font-size: 1.8rem; color: #ffffff; text-align: center; font-weight: 500;}
|
||||
.menu {height: auto;}
|
||||
.top-bar-right .menu li {display: block; text-align: center; font-size: 1.8rem;}
|
||||
.top-bar-right .menu li a { font-weight: 500;}
|
||||
.top-bar-right .menu li a.active {color: #ffffff;}
|
||||
#unload-menu {position: absolute; top: 0; float: right; margin: 10px;}
|
||||
}
|
||||
|
||||
/* BLightBox defaults */
|
||||
.b-lightbox-holder{background-color:rgba(0,0,0,0.85);width:100%;height:100%;position:fixed;top:0;left:0;display:none;z-index:1000;}
|
||||
.b-lightbox-image{display:none;border-radius:0;max-height:90%;max-width:90%;position:fixed;margin:0 auto;z-index:1001;}
|
||||
.b-lightbox-close-button{z-index:1100;display:block;position:fixed;top:8px;right:8px;font-size:14px;color:rgba(242,242,242,0.8);cursor:pointer;font-weight:700;}
|
||||
.b-lightbox-close-button:hover {font-weight: 700;}
|
||||
.b-lightbox-direction{z-index:1050;height:100%;font-size:10em;cursor:pointer;display:inline-block;min-width:10%;text-align:center;position:absolute;top:0}
|
||||
.b-lightbox-direction.next{right:0}
|
||||
.b-lightbox-direction.previous{left:0}
|
||||
.b-lightbox-direction:hover{background-color:rgba(242,242,242,0.1); text-decoration: none;}
|
||||
.b-lightbox-direction:before{content:'';height:35%;display:block;width:100%;}
|
||||
.b-lightbox-label{box-sizing:border-box;display:none;z-index:1015;background-color:rgba(70, 193, 190, 0.2);color:rgba(246,246,246,0.95);font-weight:500;position:absolute;padding:10px;font-size:13px;}
|
||||
File diff suppressed because one or more lines are too long
@@ -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}});
|
||||
@@ -1,106 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Wristbands.cz</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.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=Lobster' rel='stylesheet' type='text/css'>
|
||||
<link href="@asset('foundation.min.css')" type="text/css" rel="stylesheet">
|
||||
<script src="@asset('vendor/jquery.min.js')" type="text/javascript"></script>
|
||||
<script src="@asset('foundation.min.js')" type="text/javascript"></script>
|
||||
<script src="@asset('BLightBox.js')"></script>
|
||||
<script src="@asset('script.js')" type="text/javascript"></script>
|
||||
<link href="@asset('layout.css')" type="text/css" rel="stylesheet">
|
||||
<link href="@asset('style.css')" type="text/css" rel="stylesheet">
|
||||
</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
|
||||
<div class="top-bar">
|
||||
<div class="top-bar-left">
|
||||
<ul class="menu">
|
||||
<li class="menu-text">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img id="logo" src="@asset('images/cwbs_logo_medium.png')" alt="Custom Wristbands Logo">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="top-bar-right">
|
||||
<ul class="menu pull-right hide-for-large">
|
||||
<li>
|
||||
<a href="#" onclick="showResponsiveMenu()" id="show-menu">MENU<i class="fa fa-fw fa-2x fa-navicon"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="responsive-menu">
|
||||
<a href="#" id="unload-menu" class="hide-for-large" onclick="hideResponsiveMenu();"><i class="fa fa-fw fa-2x fa-mail-reply"></i></a>
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
@yield('content')
|
||||
</div>
|
||||
<footer class="large">
|
||||
<div class="row text-center">
|
||||
<ul class="menu social-icons">
|
||||
<li>
|
||||
<a href="https://www.facebook.com/Custom-Wristbands-1657363637860379/?fref=ts." target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-facebook fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa fa-google-plus fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.instagram.com/cwbs.cz/" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-instagram fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{-- <li>
|
||||
<a href="#" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-pinterest-p fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>--}}
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
@widgetArea('mainMenu')
|
||||
<div class="clearfix"></div>
|
||||
<hr>
|
||||
@widgetArea('footer')
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
<div id="binarity">
|
||||
Vytvořila společnost <a target="_blank" href="https://www.binarity.cz/"> binarity s.r.o.</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1 +0,0 @@
|
||||
404
|
||||
@@ -1 +0,0 @@
|
||||
Maintenance mode
|
||||
@@ -1 +0,0 @@
|
||||
Homepage is not available at the moment...
|
||||
@@ -1,168 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Custom Wristbands.cz</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.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=Lobster' rel='stylesheet' type='text/css'>
|
||||
<link href="@asset('foundation.min.css')" type="text/css" rel="stylesheet">
|
||||
<script src="@asset('vendor/jquery.min.js')" type="text/javascript"></script>
|
||||
<script src="@asset('foundation.min.js')" type="text/javascript"></script>
|
||||
<script src="@asset('BLightBox.js')"></script>
|
||||
<script src="@asset('script.js')" type="text/javascript"></script>
|
||||
<link href="@asset('layout.css')" type="text/css" rel="stylesheet">
|
||||
<link href="@asset('style.css')" type="text/css" rel="stylesheet">
|
||||
</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
|
||||
<div class="top-bar homepage">
|
||||
<div class="top-bar-left">
|
||||
<ul class="menu">
|
||||
<li class="menu-text">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img id="logo" src="@asset('images/cwbs_logo_medium.png')" alt="Custom Wristbands Logo">
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="top-bar-right">
|
||||
<ul class="menu pull-right hide-for-large">
|
||||
<li>
|
||||
<a href="#" onclick="showResponsiveMenu()" id="show-menu">MENU<i class="fa fa-fw fa-2x fa-navicon"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="responsive-menu">
|
||||
<a href="#" id="unload-menu" class="hide-for-large" onclick="hideResponsiveMenu();"><i class="fa fa-fw fa-2x fa-mail-reply"></i></a>
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@widgetArea('homepageSlider')
|
||||
|
||||
<div id="content">
|
||||
@yield('content')
|
||||
|
||||
@include('visitor.cwbs.quickFormWrapper')
|
||||
<div class="white-wrapper clearfix">
|
||||
<div class="row column medium-11 small-10 small-centered medium-centered " id="design">
|
||||
<div class="columns medium-7 ">
|
||||
@widgetArea('infoSirsi')
|
||||
{{--<h6>Design a potisk</h6>--}}
|
||||
{{--<p>--}}
|
||||
{{--<strong><i>--}}
|
||||
{{--Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor--}}
|
||||
{{--incididunt ut labore et dolore magna aliqua, amet, consectetur adipiscing elit,--}}
|
||||
{{--sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.--}}
|
||||
{{--</i></strong>--}}
|
||||
{{--</p>--}}
|
||||
{{--<p>--}}
|
||||
{{--Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore--}}
|
||||
{{--et--}}
|
||||
{{--dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut--}}
|
||||
{{--aliquip--}}
|
||||
{{--ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum--}}
|
||||
{{--dolore--}}
|
||||
{{--eu fugiat nulla pariatur.--}}
|
||||
{{--</p>--}}
|
||||
</div>
|
||||
<div class="columns medium-5">
|
||||
|
||||
@widgetArea('infoUzsi')
|
||||
|
||||
{{--<ul class="design-ul-block">--}}
|
||||
{{--<li>--}}
|
||||
|
||||
{{--<h6 class="lowercase">--}}
|
||||
{{--Proč si vybrat právě nás?--}}
|
||||
{{--</h6>--}}
|
||||
{{--<p class="small">--}}
|
||||
{{--Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor--}}
|
||||
{{--incididunt ut labore et dolore magna aliqua, amet, consectetur adipiscing elit,--}}
|
||||
{{--sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.--}}
|
||||
{{--</p>--}}
|
||||
{{--</li>--}}
|
||||
{{--<li>--}}
|
||||
{{--<h6 class="lowercase">--}}
|
||||
{{--Jaký používáme materiál?--}}
|
||||
{{--</h6>--}}
|
||||
{{--<p class="small">--}}
|
||||
{{--Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor--}}
|
||||
{{--incididunt ut labore et dolore magna aliqua, amet, consectetur adipiscing elit,--}}
|
||||
{{--sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.--}}
|
||||
{{--</p>--}}
|
||||
{{--</li>--}}
|
||||
{{--</ul>--}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="large">
|
||||
<div class="row column text-center">
|
||||
<h2 id="galerie">Galerie</h2>
|
||||
<hr>
|
||||
</div>
|
||||
@widgetArea('galerieSlider')
|
||||
</div>
|
||||
</div>
|
||||
<footer class="large">
|
||||
<div class="row text-center">
|
||||
<ul class="menu social-icons">
|
||||
<li>
|
||||
<a href="https://www.facebook.com/Custom-Wristbands-1657363637860379/?fref=ts" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-facebook fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa fa-google-plus fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.instagram.com/cwbs.cz/" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-instagram fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
{{-- <li>
|
||||
<a href="#" target="_blank">
|
||||
<span class="fa-stack fa-lg">
|
||||
<i class="fa fa-circle fa-stack-2x"></i>
|
||||
<i class="fa fa-pinterest-p fa-stack-1x w-t"></i>
|
||||
</span>
|
||||
</a>
|
||||
</li>--}}
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
@widgetArea('mainMenu')
|
||||
<div class="clearfix"></div>
|
||||
<hr>
|
||||
@widgetArea('footer')
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
<div id="binarity">
|
||||
Vytvořila společnost <a target="_blank" href="https://www.binarity.cz/">binarity s.r.o.</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,87 +0,0 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
@section('content')
|
||||
|
||||
<div class="grey-wrapper p-b-0">
|
||||
<div class="row column text-center m-b-25 show-for-large">
|
||||
<h2>Kontakt</h2>
|
||||
</div>
|
||||
<div class="medium-12 large-6 column columns p-lr-0 contact-detail">
|
||||
<div class="column text-right large-12 medium-6 p-lr-0">
|
||||
<h2 class="hide-for-large">Kontakt</h2>
|
||||
<p class="contact-p green-text"><b>{{$page->module_settings->companyName or "Název společnosti"}}</b></p>
|
||||
<p class="contact-p">
|
||||
{!! nl2br($page->module_settings->address) !!}
|
||||
<br>
|
||||
-<br>
|
||||
tel.: {{$page->module_settings->phone or "Telefonní kontakt"}}<br>
|
||||
e-mail: <a href="mailto:{{$page->module_settings->email or "e-mail"}}">{{$page->module_settings->email or "e-mail"}}</a></p>
|
||||
<br>
|
||||
</div>
|
||||
<div id="map" class="column large-12 medium-6 p-lr-0" style="height: 250px;"></div>
|
||||
<script type="text/javascript">
|
||||
function initMap() {
|
||||
var myLatLng = {lat: parseFloat('{{$page->module_settings->gpsLat}}'), lng: parseFloat('{{$page->module_settings->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->module_settings->companyName}}'
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCjADMGOysqt0ibo9mD5Cr8rs47ZQF8rKQ&callback=initMap" async defer></script>
|
||||
</div>
|
||||
<div class="large-6 column green-wrapper p-25" id="contact-form">
|
||||
<div class="column large-12 medium-8 medium-centered p-lr-0 p-lr-50-sm">
|
||||
<h6 class="text-center uppercase m-b-25 bold">Napište nám</h6>
|
||||
<form id="form-{{$page->id}}">
|
||||
{!! csrf_field() !!}
|
||||
<div class="column medium-6">
|
||||
<input class="rounded large" placeholder="jméno a příjmení" name="name" type="text">
|
||||
</div>
|
||||
<div class="column medium-6">
|
||||
<input class="rounded large" placeholder="telefon" name="phone" type="text">
|
||||
{{--<input class="rounded large" placeholder="počet kusů" name="pieces" type="text">--}}
|
||||
</div>
|
||||
<div class="column medium-12">
|
||||
<input class="rounded large" placeholder="e-mail" name="email" type="text">
|
||||
<textarea class="rounded large" placeholder="zpráva" name="message"></textarea>
|
||||
</div>
|
||||
<div class="column medium-4">
|
||||
<input class="rounded large" placeholder="2+5=?" type="text" name="intCaptcha">
|
||||
</div>
|
||||
<div class="column medium-6 right">
|
||||
<a href="#" class="button expanded long secondary rounded" id="formSend">ODESLAT</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$('#formSend').click(function() {
|
||||
$(this).value = 'Odesílám...';
|
||||
$.ajax({
|
||||
url: "{{route('email.send', ['formId' => $page->id])}}",
|
||||
method: 'post',
|
||||
data: $('#form-{{$page->id}}').serialize()
|
||||
}).done(function(resp) {
|
||||
if(resp.status == true) {
|
||||
alert('Úspešne ste nám odoslali správu. Odpovieme Vám čo najskôr!');
|
||||
window.top.location.reload();
|
||||
} else {
|
||||
alert(resp.message);
|
||||
}
|
||||
$(this).value="ODESLAT";
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -1,33 +0,0 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="grey-wrapper m-t-25 clearfix">
|
||||
<div class="row column gallert" id="gallery-images">
|
||||
<h2 class="m-b-25">{{$page->title}}</h2>
|
||||
@foreach($images as $index => $image)
|
||||
<div class="column medium-3 small-6 gallery-image-holder b-invo" data-index="{{$index}}" data-img="" data-label="{{$image->description}}">
|
||||
<img src="{{config('app.upload_url')}}/{{$image->filename}}" alt="{{$image->name}}">
|
||||
<div class="gallery-item-data text-center">
|
||||
@if (isset($image->name) && !empty($image->name))
|
||||
<h5>{{$image->name}}</h5>
|
||||
@endif
|
||||
<p>{{$image->description}}</p>
|
||||
{{--<p>počet ks</p>
|
||||
<p class="price">cena: 39,-Kč/ks</p>--}}
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="clearfix"></div>
|
||||
{{--
|
||||
THIS IS FOR OVERLAYING IMAGES ON GALLERY (DOPRODEJ)
|
||||
$('.gallery-image-holder').mouseenter(function() {
|
||||
$(this).find('.gallery-item-data').animate({opacity: 1}, 100, 'swing');
|
||||
}).mouseleave(function() {
|
||||
$(this).find('.gallery-item-data').animate({opacity: 0}, 300, 'swing');
|
||||
});--}}
|
||||
</div>
|
||||
</div>
|
||||
@include('visitor.cwbs.quickFormWrapper')
|
||||
|
||||
@endsection
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user