Skip to content

Commit

Permalink
Allow to create HTML labels in knp menus
Browse files Browse the repository at this point in the history
  • Loading branch information
buchmarv committed Jan 28, 2025
1 parent af7b721 commit b6c5803
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="mainnavigation">
{{ knp_menu_render('main-default', {'depth': 2}) }}
{{ knp_menu_render('main-profile', {'depth': 2}) }}
{{ knp_menu_render('main-default', {'depth': 2, 'allow_safe_labels': true}) }}
{{ knp_menu_render('main-profile', {'depth': 2, 'allow_safe_labels': true}) }}
</div>
</div>
</nav>
Expand Down Expand Up @@ -120,7 +120,7 @@
<span>© {{ "now"|date("Y") }} <a href="{{ template.application.copyright.url }}" target="_blank">{{ template.application.copyright.author }}</a>.</span>
</div>
<div class="page-footer-menu">
{{ knp_menu_render('main-footer') }}
{{ knp_menu_render('main-footer', {'allow_safe_labels': true}) }}
</div>
</div>
{% endframe %}
Expand Down

0 comments on commit b6c5803

Please sign in to comment.