pull/36/head
parent
f157d03109
commit
e266a8ece7
@ -0,0 +1,12 @@ |
|||||||
|
<ul class="main-menu"> |
||||||
|
{% for item in main_menu.items %} |
||||||
|
<li class="main-menu__item"> |
||||||
|
<a class="main-menu__link" href="{{ item.link }}" {{ item.is_target_blank ? 'target="_blank"' }}>{{ item.title }}</a> |
||||||
|
</li> |
||||||
|
{% endfor %} |
||||||
|
<li class="main-menu__item"> |
||||||
|
<button class="main-menu__button" id="pc-menu"> |
||||||
|
{% if current_lang == 'ru' %}ПРОДУКЦИЯ{% elseif current_lang == 'en' %}BUY{% endif %} |
||||||
|
</button> |
||||||
|
</li> |
||||||
|
</ul> |
@ -0,0 +1,24 @@ |
|||||||
|
<div class="header__phone-menu"> |
||||||
|
{% for item in mobile_menu.items %} |
||||||
|
<div class="header-phone-menu__item"> |
||||||
|
<a href="{{ item.link }}" {{ item.is_target_blank ? 'target="_blank"' }} class="header-phone-menu__title {{item.class}}"> |
||||||
|
{{ item.title }} |
||||||
|
</a> |
||||||
|
{% if item.children %} |
||||||
|
{% for child in item.children %} |
||||||
|
<a href="{{ child.link }}" class="header-phone-menu__category">{{ child.title }}</a> |
||||||
|
{% if child.children %} |
||||||
|
<ul class="header-phone-menu__list"> |
||||||
|
{% for sub_child in child.children %} |
||||||
|
<li class="header-phone-menu__list-item"> |
||||||
|
<a href="{{sub_child.link}}">{{sub_child.title}}</a> |
||||||
|
</li> |
||||||
|
{% endfor %} |
||||||
|
</ul> |
||||||
|
{% endif %} |
||||||
|
{% endfor %} |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
|
||||||
|
</div> |
@ -0,0 +1,15 @@ |
|||||||
|
<div class="header-pc-menu__item"> |
||||||
|
{% for item in child_menu.items %} |
||||||
|
<a class="header-pc-menu__title" href="{{ item.link }}" {{ item.is_target_blank ? 'target="_blank"' }}>{{ item.title }}</a> |
||||||
|
{% if item.children %} |
||||||
|
<ul class="header-pc-menu__list"> |
||||||
|
{% for child in item.children %} |
||||||
|
<li class="header-pc-menu__list-li"> |
||||||
|
<a href="{{ child.link }}"{{ item.is_target_blank ? 'target="_blank"' }}>{{ child.title }}</a> |
||||||
|
</li> |
||||||
|
{% endfor %} |
||||||
|
</ul> |
||||||
|
{% endif %} |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
|
Loading…
Reference in new issue