user.blade.php 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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>{{$permalink}}</id>
  7. <title>{{$profile['username']}} on Pixelfed</title>
  8. <subtitle type="html">{{$profile['note']}}</subtitle>
  9. <updated>{{$profile['created_at']}}</updated>
  10. <author>
  11. <uri>{{$profile['url']}}</uri>
  12. <name>{{$profile['url']}}</name>
  13. </author>
  14. <link rel="alternate" type="text/html" href="{{$profile['url']}}"/>
  15. <link rel="self" type="application/atom+xml" href="{{$permalink}}"/>
  16. @foreach($items as $item) <entry>
  17. <title>{{ $item['content'] ? strip_tags($item['content']) : "No caption" }}</title>
  18. <link rel="alternate" href="{{ $item['url'] }}" />
  19. <id>{{ $item['url'] }}</id>
  20. <author>
  21. <name> <![CDATA[{{ $profile['username'] }}]]></name>
  22. </author>
  23. <summary type="html">
  24. <![CDATA[
  25. <img id="rss_item_{{$loop->iteration}}" src="{{ $item['media_attachments'][0]['url'] }}" alt="{{ $item['media_attachments'][0]['description'] }}">
  26. <p style="padding:10px;">{{ $item['content'] }}</p>
  27. ]]>
  28. </summary>
  29. <updated>{{ $item['created_at'] }}</updated>
  30. </entry>
  31. @endforeach
  32. </feed>