Removed (now) unused templates
authorMichael Vogel <icarus@dabo.de>
Tue, 19 Jul 2016 06:46:41 +0000 (08:46 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 19 Jul 2016 06:46:41 +0000 (08:46 +0200)
view/templates/api_config_xml.tpl [deleted file]
view/templates/api_friends_xml.tpl [deleted file]
view/templates/api_photo_detail_xml.tpl [deleted file]
view/templates/api_photos_list_xml.tpl [deleted file]
view/templates/api_ratelimit_xml.tpl [deleted file]
view/templates/api_single_status_xml.tpl [deleted file]
view/templates/api_status_xml.tpl [deleted file]
view/templates/api_test_xml.tpl [deleted file]
view/templates/api_timeline_rss.tpl [deleted file]
view/templates/api_timeline_xml.tpl [deleted file]
view/templates/api_user_xml.tpl [deleted file]

diff --git a/view/templates/api_config_xml.tpl b/view/templates/api_config_xml.tpl
deleted file mode 100644 (file)
index 3673e2a..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-
-<config>
- <site>
-  <name>{{$config.site.name}}</name>
-  <server>{{$config.site.server}}</server>
-  <theme>default</theme>
-  <path></path>
-  <logo>{{$config.site.logo}}</logo>
-
-  <fancy>true</fancy>
-  <language>en</language>
-  <email>{{$config.site.email}}</email>
-  <broughtby></broughtby>
-  <broughtbyurl></broughtbyurl>
-  <timezone>UTC</timezone>
-  <closed>{{$config.site.closed}}</closed>
-
-  <inviteonly>false</inviteonly>
-  <private>{{$config.site.private}}</private>
-  <textlimit>{{$config.site.textlimit}}</textlimit>
-  <ssl>{{$config.site.ssl}}</ssl>
-  <sslserver>{{$config.site.sslserver}}</sslserver>
-  <shorturllength>30</shorturllength>
-
-</site>
- <license>
-  <type>cc</type>
-  <owner></owner>
-  <url>http://creativecommons.org/licenses/by/3.0/</url>
-  <title>Creative Commons Attribution 3.0</title>
-  <image>http://i.creativecommons.org/l/by/3.0/80x15.png</image>
-
-</license>
- <nickname>
-  <featured></featured>
-</nickname>
- <profile>
-  <biolimit></biolimit>
-</profile>
- <group>
-  <desclimit></desclimit>
-</group>
- <notice>
-
-  <contentlimit></contentlimit>
-</notice>
- <throttle>
-  <enabled>false</enabled>
-  <count>20</count>
-  <timespan>600</timespan>
-</throttle>
- <xmpp>
-
-  <enabled>false</enabled>
-  <server>INVALID SERVER</server>
-  <port>5222</port>
-  <user>update</user>
-</xmpp>
- <integration>
-  <source>StatusNet</source>
-
-</integration>
- <attachments>
-  <uploads>false</uploads>
-  <file_quota>0</file_quota>
-</attachments>
-</config>
diff --git a/view/templates/api_friends_xml.tpl b/view/templates/api_friends_xml.tpl
deleted file mode 100644 (file)
index 4c9f7e6..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-{{* used in include/api.php 'api_statuses_friends' and 'api_statuses_followers' *}}
-<users type="array">
-       {{foreach $users as $u}}
-       <user>{{include file="api_user_xml.tpl" user=$u}}</user>
-       {{/foreach}}
-</users>
diff --git a/view/templates/api_photo_detail_xml.tpl b/view/templates/api_photo_detail_xml.tpl
deleted file mode 100644 (file)
index 0b06029..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-
-<photo>
-       <id>{{$photo.id}}</id>
-       <created>{{$photo.created}}</created>
-       <edited>{{$photo.edited}}</edited>
-       <title>{{$photo.title}}</title>
-       <desc>{{$photo.desc}}</desc>
-       <album>{{$photo.album}}</album>
-       <filename>{{$photo.filename}}</filename>
-       <type>{{$photo.type}}</type>
-       <height>{{$photo.height}}</height>
-       <width>{{$photo.width}}</width>
-       <datasize>{{$photo.datasize}}</datasize>
-       <profile>1</profile>
-       <links type="array">{{foreach $photo.link as $scale => $url}}
-               <link type="{{$photo.type}}" scale="{{$scale}}" href="{{$url}}" />
-       {{/foreach}}</links>
-       {{if $photo.data}}
-       <data encode="base64">{{$photo.data}}</data>
-       {{/if}}
-</photo>
diff --git a/view/templates/api_photos_list_xml.tpl b/view/templates/api_photos_list_xml.tpl
deleted file mode 100644 (file)
index 1478e02..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-
-<photos type="array">
-{{foreach $photos as $photo}}
-       <photo id="{{$photo.id}}" album="{{$photo.album}}" filename="{{$photo.filename}}" type="{{$photo.type}}">{{$photo.thumb}}</photo>
-{{/foreach}}</photos>
diff --git a/view/templates/api_ratelimit_xml.tpl b/view/templates/api_ratelimit_xml.tpl
deleted file mode 100644 (file)
index 5c3986b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-
-<hash>
- <remaining-hits type="integer">{{$hash.remaining_hits}}</remaining-hits>
- <hourly-limit type="integer">{{$hash.hourly_limit}}</hourly-limit>
- <reset-time type="datetime">{{$hash.reset_time}}</reset-time>
- <reset_time_in_seconds type="integer">{{$hash.resettime_in_seconds}}</reset_time_in_seconds>
-</hash>
diff --git a/view/templates/api_single_status_xml.tpl b/view/templates/api_single_status_xml.tpl
deleted file mode 100644 (file)
index 88c56f9..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-{{* shared structure for statuses. includers must define root element *}}
-  <text>{{$status.text}}</text>
-  <truncated>{{$status.truncated}}</truncated>
-  <created_at>{{$status.created_at}}</created_at>
-  <in_reply_to_status_id>{{$status.in_reply_to_status_id}}</in_reply_to_status_id>
-  <source>{{$status.source}}</source>
-  <id>{{$status.id}}</id>
-  <in_reply_to_user_id>{{$status.in_reply_to_user_id}}</in_reply_to_user_id>
-  <in_reply_to_screen_name>{{$status.in_reply_to_screen_name}}</in_reply_to_screen_name>
-  <geo>{{$status.geo}}</geo>
-  <favorited>{{$status.favorited}}</favorited>
-       <user>{{include file="api_user_xml.tpl" user=$status.user}}</user>
-       <friendica:owner>{{include file="api_user_xml.tpl" user=$status.friendica_owner}}</friendica:owner>
-  <statusnet:html>{{$status.statusnet_html}}</statusnet:html>
-  <statusnet:conversation_id>{{$status.statusnet_conversation_id}}</statusnet:conversation_id>
-  <url>{{$status.url}}</url>
-  <coordinates>{{$status.coordinates}}</coordinates>
-  <place>{{$status.place}}</place>
-  <contributors>{{$status.contributors}}</contributors>
-  {{if $status.retweeted_status}}<retweeted_status>{{include file="api_single_status_xml.tpl" status=$status.retweeted_status}}</retweeted_status>{{/if}}
-  <friendica:activities>
-    {{foreach $status.friendica_activities as $k=>$v}}
-    <friendica:{{$k}}>{{$v|count}}</friendica:{{$k}}>
-    {{/foreach}}
-  </friendica:activities>
\ No newline at end of file
diff --git a/view/templates/api_status_xml.tpl b/view/templates/api_status_xml.tpl
deleted file mode 100644 (file)
index a382810..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-{{* used in api.php to return a single status *}}
-<status
-       xmlns:statusnet="http://status.net/schema/api/1/"
-       xmlns:friendica="http://friendi.ca/schema/api/1/">
-       {{if $status}}
-       {{include file="api_single_status_xml.tpl" status=$status}}
-       {{/if}}
-</status>
diff --git a/view/templates/api_test_xml.tpl b/view/templates/api_test_xml.tpl
deleted file mode 100644 (file)
index ad648fc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-
-<ok>{{$ok}}</ok>
diff --git a/view/templates/api_timeline_rss.tpl b/view/templates/api_timeline_rss.tpl
deleted file mode 100644 (file)
index 7b08ecd..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-
-<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:twitter="http://api.twitter.com">
-  <channel>
-    <title>Friendica</title>
-    <link>{{$rss.alternate}}</link>
-    <atom:link type="application/rss+xml" rel="self" href="{{$rss.self}}"/>
-    <description>Friendica timeline</description>
-    <language>{{$rss.language}}</language>
-    <ttl>40</ttl>
-       <image>
-               <link>{{$user.link}}</link>
-               <title>{{$user.name}}'s items</title>
-               <url>{{$user.profile_image_url}}</url>
-       </image>
-       
-{{foreach $statuses as $status}}
-  <item>
-    <title>{{$status.user.name}}: {{$status.text}}</title>
-    <description>{{$status.text}}</description>
-    <pubDate>{{$status.created_at}}</pubDate>
-    <guid>{{$status.url}}</guid>
-    <link>{{$status.url}}</link>
-    <twitter:source>{{$status.source}}</twitter:source>
-  </item>
-{{/foreach}}
-  </channel>
-</rss>
diff --git a/view/templates/api_timeline_xml.tpl b/view/templates/api_timeline_xml.tpl
deleted file mode 100644 (file)
index 01b71c0..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-<statuses type="array"
-       xmlns:statusnet="http://status.net/schema/api/1/"
-       xmlns:friendica="http://friendi.ca/schema/api/1/">
-{{foreach $statuses as $status}}
- <status>
-       {{include file="api_single_status_xml.tpl" status=$status}}
- </status>
-{{/foreach}}
-</statuses>
diff --git a/view/templates/api_user_xml.tpl b/view/templates/api_user_xml.tpl
deleted file mode 100644 (file)
index 698c543..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-{{* includer template MUST provide root element *}}
-
-   <id>{{$user.id}}</id>
-   <name>{{$user.name}}</name>
-   <screen_name>{{$user.screen_name}}</screen_name>
-   <location>{{$user.location}}</location>
-   <description>{{$user.description}}</description>
-   <profile_image_url>{{$user.profile_image_url}}</profile_image_url>
-   <url>{{$user.url}}</url>
-   <protected>{{$user.protected}}</protected>
-   <followers_count>{{$user.followers_count}}</followers_count>
-   <friends_count>{{$user.friends_count}}</friends_count>
-   <created_at>{{$user.created_at}}</created_at>
-   <favourites_count>{{$user.favourites_count}}</favourites_count>
-   <utc_offset>{{$user.utc_offset}}</utc_offset>
-   <time_zone>{{$user.time_zone}}</time_zone>
-   <statuses_count>{{$user.statuses_count}}</statuses_count>
-   <following>{{$user.following}}</following>
-   <profile_background_color>{{$user.profile_background_color}}</profile_background_color>
-   <profile_text_color>{{$user.profile_text_color}}</profile_text_color>
-   <profile_link_color>{{$user.profile_link_color}}</profile_link_color>
-   <profile_sidebar_fill_color>{{$user.profile_sidebar_fill_color}}</profile_sidebar_fill_color>
-   <profile_sidebar_border_color>{{$user.profile_sidebar_border_color}}</profile_sidebar_border_color>
-   <profile_background_image_url>{{$user.profile_background_image_url}}</profile_background_image_url>
-   <profile_background_tile>{{$user.profile_background_tile}}</profile_background_tile>
-   <profile_use_background_image>{{$user.profile_use_background_image}}</profile_use_background_image>
-   <notifications>{{$user.notifications}}</notifications>
-   <geo_enabled>{{$user.geo_enabled}}</geo_enabled>
-   <verified>{{$user.verified}}</verified>
-   <lang>{{$user.lang}}</lang>
-   <contributors_enabled>{{$user.contributors_enabled}}</contributors_enabled>
-   <status>{{if $user.status}}
-    <created_at>{{$user.status.created_at}}</created_at>
-    <id>{{$user.status.id}}</id>
-    <text>{{$user.status.text}}</text>
-    <source>{{$user.status.source}}</source>
-    <truncated>{{$user.status.truncated}}</truncated>
-    <in_reply_to_status_id>{{$user.status.in_reply_to_status_id}}</in_reply_to_status_id>
-    <in_reply_to_user_id>{{$user.status.in_reply_to_user_id}}</in_reply_to_user_id>
-    <favorited>{{$user.status.favorited}}</favorited>
-    <in_reply_to_screen_name>{{$user.status.in_reply_to_screen_name}}</in_reply_to_screen_name>
-    <geo>{{$user.status.geo}}</geo>
-    <coordinates>{{$user.status.coordinates}}</coordinates>
-    <place>{{$user.status.place}}</place>
-    <contributors>{{$user.status.contributors}}</contributors>
-  {{/if}}</status>
-