function getnew() { $rows = mod_project_slideshowHelper::getacticle(); $htm = ''; $act = array(); foreach ($rows as $row) { $title = ilandCommonUtils::getcutstr($row->title, 80, $tail = "..."); $htm .= "<a href='index.php?option=com_content&view=article&id={$row->id}&Itemid=20'>" . $title . "</a>"; $htm .= "##"; } $act['title'] = $htm; $act['num'] = count($rows); return $act; }