diff options
author | Pascal Chevrel <pascal@chevrel.org> | 2012-05-05 20:07:55 +0200 |
---|---|---|
committer | Pascal Chevrel <pascal@chevrel.org> | 2012-05-05 20:07:55 +0200 |
commit | a34d1438e2d21abb13e41a731aff3edf5078d13d (patch) | |
tree | 227f3bbb23f50429e5bafe5362976899f1ad9556 /custom/views | |
parent | 761d59cf010bb554d6a8057731de99b03f44715e (diff) | |
download | planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar.gz planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar.bz2 planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.tar.xz planet-a34d1438e2d21abb13e41a731aff3edf5078d13d.zip |
add an <updated> element to atom feed <entry> using the same value as <published>, this is required for validation and for compatibility with feed agregators that may check for the <updated> field
Diffstat (limited to 'custom/views')
-rw-r--r-- | custom/views/atom10/index.tpl.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php index b2ecbaf..23f3163 100644 --- a/custom/views/atom10/index.tpl.php +++ b/custom/views/atom10/index.tpl.php @@ -20,6 +20,7 @@ echo '<?xml version="1.0" encoding="UTF-8" ?>'; <id><?php echo htmlspecialchars($item->get_permalink());?></id> <link rel="alternate" href="<?php echo htmlspecialchars($item->get_permalink());?>"/> <published><?php echo $item->get_date('Y-m-d\\TH:i:s+00:00'); ?></published> + <updated><?php echo $item->get_date('Y-m-d\\TH:i:s+00:00'); ?></updated> <author><name><?php echo ($item->get_author()? $item->get_author()->get_name() : 'anonymous'); ?></name></author> <content type="html"><![CDATA[<?php echo $item->get_content();?>]]></content> |