sidebar.blade.php 5.92 KB
Newer Older
1 2
<input id="sidebarToggle" class="hidden" type="checkbox">
<div class="sidebar">
3
  <a class="sidebar-logo" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}">
Aria Givi's avatar
Aria Givi committed
4 5
    <p>MetaGer</p>
  </a>
6
  <ul class="sidebar-list">
7
    <li>
8
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}"  id="navigationSuche">
9
        <i class="fa fa-search" aria-hidden="true"></i>
10
        <span>{{ trans('sidebar.nav1') }}</span>
11
      </a>
12
    </li>
13 14
    <hr>
    <li>
15
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/datenschutz/") }}" id="navigationPrivacy" >
16 17 18 19 20
        <i class="fa fa-user-secret" aria-hidden="true"></i>
        <span>{{ trans('sidebar.nav3') }}</span>
      </a>
    </li>
    <li>
21
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/hilfe/") }}" >
22 23 24 25 26 27
        <i class="fa fa-info" aria-hidden="true"></i>
        <span>{{ trans('sidebar.nav20') }}</span>
      </a>
    </li>
    <hr>
    <li>
28
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/spende/") }}" >
29
        <i class="fa fa-donate" aria-hidden="true"></i>
30 31 32 33
        <span>{{ trans('sidebar.nav2') }}</span>
      </a>
    </li>
    <li>
34
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/beitritt/") }}" >
35 36 37 38 39
        <i class="fa fa-users" aria-hidden="true"></i>
        <span>{{ trans('sidebar.nav23') }}</span>
      </a>
    </li>
    <hr>
40
    <li>
41
      <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/app/") }}" >
42 43 44 45 46
        <i class="fa fa-mobile-alt" aria-hidden="true"></i>
        <span>@lang('sidebar.nav25')</span>
      </a>
    </li>
    <li>
47
      <a class="inlink" href="https://maps.metager.de" target="_blank" >
48 49 50 51 52
        <i class="fa fa-map" aria-hidden="true"></i>
        <span>Maps.MetaGer.de</span>
      </a>
    </li>
    <hr>
53 54
    <li class="metager-dropdown">
      <input id="contactToggle" class="sidebarCheckbox" type="checkbox">
55
      <label for="contactToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" id="navigationKontakt" >
56
        <i class="fa fa-comments" aria-hidden="true"></i>
57 58 59 60 61
        <span>{{ trans('sidebar.nav18') }}</span>
        <span class="caret"></span>
      </label>
      <ul class="metager-dropdown-content">
        <li>
62
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/kontakt/") }}" >{{ trans('sidebar.nav5') }}</a>
63 64
        </li>
        <li>
65
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/team/") }}" >{{ trans('sidebar.nav6') }}</a>
66 67
        </li>
        <li>
68
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/about/") }}" >{{ trans('sidebar.nav7') }}</a>
69 70
        </li>
        <li>
71
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/impressum/") }}" >{{ trans('sidebar.nav8') }}</a>
72 73 74 75
        </li>
      </ul>
    </li>
    <li class="metager-dropdown">
76
      <input id="servicesToggle" class="sidebarCheckbox" type="checkbox">
77
        <label for="servicesToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" >
78
          <i class="fa fa-wrench" aria-hidden="true"></i>
79
          <span>{{ trans('sidebar.nav15') }}</span>
80 81
          <span class="caret"></span>
        </label>
82
      <ul class="metager-dropdown-content">
83
        <li>
84
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/plugin/") }}" >{{ trans('sidebar.plugin') }}</a>
85 86
        </li>
        <li>
87
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/widget/") }}" >{{ trans('sidebar.nav10') }}</a>
88 89
        </li>
        <li>
90
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/zitat-suche/") }}" >{{ trans('sidebar.nav22') }}</a>
91 92
        </li>
        <li>
93
          <a href="{{ action('Assoziator@asso') }}" >{{ trans('sidebar.nav11') }}</a>
94 95
        </li>
        <li>
96
          <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/tips/") }}" >{{ trans('sidebar.titles.tips') }}</a>
97 98
        </li>
        <li>
99
          <a class="outlink" href="https://gitlab.metager3.de/open-source/MetaGer" >{{ trans('sidebar.nav24') }}</a>
100 101
        </li>
        <li>
102
          <a class="outlink" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/tor/") }}" >{{ trans('sidebar.nav14') }}</a>
103
        </li>
Karl Hasselbring's avatar
Karl Hasselbring committed
104 105
        @if(LaravelLocalization::getCurrentLocale() == "de")
          <li>
Karl Hasselbring's avatar
Karl Hasselbring committed
106
            <a class="outlink" href="https://shop.spreadshirt.de/metager/" rel="noopener" target="_blank">{{ trans('sidebar.nav26') }}</a>
Karl Hasselbring's avatar
Karl Hasselbring committed
107 108
          </li>
        @endif
109
        <li>
Dominik Hebeler's avatar
Dominik Hebeler committed
110
          <a class="outlink" href="https://www.wecanhelp.de/430159004" >{{ trans('sidebar.nav17') }}</a>
111 112 113 114
        </li>
      </ul>
    </li>
    <li class="metager-dropdown">
115
      <input id="languagesToggle" class="sidebarCheckbox" type="checkbox">
116
      <label for="languagesToggle" class="metager-dropdown-toggle navigation-element" aria-haspopup="true" id="navigationSprache" >
117
        <i class="fa fa-globe" aria-hidden="true"></i>
118
        <span>{{ trans('sidebar.nav19') }} ({{ LaravelLocalization::getSupportedLocales()[LaravelLocalization::getCurrentLocale()]['native'] }})</span>
119 120
        <span class="caret"></span>
      </label>
121
      <ul class="metager-dropdown-content">
122 123
        @foreach(LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
          <li>
124
            <a rel="alternate" hreflang="{{$localeCode}}" href="{{LaravelLocalization::getLocalizedURL($localeCode) }}" >{{{ $properties['native'] }}}</a>
125 126 127 128 129 130
          </li>
        @endforeach
      </ul>
    </li>
  </ul>
</div>