|
| 1 | +<?php echo '<?xml version="1.0" encoding="utf-8" ?>' . "\n"; ?> |
| 2 | + |
| 3 | +<?php echo '<?xml-stylesheet type="text/xsl" href="' . |
| 4 | + route('now.xsl') . |
| 5 | + '" ?>' . |
| 6 | + "\n"; ?> |
| 7 | + |
| 8 | +<feed xmlns="http://www.w3.org/2005/Atom"> |
| 9 | + <title type="text">Noel De Martin [Journal]</title> |
| 10 | + <subtitle type="text">A stream of all my activity</subtitle> |
| 11 | + <updated>{!! $events[0]->date->format(DateTime::ATOM) !!}</updated> |
| 12 | + <id>{!! sroute('now') !!}</id> |
| 13 | + <link type="text/html" href="{!! sroute('now') !!}" /> |
| 14 | + <link type="application/xml" rel="self" href="{!! route('now.rss') !!}" /> |
| 15 | + <category term="entrepreneurship" /> |
| 16 | + <category term="development" /> |
| 17 | + <icon>{!! asset('favicon.ico') !!}</icon> |
| 18 | + <logo>{!! asset('img/myface-small.png') !!}</logo> |
| 19 | + <author> |
| 20 | + <name>Noel De Martin</name> |
| 21 | + <email>{{ sglobal('contact.email') }}</email> |
| 22 | + <uri>{!! sroute('home') !!}</uri> |
| 23 | + </author> |
| 24 | + @foreach ($events as $event) |
| 25 | + <entry> |
| 26 | + <title type="text">{!! $event->title !!}</title> |
| 27 | + <author> |
| 28 | + <name>Noel De Martin</name> |
| 29 | + <email>{{ sglobal('contact.email') }}</email> |
| 30 | + <uri>{!! sroute('home') !!}</uri> |
| 31 | + </author> |
| 32 | + <link href="{!! $event->url !!}" /> |
| 33 | + <id>{!! $event->url !!}</id> |
| 34 | + <published>{!! $event->date->format(DateTime::ATOM) !!}</published> |
| 35 | + <updated>{!! $event->date->format(DateTime::ATOM) !!}</updated> |
| 36 | + <summary type="html"> |
| 37 | + {!! htmlspecialchars($event->description) !!} |
| 38 | + </summary> |
| 39 | + <content type="html"> |
| 40 | + {!! htmlspecialchars($event->longDescription) !!} |
| 41 | + </content> |
| 42 | + </entry> |
| 43 | + @endforeach |
| 44 | +</feed> |
0 commit comments