SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/rss_feed.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. ?>
  4.  
  5.  
  6. <?php foreach ($items as $item): ?>
  7.  
  8. <h2><a href="<?php echo Enc::html($item['url']); ?>"><?php echo Enc::html($item['name']); ?></a></h2>
  9.  
  10. <?php if (isset($item['image'])): ?>
  11. <img src="<?php echo Enc::html($item['image']); ?>" width="200" class="right">
  12. <?php endif; ?>
  13.  
  14. <p><b><?php echo Enc::html($item['date']->format('d M Y \a\t g:ia')); ?></b></p>
  15.  
  16. <p><?php echo Enc::html($item['text']); ?></p>
  17.  
  18. <div class="clear"></div>
  19.  
  20. <?php endforeach; ?>
  21.