{function menuTreeSub}
   <ul class="list-triangle">
      {foreach $menu as $item}
         <li {if $item.selected}class="active"{/if}>
            <a href="{$item.url nofilter}" {if $item.target != ''}target="{$item.target}"{/if}>{$item.title}</a>
         </li>
      {/foreach}
   </ul>
{/function}

{foreach $menu as $i => $item}
   <div class="{$column_class|default:'col-xs-12 col-md-6 col-xl-2'} footer-menu" data-footer-menu="{$i}">
      <div class="row">
         <div class="col-xs-9 col-md-12">
            <h3>{$item.title}</h3>
         </div>
         <div class="col-xs-3">
            <div class="toggle">
               <i class="fc icons_arrow_down"></i>
            </div>
         </div>
      </div>
      <div class="footer-content" data-footer-content="{$i}">
         {if $item.children && $item.level < $level_max}
            {menuTreeSub menu=$item.children}
         {/if}
      </div>
   </div>
{/foreach}
