묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
3일간 고민하고 검색해봐도 도저히 답이 나오질 않아 질문합니다.
2017.07.27 16:22
메뉴별 div 를 따로 구성하고 싶어서 만들고 있는데... 답이 안나오네요... 소중한 답변 부탁드립니다 ㅠㅠ
<div class="inner"> <nav class="menu"> <ul id="lnbMenu" class="lnb"> {@ $_idx=1;} <li loop="$global_menu->list=>$key1,$val1" cond="$val1['link']" class="active li no{$_idx}"|cond="$val1['selected']" class="li no{$_idx}"|cond="!$val1['selected']"> <a href="{$val1['href']}" target="_blank"|cond="$val1['open_window']=='Y'" class="a">{$val1['link']}</a> {@ $_idx++;} <!--@foreach($main_menu->list as $key=>$val)--> {@ $i++} <!--@if(count($main_menu->list)==$i)--> <div class="submenu"> <div class="wrap_subDept"> <div class="subDeptWrap"> <div class="depths2"> <div class="no1_1"> <ul cond="$val1['list']"> <li class="li2" loop="$val1['list']=>$key2,$val2"><a href="{$val2['href']}" class="a2">{$val2['link']}</a></li> </ul> </div> </div> <div class="banner1"><a href="page/intro02.php.html"><img src="images/main/menu1_banner.gif" /></a></div> <div class="banner1_1"><a href="page/intro03.php.html"><img src="images/main/menu1_banner2.gif" /></a></div> </div> <!-- e : .subDeptWrap --> </div> <!-- e : .wrap_subDept --> </div> <!-- e : .submenu --> </li> <!--@if(count($main_menu->list)==$i)--> <div class="submenu"> <div class="wrap_subDept"> <div class="subDeptWrap"> <div class="banner1"><a href="page/step_guide.php.html"><img src="images/main/menu2_banner.gif" /></a></div> <div class="depths2"> <div class="no2_1"> <ul> <li class="li2" loop="$val1['list']=>$key2,$val2"><a href="{$val2['href']}" class="a2">{$val2['link']}</a></li> </ul> </div> </div> <div class="banner1"><a href="page/step_guide.php.html"><img src="images/main/menu2_banner2.gif" /></a></div> </div> <!-- e : .subDeptWrap --> </div> </div> <!-- e : .submenu --> </li> <!--@end--> <!--@end-->