-
Notifications
You must be signed in to change notification settings - Fork 1
/
master.blade.php
64 lines (54 loc) · 1.83 KB
/
master.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@inject('view_manager', 'Kontenta\Kontour\Contracts\AdminViewManager')
@inject('widget_manager', 'Kontenta\Kontour\Contracts\AdminWidgetManager')
@extends('kontour::layouts.html')
@section('body')
<a id="skip-to-content" href="#kontourMain" class="sr-only-focusable">{{ __('Skip to content') }}</a>
<header data-kontour-section="kontourHeader">
@section('kontourHeader')
{{ \Kontenta\Kontour\AdminLink::create(config('kontour.title'), route('kontour.index'), __('Dashboard')) }}
@foreach($widget_manager->getWidgetsForSection('kontourHeader') as $widget)
{{ $widget }}
@endforeach
@show
</header>
@section('kontourNav')
@foreach($widget_manager->getWidgetsForSection('kontourNav') as $widget)
{{ $widget }}
@endforeach
@endsection
@hasSection('kontourNav')
<nav data-kontour-section="kontourNav">
@yield('kontourNav')
</nav>
@endif
<main data-kontour-section="kontourMain" id="kontourMain">
@yield('kontourMain')
</main>
@section('kontourWidgets')
@foreach($widget_manager->getWidgetsForSection('kontourWidgets') as $widget)
{{ $widget }}
@endforeach
@endsection
@hasSection('kontourWidgets')
<section data-kontour-section="kontourWidgets">
@yield('kontourWidgets')
</section>
@endif
<footer data-kontour-section="kontourFooter">
@section('kontourFooter')
@foreach($widget_manager->getWidgetsForSection('kontourFooter') as $widget)
{{ $widget }}
@endforeach
@show
</footer>
@endsection
@push('styles')
@foreach($view_manager->getStylesheetUrls() as $stylesheet)
<link href="{{ url($stylesheet) }}" rel="stylesheet" type="text/css">
@endforeach
@endpush
@push('scripts')
@foreach($view_manager->getJavascriptUrls() as $javascript)
<script src="{{ url($javascript) }}"></script>
@endforeach
@endpush