Kateřina Čížková
5 years ago
4 changed files with 62 additions and 169 deletions
@ -1,21 +1,34 @@ |
|||
{% load sitetree %} |
|||
<ul class="row-menu"> |
|||
<ul class="menu"> |
|||
{% for item in sitetree_items %} |
|||
<div class="menu-item"> |
|||
|
|||
<li class="{% if item.has_children %}dropdown{% endif %} {% if item.is_current or item.in_current_branch %}active{% endif %}" > |
|||
|
|||
<a href="{% sitetree_url for item %}" > |
|||
{{ item.title_resolved }} |
|||
</a> |
|||
|
|||
|
|||
|
|||
|
|||
<div class="submenu"> |
|||
{% if item.is_current or item.in_current_branch %} |
|||
<div class="submenu active"> |
|||
{% sitetree_children of item for menu template "submenu.html" %} |
|||
</div> |
|||
{% endif %} |
|||
</div> |
|||
|
|||
|
|||
|
|||
</li> |
|||
</div> |
|||
|
|||
{% endfor %} |
|||
|
|||
<div class="submenu-newline"> |
|||
</div> |
|||
|
|||
<script> |
|||
$( ".submenu" ).prependTo( ".submenu-newline" ); {# api.jquery.com/prependTo #} |
|||
</script> |
|||
|
|||
</ul> |
|||
|
|||
|
Loading…
Reference in new issue