{% macro tnaPicture(params) %} {% from "components/tabs/macro.html" import tnaTabs %} {%- set containerClasses = [params.classes] if params.classes else [] -%}
{%- for source in params.sources -%} {%- endfor -%} {{ params.alt }}
{%- if params.transcript or params.translation -%}
{%- if params.transcript and params.translation -%} {{ tnaTabs({ 'items': [ { 'id': "test1", 'title': "Transcript", 'body': params.transcript }, { 'id': "test2", 'title': "English translation", 'body': params.translation } ] }) }} {%- elif params.transcript -%} {{ params.transcript | safe }} {%- else -%} {{ params.translation | safe }} {%- endif -%}
{%- endif -%} {%- if params.caption -%}
{{ params.caption | safe }}
{%- endif -%}
{% endmacro %}