$beginDiv = $endDiv = $div = ”;
$c = 0;
$cnt = $GLOBALS[“TYPO3_DB”]->sql_num_rows($res);
if($c==0){
$beginDiv = ‘<div>’;
}

if(($c+1)==$cnt){
$endDiv = ‘</div>’;
}
if($c%3==0){
if($c != 0){
$div = ‘</div><div>’;
}
}
$markerArray[‘###IMAGES###’] = $beginDiv.$div.'<li><a href=”‘.$tFormLink.'” title=’.$row[title].’ ><span>’.$images.'</span><span>’.$hoverimage.'</span></a></li>’.$endDiv;

Advertisements