sidebar.blade.php 7.46 KB
Newer Older
1
2
<input id="sidebarToggle" class="hidden" type="checkbox">
<div class="sidebar">
Aria Givi's avatar
Aria Givi committed
3
4
5
  <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}">
    <p>MetaGer</p>
  </a>
6
  <ul class="sidebar-list">
7
    <li @if ( !isset($navbarFocus) || $navbarFocus === 'suche') class="active" @endif >
8
9
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}" tabindex="200" id="navigationSuche">
        <i class="fa fa-search" aria-hidden="true"></i>
10
        <span>&nbsp;{{ trans('sidebar.nav1') }}</span>
11
      </a>
12
    </li>
13
    <li @if (isset($navbarFocus) && $navbarFocus === 'dienste') class="metager-dropdown active" @else class="metager-dropdown" @endif >
14
      <input id="servicesToggle" class="sidebarCheckbox" type="checkbox">
15
        <label for="servicesToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" tabindex="225">
16
          <i class="fa fa-wrench" aria-hidden="true"></i>
17
          <span>&nbsp;{{ trans('sidebar.nav15') }}</span>
18
19
          <span class="caret"></span>
        </label>
20
21
      <ul class="metager-dropdown-menu">
        <li>
22
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/widget/") }}" tabindex="226">{{ trans('sidebar.nav10') }}</a>
23
24
        </li>
        <li>
25
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/zitat-suche/") }}" tabindex="227">{{ trans('sidebar.nav22') }}</a>
26
27
        </li>
        <li>
28
          <a href="{{ action('Assoziator@asso') }}" tabindex="228">{{ trans('sidebar.nav11') }}</a>
29
30
        </li>
        <li>
31
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/app/") }}" tabindex="229">@lang('sidebar.nav25')</a>
32
33
        </li>
        <li>
34
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/tips/") }}" tabindex="230">{{ trans('sidebar.titles.tips') }}</a>
35
36
        </li>
        <li>
37
          <a class="inlink" href="https://maps.metager.de" target="_blank" tabindex="231">Maps.MetaGer.de</a>
38
39
        </li>
        <li>
40
          <a class="outlink" href="https://gitlab.metager3.de/open-source/MetaGer" tabindex="232">{{ trans('sidebar.nav24') }}</a>
41
42
        </li>
        <li>
43
          <a class="outlink" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/tor/") }}" tabindex="234">{{ trans('sidebar.nav14') }}</a>
44
45
46
47
        </li>
      </ul>
    </li>
    <li @if (isset($navbarFocus) && $navbarFocus === 'datenschutz') class="active" @endif >
48
49
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/datenschutz/") }}" id="navigationPrivacy" tabindex="215">
        <i class="fa fa-user-secret" aria-hidden="true"></i>
50
        <span>&nbsp;{{ trans('sidebar.nav3') }}</span>
51
      </a>
52
53
    </li>
    <li @if (isset($navbarFocus) && $navbarFocus === 'hilfe') class="metager-dropdown active" @else class="metager-dropdown" @endif >
54
      <input id="helpToggle" class="sidebarCheckbox" type="checkbox">
55
      <label for="helpToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" id="navigationHilfe" tabindex="216">
56
        <i class="fa fa-info-circle" aria-hidden="true"></i>
57
        <span>&nbsp;{{ trans('sidebar.nav20') }}</span>
58
59
        <span class="caret"></span>
      </label>
60
61
      <ul class="metager-dropdown-menu">
        <li>
62
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/hilfe/") }}" tabindex="217">{{ trans('sidebar.nav20') }}</a>
63
64
        </li>
        <li>
65
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/faq/") }}" tabindex="218">{{ trans('sidebar.nav21') }}</a>
66
67
68
        </li>
      </ul>
    </li>
69
    <li @if (isset($navbarFocus) && $navbarFocus === 'foerdern') class="metager-dropdown active" @else class="metager-dropdown" @endif >
70
      <input id="donationToggle" class="sidebarCheckbox" type="checkbox">
71
      <label for="donationToggle" class="metager-dropdown-toggle navigation-element" tabindex="201">
72
        <i class="fa fa-money" aria-hidden="true"></i>
73
        <span>&nbsp;{{ trans('sidebar.nav16') }}</span>
74
75
        <span class="caret"></span>
      </label>
76
77
      <ul class="metager-dropdown-menu">
        <li>
78
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/spende/") }}" tabindex="202">{{ trans('sidebar.nav2') }}</a>
79
80
        </li>
        <li>
81
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/beitritt/") }}" tabindex="203">{{ trans('sidebar.nav23') }}</a>
82
        </li>
Karl Hasselbring's avatar
Karl Hasselbring committed
83
84
        @if(LaravelLocalization::getCurrentLocale() == "de")
          <li>
Karl Hasselbring's avatar
Karl Hasselbring committed
85
            <a class="outlink" href="https://shop.spreadshirt.de/metager/" rel="noopener" target="_blank">{{ trans('sidebar.nav26') }}</a>
Karl Hasselbring's avatar
Karl Hasselbring committed
86
87
          </li>
        @endif
88
        <li>
Karl Hasselbring's avatar
Karl Hasselbring committed
89
          <a class="outlink" href="https://www.boost-project.com/de/shops?charity_id=1129&amp;tag=bl" tabindex="204">{{ trans('sidebar.nav17') }}</a>
90
91
92
        </li>
      </ul>
    </li>
93
    <li @if (isset($navbarFocus) && $navbarFocus === 'kontakt') class="metager-dropdown active" @else class="metager-dropdown" @endif >
94
      <input id="contactToggle" class="sidebarCheckbox" type="checkbox">
95
      <label for="contactToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" id="navigationKontakt" tabindex="219">
96
        <i class="fa fa-comments-o" aria-hidden="true"></i>
97
        <span>&nbsp;{{ trans('sidebar.nav18') }}</span>
98
99
        <span class="caret"></span>
      </label>
100
101
      <ul class="metager-dropdown-menu">
        <li>
Karl Hasselbring's avatar
Karl Hasselbring committed
102
          <a class="outlink" href="http://forum.suma-ev.de/" tabindex="220">{{ trans('sidebar.nav4') }}</a>
103
104
        </li>
        <li>
105
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/kontakt/") }}" tabindex="221">{{ trans('sidebar.nav5') }}</a>
106
107
        </li>
        <li>
108
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/team/") }}" tabindex="222">{{ trans('sidebar.nav6') }}</a>
109
110
        </li>
        <li>
111
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/about/") }}" tabindex="223">{{ trans('sidebar.nav7') }}</a>
112
113
        </li>
        <li>
114
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/impressum/") }}" tabindex="224">{{ trans('sidebar.nav8') }}</a>
115
116
117
118
        </li>
      </ul>
    </li>
    <li class="metager-dropdown">
119
      <input id="languagesToggle" class="sidebarCheckbox" type="checkbox">
120
      <label for="languagesToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" id="navigationSprache" tabindex="235">
121
        <i class="fa fa-globe" aria-hidden="true"></i>
122
        <span>&nbsp;{{ trans('sidebar.nav19') }} ({{ LaravelLocalization::getSupportedLocales()[LaravelLocalization::getCurrentLocale()]['native'] }})</span>
123
124
        <span class="caret"></span>
      </label>
125
     <ul class="metager-dropdown-menu">
126
127
128
129
130
131
132
133
134
        @foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
          <li>
            <a rel="alternate" hreflang="{{$localeCode}}" href="{{LaravelLocalization::getLocalizedURL($localeCode) }}" tabindex="{{235 + $loop->index}}">{{{ $properties['native'] }}}</a>
          </li>
        @endforeach
      </ul>
    </li>
  </ul>
</div>