', 20); $block['custom_htmlhead'][] = ' '; function buildNavi($start=0, $counter=0) { $t = array(); $struct = getStructureChildData($start); if($counter == 0) { $last = count($struct) - 1; } else { $last = 0; } $x = 0; foreach($struct as $value) { //if( isset($GLOBALS['LEVEL_KEY'][ $value['acat_id'] ]) ) { /* $p1 = ' path'; } else { $s = ''; $p1 = ''; } if($GLOBALS['content']['cat_id'] == $value['acat_id']) { $a1 = ' active'; $a3 = 'active'; } else { $a1 = $p1; $a3 = ''; } */ $s = buildNavi($value['acat_id'], $counter+1); if($s) { $g = ''; $g .= $s; $g .= LF . str_repeat(' ', $counter); $class = $counter ? ' class="fly"' : ' class="drop"'; $close_li = str_repeat(' ', $counter+1); } else { $g = ''; $class = ''; $close_li = ''; } if( $last && $last == $x ) { $enclose = ' class="enclose"'; } elseif( $x || ($counter == 0 && $x == 0) ) { $enclose = ''; } else { $enclose = ' class="enclose"'; } $l = str_repeat(' ', $counter+1) . '