html.php 456 B

1234567891011121314151617
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title><?= $channel['title'] ?></title>
  5. </head>
  6. <body>
  7. <h1><a href="<?= $channel['link'] ?>"><?= $channel['title'] ?></a></h1>
  8. <ul>
  9. <?php foreach ($items as $item) : ?>
  10. <li>
  11. <a href="<?= $item['loc'] ?>"><?= (empty($item['title'])) ? $item['loc'] : $item['title'] ?></a>
  12. <small>(last updated: <?= date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) ?>)</small>
  13. </li>
  14. <?php endforeach; ?>
  15. </ul>
  16. </body>
  17. </html>