<?= '<?xml version="1.0" encoding="UTF-8" ?>' ?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc><?= base_url();?></loc> 
        <priority>1.0</priority>
    </url>


<!-- Trips -->
    <?php foreach($posts as $post) { ?>
    <url>
        <loc><?=post_url($post)?></loc>
        <priority>0.5</priority>
    </url>
    <?php } ?>


<!-- Pages -->
    <?php foreach($pages as $page) { ?>
    <url>
        <loc><?=post_url($post)?></loc>
        <priority>0.5</priority>
    </url>
    <?php } ?>

</urlset>