Commit 09f9d7fe by Bagus Pambudi

edit rss

parent 44985845
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
<language>en</language> <language>en</language>
<pubDate>{{ now() }}</pubDate> <pubDate>{{ now() }}</pubDate>
@foreach($posts as $post) @foreach($posts as $post)
<image> {{-- <image>
<url>{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}</url> <url>{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}</url>
</image> </image>--}}
<item> <item>
<title>{{ $post->title }}</title> <title>{{ $post->title }}</title>
<image> <image>
<url>{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}</url> <url>{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}</url>
</image> </image>
<link>{{ url('post/'.$post['slug'])}}</link> <link>{{ url('post/'.$post['slug'])}}</link>
<description><![CDATA[{!! strip_tags(substr(html_entity_decode($post->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}]]></description> <description>{!! strip_tags(substr(html_entity_decode($post->content,ENT_COMPAT,"UTF-8"),0 , 250)) !!}</description>
{{-- <description><![CDATA[{!! $post->content !!}]]></description>--}} {{-- <description><![CDATA[{!! $post->content !!}]]></description>--}}
<category>{{ $post->rCategory->name }}</category> <category>{{ $post->rCategory->name }}</category>
{{-- <author><![CDATA[{{ $post->slug }}]]></author>--}} {{-- <author><![CDATA[{{ $post->slug }}]]></author>--}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment