ЕК
Size: a a a
ЕК
K
SG
K
@php
header("Content-type: text/rss; charset=utf-8");
echo "<rss xmlns:yandex='http://news.yandex.ru'
xmlns:media='http://search.yahoo.com/mrss/'
xmlns:turbo='http://turbo.yandex.ru'
version='2.0'>\n";
echo " <channel>\n";
echo "<title></title>\n";
echo "<link></link>\n";
echo "<description>Актуальные новости</description>\n";
@endphp
@foreach($posts as $post)
<item turbo="true">
<link>{{ route('postshow', ['category' => $post->category->slug, 'post' => $post->id ]) }}</link>
<category>{{$post->category->title}}</category>
<pubDate>{{$post->created_at->format("D, d M Y H:i:s +0300")}}</pubDate>
<turbo:content>
<![CDATA[
<header>
<h1>{{$post->title}}</h1>
<h2>{!!$post->excerpt!!}</h2>
@isset($post->image)
<figure>
<img src="{{asset('storage/images')}}/{{$post->image}}"></img>
</figure>
@endisset
</header>
{!! preg_replace('/\s+/', ' ', $post->body); !!}
]]>
</turbo:content>
</item>
@endforeach
@php
echo "</channel>\n";
echo "</rss>\n";
@endphp
SG
@php
header("Content-type: text/rss; charset=utf-8");
echo "<rss xmlns:yandex='http://news.yandex.ru'
xmlns:media='http://search.yahoo.com/mrss/'
xmlns:turbo='http://turbo.yandex.ru'
version='2.0'>\n";
echo " <channel>\n";
echo "<title></title>\n";
echo "<link></link>\n";
echo "<description>Актуальные новости</description>\n";
@endphp
@foreach($posts as $post)
<item turbo="true">
<link>{{ route('postshow', ['category' => $post->category->slug, 'post' => $post->id ]) }}</link>
<category>{{$post->category->title}}</category>
<pubDate>{{$post->created_at->format("D, d M Y H:i:s +0300")}}</pubDate>
<turbo:content>
<![CDATA[
<header>
<h1>{{$post->title}}</h1>
<h2>{!!$post->excerpt!!}</h2>
@isset($post->image)
<figure>
<img src="{{asset('storage/images')}}/{{$post->image}}"></img>
</figure>
@endisset
</header>
{!! preg_replace('/\s+/', ' ', $post->body); !!}
]]>
</turbo:content>
</item>
@endforeach
@php
echo "</channel>\n";
echo "</rss>\n";
@endphp
SG
@php
header("Content-type: text/rss; charset=utf-8");
echo "<rss xmlns:yandex='http://news.yandex.ru'
xmlns:media='http://search.yahoo.com/mrss/'
xmlns:turbo='http://turbo.yandex.ru'
version='2.0'>\n";
echo " <channel>\n";
echo "<title></title>\n";
echo "<link></link>\n";
echo "<description>Актуальные новости</description>\n";
@endphp
@foreach($posts as $post)
<item turbo="true">
<link>{{ route('postshow', ['category' => $post->category->slug, 'post' => $post->id ]) }}</link>
<category>{{$post->category->title}}</category>
<pubDate>{{$post->created_at->format("D, d M Y H:i:s +0300")}}</pubDate>
<turbo:content>
<![CDATA[
<header>
<h1>{{$post->title}}</h1>
<h2>{!!$post->excerpt!!}</h2>
@isset($post->image)
<figure>
<img src="{{asset('storage/images')}}/{{$post->image}}"></img>
</figure>
@endisset
</header>
{!! preg_replace('/\s+/', ' ', $post->body); !!}
]]>
</turbo:content>
</item>
@endforeach
@php
echo "</channel>\n";
echo "</rss>\n";
@endphp
K
K
SG
K
SG
WW
SG
AG
SG
K
O
SG
AO
K