Просмотр файла WhiteBlack/views/news/rss.blade.php

Размер файла: 775B
  1. @extends('layout_rss')
  2.  
  3. @section('title')
  4. {{ trans('news.rss_title') }}
  5. @stop
  6.  
  7. @section('content')
  8.  
  9. @foreach ($newses as $news):
  10. <?php $news->text = bbCode($news->text); ?>
  11. <?php $news->text = str_replace(['/uploads/smiles', '[cut]'], [siteUrl().'/uploads/smiles', ''], $news->text); ?>
  12.  
  13. <item>
  14. <title>{{ $news->title }}</title>
  15. <link>{{ siteUrl() }}/news/{{ $news->id }}</link>
  16. <description>{{ $news->text }}</description>
  17. <author>{{ $news->user->login }}</author>
  18. <pubDate>{{ date('r', $news->created_at) }}</pubDate>
  19. <category>{{ trans('news.category') }}</category>
  20. <guid>{{ siteUrl() }}/news/{{ $news->id }}</guid>
  21. </item>
  22. @endforeach
  23. @stop