<link href="<?= $siteref . $_SERVER['REQUEST_URI'] ?>" rel="self" />
<author><name>Lijtweg</name></author>
<?php
-include 'nieuws.inc.php';
$root = preg_replace('{/feed$}', '', $Page) . "/2???";
$pages = array_reverse(glob("$root/*.html"));
<entry>
<id><?= $siteref . '/' . $article->link ?></id>
- <link href="/<?= $article->link ?>" />
+ <link href="<?= $siteref . '/' . $article->link ?>" />
<title><?= $article->title ?></title>
<published><?= $article->dateiso ?></published>
<updated><?= $article->dateiso ?></updated>
- <content type="html"><?= htmlspecialchars($article->body) ?>
- </content>
<?php
+ if ($article->teaser) {
+ printf("\t\t<summary>%s</summary>\n", htmlspecialchars($article->teaser));
+ }
if ($article->thumb) {
- printf("\t\t".'<link rel="enclosure" type="%s" length="%d" href="%s" />'."\n",
- 'image/jpeg', filesize($article->thumb), "$siteref/{$article->thumb}"
+ printf("\t\t".'<link rel="enclosure" type="%s" href="%s"%s />'."\n",
+ 'image/jpeg',
+ "$siteref/{$article->thumb}",
+ file_exists($article->thumb) ? sprintf(' length="%d"', filesize($article->thumb)) : ''
);
}
?>
+ <content type="html"><?= htmlspecialchars($article->story) ?>
+ </content>
</entry>
<?php
}