1
|
<div id="sidebar" class="sidenav">
|
2
|
<a href="javascript:void(0)" class="arrow arrow-left" onclick="closeNav()"></a>
|
3
|
<ul style="padding-left: 0; margin-top: 5rem;">
|
4
|
@if(Request::is('login')||Request::is('register'))
|
5
|
<li class="nav-item">
|
6
|
<a class="menu-item text-headline" href="{{ url('/') }}">
|
7
|
{{ __('general.home') }}
|
8
|
</a>
|
9
|
<a class="menu-item text-headline" href="{{ route('login') }}">
|
10
|
{{ __('general.login') }}
|
11
|
</a>
|
12
|
</li>
|
13
|
@if (Route::has('register'))
|
14
|
<li class="nav-item">
|
15
|
<a class="menu-item text-headline" href="{{ route('register') }}">
|
16
|
{{ __('general.register') }}
|
17
|
</a>
|
18
|
</li>
|
19
|
@endif
|
20
|
@else
|
21
|
<li class="nav-item">
|
22
|
<a class="menu-item text-headline" href="{{ url('/') }}">
|
23
|
{{ __('general.home') }}
|
24
|
</a>
|
25
|
|
26
|
<a class="menu-item text-headline" href="{{ url('/categories') }}">
|
27
|
{{ __('general.topics') }}
|
28
|
</a>
|
29
|
|
30
|
<a class="menu-item text-headline" href="{{ url('/artefact') }}">
|
31
|
{{ __('general.artefacts') }}
|
32
|
</a>
|
33
|
|
34
|
<a class="menu-item text-headline" href="{{ url('/favartefacts') }}">
|
35
|
{{ __('general.favourite_artefacts') }}
|
36
|
</a>
|
37
|
|
38
|
<a class="menu-item text-headline" href="{{ url('/favmetadata') }}">
|
39
|
{{ __('general.favourite_metadata') }}
|
40
|
</a>
|
41
|
|
42
|
<a class="menu-item text-headline" href="{{ url('/charts') }}">
|
43
|
{{ __('general.charts') }}
|
44
|
</a>
|
45
|
|
46
|
</li>
|
47
|
<li class="nav-item down">
|
48
|
{{-- <a class="menu-item text-headline" href="{{ url('/czech') }}">--}}
|
49
|
{{-- {{ __('general.cs') }}--}}
|
50
|
{{-- </a>--}}
|
51
|
@guest
|
52
|
@else
|
53
|
<a class="menu-item text-headline" href="{{ route('logout') }}" onclick="
|
54
|
event.preventDefault();
|
55
|
document.getElementById('logout-form').submit();">
|
56
|
{{ __('general.logout') }}
|
57
|
</a>
|
58
|
|
59
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
60
|
@csrf
|
61
|
</form>
|
62
|
@endguest
|
63
|
</li>
|
64
|
@endif
|
65
|
</ul>
|
66
|
</div>
|
67
|
|
68
|
<nav class="navbar navbar-expand-md navbar-light top-bar">
|
69
|
<span class="arrow arrow-right" onclick="openNav()"></span>
|
70
|
@if(!Request::is('login')&&!Request::is('register'))
|
71
|
<a for="logo" class="logo-kaplicky kaplicky" href="{{ url('/') }}">
|
72
|
{{ __('general.kaplicky') }}
|
73
|
</a>
|
74
|
@endif
|
75
|
<div class="bar-desktop">
|
76
|
@if(Request::is('login')||Request::is('register'))
|
77
|
<a class="menu-item text-headline-desktop" href="{{ url('/') }}">
|
78
|
{{ __('general.home') }}
|
79
|
</a>
|
80
|
<a class="menu-item text-headline-desktop" href="{{ route('login') }}">
|
81
|
{{ __('general.login') }}
|
82
|
</a>
|
83
|
@if (Route::has('register'))
|
84
|
<a class="menu-item text-headline-desktop" href="{{ route('register') }}">
|
85
|
{{ __('general.register') }}
|
86
|
</a>
|
87
|
@endif
|
88
|
@else
|
89
|
<a class="menu-item text-headline-desktop" href="{{ url('/') }}">
|
90
|
{{ __('general.home') }}
|
91
|
</a>
|
92
|
|
93
|
<a class="menu-item text-headline-desktop" href="{{ url('/categories') }}">
|
94
|
{{ __('general.topics') }}
|
95
|
</a>
|
96
|
|
97
|
<a class="menu-item text-headline-desktop" href="{{ url('/artefact') }}">
|
98
|
{{ __('general.artefacts') }}
|
99
|
</a>
|
100
|
|
101
|
<a class="menu-item text-headline-desktop" href="{{ url('/favartefacts') }}">
|
102
|
{{ __('general.favourite_artefacts') }}
|
103
|
</a>
|
104
|
|
105
|
<a class="menu-item text-headline-desktop" href="{{ url('/favmetadata') }}">
|
106
|
{{ __('general.favourite_metadata') }}
|
107
|
</a>
|
108
|
|
109
|
<a class="menu-item text-headline-desktop" href="{{ url('/charts') }}">
|
110
|
{{ __('general.charts') }}
|
111
|
</a>
|
112
|
|
113
|
{{-- <a class="menu-item text-headline-desktop" href="{{ url('/czech') }}">--}}
|
114
|
{{-- {{ __('general.cs') }}--}}
|
115
|
{{-- </a>--}}
|
116
|
@guest
|
117
|
@else
|
118
|
<a class="menu-item text-headline-desktop" href="{{ route('logout') }}" onclick="
|
119
|
event.preventDefault();
|
120
|
document.getElementById('logout-form').submit();">
|
121
|
{{ __('general.logout') }}
|
122
|
</a>
|
123
|
|
124
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
125
|
@csrf
|
126
|
</form>
|
127
|
@endguest
|
128
|
@endif
|
129
|
</div>
|
130
|
</nav>
|
131
|
{{--<label for="logo" class="col-md-12 kaplicky" style="display: inline-block; text-align: center; padding: 1.25rem; padding-bottom: 0">{{ __('kaplicky') }}</label>
|
132
|
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
|
133
|
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
|
134
|
{{ __('kaplicky') }}
|
135
|
</a>--}}
|
136
|
|
137
|
<script>
|
138
|
function openNav() {
|
139
|
var x = window.matchMedia("(max-width: 540px)")
|
140
|
if (x.matches) {
|
141
|
document.getElementById("sidebar").style.width = "50vw";
|
142
|
} else {
|
143
|
document.getElementById("sidebar").style.width = "250px";
|
144
|
}
|
145
|
}
|
146
|
|
147
|
function closeNav() {
|
148
|
document.getElementById("sidebar").style.width = "0";
|
149
|
}
|
150
|
</script>
|
151
|
|
152
|
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
|
153
|
<script>
|
154
|
$(function () {
|
155
|
$('a').each(function () {
|
156
|
if ($(this).prop('href') == window.location.href) {
|
157
|
$(this).addClass('active');// $(this).parents('a').addClass('active');
|
158
|
}
|
159
|
});
|
160
|
});
|
161
|
</script>
|