{block name='snippets-categories-offcanvas'}
    {lang key='view' assign='view_'}
    {block name='snippets-categories-offcanvas-heading'}
        <div class="h5">{$result->current->getName()}</div>
    {/block}
    <ul class="nav categories-offcanvas">
        {block name='snippets-categories-offcanvas-navitems'}
            {navitem class="clearfix"}
            <li class="nav-item clearfix">
                <a class="nav-link">
                    <a href="#" class="nav-sub" data-ref="0">
                        <i class="{et_getIcon key="categoryAll"}"></i> {lang key='showAll'}
                    </a>
                    <a href="#" class="nav-sub" data-ref="{$result->current->kOberKategorie}">
                        <i class="{et_getIcon key="navigationPrevious"}"></i> {lang key='back'}
                    </a>
                </a>
            </li>

            <li class="nav-item clearfix">
                <a class="nav-link">
                    <a href="{$result->current->getURL()}" class="nav-active">
                        {$result->current->getName()} {$view_|lower}
                    </a>
                </a>
            </li>
        {/block}
        {block name='snippets-categories-offcanvas-include-categories-recursive'}
            {include file='snippets/categories_recursive.tpl' i=0 categoryId=$result->current->getID() limit=2 caret='right'}
        {/block}
    </ul>
{/block}
