✨ Ajoute la page de listing public
This commit is contained in:
27
resources/views/vendor/feed/rss.blade.php
vendored
Normal file
27
resources/views/vendor/feed/rss.blade.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?=
|
||||
/* Using an echo tag here so the `<? ... ?>` won't get parsed as short tags */
|
||||
'<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL
|
||||
?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><![CDATA[{{ $meta['title'] }}]]></title>
|
||||
<link><![CDATA[{{ url($meta['link']) }}]]></link>
|
||||
<description><![CDATA[{{ $meta['description'] }}]]></description>
|
||||
<language>{{ $meta['language'] }}</language>
|
||||
<pubDate>{{ $meta['updated'] }}</pubDate>
|
||||
|
||||
@foreach($items as $item)
|
||||
<item>
|
||||
<title><![CDATA[{{ $item->title }}]]></title>
|
||||
<link>{{ url($item->link) }}</link>
|
||||
<description><![CDATA[{!! $item->summary !!}]]></description>
|
||||
<author><![CDATA[{{ $item->author }}]]></author>
|
||||
<guid>{{ url($item->id) }}</guid>
|
||||
<pubDate>{{ $item->updated->toRssString() }}</pubDate>
|
||||
@foreach($item->category as $category)
|
||||
<category>{{ $category }}</category>
|
||||
@endforeach
|
||||
</item>
|
||||
@endforeach
|
||||
</channel>
|
||||
</rss>
|
Reference in New Issue
Block a user