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

$pages = [
    ['loc' => 'https://srv112273.seohost.com.pl/?page=home',          'priority' => '1.00', 'changefreq' => 'weekly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=flexbox',        'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=button',         'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=animation',      'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=clip-path',      'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=unit',           'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=grid',           'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=gradient',       'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=shadow',         'priority' => '0.90', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=lorem',          'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=base64',         'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=table',          'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=password',        'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=regex',          'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=json',           'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=wordpress',       'priority' => '0.70', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=builder',         'priority' => '0.80', 'changefreq' => 'monthly'],
    ['loc' => 'https://srv112273.seohost.com.pl/?page=contact',         'priority' => '0.50', 'changefreq' => 'yearly'],
];

echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php foreach ($pages as $p): ?>
    <url>
        <loc><?php echo htmlspecialchars($p['loc']); ?></loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq><?php echo $p['changefreq']; ?></changefreq>
        <priority><?php echo $p['priority']; ?></priority>
    </url>
<?php endforeach; ?>
</urlset>
