diff --git a/app/MetaGer.php b/app/MetaGer.php index 43bb09db0101b90b2f719225ae7deb36a984c450..30f421f9c87b4ab59ed545174c90f388aa4fcd4c 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -343,6 +343,7 @@ class MetaGer $hash = md5($targetUrl . $privateKey); $newLink = "https://api.smartredirect.de/api_v2/ClickGate.php?p=" . $publicKey . "&k=" . $hash . "&url=" . urlencode($targetUrl) . "&q=" . $query; $result->link = $newLink; + $result->partnershop = true; } } } diff --git a/public/img/boosticon.png b/public/img/boosticon.png new file mode 100644 index 0000000000000000000000000000000000000000..80673ae096cc1b2a321eab8dcfbfd82df12ebf50 Binary files /dev/null and b/public/img/boosticon.png differ diff --git a/resources/views/layouts/result.blade.php b/resources/views/layouts/result.blade.php index a504994ed1fed9705c40a8b2278e3fe7c4e838f7..4866ba302ba7a733c04d13025137dd057d021b0c 100644 --- a/resources/views/layouts/result.blade.php +++ b/resources/views/layouts/result.blade.php @@ -47,10 +47,10 @@ <span class="hoster"> von {!! $result->gefVon !!} </span> - @if( isset($result->partnerShop) ) + @if( isset($result->partnershop) && $result->partnershop === TRUE ) <span class="partnershop-info"> <img src="/img/boosticon.png" height="13" alt="Fehler"> - <a href="/boost">Partnershop</a> + <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/spende") }}">Partnershop</a> </span> @endif <a class="proxy" onmouseover="$(this).popover('show');" onmouseout="$(this).popover('hide');" data-toggle="popover" data-placement="auto right" data-container="body" data-content="Der Link wird anonymisiert geöffnet. Ihre Daten werden nicht zum Zielserver übetragen. Möglicherweise funktionieren manche Webseiten nicht wie gewohnt." href="{{ $result->proxyLink }}" target="{{ $metager->getTab() }}">