]> git.mxchange.org Git - friendica.git/blob - view/smarty3/api_timeline_atom.tpl
Implement Smarty3
[friendica.git] / view / smarty3 / api_timeline_atom.tpl
1 <feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:georss="http://www.georss.org/georss" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:media="http://purl.org/syndication/atommedia" xmlns:poco="http://portablecontacts.net/spec/1.0" xmlns:ostatus="http://ostatus.org/schema/1.0" xmlns:statusnet="http://status.net/schema/api/1/">
2  <generator uri="http://status.net" version="0.9.7">StatusNet</generator>
3  <id>{{$rss.self}}</id>
4  <title>Friendica</title>
5  <subtitle>Friendica API feed</subtitle>
6  <logo>{{$rss.logo}}</logo>
7  <updated>{{$rss.atom_updated}}</updated>
8  <link type="text/html" rel="alternate" href="{{$rss.alternate}}"/>
9  <link type="application/atom+xml" rel="self" href="{{$rss.self}}"/>
10  
11  
12  <author>
13         <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
14         <uri>{{$user.url}}</uri>
15         <name>{{$user.name}}</name>
16         <link rel="alternate" type="text/html" href="{{$user.url}}"/>
17         <link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
18         <link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
19         <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
20         <link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
21         <georss:point></georss:point>
22         <poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
23         <poco:displayName>{{$user.name}}</poco:displayName>
24         <poco:urls>
25                 <poco:type>homepage</poco:type>
26                 <poco:value>{{$user.url}}</poco:value>
27                 <poco:primary>true</poco:primary>
28         </poco:urls>
29         <statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
30  </author>
31
32  <!--Deprecation warning: activity:subject is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
33  <activity:subject>
34         <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
35         <id>{{$user.contact_url}}</id>
36         <title>{{$user.name}}</title>
37         <link rel="alternate" type="text/html" href="{{$user.url}}"/>
38         <link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="{{$user.profile_image_url}}"/>
39         <link rel="avatar" type="image/jpeg" media:width="96" media:height="96" href="{{$user.profile_image_url}}"/>
40         <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$user.profile_image_url}}"/>
41         <link rel="avatar" type="image/jpeg" media:width="24" media:height="24" href="{{$user.profile_image_url}}"/>
42         <poco:preferredUsername>{{$user.screen_name}}</poco:preferredUsername>
43         <poco:displayName>{{$user.name}}</poco:displayName>
44         <poco:urls>
45                 <poco:type>homepage</poco:type>
46                 <poco:value>{{$user.url}}</poco:value>
47                 <poco:primary>true</poco:primary>
48         </poco:urls>
49         <statusnet:profile_info local_id="{{$user.id}}"></statusnet:profile_info>
50  </activity:subject>
51  
52  
53         {{foreach $statuses as $status}}
54         <entry>
55                 <activity:object-type>{{$status.objecttype}}</activity:object-type>
56                 <id>{{$status.message_id}}</id>
57                 <title>{{$status.text}}</title>
58                 <content type="html">{{$status.statusnet_html}}</content>
59                 <link rel="alternate" type="text/html" href="{{$status.url}}"/>
60                 <activity:verb>{{$status.verb}}</activity:verb>
61                 <published>{{$status.published}}</published>
62                 <updated>{{$status.updated}}</updated>
63
64                 <link rel="self" type="application/atom+xml" href="{{$status.self}}"/>
65                 <link rel="edit" type="application/atom+xml" href="{{$status.edit}}"/>
66                 <statusnet:notice_info local_id="{{$status.id}}" source="{{$status.source}}" >
67                 </statusnet:notice_info>
68
69                 <author>
70                         <activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
71                         <uri>{{$status.user.url}}</uri>
72                         <name>{{$status.user.name}}</name>
73                         <link rel="alternate" type="text/html" href="{{$status.user.url}}"/>
74                         <link rel="avatar" type="image/jpeg" media:width="48" media:height="48" href="{{$status.user.profile_image_url}}"/>
75
76                         <georss:point/>
77                         <poco:preferredUsername>{{$status.user.screen_name}}</poco:preferredUsername>
78                         <poco:displayName>{{$status.user.name}}</poco:displayName>
79                         <poco:address/>
80                         <poco:urls>
81                                 <poco:type>homepage</poco:type>
82                                 <poco:value>{{$status.user.url}}</poco:value>
83                                 <poco:primary>true</poco:primary>
84                         </poco:urls>
85                 </author>
86                 <link rel="ostatus:conversation" type="text/html" href="{{$status.url}}"/> 
87
88         </entry>    
89     {{/foreach}}
90 </feed>