#key - Lister les articles des catégories actives
catList('',"
- + #cat_name (#art_nb)
[#cat_id]
");
$list = ob_get_clean();
preg_match_all('!\[([a-zA-Z0-9-_])*\]!',$list,$match);
$art = array();
foreach ($match[1] as $key => $value) {
ob_start();
$plxShow->lastArtList('- #art_title (#art_nbcoms)
', 5, $value,'');
$art[$key] = ob_get_clean();
}
foreach ($match[0] as $key => $value) {
$list = str_replace(array(''',$value),array('\'',$art[$key]),$list);
}
echo $list;
?>