FEATURE: add some dump "layout"
Currently, layout is only head with some meta tags (and loaded foundation). It contains block for inserting content, no other "magic" happened yet.
This commit is contained in:
@@ -14,6 +14,7 @@ class GlobalViewDataProvider extends ServiceProvider
|
||||
public function boot()
|
||||
{
|
||||
view()->share('something', 'some value');
|
||||
view()->share('vendorName', 'ja s.r.o.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<!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') {{$vendorName}}</title>
|
||||
<link rel="stylesheet" href="{{asset('css/foundation.css')}}" />
|
||||
@yield('head_stylesheets')
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@yield('content')
|
||||
|
||||
<script src="{{asset('js/vendor/jquery.min.js')}}"></script>
|
||||
<script src="{{asset('js/vendor/what-input.min.js')}}"></script>
|
||||
<script src="{{asset('js/foundation.min.js')}}"></script>
|
||||
|
||||
@yield('javascripts')
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1 +1,9 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
{{--Set page name--}}
|
||||
@section('pageName', 'Login form')
|
||||
|
||||
@section('content')
|
||||
@parent
|
||||
{{$something}}
|
||||
@stop
|
||||
Reference in New Issue
Block a user