From 2af4ec9daca30b12c287fdf1ee0893481fa94293 Mon Sep 17 00:00:00 2001 From: Karl Hasselbring <Karl Hasselbring> Date: Tue, 5 Dec 2017 08:27:04 +0100 Subject: [PATCH] Refactoring: Produkte an neues Design angepasst, noch ncht repariert --- resources/lang/de/results.php | 2 ++ resources/views/layouts/products.blade.php | 41 +++++++++++----------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/resources/lang/de/results.php b/resources/lang/de/results.php index c9159d385..8662468e3 100644 --- a/resources/lang/de/results.php +++ b/resources/lang/de/results.php @@ -6,4 +6,6 @@ return [ 'zurueck' => 'Zurück', 'filter' => 'Die Suchergebnisse wurden gefiltert: <strong>[:filter]</strong>. <a href=":link" target="_blank">Filter abschalten.</a>', 'filter.default' => 'Sie erhalten die Benutzeroberfläche in <strong>:langName</strong>, aber Ergebnisse in <strong>ALLEN</strong> Sprachen. Für ausschließlich deutschsprachige Ergebnisse können Sie unter <a href="/settings" target="_blank">anpassen</a> die "Sprache auswählen".', + + 'produktanzeigen' => 'Produktanzeigen:', ]; diff --git a/resources/views/layouts/products.blade.php b/resources/views/layouts/products.blade.php index 9ac072aa4..1bf4038f4 100644 --- a/resources/views/layouts/products.blade.php +++ b/resources/views/layouts/products.blade.php @@ -1,21 +1,20 @@ -<div class="row lightSliderContainer hidden"> - <div class="col-sm-1 hidden-xs"></div> - <div class="result-information col-xs-12 col-sm-11"> - <span id="mark">Produktanzeigen:</span> - <ul id="products" class="lightSlider" > - @foreach($products as $product) - <li> - <div class="product"> - <a href="{{$product["link"]}}" title="{{$product["titel"]}}" target="_blank" rel="noopener"> - <div class="price">{!!$product["price"]!!}</div> - <img src="{{ $metager->getImageProxyLink($product["image"]) }}" /> - <p class="title">{{$product["titel"]}}</p> - <p class="shop">{{$product["gefVon"]}}</p> - <p class="shipping">{{$product["additionalInformation"]["shipping"]}}</p> - </a> - </div> - </li> - @endforeach - </ul> - </div> -</div> +<div class="result product"> + <h2 class="result-title"> + <span id="mark">@lang('produktanzeigen')</span> + </h2> + <ul id="products" class="lightSlider" > + @foreach($products as $product) + <li> + <div class="product"> + <a href="{{$product["link"]}}" title="{{$product["titel"]}}" target="_blank" rel="noopener"> + <div class="price">{!!$product["price"]!!}</div> + <img src="{{ $metager->getImageProxyLink($product["image"]) }}" /> + <p class="title">{{$product["titel"]}}</p> + <p class="shop">{{$product["gefVon"]}}</p> + <p class="shipping">{{$product["additionalInformation"]["shipping"]}}</p> + </a> + </div> + </li> + @endforeach + </ul> +</div> \ No newline at end of file -- GitLab