researchandtabs.blade.php 10.4 KB
Newer Older
1
2
3
4
5
<div class="content-wrapper">
        <header id="research">
            <nav>
                <ul class="list-inline">
                    <li class="hidden-xs hidden-sm pull-left">
6
                        <div class="logo"><a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}"><h1>MetaGer</h1></a>
7
8
9
                        </div>
                    </li>
                    <li class="visible-xs visible-sm pull-left">
10
                        <div class="logo"><a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}"><h1>MG</h1></a>
11
12
13
                        </div>
                    </li>
                    <li class="pull-right">
14
                        <form method="{{ Request::method() }}" accept-charset="UTF-8" class="form" id="submitForm">
15
                            <div class="input-group">
16
                                <input autocomplete="off" class="form-control" form="submitForm" id="eingabeTop" name="eingabe" placeholder="Suchbegriffe erweitern/verändern, oder völlig neue Suche:" tabindex="1" type="text" value="{{ $eingabe }}" required />
17
18
19
20
21
22
23
                                <div class="input-group-addon">
                                    <button type='submit' form="submitForm" id='search'><span class="glyphicon glyphicon-search"></span>
                                    </button>
                                </div>
                            </div>

                            @foreach( $metager->request->all() as $key => $value)
24
                                @if($key !== "eingabe" && $key !== "page" && $key !== "next")
25
26
27
28
29
30
31
32
33
                                <input type='hidden' name='{{ $key }}' value='{{ $value }}' form='submitForm' />
                                @endif
                            @endforeach

                        </form>
                    </li>
                </ul>
            </nav>
        </header>
34
        @if( strpos(rtrim(Request::header('REFERER'), '/'), LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") )  === 0 && ( $browser === 'Firefox' || $browser === 'Mozilla' || $browser === 'Chrome' || $browser === 'IE' || $browser === 'Edge') )
35
36
        <div id="searchplugin" class="alert alert-warning alert-dismissible" role="alert" style="">
                <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
37
                {!! trans('researchandtabs.plugin.1', ['browser' => $browser]) !!}
38
39
                <br />
                <div style="">
40
                    <a href="{{ action('StartpageController@loadStartPage', Request::all()) }}#plugin-modal" target="_blank" rel="noopener" type="button" class="btn btn-info" style="">{!! trans('researchandtabs.plugin.2') !!}</a>
41
42
43
                </div>
        </div>
        @endif
44
45
        <ul class="nav nav-tabs" id="foki" role="tablist">
        @if( $metager->getFokus() === "web" )
46
        <li id="webTabSelector" role="presentation" data-loaded="1" class="active tab-selector">
47
            <a aria-controls="web" data-href="#web" href="#web">
48
49
                <span class='glyphicon glyphicon-globe'></span>
                <span class="hidden-xs">{{ trans('index.foki.web') }}</span>
50
51
52
            </a>
        </li>
        @else
53
            <li data-loaded="0" id="webTabSelector" class="tab-selector" role="presentation">
54
                <a aria-controls="web" data-href="{{ $metager->generateSearchLink('web') }}" href="{{ $metager->generateSearchLink('web') }}">
55
56
                    <span class='glyphicon glyphicon-globe'></span>
                    <span class="hidden-xs">{{ trans('index.foki.web') }}</span>
57
58
59
60
61
                </a>
            </li>
        @endif

        @if( $metager->getFokus() === "bilder" )
62
        <li id="bilderTabSelector" role="presentation" data-loaded="1" class="active tab-selector">
63
            <a aria-controls="bilder" data-href="#bilder" href="#bilder">
64
                <span class='glyphicon glyphicon-picture'></span>
65
                <span class="hidden-xs">{{ trans('index.foki.bilder') }}</span>
66
67
68
            </a>
        </li>
        @else
69
        <li data-loaded="0" id="bilderTabSelector" class="tab-selector" role="presentation">
70
            <a aria-controls="bilder" data-href="{{ $metager->generateSearchLink('bilder') }}" href="{{ $metager->generateSearchLink('bilder') }}">
71
                <span class='glyphicon glyphicon-picture'></span>
72
                <span class="hidden-xs">{{ trans('index.foki.bilder') }}</span>
73
74
75
76
77
            </a>
        </li>
        @endif

        @if( $metager->getFokus() === "nachrichten" )
78
        <li id="nachrichtenTabSelector" role="presentation" data-loaded="1" class="active tab-selector">
79
            <a aria-controls="nachrichten" data-href="#nachrichten" href="#nachrichten">
80
                <span class='glyphicon glyphicon-bullhorn'></span>
81
                <span class="hidden-xs">{{ trans('index.foki.nachrichten') }}</span>
82
83
84
            </a>
        </li>
        @else
85
        <li data-loaded="0" id="nachrichtenTabSelector" class="tab-selector" role="presentation" >
86
            <a aria-controls="nachrichten" data-href="{{ $metager->generateSearchLink('nachrichten') }}" href="{{ $metager->generateSearchLink('nachrichten') }}">
87
                <span class='glyphicon glyphicon-bullhorn'></span>
88
                <span class="hidden-xs">{{ trans('index.foki.nachrichten') }}</span>
89
90
91
92
93
            </a>
        </li>
        @endif

        @if( $metager->getFokus() === "wissenschaft" )
94
        <li id="wissenschaftTabSelector" role="presentation" data-loaded="1" class="active tab-selector">
95
            <a aria-controls="wissenschaft" data-href="#wissenschaft" href="#wissenschaft">
96
                <span class='glyphicon glyphicon-file'></span>
97
                <span class="hidden-xs">{{ trans('index.foki.wissenschaft') }}</span>
98
99
100
            </a>
        </li>
        @else
101
        <li data-loaded="0" id="wissenschaftTabSelector" class="tab-selector" role="presentation">
102
            <a aria-controls="wissenschaft" data-href="{{ $metager->generateSearchLink('wissenschaft') }}" href="{{ $metager->generateSearchLink('wissenschaft') }}">
103
                <span class='glyphicon glyphicon-file'></span>
104
                <span class="hidden-xs">{{ trans('index.foki.wissenschaft') }}</span>
105
106
107
108
109
            </a>
        </li>
        @endif

        @if( $metager->getFokus() === "produktsuche" )
110
        <li id="produktsucheTabSelector" role="presentation" data-loaded="1" class="active tab-selector">
111
            <a aria-controls="produktsuche" data-href="#produktsuche" href="#produktsuche">
112
                <span class='glyphicon glyphicon-shopping-cart'></span>
113
                <span class="hidden-xs">{{ trans('index.foki.produkte') }}</span>
114
115
116
            </a>
        </li>
        @else
117
        <li data-loaded="0" id="produktsucheTabSelector" class="tab-selector" role="presentation" >
118
            <a aria-controls="produktsuche" data-href="{{ $metager->generateSearchLink('produktsuche') }}" href="{{ $metager->generateSearchLink('produktsuche') }}">
119
                <span class='glyphicon glyphicon-shopping-cart'></span>
120
                <span class="hidden-xs">{{ trans('index.foki.produkte') }}</span>
121
122
123
124
125
            </a>
        </li>
        @endif

        @if( $metager->getFokus() === "angepasst" )
126
        <li id="angepasstTabSelector" role="presentation" data-loaded="1" class="active tab-selector">
127
            <a aria-controls="angepasst" data-href="#angepasst" href="#angepasst">
128
                <span class='glyphicon glyphicon-cog'></span>
129
                <span class="hidden-xs">{{ trans('index.foki.angepasst') }}</span>
130
131
132
133
134
135
            </a>
        </li>
        @endif
        </ul>

        <div class="tab-content container-fluid">
136

137
138
139
140
141
142
143
144
145
146
147
148
149
150
            @if( $metager->getFokus() === "web" )
            <div role="tabpanel" class="tab-pane active" id="web">
                <div class="row">
                    @yield('results')
                </div>
            </div>
            @else
            <div role="tabpanel" class="tab-pane" id="web">
                <div class="loader">
                    <img src="/img/ajax-loader.gif" alt="" />
                </div>
            </div>
            @endif

151
152


153
154
155
156
157
158
159
160
161
162
163
164
165
166
            @if( $metager->getFokus() === "bilder" )
            <div role="tabpanel" class="tab-pane active" id="bilder">
                <div class="row">
                    @yield('results')
                </div>
            </div>
            @else
            <div role="tabpanel" class="tab-pane" id="bilder">
                <div class="loader">
                    <img src="/img/ajax-loader.gif" alt="" />
                </div>
            </div>
            @endif

167
168


169
170
171
172
173
174
175
176
177
178
179
180
181
            @if( $metager->getFokus() === "nachrichten" )
            <div role="tabpanel" class="tab-pane active" id="nachrichten">
                <div class="row">
                    @yield('results')
                </div>
            </div>
            @else
            <div role="tabpanel" class="tab-pane" id="nachrichten">
                <div class="loader">
                    <img src="/img/ajax-loader.gif" alt="" />
                </div>
            </div>
            @endif
182

183
184
185
186
187
188
189
190
191
192
193
194
195
            @if( $metager->getFokus() === "wissenschaft" )
            <div role="tabpanel" class="tab-pane active" id="wissenschaft">
                <div class="row">
                    @yield('results')
                </div>
             </div>
            @else
            <div role="tabpanel" class="tab-pane" id="wissenschaft">
                <div class="loader">
                    <img src="/img/ajax-loader.gif" alt="" />
                </div>
            </div>
            @endif
196

197
198
199
200
201
202
203
204
205
206
207
208
209
210
            @if( $metager->getFokus() === "produktsuche" )
            <div role="tabpanel" class="tab-pane active" id="produktsuche">
                <div class="row">
                        @yield('results')
                </div>
             </div>
            @else
            <div role="tabpanel" class="tab-pane" id="produktsuche">
                <div class="loader">
                    <img src="/img/ajax-loader.gif" alt="" />
                </div>
            </div>
            @endif

211
212


213
214
215
216
217
218
219
220
            @if( $metager->getFokus() === "angepasst" )
            <div role="tabpanel" class="tab-pane active" id="angepasst">
                <div class="row">
                        @yield('results')
                </div>
            </div>
            @endif
        </div>
221
    </div>