diff --git a/resources/lang/de/index.php b/resources/lang/de/index.php index ce74a2388869c41e6ac54332f70aa7ef36c5970b..674db385365053918df35a7c8d66b9a257f35d7b 100644 --- a/resources/lang/de/index.php +++ b/resources/lang/de/index.php @@ -6,6 +6,7 @@ return [ 'foki.nachrichten' => 'News/Politik', 'foki.wissenschaft' => 'Wissenschaft', 'foki.produkte' => 'Produkte', + 'foki.angepasst' => 'Angepasst', 'foki.eigene' => 'Eigene Suche', 'foki.eigene.entfernen' => 'Eigene Suche entfernen', 'foki.angepasst.entfernen' => 'Einstellungen zurücksetzen', diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index 2f46a7c0341e630dc32b85c97ab0f4371bd37d4a..859a998d9e17731d914c3fa64c40a643d55426b6 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -229,6 +229,16 @@ <span class="content">{{ trans('index.foki.produkte') }}</span> </label> </div> + {{-- Fix for older Versions --}} + @if ($focus === 'angepasst') + <div class="focus"> + <input id="angepasst" class="focus-radio hide" type="radio" name="focus" value="angepasst" form="searchForm" checked required=""> + <label id="anpassen-label" class="focus-label" for="angepasst"> + <span class="glyphicon glyphicon-cog"></span> + <span class="content">{{ trans('index.foki.angepasst') }}</span> + </label> + </div> + @endif <button id="addFocusBtn" class="btn btn-default hide"> <span class="glyphicon glyphicon-plus"></span> </button> diff --git a/resources/views/layouts/researchandtabs.blade.php b/resources/views/layouts/researchandtabs.blade.php index 52b6ab89a13206c79804d23ce8ea2878327f7947..1d42b5dc725d10406a5035a5f4ea6a5bda0cb2b4 100644 --- a/resources/views/layouts/researchandtabs.blade.php +++ b/resources/views/layouts/researchandtabs.blade.php @@ -117,6 +117,16 @@ </li> @endif + {{-- Fix for older Versions --}} + @if( $metager->getFokus() === "angepasst" ) + <li id="angepasstTabSelector" role="presentation" data-loaded="1" class="active tab-selector"> + <a aria-controls="angepasst" data-href="#angepasst" href="#angepasst"> + <span class='glyphicon glyphicon-cog'></span> + <span class="hidden-xs">{{ trans('index.foki.angepasst') }}</span> + </a> + </li> + @endif + <li id="mapsTabSelector" role="presentation" class="tab-selector"> <a href="https://maps.metager.de/map/{{ $metager->getQ() }}/-6.781309835595698/44.85855550132342/33.9779675081543/58.25372144666716" target="_blank"> <span class='glyphicon glyphicon-map-marker'></span> @@ -196,5 +206,13 @@ </div> </div> @endif + + @if( $metager->getFokus() === "angepasst" ) + <div role="tabpanel" class="tab-pane active" id="angepasst"> + <div class="row"> + @yield('results') + </div> + </div> + @endif </main> </div>