Commit 6d858ce4 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '66-es-werden-noch-keinerleid-logs-geschrieben' into 'master'

Wikipedia Quicktips geben wieder ihre Quelle an

Closes #66

See merge request !79
parents dc2dd34b 9203b206
...@@ -93,6 +93,7 @@ class MetaGerSearch extends Controller ...@@ -93,6 +93,7 @@ class MetaGerSearch extends Controller
$quicktip["title"] = $result['displaytitle']; $quicktip["title"] = $result['displaytitle'];
$quicktip["URL"] = $result['fullurl']; $quicktip["URL"] = $result['fullurl'];
$quicktip["descr"] = strip_tags($result['extract']); $quicktip["descr"] = strip_tags($result['extract']);
$quicktip['gefVon'] = "aus <a href=\"https://de.wikipedia.org\" target=\"_blank\">Wikipedia, der freien Enzyklopädie</a>";
$quicktips[] = $quicktip; $quicktips[] = $quicktip;
} }
...@@ -118,7 +119,6 @@ class MetaGerSearch extends Controller ...@@ -118,7 +119,6 @@ class MetaGerSearch extends Controller
$mquicktips[] = ['title' => $ad['title'], 'descr' => $ad['descr'], 'URL' => $ad['URL']]; $mquicktips[] = ['title' => $ad['title'], 'descr' => $ad['descr'], 'URL' => $ad['URL']];
} }
return view('quicktip') return view('quicktip')
->with('spruch', $spruch) ->with('spruch', $spruch)
->with('mqs', $mquicktips); ->with('mqs', $mquicktips);
......
...@@ -60,6 +60,9 @@ ...@@ -60,6 +60,9 @@
</b> </b>
<br /> <br />
<div>{!! $mq['descr'] !!}</div> <div>{!! $mq['descr'] !!}</div>
@if( isset($mq['gefVon']) )
<div class="pull-right">{!! $mq['gefVon'] !!}</div>
@endif
</div> </div>
@endforeach @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