<?php
declare(strict_types=1);

header('Content-Type: application/xml; charset=utf-8');

$urls = [
    ['loc' => 'https://otabi.cevyyufindra.com/', 'changefreq' => 'weekly', 'priority' => '1.0'],
    ['loc' => 'https://otabi.cevyyufindra.com/menu', 'changefreq' => 'weekly', 'priority' => '0.9'],
    ['loc' => 'https://otabi.cevyyufindra.com/acara', 'changefreq' => 'monthly', 'priority' => '0.8'],
    ['loc' => 'https://otabi.cevyyufindra.com/rekomendasi', 'changefreq' => 'monthly', 'priority' => '0.7'],
];

echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <?php foreach ($urls as $u): ?>
    <url>
      <loc><?= htmlspecialchars($u['loc'], ENT_XML1, 'UTF-8') ?></loc>
      <changefreq><?= $u['changefreq'] ?></changefreq>
      <priority><?= $u['priority'] ?></priority>
    </url>
  <?php endforeach; ?>
</urlset>
