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