{% if passage is null %}
{% set prv = null %}
{% set nxt = null %}
{% if work is not defined or work is null %}
{% if translation is defined and translation is not null %}
{% set work = translation.work %}
{% else %}
{% set work = null %}
{% endif %}
{% endif %}
{% else %}
{% set prv = null %}
{% if previous_passage is defined and previous_passage is not empty %}
{% set prv = previous_passage %}
{% endif %}
{% set nxt = null %}
{% if next_passage is defined and next_passage is not empty %}
{% set nxt = next_passage %}
{% endif %}
{% set work = passage.findWork() %}
{% endif %}
{% if IsSwedenborgWork is defined and IsSwedenborgWork == 1 %}
<span style="display:inline-block; margin-bottom:10px;">
{% if prv is not null %}
<a class="nav_link" {% include 'NCBSWBundle:Exposition:interface/passage_links/link_attrs.html.twig' with {'target_passage': prv} %} alt="← {{ app.session.get('ui_str')["exposition.passage.prev"] }}" title="← {{ app.session.get('ui_str')["exposition.passage.prev"] }}"><i class="fa-duotone fa-circle-arrow-left" style="--fa-secondary-opacity: 0.3;"></i></a>
{% endif %}
{% include 'NCBSWBundle:Exposition:swedenborg_section_textbox.html.twig' with {'textbox_position': link_position} %}
{% if nxt is not null %}
{% set sHref = "" %}
<a class="nav_link"
{% if use_quickview is defined and use_quickview %}
href="#" onclick="return loadQuickview('{{ path('quickview_exposition_translation_passage', {'translationId': translation.id, 'passageId': nxt.id}) }}{% if compare_to is defined and compare_to is not null %}?compareTo={{ compare_to.id }}{% endif %}');"
{% elseif multicolumn is defined and multicolumn == true %}
href="{{ path(multicolumn_path, multicolumn_route_params|merge({('column'~column_num~'Details'): nxt.multi_spec}) ) }}"
{% else %}
{% if bInFrame %}
href="{{ path('exposition_frame_passage', {'translationUrl': nxt.translation_url, 'divisionUrls': nxt.division_url, 'passageNumber': nxt.passage_order})}}"
{% else %}
{% set sHref = path('exposition_translation_division_passage', {'translationUrl': nxt.translation_url, 'divisionUrls': nxt.division_url, 'passageNumber': nxt.passage_order}) %}
{% if compare_to is defined and compare_to is not null %}
{% set sHref = sHref ~ "?compareTo=" ~ compare_to.url %}
{% endif %}
{% if compare_to2 is defined and compare_to2 is not null %}
{% set sHref = sHref ~ ";;" ~ compare_to2.url %}
{% endif %}
href="{{ sHref }}"
{% endif %}
{% endif %}
alt="{{ app.session.get('ui_str')["exposition.passage.next"] }} →" title="{{ app.session.get('ui_str')["exposition.passage.next"] }} →"><i class="fa-duotone fa-circle-arrow-right" style="--fa-secondary-opacity: 0.3;"></i></a>
{% endif %}
</span>
<div style="clear:both"></div>
{% if link_position == 2 %}
{% include 'NCBSWBundle:Exposition:sidrw.html.twig' %}
{% if not bInFrame %}
{% include 'NCBSWBundle:Exposition:biblio.html.twig' %}
{% endif %}
{% endif %}
{% else %}
{% if prev_next is defined and prev_next is not empty %}
{% set prv = prev_next['prev'] %}
{% set nxt = prev_next['next'] %}
{% if prv is not empty %}
<a class="nav_link" href="{{ path('exposition_translation', {'translationUrl': prv})}}" alt="← {{ app.session.get('ui_str')["exposition.passage.prev"] }}" title="← {{ app.session.get('ui_str')["exposition.passage.prev"] }}"><i class="fa-duotone fa-circle-arrow-left" style="--fa-secondary-opacity: 0.3;"></i></a>
{% endif %}
{% if nxt is not empty %}
<a class="nav_link" href="{{ path('exposition_translation', {'translationUrl': nxt})}}" alt="{{ app.session.get('ui_str')["exposition.passage.next"] }} →" title="{{ app.session.get('ui_str')["exposition.passage.next"] }} →"><i class="fa-duotone fa-circle-arrow-right" style="--fa-secondary-opacity: 0.3;"></i></a>
{% endif %}
{% endif %}
{% endif %}