[ Index ]
 

Code source de Serendipity 1.2

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/templates/default/ -> feed_atom1.0.tpl (source)

   1  <?xml version="1.0" encoding="utf-8" ?>
   2  <?xml-stylesheet href="{serendipity_getFile file='atom.css'}" type="text/css" ?>
   3  
   4  <feed {$namespace_display_dat}
   5     xmlns="http://www.w3.org/2005/Atom"
   6     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   7     xmlns:dc="http://purl.org/dc/elements/1.1/"
   8     xmlns:admin="http://webns.net/mvcb/"
   9     xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  10     xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  11      <link href="{$self_url}" rel="self" title="{$metadata.title}" type="application/atom+xml" />
  12      <link href="{$serendipityBaseURL}"                        rel="alternate"    title="{$metadata.title}" type="text/html" />
  13      <link href="{$serendipityBaseURL}rss.php?version=2.0"     rel="alternate"    title="{$metadata.title}" type="application/rss+xml" />
  14      <title type="html">{$metadata.title}</title>
  15      <subtitle type="html">{$metadata.description}</subtitle>
  16      {$metadata.additional_fields.image_atom10}
  17      <id>{$metadata.link}</id>
  18      <updated>{$last_modified}</updated>
  19      <generator uri="http://www.s9y.org/" version="{$serendipityVersion}">Serendipity {$serendipityVersion} - http://www.s9y.org/</generator>
  20      <dc:language>{$metadata.language}</dc:language>
  21  {if $metadata.showMail}
  22      <admin:errorReportsTo rdf:resource="mailto:{$metadata.email}" />
  23  {/if}
  24  
  25  {foreach from=$entries item="entry"}
  26      <entry>
  27          <link href="{$entry.feed_entryLink}{if $is_comments}#c{$entry.commentid}{/if}" rel="alternate" title="{$entry.feed_title}" />
  28          <author>
  29              <name>{$entry.feed_author}</name>
  30              <email>{$entry.feed_email}</email>
  31          </author>
  32      
  33          <published>{$entry.feed_timestamp}</published>
  34          <updated>{$entry.feed_last_modified}</updated>
  35          <wfw:comment>{$serendipityBaseURL}wfwcomment.php?cid={$entry.feed_id}</wfw:comment>
  36      
  37  {if !$is_comments}
  38          <slash:comments>{$entry.comments}</slash:comments>
  39          <wfw:commentRss>{$serendipityBaseURL}rss.php?version={$metadata.version}&amp;type=comments&amp;cid={$entry.feed_id}</wfw:commentRss>
  40  {/if}
  41      
  42      {foreach from=$entry.categories item="cat"}
  43          <category scheme="{$cat.categoryURL}" label="{$cat.feed_category_name}" term="{$cat.feed_category_name}" />
  44      {/foreach}
  45  
  46          <id>{$entry.feed_guid}</id>
  47          <title type="html">{$entry.feed_title}</title>
  48  {if !empty($entry.body)}
  49          <content type="xhtml" xml:base="{$serendipityBaseURL}">
  50              <div xmlns="http://www.w3.org/1999/xhtml">
  51                  {$entry.feed_body} {$entry.feed_ext}
  52              </div>
  53          </content>
  54  {/if}
  55          {$entry.per_entry_display_dat}
  56      </entry>
  57  {/foreach}
  58  
  59  </feed>


Généré le : Sat Nov 24 09:00:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics