FEATURE: finish template
This commit is contained in:
@@ -12,7 +12,8 @@ class OnePageTemplate extends ServiceProvider
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{ $this->registerTranslations();
|
||||
{
|
||||
$this->registerTranslations();
|
||||
}
|
||||
|
||||
public function boot()
|
||||
|
||||
@@ -3,6 +3,7 @@ namespace Templates\DoucovaniNeratovice\Handlers;
|
||||
|
||||
use App\Http\Requests\Request;
|
||||
use App\Models\Content;
|
||||
use App\Models\Module;
|
||||
use App\Models\Widget;
|
||||
use App\Models\WidgetArea;
|
||||
use App\Models\WidgetInWidgetArea;
|
||||
@@ -51,7 +52,7 @@ class Handler extends OnePage
|
||||
$widget = Widget::create([
|
||||
'widget_type_handler' => OnePageMenu::class,
|
||||
'name' => 'Menu',
|
||||
'settings' => '{}',
|
||||
'settings' => '{"containerClass": null}',
|
||||
'deletable' => 0
|
||||
]);
|
||||
|
||||
@@ -85,4 +86,11 @@ class Handler extends OnePage
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
public static function uninstall(Module $template)
|
||||
{
|
||||
parent::uninstall($template);
|
||||
|
||||
WidgetArea::where('code', 'topMenu')->delete();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Templates\DoucovaniNeratovice\Providers;
|
||||
|
||||
use App\Helpers\Template;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Templates\Base\OnePage\Widgets\OnePageMenu\OnePageMenu;
|
||||
use Templates\Base\OnePage\Widgets\OnePageMenu\Presenter;
|
||||
|
||||
class ServiceProvider extends \Illuminate\Support\ServiceProvider {
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function boot() {
|
||||
if (App::runningInConsole())
|
||||
return;
|
||||
|
||||
Presenter::$template = Template::name('menu');
|
||||
}
|
||||
}
|
||||
Binary file not shown.
+14
-7
@@ -1,25 +1,32 @@
|
||||
<section id="{{$page->url}}" style="background-color: #A1A383" class="container content-section text-center">
|
||||
<section id="{{$page->url}}" class="container content-section text-center">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2>{{$page->title}}</h2>
|
||||
<p>
|
||||
{!! $page->content !!}
|
||||
</p>
|
||||
|
||||
<form action="#" method="post" class="contact-form text-left">
|
||||
<form action="{{route('email.send', ['formId' => $page->id])}}" method="post" class="contact-form text-left">
|
||||
{!! csrf_field() !!}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5 text-right" style="font-size: 150%">
|
||||
<p><i class="fa fa-fw fa-mobile-phone"></i> +420 123 456 789</p>
|
||||
<p><i class="fa fa-fw fa-envelope-o"></i> ja@blabla.cz</p>
|
||||
@if (isset($page->module_settings->phone))
|
||||
<p><i class="fa fa-fw fa-mobile-phone"></i> {{$page->module_settings->phone}}</p>
|
||||
@endif
|
||||
|
||||
@if (isset($page->module_settings->contactEmail))
|
||||
<p><i class="fa fa-fw fa-envelope-o"></i> {{$page->module_settings->contactEmail}}</p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-lg-7">
|
||||
<input type="text" placeholder="Vaše jméno" id="name" class="form-control">
|
||||
<input type="text" id="email" placeholder="Váš e-mail" class="form-control">
|
||||
<input type="text" placeholder="Vaše jméno" id="name" name="name" class="form-control">
|
||||
<input type="email" id="email" placeholder="Váš e-mail" name="email" class="form-control">
|
||||
|
||||
<textarea name="" placeholder="Obsah zprávy" id="message" class="form-control" cols="30"
|
||||
<textarea name="message" placeholder="Obsah zprávy" id="message" class="form-control" cols="30"
|
||||
rows="5"></textarea>
|
||||
|
||||
<input type="submit" class="btn pull-right btn-primary" value="Odeslat e-mail">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
+2
-2
@@ -1,12 +1,12 @@
|
||||
@extendVisitor('layout')
|
||||
|
||||
@section('content')
|
||||
<header class="intro">
|
||||
<header class="intro" style="background-image: url('@upload($page->title_photo)')">
|
||||
<div class="intro-body">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<h1 class="brand-heading">{{$page->title}}</h1>
|
||||
<p class="intro-text">{!! $page->content !!}</p>
|
||||
{!! $page->content !!}
|
||||
|
||||
@if(isset($extra['pagesRaw']))
|
||||
<a href="#{{reset($extra['pagesRaw'])->url}}" class="btn btn-circle page-scroll">
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
<section id="{{$page->url}}" style="background-color: #C4C0A9" class="container content-section text-center">
|
||||
<section id="{{$page->url}}" class="container content-section text-center">
|
||||
<div class="col-lg-8 col-lg-offset-2">
|
||||
<h2>{{$page->title}}</h2>
|
||||
<p>{!! $page->content !!}</p>
|
||||
{!! $page->content !!}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<meta name="description" content="{{setting('metaDescription')}}">
|
||||
<meta name="keywords" content="{{setting('metaKeywords')}}">
|
||||
<meta name="author" content="{{setting('author')}}">
|
||||
|
||||
<title>{{setting('pageName')}}</title>
|
||||
<link href="{{asset_path('visitor/vendor/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">
|
||||
@@ -35,22 +36,7 @@
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
|
||||
|
||||
@widgetArea('topMenu')
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="hidden">
|
||||
<a href="#page-top"></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="page-scroll" href="#about">O mně</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="page-scroll" href="#offer">Nabízené doučování</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="page-scroll" href="#contact">Kontakt</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -59,7 +45,7 @@
|
||||
|
||||
<footer>
|
||||
<div class="container text-center">
|
||||
<p>© 2016</p>
|
||||
<p>{{setting('footer')}} © 2016</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="hidden">
|
||||
<a href="#page-top"></a>
|
||||
</li>
|
||||
|
||||
@foreach($pages as $page)
|
||||
<li>
|
||||
<a href="#{{$page->url}}" class="page-scroll">{{$page->title}}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@@ -4,6 +4,7 @@ $config = include_once __DIR__ . '/../Base/OnePage/config.php';
|
||||
// override some values
|
||||
$config['handler'] = \Templates\DoucovaniNeratovice\Handlers\Handler::class;
|
||||
$config['alias'] = 'doucovanineratovice';
|
||||
$config['name'] = "";
|
||||
$config['name'] = "Doučování Neratovice";
|
||||
$config['providers'][] = \Templates\DoucovaniNeratovice\Providers\ServiceProvider::class;
|
||||
|
||||
return $config;
|
||||
Reference in New Issue
Block a user