"Featurebox", 'function' => "process", 'description' => "" ); return $links; } function process() { $sql = e107::getDb(); $fbox = array(); $nobody_regexp = "'(^|,)(".str_replace(",", "|", e_UC_NOBODY).")(,|$)'"; $query = "SELECT * FROM #news WHERE news_class REGEXP '".e_CLASS_REGEXP."' AND NOT (news_class REGEXP ".$nobody_regexp.") AND FIND_IN_SET(5,news_render_type) ORDER BY news_datestamp DESC LIMIT 10"; if($sql->gen($query)) { while($row = $sql->fetch()) { $fbox[] = array( 'title' => $row['news_title'], 'url' => '{e_BASE}news.php?extend.'.$row['news_id'], 'body' => $row['news_summary'], 'image' => $row['news_image'], 'class' => $row['news_class'] ); } return $fbox; }; } }