views-atom-tombstone.tpl.php in Views Atom 7
File
views-atom-tombstone.tpl.php
View source
<?php
print "<?xml";
?> version="1.0" encoding="utf-8" <?php
print "?>";
?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:at="http://purl.org/atompub/tombstones/1.0">
<title><?php
print $title;
?></title>
<link href="<?php
print $feed_url;
?>" />
<?php
if ($use_push) {
?>
<link rel="hub" href="<?php
echo $hub_url;
?>" />
<?php
}
?>
<updated><?php
echo $updated;
?></updated>
<generator uri="<?php
echo $feed_url;
?>">Drupal</generator>
<?php
foreach ($items as $item) {
?>
<at:deleted-entry ref="<?php
echo $item['guid'];
?>" when="<?php
echo $item['when'];
?>"<?php
if (empty($item['by'])) {
print "/>";
if (!empty($show_updated_comment) && !empty($updated_comment)) {
print "<!-- {$updated_comment} -->";
}
}
else {
print '>';
?>
<at:by>
<?php
if ($item['by']['name']) {
?>
<name><?php
echo $item['by']['name'];
?></name>
<?php
}
?>
<?php
if ($item['by']['email']) {
?>
<email><?php
echo $item['by']['email'];
?></email>
<?php
}
?>
</at:by>
<?php
if (!empty($item['comment'])) {
?>
<at:comment><?php
echo $item['comment'];
?></at:comment>
<?php
}
?>
</at:deleted-entry>
<?php
}
?>
<?php
}
?>
</feed>