({php})
header('Content-type: text/xml');
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
({/php})
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
    <title type="text">({$smarty.const.SNS_NAME})</title>
    <subtitle type="text">({$description})</subtitle>
    <link rel="alternate" type="text/html" href="({$smarty.const.OPENPNE_URL})" />
    <link rel="self" type="application/atom+xml" href="({$smarty.const.OPENPNE_URL})?m=diary&amp;a=page_home_rss_atom" />
    <modified>({$date|date_format:"%Y-%m-%dT%H:%M:%S+0900"})</modified>
    <rights>Copyright 2007 ({$smarty.const.SNS_NAME})</rights>
    <generator uri="http://nx2.jp/" version="0.0.1">OpenDiary</generator>
({foreach from=$c_diary_list item=key})
    <entry>
      <title>({$key.subject})</title>
      <link rel="alternate" type="text/html" href="({$smarty.const.OPENPNE_URL})?m=diary&amp;a=page_detail&amp;target_c_diary_id=({$key.c_diary_id})" />
      <id>({$smarty.const.OPENPNE_URL})?m=diary&amp;a=page_detail&amp;target_c_diary_id=({$key.c_diary_id})</id>

      <published>({$key.r_datetime|date_format:"%Y-%m-%dT%H:%M:%S+0900"})</published>
      <updated>({$key.r_datetime|date_format:"%Y-%m-%dT%H:%M:%SZ"})</updated>
      <content type="html"><![CDATA[
({if $key.image_filename_1})
              <img src="({t_img_url filename=$key.image_filename_1 w=120 h=120})" />
({/if})
({if $key.image_filename_2})
              <img src="({t_img_url filename=$key.image_filename_2 w=120 h=120})" />
({/if})
({if $key.image_filename_3})
              <img src="({t_img_url filename=$key.image_filename_3 w=120 h=120})" />
({/if})<br />
              ({$key.body|t_truncate:500})

      ]]></content>
    </entry>
({/foreach})
</feed>
