{%- macro footer(content, color) -%} {%- endmacro %} {%- macro footer_main(content) -%}
{{ content }}
{%- endmacro %} {%- macro footer_secondary(content, acknowledgement) -%}
{%- if acknowledgement is not none -%}
{%- endif %} {{ content }}
{%- endmacro %} {%- macro _waratah_svg() -%} {%- endmacro %} {%- macro header(content, title, subtitle, logo, co_brand, badge, href=h.url_for("home.index")) -%} {%- set form_id = ui.util.id() -%}
{%- if co_brand and co_brand.direction=="column" -%} {%- else -%} {%- if title -%}
{{ title }} {{ ui.tag(badge) if badge }}
{%- endif %} {%- if subtitle -%}
{{ subtitle }}
{%- endif %} {%- endif %}
{{ content }} {%- endmacro %} {%- macro account(content, color, title=_("A NSW Government website")) -%} {%- set class = "nsw-masthead" -%} {%- if color == "light" -%} {%- set class = class ~ " nsw-masthead--" ~ color -%} {%- else -%} {%- set class = class ~ " nsw-section--invert" -%} {%- endif %}
{{ title }} {{ content }}
{%- endmacro %} {%- macro language_selector() -%} {% set current_lang = request.environ.CKAN_LANG %} {#%- set data_attrs = {"module": "autocomplete", "module-dropdown-class": "lang-dropdown", "module-container-class": "lang-container"} -%#} {%- set label = ui.icon("globe") ~ ui.util.tag(_('Language'), "span", attrs={"class": "sr-only"}) -%} {%- set item_kwargs = kwargs -%}
{%- call ui.util.call(ui.form, method="POST", action=h.url_for('util.internal_redirect'), data={"module": "theming-change-submit", "module-selector": "[name=url]"}) -%} {%- set ns = namespace(options=[]) -%} {% for locale in h.get_available_locales() %} {%- do ns.options.append({"text": locale.display_name or locale.english_name, "value": h.url_for(h.current_url(), locale=locale.short_name)}) -%} {% endfor %} {%- call ui.util.call(ui.autocomplete, options=ns.options, selected=h.url_for(h.current_url(), locale=current_lang), name="url", id=ui.util.id(), label=label, **item_kwargs) -%} {%- endcall %} {%- endcall %}
{%- endmacro %}