Skip to content

Instantly share code, notes, and snippets.

@Remo
Created July 28, 2014 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Remo/ae843df476871891cf0e to your computer and use it in GitHub Desktop.
Save Remo/ae843df476871891cf0e to your computer and use it in GitHub Desktop.
<?php defined('C5_EXECUTE') or die("Access Denied."); ?>
<div id="rssSummaryList<?php echo intval($bID)?>" class="rssSummaryList">
<?php if( strlen($title)>0 ){ ?>
<div class="rssSummaryListTitle" style="margin-bottom:8px"><?php echo $title?></div>
<?php } ?>
<?php
$rssObj=$controller;
$textHelper = Loader::helper("text");
if (!$dateFormat) {
$dateFormat = t('F jS');
}
if( strlen($errorMsg)>0 ){
echo $errorMsg;
}else{
foreach($posts as $itemNumber=>$item) {
if( intval($itemNumber) >= intval($rssObj->itemsToDisplay) ) break;
?>
<div class="rssItem">
<div class="rssItemTitle">
<a href="<?php echo $item->get_permalink(); ?>" rel="nofollow" <?php if($rssObj->launchInNewWindow) echo 'target="_blank"' ?> >
<?php echo $item->get_title(); ?>
</a>
</div>
<div class="rssItemDate"><?php echo $item->get_date($dateFormat); ?></div>
<div class="rssItemSummary">
<?php
if( $rssObj->showSummary ){
echo $textHelper->shortText( strip_tags($item->get_description()) );
}
?>
</div>
</div>
<?php }
}
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment