XpressEngine

레이아웃-메뉴-기본메뉴

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> 

 

댓글

댓글 본문
graphittie 자세히 보기