Laravelium/laravel-sitemap

View on GitHub
src/views/html.php

Summary

Maintainability
A
0 mins
Test Coverage
<!DOCTYPE html>
<html>
<head>
    <title><?= $channel['title'] ?></title>
</head>
<body>
    <h1><a href="<?= $channel['link'] ?>"><?= $channel['title'] ?></a></h1>
    <ul>
        <?php foreach ($items as $item) : ?>
        <li>
            <a href="<?= $item['loc'] ?>"><?= (empty($item['title'])) ? $item['loc'] : $item['title'] ?></a>
            <small>(last updated: <?= date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) ?>)</small>
        </li>
        <?php endforeach; ?>
    </ul>
</body>
</html>