1 |
c0265e9e
|
zabran
|
<div id="sidebar" class="sidenav">
|
2 |
25ec2fab
|
Marek Lovčí
|
<a href="javascript:void(0)" class="arrow arrow-left" onclick="closeNav()"></a>
|
3 |
b711d297
|
zabran
|
<li class="nav-item">  </li>
|
4 |
|
|
<li class="nav-item">  </li>
|
5 |
|
|
<li class="nav-item">  </li>
|
6 |
|
|
<li class="nav-item">  </li>
|
7 |
25ec2fab
|
Marek Lovčí
|
@guest
|
8 |
1c3121fe
|
zabran
|
<li class="nav-item">
|
9 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/') }}">
|
10 |
|
|
{{ __('general.home') }}
|
11 |
|
|
</a>
|
12 |
|
|
<a class="dropdown-item text-headline" href="{{ route('login') }}">
|
13 |
|
|
{{ __('general.login') }}
|
14 |
|
|
</a>
|
15 |
1c3121fe
|
zabran
|
</li>
|
16 |
|
|
@if (Route::has('register'))
|
17 |
25ec2fab
|
Marek Lovčí
|
<li class="nav-item">
|
18 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ route('register') }}">
|
19 |
|
|
{{ __('general.register') }}
|
20 |
|
|
</a>
|
21 |
25ec2fab
|
Marek Lovčí
|
</li>
|
22 |
1c3121fe
|
zabran
|
@endif
|
23 |
25ec2fab
|
Marek Lovčí
|
@else
|
24 |
1c3121fe
|
zabran
|
<li class="nav-item dropdown">
|
25 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/') }}">
|
26 |
|
|
{{ __('general.home') }}
|
27 |
|
|
</a>
|
28 |
1c3121fe
|
zabran
|
|
29 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/categories') }}">
|
30 |
|
|
{{ __('general.topics') }}
|
31 |
|
|
</a>
|
32 |
8075a85b
|
zabran
|
|
33 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/artefact') }}">
|
34 |
|
|
{{ __('general.artefacts') }}
|
35 |
|
|
</a>
|
36 |
8075a85b
|
zabran
|
|
37 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/favartefacts') }}">
|
38 |
|
|
{{ __('general.favourite_artefacts') }}
|
39 |
|
|
</a>
|
40 |
8075a85b
|
zabran
|
|
41 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/favmetadata') }}">
|
42 |
|
|
{{ __('general.favourite_metadata') }}
|
43 |
|
|
</a>
|
44 |
b711d297
|
zabran
|
|
45 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/charts') }}">
|
46 |
|
|
{{ __('general.charts') }}
|
47 |
|
|
</a>
|
48 |
1c3121fe
|
zabran
|
|
49 |
927fb559
|
zabran
|
</li>
|
50 |
|
|
<li class="nav-item dropdown separator">
|
51 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ url('/czech') }}">
|
52 |
|
|
{{ __('general.cs') }}
|
53 |
|
|
</a>
|
54 |
927fb559
|
zabran
|
</li>
|
55 |
|
|
<li class="nav-item dropdown">
|
56 |
2fee1bb5
|
Marek Lovčí
|
<a class="dropdown-item text-headline" href="{{ route('logout') }}" onclick="
|
57 |
|
|
event.preventDefault();
|
58 |
|
|
document.getElementById('logout-form').submit();">
|
59 |
927fb559
|
zabran
|
{{ __('logout') }}
|
60 |
|
|
</a>
|
61 |
1c3121fe
|
zabran
|
|
62 |
927fb559
|
zabran
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
63 |
|
|
@csrf
|
64 |
|
|
</form>
|
65 |
1c3121fe
|
zabran
|
</li>
|
66 |
25ec2fab
|
Marek Lovčí
|
@endguest
|
67 |
1c3121fe
|
zabran
|
|
68 |
|
|
</div>
|
69 |
|
|
|
70 |
927fb559
|
zabran
|
<nav class="navbar navbar-expand-md navbar-light black shadow-sm top-bar">
|
71 |
|
|
<span class="arrow arrow-right" onclick="openNav()"></span>
|
72 |
|
|
@if(!Request::is('login')&&!Request::is('register'))
|
73 |
2fee1bb5
|
Marek Lovčí
|
<a for="logo" class="logo-kaplicky kaplicky" href="{{ url('/') }}">
|
74 |
|
|
{{ __('general.kaplicky') }}
|
75 |
|
|
</a>
|
76 |
927fb559
|
zabran
|
@endif
|
77 |
|
|
</nav>
|
78 |
f7c37047
|
zabran
|
{{--<label for="logo" class="col-md-12 kaplicky" style="display: inline-block; text-align: center; padding: 1.25rem; padding-bottom: 0">{{ __('kaplicky') }}</label>
|
79 |
c0265e9e
|
zabran
|
{{--<label for="logo" class="col-md-4 kaplicky">{{ __('kaplicky') }}</label>--}}
|
80 |
|
|
{{--<a class="navbar-brand kaplicky" href="{{ url('/') }}">
|
81 |
|
|
{{ __('kaplicky') }}
|
82 |
|
|
</a>--}}
|
83 |
1c3121fe
|
zabran
|
|
84 |
|
|
<script>
|
85 |
|
|
function openNav() {
|
86 |
8075a85b
|
zabran
|
var x = window.matchMedia("(max-width: 540px)")
|
87 |
25ec2fab
|
Marek Lovčí
|
if (x.matches) {
|
88 |
c0265e9e
|
zabran
|
document.getElementById("sidebar").style.width = "50vw";
|
89 |
25ec2fab
|
Marek Lovčí
|
} else {
|
90 |
c0265e9e
|
zabran
|
document.getElementById("sidebar").style.width = "250px";
|
91 |
8075a85b
|
zabran
|
}
|
92 |
1c3121fe
|
zabran
|
}
|
93 |
|
|
|
94 |
|
|
function closeNav() {
|
95 |
c0265e9e
|
zabran
|
document.getElementById("sidebar").style.width = "0";
|
96 |
1c3121fe
|
zabran
|
}
|
97 |
|
|
</script>
|
98 |
2fee1bb5
|
Marek Lovčí
|
|
99 |
927fb559
|
zabran
|
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
|
100 |
|
|
<script>
|
101 |
25ec2fab
|
Marek Lovčí
|
$(function () {
|
102 |
|
|
$('a').each(function () {
|
103 |
927fb559
|
zabran
|
if ($(this).prop('href') == window.location.href) {
|
104 |
|
|
$(this).addClass('active');// $(this).parents('a').addClass('active');
|
105 |
|
|
}
|
106 |
|
|
});
|
107 |
|
|
});
|
108 |
|
|
</script>
|