<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
    <url>
        <loc>https://crushyum.com/</loc>
        <lastmod>2026-01-15</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
        
        <!-- Main hero image -->
        <image:image>
            <image:loc>https://crushyum.com/images/Couples.png</image:loc>
            <image:title>CrushYum Dating & Cam Reviews</image:title>
            <image:caption>Find the best dating and cam sites on CrushYum</image:caption>
            <image:geo_location>Online</image:geo_location>
            <image:license>https://creativecommons.org/licenses/by/4.0/</image:license>
        </image:image>
        
        <?php
        // Connect to database and get all images
        require_once 'config.php';
        $pdo = getDBConnection();
        
        // Get all dating site images
        $stmt = $pdo->query("SELECT image_url, site_name FROM dating_sites WHERE status='active'");
        while ($site = $stmt->fetch(PDO::FETCH_ASSOC)) {
            $imageUrl = 'https://crushyum.com/images/' . htmlspecialchars($site['image_url']);
            $siteName = htmlspecialchars($site['site_name']);
            echo '<image:image>
                    <image:loc>' . $imageUrl . '</image:loc>
                    <image:title>' . $siteName . ' - Dating Site Review</image:title>
                    <image:caption>Review and rating of ' . $siteName . ' dating site on CrushYum</image:caption>
                  </image:image>';
        }
        
        // Get all cam site images
        $stmt = $pdo->query("SELECT image_url, site_name FROM cam_sites WHERE status='active'");
        while ($site = $stmt->fetch(PDO::FETCH_ASSOC)) {
            $imageUrl = 'https://crushyum.com/images/' . htmlspecialchars($site['image_url']);
            $siteName = htmlspecialchars($site['site_name']);
            echo '<image:image>
                    <image:loc>' . $imageUrl . '</image:loc>
                    <image:title>' . $siteName . ' - Cam Site Review</image:title>
                    <image:caption>Review and rating of ' . $siteName . ' cam site on CrushYum</image:caption>
                  </image:image>';
        }
        ?>
    </url>
    
    <!-- Add other important pages with images -->
    <url>
        <loc>https://crushyum.com/dating-reviews.php</loc>
        <lastmod>2026-01-15</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
    <url>
        <loc>https://crushyum.com/cam-reviews.php</loc>
        <lastmod>2026-01-15</lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.8</priority>
    </url>
</urlset>