A tumblelog CMS built on AJAX, PHP and MySQL.

api.xml 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {header Content-type: text/xml; charset=utf-8}
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <sorbet version="1.0">
  4. <tumblelog name="{username}" timezone="{conf.offsetCity}" title="{conf.title}">
  5. {conf.description}
  6. <feeds>
  7. {block $feeds as $feed}
  8. <feed id="{$feed.id_feed}" url="{$feed.url}" import-type="{$feed.type}" next-update-in-seconds="{$feed.getNextUpdate}" title="{$feed.title}" error-text="{$feed.error_text}" />
  9. {/block}
  10. </feeds>
  11. </tumblelog>
  12. {if $totalRegistros}
  13. <posts start="{start}" total="{total}">
  14. {block $posts as $post}
  15. {if $post.type=='post'}
  16. <post id="{$post.id_post}" url="{$post.url}" type="regular" date="{$post.formatedDate}">
  17. <regular-title>{$post.tit}</regular-title>
  18. <regular-body>{$post.desc}</regular-body>
  19. </post>
  20. {elseif $post.type=='photo'}
  21. <post id="{$post.id_post}" url="{$post.url}" type="photo" date="{$post.formatedDate}">
  22. <photo-caption>{$post.tit}</photo-caption>
  23. <photo-url>{$post.photoPath}</photo-url>
  24. </post>
  25. {elseif $post.type=='quote'}
  26. <post id="{$post.id_post}" url="{$post.url}" type="quote" date="{$post.formatedDate}">
  27. <quote-text>{$post.desc}</quote-text>
  28. <quote-source>{$post.title}</quote-source>
  29. </post>
  30. {elseif $post.type=='url'}
  31. <post id="{$post.id_post}" url="{$post.url}" type="link" date="{$post.formatedDate}">
  32. <link-text>{$post.tit}</link-text>
  33. <link-url>{$post.url}</link-url>
  34. </post>
  35. {elseif $post.type=='conversation'}
  36. <post id="{$post.id_post}" url="{$post.url}" type="conversation" date="{$post.formatedDate}">
  37. <conversation-title>{$post.tit}</conversation-title>
  38. <conversation-text>{$post.desc}</conversation-text>
  39. {$post.descAPIFormat}
  40. </post>
  41. {elseif $post.type=='video'}
  42. <post id="{$post.id_post}" url="{$post.url}" type="video" date="{$post.formatedDate}">
  43. <video-caption>{$post.tit}</video-caption>
  44. <video-source>{$post.url}</video-source>
  45. <video-player>{$post.desc}</video-player>
  46. </post>
  47. {elseif $post.type=='mp3'}
  48. <post id="{$post.id_post}" url="{$post.url}" type="audio" date="{$post.formatedDate}">
  49. <audio-caption>{$post.tit}</audio-caption>
  50. <audio-player>{$post.desc}</audio-player>
  51. </post>
  52. {/if}
  53. {/block}
  54. </posts>
  55. {/if}
  56. </sorbet>