<ul> [[!spieFeed? &setFeedUrl=`urltothefeed /feed.rss` &tpl=`FeedItems` &setItemLimit=`2` &enableCache=`0` ]] </ul>
<li> <a href="[[+link]]" class="thumb"> <img src="/partners/number_1.jpg" width="72" height="48"> </a> <em> door [[+authorName]] &raqou; [[+localDate:ago]]</em> <h3><a href="[[+link]]">[[+title]]</a></h3> <p>[[+content:strip:stripTags:ellipsis=`200`]]</p> <div class="clear"></div> </li>
<?php $number = rand(1,9); return $number;
<li> <a href="[[+link]]" class="thumb"> <img src="/partners/number_[[!Number]].jpg" width="72" height="48"> </a> <em> door [[+authorName]] &raqou; [[+localDate:ago]]</em> <h3><a href="[[+link]]">[[+title]]</a></h3> <p>[[+content:strip:stripTags:ellipsis=`200`]]</p> <div class="clear"></div> </li>
This question has been answered by mintnl. See the first response.
<h3>Feed items!</h3> <div class="widget-container widget_recent_posts"> <ul> [[!spieFeed? &setFeedUrl=`http ://complete.url/ to/feed.rss` &tpl=`FeedItems` &setItemLimit=`5` &enableCache=`0` ]] </ul> </div>
<li>
<a href="[[+link]]" class="thumb">
<img src="
[[+content:firstimage=`
[[+title:substring=`0,1`]]
`:phpthumbof=`w=72&h=48&zc=1&q=80`]]">
</a>
<em> door [[+authorName]] » [[+localDate:ago]]</em>
<h3><a href="[[+link]]">[[+title]]</a></h3>
<p style='margin-top:-15px'>
[[+content:replace=`< b r / >
== `:strip:stripTags: ellipsis=`150`]]</p>
<div class="clear"></div>
</li>
<?php
if(preg_match('/^[a-zA-Z0-9]+$/',$options[0])){
$firstletter = strtolower($options[0]);
}else{
$firstletter = "none";
}
$doc = new DOMDocument();
@$doc->loadHTML($input);
$tags = $doc->getElementsByTagName('img');
foreach ($tags as $tag) {
$output[] = $tag->getAttribute('src');
}
if(strlen($output[0]) > 0){ $imgurl = $output[0]; }
else {
$imgurl = '/images/firstimage/'.$firstletter.'.png';
}
return $imgurl;
?>
<?php
$options=explode(',',$options);
return count($options)>1 ?
substr($input,$options[0],$options[1]) :
substr($input,$options[0]);
?>