]> git.mxchange.org Git - friendica.git/blobdiff - view/poco_xml.tpl
this is going to take some more debug before it can be roller out
[friendica.git] / view / poco_xml.tpl
index 59b8e8a958bc90001a853263c3c718008eac4c43..9549b695d1966450827081777daf2b3911fc4c39 100644 (file)
@@ -1,21 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>
 <response>
-
 {{ if $response.sorted }}<sorted>$response.sorted</sorted>{{ endif }}
 {{ if $response.filtered }}<filtered>$response.filtered</filtered>{{ endif }}
 {{ if $response.updatedSince }}<updatedSince>$response.updatedSince</updatedSince>{{ endif }}
-{{ if $response.startIndex }}<startIndex>$response.startIndex</startIndex>{{ endif }}
-{{ if $response.itemsPerPage }}<itemsPerPage>$response.itemsPerPage</itemsPerPage>{{ endif }}
-{{ if $response.totalResults }}<totalResults>$response.totalResults</totalResults>{{ endif }}
+<startIndex>$response.startIndex</startIndex>
+<itemsPerPage>$response.itemsPerPage</itemsPerPage>
+<totalResults>$response.totalResults</totalResults>
 
-{{ for $response.entry as $ent }}
-<entry>
-{{ if $ent.id }}<id>$ent.id</id>{{ endif }}
-{{ if $ent.displayName }}<displayName>$ent.displayName</displayName>{{ endif }}
-{{ if $ent.preferredName }}<preferredName>$ent.preferredName</preferredName>{{ endif }}
-{{ if $ent.urls }}<urls><value>$ent.urls.value</value><type>$ent.urls.type</type></urls>{{ endif }}
-{{ if $ent.photos }}<photos><value>$ent.photos.value</value><type><$ent.photos.type></type></photos>{{ endif }}
-</entry>
-{{ endfor }}
 
+{{ if $response.totalResults }}
+{{ for $response.entry as $entry }}
+{{ inc poco_entry_xml.tpl }}{{ endinc }}
+{{ endfor }}
+{{ else }}
+<entry></entry>
+{{ endif }}
 </response>