Commit a6f51cfe by Manzar Hussain

side menu

parent 7c402c3c
......@@ -33,7 +33,7 @@
#}
<div class="ls_l_con_b">
<div class="la_sb_l">
<div class="ls_sbmenu sb_dd_m_data">
{%
set classes = [
......
......@@ -24,12 +24,14 @@
We call a macro which calls itself to render the full tree.
@see https://twig.symfony.com/doc/1.x/tags/macro.html
#}
<div class="ls_sbmenu sb_dd_m_data">
{{ menus.menu_links(items, attributes, 0) }}
{% macro menu_links(items, attributes, menu_level) %}
{% import _self as menus %}
{% if items %}
{% if menu_level == 0 %}
<ul>
{% else %}
......@@ -56,8 +58,9 @@
</li>
{% endfor %}
</ul>
{% endif %}
{% endmacro %}
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment