Commit 588967ac authored by Aria Givi's avatar Aria Givi
Browse files

Werbung hinzugefuegt

parent 6c41889f
@if(isset($ad) && !$apiAuthorized)
<ad:advertisement>
<ad:callOut atom:type="TEXT">{!! trans('ad.von') !!} {!! $ad->gefVon !!}</ad:callOut>
<ad:title atom:type="TEXT">{{ $ad->titel }}</ad:title>
<ad:displayUrl atom:type="TEXT">{{ $ad->anzeigeLink }}</ad:displayUrl>
<atom:link href="{{ $ad->link }}" />
</ad:advertisement>
@endif
\ No newline at end of file
<?xmlversion = "1.0"encoding = "UTF-8"?> <?xmlversion = "1.0"encoding = "UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" <feed xmlns="http://www.w3.org/2005/Atom"
xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
xmlns:mg="http://metager.de/opensearch/"> xmlns:mg="http://metager.de/opensearch/"
xmlns:advertisement="http://a9.com/-/opensearch/extensions/advertisement/1.0/">
<title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title> <title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title>
<link href="{{ url()->full() }}"/> <link href="{{ url()->full() }}"/>
<updated>{{ date('c') }}</updated> <updated>{{ date('c') }}</updated>
<opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults> <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
<opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/> <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>
<link rel="next" href="{{htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES)}}" type="application/atom+xml"/> <link rel="next" href="{{ htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES) }}" type="application/atom+xml"/>
<id>urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240</id> <id>urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240</id>
@include('layouts.atom10-ad', ['ad' => $metager->popAd()])
@foreach($metager->getResults() as $result) @foreach($metager->getResults() as $result)
@if($result->number % 7 === 0)
<ad:advertisement>
<ad:callOut atom:type="TEXT">[Ad]</ad:callOut>
<ad:title atom:type="TEXT">20% Off Coffee</ad:title>
<ad:subTitle atom:type="TEXT">Walk in and show us this ad on your phone</ad:subTitle>
<ad:displayUrl atom:type="TEXT">example.com/coffee</ad:displayUrl>
<ad:image ad:id="cprp20" ad:width="170" ad:height="30">
<ad:link href="http://example.com/ads/20_off_coffee.jpg" />
<ad:altText atom:type="TEXT">Click for Cafes Near You</ad:altText>
</ad:image>
<atom:link href="http://example.com/coffee/" />
<ad:id>1234567890</ad:id>
</ad:advertisement>
@endif
<entry> <entry>
<title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title> <title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
<link href="{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}" /> <link href="{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}" />
...@@ -19,6 +35,7 @@ ...@@ -19,6 +35,7 @@
</content> </content>
</entry> </entry>
@endforeach @endforeach
</feed> </feed>
<!-- Muster zu finden unter http://www.opensearch.org/Specifications/OpenSearch/1.1#Example_of_OpenSearch_response_elements_in_RSS_2.0 --> <!-- Muster zu finden unter http://www.opensearch.org/Specifications/OpenSearch/1.1#Example_of_OpenSearch_response_elements_in_RSS_2.0 -->
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