Commit 0ea5c860 authored by Dominik Hebeler's avatar Dominik Hebeler

Revert "Merge branch '272-zu-viele-bilderergebnisse-auf-einer-seite' into 'development'"

This reverts merge request !450
parent f53ee730
......@@ -100,8 +100,6 @@ class MetaGer
$this->createLogs();
if ($this->fokus === "bilder") {
# Bei der Bildersuche wird die Anzahl der Ergebnisse pro Seite begrenzt
$viewResults = array_slice($viewResults, 0, config('settings.maxPictureResults', 30), true);
switch ($this->out) {
case 'results':
return view('metager3bilderresults')
......
<?php
return [
'maxPictureResults' => 30,
];
......@@ -20,11 +20,11 @@
</div>
@endif
<div id="container">
@foreach($results as $result)
@foreach($metager->getResults() as $result)
<div class="item">
<div class="img">
<a href="{{ $result['link'] }}" target="{{ $metager->getTab() }}"><img src="{{ $metager->getImageProxyLink($result['image']) }}" width="150px" alt=""/></a>
<span class="label label-default hostlabel">{!! $result['gefVon'] !!}</span>
<a href="{{ $result->link }}" target="{{ $metager->getTab() }}"><img src="{{ $metager->getImageProxyLink($result->image) }}" width="150px" alt=""/></a>
<span class="label label-default hostlabel">{!! $result->gefVon !!}</span>
</div>
</div>
@endforeach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment