Skip to content

Commit

Permalink
side menu used by ProductBundle front page
Browse files Browse the repository at this point in the history
Co-Authored-By: Javier Spagnoletti <phansys@gmail.com>
  • Loading branch information
2 people authored and core23 committed Nov 25, 2019
1 parent e169c14 commit 80dc528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/Block/block_side_menu_template.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ file that was distributed with this source code.

{% extends 'knp_menu.html.twig' %}

{% block list %}
{% import 'knp_menu.html.twig' as macros %}

{% block list %}
{% if item.hasChildren and options.depth is not same as(0) and item.displayChildren %}
<div{{ macros.attributes(listAttributes) }}>
{{ block('children') }}
Expand All @@ -21,7 +22,6 @@ file that was distributed with this source code.
{% endblock %}

{% block item %}
{% import 'knp_menu.html.twig' as macros %}
{% if item.displayed %}
{# building the class of the item #}
{%- set classes = item.attribute('class') is not empty ? [item.attribute('class')] : [] %}
Expand Down

0 comments on commit 80dc528

Please sign in to comment.