"; } $current = 0; // homepage if($type == "home-news") { foreach($rss->channel->item as $item) { if($current < $numitems) { // output html echo '
'; echo turncate($item->description,$maxchars); echo readmore($readmore,$readmoretext,$item->link); echo '
'; echo ''.$item->description.'
'; echo '