1. 상단 메뉴
<ul> <li loop="$GNB->list => $key1, $val1" class="depth1"> <a href="{$val1['href']}" target="_blank"|cond="$val1['open_window'] == 'Y'"> <img src="assets/img/{$val1['desc']}.png" alt="" cond="$val1['desc']"> {$val1['link']} </a> </li> </ul>
2. 사이드바메뉴
<nav class="lnb-wrap"> <block cond="$val1['selected']">{@ $_selected_menu = $val1}</block> <ul cond="$val1['selected']"> <li loop="$GNB->list => $key1, $val1" class="depth1"> <a href="{$val1['href']}" target="_blank"|cond="$val1['open_window'] == 'Y'"> <img src="assets/img/{$val1['desc']}.png" alt="" cond="$val1['desc']"> {$val1['link']} </a> <li loop="$val1['list'] => $key2, $val2"><a href="{$val2['href']}" class="on"|cond="$val2['selected']"><img src="assets/img/{$val2['desc']}.png" alt="" cond="$val1['desc']"> {$val2['link']}</a> <ul cond="$val2['list']"> <li loop="$val2['list'] => $key3, $val3"><a href="{$val3['href']}" class="on"|cond="$val3['selected']">{$val3['link']}</a></li> </ul> </li> </li> </ul> </nav>
*추가기능
메뉴관리자의 펼침 기능을 스킨에서 받으려면?
{$val2['expand']} 를 체크해보시면 됩니다.
출처 : https://xe1.xpressengine.com/index.php?mid=qna&page=136&document_srl=16455109&m=0