aboutsummaryrefslogtreecommitdiff
path: root/templates/atomitem.tmpl
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-01 06:45:59 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-11-01 06:45:59 +0000
commit369cf45ace663f42960cea72f87e669ea81979cd (patch)
tree45cd7a205266435dae8e3e7afb455cf98601be9d /templates/atomitem.tmpl
parentf8dbe2657cb4ed768815c5cf699ecb922e796934 (diff)
downloadikiwiki-369cf45ace663f42960cea72f87e669ea81979cd.tar
ikiwiki-369cf45ace663f42960cea72f87e669ea81979cd.tar.gz
* Patch from James Westby to support podcasting, photoblogging, vidcasting,
or what have you, by creating enclosures for non-page items that are included in feeds.
Diffstat (limited to 'templates/atomitem.tmpl')
-rw-r--r--templates/atomitem.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/atomitem.tmpl b/templates/atomitem.tmpl
index e0f7bb4f9..005519296 100644
--- a/templates/atomitem.tmpl
+++ b/templates/atomitem.tmpl
@@ -12,9 +12,13 @@
</TMPL_LOOP>
</TMPL_IF>
<updated><TMPL_VAR DATE_3339></updated>
+ <TMPL_IF NAME="ENCLOSURE">
+ <link rel="enclosure" type="<TMPL_VAR TYPE>" href="<TMPL_VAR ENCLOSURE>" length="<TMPL_VAR LENGTH>" />
+ <TMPL_ELSE>
<content type="xhtml" xml:lang="en">
<div xmlns="http://www.w3.org/1999/xhtml">
![CDATA[<TMPL_VAR CONTENT>]]
</div>
</content>
+ </TMPL_IF>
</entry>