-
Notifications
You must be signed in to change notification settings - Fork 348
/
menu.html.twig
20 lines (19 loc) · 848 Bytes
/
menu.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% extends '@KnpMenu/menu.html.twig' %}
{% block linkElement %}
{% apply spaceless %}
{% import 'knp_menu.html.twig' as macros %}
<a href="{{ item.uri }}"{{ macros.attributes(item.linkAttributes) }}>
{% if item.extras.icon|default(false) %}
{{ mopa_bootstrap_icon(item.extras.icon, item.extras.icon_white|default(false)) }}{{ ' ' }}
{%- endif %}
{{ block('label') }}
{% import '@MopaBootstrap/macros.html.twig' as badgemacro %}
{%- if item.extras.badge|default(false) %}
{{ badgemacro.badge(item.extras.badge, false, item.extras.badge_class) }}
{% endif -%}
{%- if item.extras.caret|default(false) %}
<b class="caret"></b>
{% endif -%}
</a>
{% endapply %}
{% endblock %}