visavi/rotor

View on GitHub
resources/views/loads/rss.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
@extends('layout_rss')

@section('title', __('loads.rss_downs'))

@section('content')
    @foreach ($downs as $down)
        <?php $down->text = bbCode($down->text); ?>
        <?php $down->text = str_replace('/uploads/stickers', config('app.url').'/uploads/stickers', $down->text); ?>

        <item>
            <title>{{ $down->title }}</title>
            <link>{{ config('app.url') }}/downs/{{ $down->id }}</link>
            <description>{{ $down->text }}</description>
            <author>{{ $down->user->getName() }}</author>
            <pubDate>{{ date('r', $down->created_at) }}</pubDate>
            <category>{{ __('index.loads') }}</category>
            <guid>{{ config('app.url') }}/downs/{{ $down->id }}</guid>
        </item>
    @endforeach
@stop