]> git.mxchange.org Git - friendica.git/blob - view/poco_xml.tpl
59b8e8a958bc90001a853263c3c718008eac4c43
[friendica.git] / view / poco_xml.tpl
1 <?xml version="1.0" encoding="utf-8"?>
2 <response>
3
4 {{ if $response.sorted }}<sorted>$response.sorted</sorted>{{ endif }}
5 {{ if $response.filtered }}<filtered>$response.filtered</filtered>{{ endif }}
6 {{ if $response.updatedSince }}<updatedSince>$response.updatedSince</updatedSince>{{ endif }}
7 {{ if $response.startIndex }}<startIndex>$response.startIndex</startIndex>{{ endif }}
8 {{ if $response.itemsPerPage }}<itemsPerPage>$response.itemsPerPage</itemsPerPage>{{ endif }}
9 {{ if $response.totalResults }}<totalResults>$response.totalResults</totalResults>{{ endif }}
10
11 {{ for $response.entry as $ent }}
12 <entry>
13 {{ if $ent.id }}<id>$ent.id</id>{{ endif }}
14 {{ if $ent.displayName }}<displayName>$ent.displayName</displayName>{{ endif }}
15 {{ if $ent.preferredName }}<preferredName>$ent.preferredName</preferredName>{{ endif }}
16 {{ if $ent.urls }}<urls><value>$ent.urls.value</value><type>$ent.urls.type</type></urls>{{ endif }}
17 {{ if $ent.photos }}<photos><value>$ent.photos.value</value><type><$ent.photos.type></type></photos>{{ endif }}
18 </entry>
19 {{ endfor }}
20
21 </response>