1
1
Fork 0

change atom templates

This commit is contained in:
Mike Macgirvin 2010-07-14 23:03:23 -07:00
parent 4631a3c282
commit 43f8dd6802
5 changed files with 46 additions and 25 deletions

15
view/atom_cmnt.tpl Normal file
View file

@ -0,0 +1,15 @@
<entry>
<author>
<name>$name</name>
<uri>$profile_page</uri>
<dfrn:avatar>$thumb</dfrn:avatar>
</author>
<thr:in-reply-to ref="$parent_id" />
<id>$item_id</id>
<title>$title</title>
<updated>$updated</updated>
<content>$content</content>
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
</entry>

14
view/atom_feed.tpl Normal file
View file

@ -0,0 +1,14 @@
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:at="http://purl.org/atompub/tombstones/1.0"
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0" >
<id>$feed_id</id>
<title>$feed_title</title>
<updated>$feed_updated</updated>
<author>
<name>$name</name>
<uri>$profile_page</uri>
<dfrn:avatar>$photo</dfrn:avatar>
</author>

14
view/atom_item.tpl Normal file
View file

@ -0,0 +1,14 @@
<entry>
<author>
<name>$name</name>
<uri>$profile_page</uri>
<dfrn:avatar>$thumb</dfrn:avatar>
</author>
<id>$item_id</id>
<title>$title</title>
<published>$published</published>
<updated>$updated</updated>
<content>$content</content>
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
</entry>

3
view/atom_tomb.tpl Normal file
View file

@ -0,0 +1,3 @@
<at:deleted-entry ref="$id" when="$updated" />

View file

@ -1,25 +0,0 @@
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:foaf="http://xmlns.com/foaf/0.1"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:at="http://purl.org/atompub/tombstones/1.0"
>
<id>$feed_id</id>
<title>$feed_title</title>
<updated>$feed_updated</updated>
<author>
<name>$name</name>
<foaf:homepage rdf:resource="$profile_page" />
<foaf:img rdf:resource="$thumb" />
</author>
<entry>
<id>$item_id</id>
<title>$title</title>
<link href="$link" />
<updated>$updated</updated>
<summary>$summary</summary>
<content type="text/plain" >$content</content>
</entry>
</feed>