{% load static wagtailimages_tags wagtailcore_tags %} {% if page.root_page.light_logo %} {% image page.root_page.light_logo max-256x256 as light_logo %} {% endif %} {% if page.root_page.dark_logo %} {% image page.root_page.dark_logo max-256x256 as dark_logo %} {% endif %} {% if page.root_page.show_logo is not False %} {% block navbar_logo_images %} {% endblock %} {% endif %} {% for social_link_block in page.root_page.social_links %} {% endfor %} {% if page.root_page.search_page %} {% include 'styleguide2/includes/atoms/form_fields/form_input.html' with placeholder='Hledej' classes='text-black p-3 w-60' name='q' value=global_search_query %} {% endif %} {% block after_desktop_search %}{% endblock %} {% if page.root_page.important_item_name %} {% firstof page.root_page.important_item_page.url page.root_page.important_item_url as target %} {% if not is_transparent %} {% include 'styleguide2/includes/atoms/icons/arrow.html' with width='27' height='28.35' fill='#fff' %} {% else %} {% endif %} {{ page.root_page.important_item_name }} {% endif %} {% for menu_item in page.root_page.menu %} {% if menu_item.block_type == "menu_item" %} {% firstof menu_item.value.page.url menu_item.value.link as target %} {{ menu_item.value.title }} {% else %} {% include_block menu_item %} {% endif %} {% endfor %} {% if page.root_page.menu_button_content or page.root_page.popout_button_content %} {% block navbar_menu_button %} {% if page.root_page.menu_button_name %}{{ page.root_page.menu_button_name }}{% else %}Zapoj se{% endif %} {% for button in page.root_page.menu_button_content %} {% include_block button %} {% endfor %} {% endblock %} {% endif %} {% if page.root_page.show_logo is not False %} {% block popout_logo_image %} {% endblock %} {% endif %} {% if page.root_page.search_page %} {% include 'styleguide2/includes/atoms/form_fields/form_input.html' with placeholder='Hledej' classes='text-black px-2 py-1 w-full' name='q' value=global_search_query %} {% endif %} {% if page.root_page.important_item_name %} {% firstof page.root_page.important_item_page.url page.root_page.important_item_url as target %} {{ page.root_page.important_item_name }} {% endif %} {% for menu in page.root_page.menu %} {% if menu.block_type == "menu_item" %} {% firstof menu.value.page.url menu.value.link as target %} {{ menu.value.title }} {% elif menu.block_type == "menu_parent" %} {% for child_item in menu.value.menu_items %} {% firstof child_item.page.url child_item.link as target %} {{ child_item.title }} {% endfor %} {% endif %} {% endfor %} {% if page.root_page.menu_button_content %} {% for button in page.root_page.menu_button_content %} {{ button.value.button_text }} {% endfor %} {% endif %} {% if page.root_page.popout_button_content %} {% for button in page.root_page.popout_button_content %} {{ button.value.button_text }} {% endfor %} {% endif %} {% for social_link_block in page.root_page.social_links %} {% endfor %} {% block observer_script %} {% endblock %}