metager3resultsatom10.blade.php 1.44 KB
Newer Older
Aria Givi's avatar
Aria Givi committed
1
2
3
<?xmlversion = "1.0"encoding = "UTF-8"?>
 <feed xmlns="http://www.w3.org/2005/Atom" 
       xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
Aria Givi's avatar
Aria Givi committed
4
       xmlns:mg="http://metager.de/opensearch/"
Phil Höfer's avatar
Phil Höfer committed
5
       xmlns:ad="http://a9.com/-/opensearch/extensions/advertisement/1.0/">
Aria Givi's avatar
Aria Givi committed
6
     <title>{!! htmlspecialchars($eingabe, ENT_XML1, 'UTF-8'); !!} - MetaGer</title>
Aria Givi's avatar
Aria Givi committed
7
     <link href="{{ url()->full() }}"/>
Aria Givi's avatar
Aria Givi committed
8
     <updated>{{ date('c') }}</updated>
Aria Givi's avatar
Aria Givi committed
9
10
     <opensearch:totalResults>{{ $resultcount }}</opensearch:totalResults>
     <opensearch:Query role="request" searchTerms="{{ htmlspecialchars($eingabe, ENT_QUOTES) }}"/>
Aria Givi's avatar
Aria Givi committed
11
     <link rel="next" href="{{ htmlspecialchars($metager->nextSearchLink() ,ENT_QUOTES) }}" type="application/atom+xml"/>
Aria Givi's avatar
Aria Givi committed
12
     <id>urn:uuid:1d634a8c-2764-424f-b082-6c96494b7240</id>
Aria Givi's avatar
Update    
Aria Givi committed
13
14
15
16
17
18
19
20
21
22
     @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">
23
            {!! htmlspecialchars($result->descr, ENT_XML1, 'UTF-8'); !!}
Aria Givi's avatar
Update    
Aria Givi committed
24
25
26
         </content>
       </entry>
    @endforeach
Aria Givi's avatar
Aria Givi committed
27
 </feed>