Browse Source

change atom templates

pull/1/head
Mike Macgirvin 10 years ago
parent
commit
43f8dd6802
5 changed files with 46 additions and 25 deletions
  1. +15
    -0
      view/atom_cmnt.tpl
  2. +14
    -0
      view/atom_feed.tpl
  3. +14
    -0
      view/atom_item.tpl
  4. +3
    -0
      view/atom_tomb.tpl
  5. +0
    -25
      view/atomic.tpl

+ 15
- 0
view/atom_cmnt.tpl 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
- 0
view/atom_feed.tpl 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
- 0
view/atom_item.tpl 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
- 0
view/atom_tomb.tpl View File

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

+ 0
- 25
view/atomic.tpl 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>

Loading…
Cancel
Save