metager3resultsrss20.blade.php 1.09 KB
Newer Older
1
2
3
<?xmlversion = "1.0"encoding = "UTF-8"?>
 <rss version="2.0"
      xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
Phil Höfer's avatar
Phil Höfer committed
4
      xmlns:mg="http://metager.de/opensearch/"
5
6
      xmlns:atom="http://www.w3.org/2005/Atom">
   <channel>
7
     <title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title>
8
9
     <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
     <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>
10
     <mg:nextSearchResults url="{{htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES)}}" />
11

Phil Höfer's avatar
Phil Höfer committed
12
  @if($apiAuthorized)
13
14
  @foreach($metager->getResults() as $result)
     <item>
15
16
       <title>{!! htmlspecialchars($result->titel, ENT_XML1, 'UTF-8'); !!}</title>
       <link>{!! htmlspecialchars($result->link, ENT_XML1, 'UTF-8'); !!}</link>
17
       <mg:anzeigeLink>{!! htmlspecialchars($result->anzeigeLink, ENT_XML1, 'UTF-8'); !!}</mg:anzeigeLink>
18
       <description>
19
          {!! htmlspecialchars($result->longDescr, ENT_XML1, 'UTF-8'); !!}
20
21
22
       </description>
     </item>
  @endforeach
Phil Höfer's avatar
Phil Höfer committed
23
  @endif
24
25
   </channel>
 </rss>