| Server IP : 188.114.96.3 / Your IP : 216.73.216.143 Web Server : Apache System : Linux sv058.home.net.pl 6.8.2 husak_dirty_pages_fix #1 SMP PREEMPT_DYNAMIC Tue Apr 2 22:06:51 CEST 2024 x86_64 User : ( 3194769) PHP Version : 8.5.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /polana/ |
Upload File : |
<?php
declare(strict_types=1);
require_once __DIR__ . '/includes/functions.php';
header('Content-Type: application/rss+xml; charset=UTF-8');
$posts = blog_public_enabled() ? blog_public_posts(30) : [];
$site = setting('site_name',APP_NAME);
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
<rss version="2.0">
<channel>
<title><?= e($site) ?> – Blog</title>
<link><?= e(site_url('/blog')) ?></link>
<description>Smaki, sezon i kuchnia Andrzeja Polana.</description>
<language>pl-pl</language>
<?php foreach ($posts as $post): ?>
<item>
<title><?= e($post['title']) ?></title>
<link><?= e(site_url('/blog/'.$post['slug'])) ?></link>
<guid isPermaLink="true"><?= e(site_url('/blog/'.$post['slug'])) ?></guid>
<pubDate><?= e(date(DATE_RSS,strtotime($post['publish_at']))) ?></pubDate>
<description><?= e((string)$post['excerpt']) ?></description>
</item>
<?php endforeach; ?>
</channel>
</rss>