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

{foreach $menu as $item}
   <div class="column">
      <p class="lead" data-footer-opener>{$item.title}</p>
      <div class="collapse">
         {if $item.children and $item.level < $level_max}
            {footerSubmenu menu=$item.children}
         {/if}
         {$menu_footer_first = $item@first}
         {block "menu-footer-addon"}{/block}
      </div>
   </div>
{/foreach}
