1
0

user.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?=
  2. /* Using an echo tag here so the `<? ... ?>` won't get parsed as short tags */
  3. '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL
  4. ?>
  5. <feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
  6. <id>{{$profile->permalink('.atom')}}</id>
  7. <title>{{$profile->username}} on Pixelfed</title>
  8. <subtitle>{{$profile->bio}}</subtitle>
  9. <updated>{{$profile->updated_at->toAtomString()}}</updated>
  10. <logo></logo>
  11. <author>
  12. <id>{{$profile->permalink()}}</id>
  13. <uri>{{$profile->permalink()}}</uri>
  14. <name>{{$profile->permalink()}}</name>
  15. <summary type="html">{{$profile->bio}}</summary>
  16. <link rel="alternate" type="text/html" href="{{$profile->url()}}"/>
  17. <link rel="avatar" type="image/jpeg" media:width="120" media:height="120" href="{{$profile->avatarUrl()}}"/>
  18. </author>
  19. <link rel="alternate" type="text/html" href="{{$profile->url()}}"/>
  20. <link rel="self" type="application/atom+xml" href="{{$profile->permalink('.atom')}}"/>
  21. @foreach($items as $item)
  22. <entry>
  23. <title>{{ $item->caption }}</title>
  24. <link rel="alternate" href="{{ $item->url() }}" />
  25. <id>{{ $item->url() }}</id>
  26. <author>
  27. <name> <![CDATA[{{ $item->profile->username }}]]></name>
  28. </author>
  29. <summary type="html">
  30. <![CDATA[
  31. <img id="rss_item_{{$loop->iteration}}" src="{{ $item->thumb() }}">
  32. <p style="padding:10px;">{{ $item->caption }}</p>
  33. ]]>
  34. </summary>
  35. <updated>{{ $item->updated_at->toAtomString() }}</updated>
  36. </entry>
  37. @endforeach
  38. </feed>