{% load menu_tags %}
<ul class="nav navbar-nav">
{% for item in menu_items %}
    <li class="{{ item.active_class }}{% if item.has_children_in_menu %} dropdown{% endif %}">
        <a href="{{ item.href }}"{% if item.has_children_in_menu %} class="dropdown-toggle" id="ddtoggle_{{ item.link_page.pk }}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"{% endif %}>{{ item.text }}{% if item.has_children_in_menu %} <span class="caret"></span>{% endif %}</a>
        {% if item.has_children_in_menu %}
        	{% sub_menu item template="menus/bootstrap3/sub_menu_dropdown.html" %}
        {% endif %}
    </li>
{% endfor %}
{% if ticketing_url %}
    <li><a class="hero-btn" href="{{ ticketing_url }}">Tickets</a></li>
{% endif %}
</ul>

Add "Tickets" button after main menu.
Add "Tickets" button after main menu.

This button is only displayed if a ticketing URL has been set for the
homepage in the admin.

Note that the button is added directly into the main menu template. This
ensures that it is part of the same UL as the other main menu items.
