Cita:
Iniciado por Eleazan
puede tener varios "top" o header?
Código PHP:
$first_time= true;
for ($i=0;$i<sizeof($box_categories_array);$i++) {
if ($box_categories_array[$i]['top'] == 'true'){
if($first_time) { $ul=''; $first_time=false;}
else $ul='</ul>';
$contentheader = $box_categories_array[$i]['name'] ;
$content .=$ul.'<h3 class="menuheader expandable">'.$contentheader.'</h3><ul class="categoryitems">';
}
else {
$contentulli =
'<a class="'. $a_class .'" href="'. $link .'">'. $box_categories_array[$i]['name'] .'</a>';
$content .= '<li>'. $contentulli . '</li>';
}
}
mucahs gracias eliazan eres un maestro deverdas me ayudaste a entender y ahora si funciona mi code esta exelente i menu ahoara quedo chevere todo gracias a ti