{% macro menu_block(menu) %} {% for item1 in menu.get_list() %} {% if item1 | is_menu_visible %} {% if item1.childs %}