{function sectionsTopTree}
   <nav class="navbar" role="navigation">
      <ul class="nav navbar-nav list-inline">
          {foreach $sectionList as $item}
             <li class="nav-item {if $item.opened}active{/if}">
                <a href="{url s=category IDcat=$item.id}"
                   class="nav-link">
                    {$item.title}
                </a>
             </li>
          {/foreach}
      </ul>
   </nav>
{/function}

{sectionsTopTree sectionList=$categories}
