관리자: gnb 작업 중

This commit is contained in:
whitedot
2012-12-11 15:26:24 +09:00
parent 58169bdd71
commit 0da4f4e6ba
4 changed files with 15 additions and 6 deletions

View File

@ -99,10 +99,13 @@ function textarea_size(fld, size)
$href1 = '<a href="'.$menu['menu'.$key][0][2].'">';
$href2 = '</a>';
}
echo '<li class="gnb_1depth">';
if (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2))
$current_class = " gnb_1depth_on";
echo "<li class=\"gnb_1depth".$current_class."\">";
echo $href1 . $menu['menu'.$key][0][1] . $href2;
echo print_menu1('menu'.$key, 1);
echo '</li>';
echo "</li>";
if ($current_class) $current_class = ""; // 클래스 반복부여 방지
}
?>