Commit 33743bf9 authored by Karl Hasselbring's avatar Karl Hasselbring

Twitter-Icon wird jetzt in der Redesign-Version über den View eingeblendet

parent f7699a5c
......@@ -33,9 +33,6 @@ class Result
{
$provider = simplexml_load_string($provider);
$this->titel = strip_tags(trim($titel));
if(stripos($anzeigeLink, "twitter.com")){
$this->titel = '<i class="fa fa-twitter" aria-hidden="true"></i> ' . $this->titel;
}
$this->link = trim($link);
$this->anzeigeLink = trim($anzeigeLink);
$this->descr = strip_tags(trim($descr), '<p>');
......@@ -228,7 +225,10 @@ class Result
# Persönliche URL Blacklist
foreach ($metager->getUserUrlBlacklist() as $word) {
if (strpos(strtolower($this->link), $word)) return false;
if (strpos(strtolower($this->link), $word)) {
return false;
}
}
# Allgemeine URL und Domain Blacklist
......
......@@ -2,6 +2,9 @@
<div class="result-header">
<div class="result-headline">
<h2 class="result-title">
@if(stripos($result->anzeigeLink, "twitter.com") !== false)
<i class="fa fa-twitter" aria-hidden="true"></i>
@endif
<a href="{{ $result->link }}" target="{{ $metager->getNewtab() }}" rel="noopener">
{!! $result->titel !!}
</a>
......
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