Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% load i18n menu_tags cache %}
- {% for child in children %}
- <li class="{% if child.ancestor %}ancestor{% endif %}{% if child.selected %} active{% endif %}{% if child.children %} dropdown{% endif %}">
- {% if child.children %}<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ child.get_menu_title }} <span class="caret"></span></a>
- <ul class="dropdown-menu">
- {% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
- </ul>
- {% else %}
- <a href="{{ child.get_absolute_url }}"><span>{{ child.get_menu_title }}</span></a>
- {% endif %}
- </li>
- {% if class and forloop.last and not forloop.parentloop %}
- {% endif %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement