Skip to content

Instantly share code, notes, and snippets.

@tsudot
Created April 12, 2010 05:31
Show Gist options
  • Save tsudot/363295 to your computer and use it in GitHub Desktop.
Save tsudot/363295 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:georss="http://www.georss.org/georss">
<channel>
<title>Public Timeline</title>
<link>{$cfg->site_url}{$cfg->site_root_path}public.php?v={$option}</link>
<atom:link type="application/rss+xml" href="{$cfg->site_url}{$cfg->site_root_path}rss.php?v={$option}" rel="self"/>
<description>The latest from ThinkTank</description>
<language>en</language>
{foreach item=post from=$posts}
<item>
<title>{$post->author_username}:{$post->post_text}</title>
<description>{$post->author_username}:{$post->post_text}</description>
<guid>{$cfg->site_url}{$cfg->site_root_path}public.php?t={$post->post_id}</guid>
<link>{$cfg->site_url}{$cfg->site_root_path}public.php?t={$post->post_id}</link>
</item>
{/foreach}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment