From 6f75936f35dacfbac78ca8f9f3b76ad183df3c78 Mon Sep 17 00:00:00 2001 From: Karl <Karl Hasselbring> Date: Wed, 5 Apr 2017 12:55:58 +0200 Subject: [PATCH] Die Version scheint sowohl mit den alten Lesezeichen als auch Plugins kompatibel zu sein --- resources/lang/de/index.php | 1 + resources/views/index.blade.php | 10 ++++++++++ .../views/layouts/researchandtabs.blade.php | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/resources/lang/de/index.php b/resources/lang/de/index.php index ce74a2388..674db3853 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 2f46a7c03..859a998d9 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 52b6ab89a..1d42b5dc7 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> -- GitLab