metager3resultsatom10.blade.php 1.38 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xmlversion = "1.0"encoding = "UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
      xmlns:mg="http://metager.de/opensearch/"
      xmlns:ad="http://a9.com/-/opensearch/extensions/advertisement/1.0/">
  <title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title>
  <link href="{{ url()->full() }}"/>
  <updated>{{ date('c') }}</updated>
  <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
  <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>
  <link rel="next" href="{{ htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES) }}" type="application/atom+xml"/>
  <id>urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240</id>
  @include('layouts.atom10ad', ['ad' => $metager->popAd()])
  @foreach($metager->getResults() as $result)
    @if($result->number % 5 === 0)
      @include('layouts.atom10ad', ['ad' => $metager->popAd()])
    @endif
    <entry>
      <title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
      <link href="{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}" />
      <mg:anzeigeLink>{!! htmlspecialchars($result->anzeigeLink, ENT_XML1, 'UTF-8'); !!}</mg:anzeigeLink>
      <content type="text">
        {!! htmlspecialchars($result->descr, ENT_XML1, 'UTF-8'); !!}
      </content>
    </entry>
  @endforeach
</feed>