summaryrefslogtreecommitdiff
path: root/resources/views/components/menu-item.twig
blob: 5bc41fcc76fc1bd6a963db0f0ada076f6e9b00a8 (plain)
1
2
3
4
5
6
7
8
9
10
<li class="{{ (item.classes | merge(item._menu_item_classes)) | join(' ') }}">
    <a target="{{ item.target }}" href="{{ item.link }}">{{ item.title }}</a>
    {% if current_depth < depth and item.children %}
        <ul>
            {% for child in item.children %}
                {% include 'components/menu-item.twig' with { 'item': child, 'depth': depth, 'current_depth': current_depth + 1 } %}
            {% endfor %}
        </ul>
    {% endif %}
</li>