<!--<?php-->
<!--        require_once __DIR__ . '/../includes/config.php';-->
<!--        require_once __DIR__ . '/../includes/functions.php';-->

<!--        $pdo = db_connect();-->

<!--        $protocol = isset($_SERVER['HTTPS']) ? 'https' : 'http';-->
<!--        $host     = $_SERVER['HTTP_HOST'];-->
<!--        $base     = "$protocol://$host";-->

<!--        header('Content-Type: application/xml; charset=utf-8');-->
<!--        echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";-->
<!--        ?>-->
<!--<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">-->

<!--    &lt;!&ndash; ==================== صفحات ایستا ==================== &ndash;&gt;-->
<!--    <url>-->
<!--        <loc><?= $base ?>/</loc>-->
<!--        <changefreq>daily</changefreq>-->
<!--        <priority>1.0</priority>-->
<!--        <lastmod><?= date('Y-m-d') ?></lastmod>-->
<!--    </url>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/plants.php</loc>-->
<!--        <changefreq>daily</changefreq>-->
<!--        <priority>0.9</priority>-->
<!--    </url>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/diseases.php</loc>-->
<!--        <changefreq>weekly</changefreq>-->
<!--        <priority>0.8</priority>-->
<!--    </url>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/compounds.php</loc>-->
<!--        <changefreq>weekly</changefreq>-->
<!--        <priority>0.8</priority>-->
<!--    </url>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/about.php</loc>-->
<!--        <changefreq>monthly</changefreq>-->
<!--        <priority>0.7</priority>-->
<!--    </url>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/contact.php</loc>-->
<!--        <changefreq>monthly</changefreq>-->
<!--        <priority>0.6</priority>-->
<!--    </url>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/search.php</loc>-->
<!--        <changefreq>weekly</changefreq>-->
<!--        <priority>0.5</priority>-->
<!--    </url>-->

<!--    &lt;!&ndash; ==================== صفحات گیاهان ==================== &ndash;&gt;-->
<!--    <?php-->
<!--            $stmt = $pdo->query("SELECT id, updated_at FROM plants ORDER BY id");-->
<!--            while ($row = $stmt->fetch()):-->
<!--            ?>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/plant.php?id=<?= $row['id'] ?></loc>-->
<!--        <lastmod><?= date('Y-m-d', strtotime($row['updated_at'] ?? 'now')) ?></lastmod>-->
<!--        <changefreq>monthly</changefreq>-->
<!--        <priority>0.7</priority>-->
<!--    </url>-->
<!--    <?php endwhile; ?>-->

<!--    &lt;!&ndash; ==================== صفحات بیماری‌ها ==================== &ndash;&gt;-->
<!--    <?php-->
<!--            $stmt = $pdo->query("SELECT id FROM diseases ORDER BY id");-->
<!--            while ($row = $stmt->fetch()):-->
<!--            ?>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/disease.php?id=<?= $row['id'] ?></loc>-->
<!--        <changefreq>monthly</changefreq>-->
<!--        <priority>0.6</priority>-->
<!--    </url>-->
<!--    <?php endwhile; ?>-->

<!--    &lt;!&ndash; ==================== صفحات ترکیبات ==================== &ndash;&gt;-->
<!--    <?php-->
<!--            $stmt = $pdo->query("SELECT id FROM compounds ORDER BY id");-->
<!--            while ($row = $stmt->fetch()):-->
<!--            ?>-->
<!--    <url>-->
<!--        <loc><?= $base ?>/compound.php?id=<?= $row['id'] ?></loc>-->
<!--        <changefreq>monthly</changefreq>-->
<!--        <priority>0.6</priority>-->
<!--    </url>-->
<!--    <?php endwhile; ?>-->

<!--</urlset>-->

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc>https://nofastfood.ir/</loc>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>
    <url>
        <loc>https://nofastfood.ir/plants.php</loc>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>
    <url>
        <loc>https://nofastfood.ir/diseases.php</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://nofastfood.ir/compounds.php</loc>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://nofastfood.ir/about.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>
    <url>
        <loc>https://nofastfood.ir/contact.php</loc>
        <changefreq>monthly</changefreq>
        <priority>0.6</priority>
    </url>
    <url>
        <loc>https://nofastfood.ir/search.php</loc>
        <changefreq>weekly</changefreq>
        <priority>0.5</priority>
    </url>
</urlset>