foreach( $posts as $post )
{
echo "";
if ( $cfg['cname'] == 'checked' )
{
$c = category($post['idx_category']);
echo " $c[name]";
}
if ( $cfg['new'] == 'checked' )
{
if (isNew($post['dateTime']) ) echo " ";
else echo " ";
}
echo " ". strcut($post['title'], $cfg['length_subject'], "") . "";
if ( $cfg['name'] == 'checked' ) echo " " . postname($post);
if ( $cfg['date'] == 'checked' ) echo " " . dt($post['dateTime_firstwrite']);
if ( $cfg['reply'] == 'checked' ) echo " " . em($post['children']);
if ( $cfg['file'] == 'checked' ) echo " " . em($post['files'],NULL,2);
echo " | \n";
}
?>