Internationalize opml and rss strings
[gitphp.git] / templates / rss.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{*
 *  rss.tpl
 *  gitphp: A PHP git repository browser
 *  Component: RSS template
 *
 *  Copyright (C) 2009 Christopher Han <xiphux@gmail.com>
 *}
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>{$project}</title>
    <link>{$self}?p={$project}&amp;a=summary</link>
    <description>{$project} log</description>
    <language>en</language>

    {section name=rssitem loop=$commitlines}
      <item>
        <title>{$commitlines[rssitem].cdmday} {$commitlines[rssitem].cdmonth} {$commitlines[rssitem].cdhour}:{$commitlines[rssitem].cdminute} - {$commitlines[rssitem].title|escape:'htmlall'}</title>
        <author>{$commitlines[rssitem].author|escape:'htmlall'}</author>
        <pubDate>{$commitlines[rssitem].cdrfc2822}</pubDate>
        <guid isPermaLink="true">{$self}?p={$project}&amp;a=commit&amp;h={$commitlines[rssitem].commit}</guid>
        <link>{$self}?p={$project}&amp;a=commit&amp;h={$commitlines[rssitem].commit}</link>
        <description>{$commitlines[rssitem].title|escape:'htmlall'}</description>
        <content:encoded>
          <![CDATA[
          {foreach from=$commitlines[rssitem].comment item=line}
            {$line}<br />
          {/foreach}
          {foreach from=$commitlines[rssitem].difftree item=line}
            {$line}<br />
          {/foreach}
          ]]>
        </content:encoded>
      </item>
    {/section}

  </channel>
</rss>

comments