src/NCBS/WebsiteBundle/Resources/views/Exposition/passage_links.html.twig line 1

Open in your IDE?
  1. {% if passage is null %}
  2.     {% set prv = null %}
  3.     {% set nxt = null %}
  4.     {% if work is not defined or work is null %}
  5.         {% if translation is defined and translation is not null %}
  6.             {% set work = translation.work %}
  7.         {% else %}
  8.             {% set work = null %}
  9.         {% endif %}
  10.     {% endif %}
  11. {% else %}
  12.     {% set prv = null %}
  13.     {% if previous_passage is defined and previous_passage is not empty %}
  14.         {% set prv = previous_passage %}
  15.     {% endif %}
  16.     {% set nxt = null %}
  17.     {% if next_passage is defined and next_passage is not empty %}
  18.         {% set nxt = next_passage %}
  19.     {% endif %}
  20.     {% set work = passage.findWork() %}
  21. {% endif %}
  22. {% if IsSwedenborgWork is defined and IsSwedenborgWork == 1 %}
  23.     <span style="display:inline-block; margin-bottom:10px;">
  24.         {% if prv is not null %}
  25.             <a class="nav_link nav-arrow-prev" {% include 'NCBSWBundle:Exposition:interface/passage_links/link_attrs.html.twig' with {'target_passage': prv} %} alt="&larr; {{ app.session.get('ui_str')["exposition.passage.prev"] }}" title="&larr; {{ app.session.get('ui_str')["exposition.passage.prev"] }}"><i class="fa-duotone fa-circle-arrow-left" style="--fa-secondary-opacity: 0.3;"></i></a>&nbsp;&nbsp;
  26.         {% endif %}
  27.         {% include 'NCBSWBundle:Exposition:swedenborg_section_textbox.html.twig' with {'textbox_position': link_position} %}
  28.         {% if nxt is not null %}
  29.             {% set sHref = "" %}
  30.             &nbsp;&nbsp;<a class="nav_link nav-arrow-next" {% 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"] }} &rarr;" title="{{ app.session.get('ui_str')["exposition.passage.next"] }} &rarr;"><i class="fa-duotone fa-circle-arrow-right" style="--fa-secondary-opacity: 0.3;"></i>
  31.             </a>
  32.         {% endif %}
  33.     </span>    
  34.     <div style="clear:both"></div>
  35.     {% if link_position == 2 %}
  36.         {% include 'NCBSWBundle:Exposition:sidrw.html.twig' %}
  37.         {% if not bInFrame %}
  38.             {% set nColNum = 0 %}
  39.             {% if column_num is defined %}
  40.                 {% set nColNum = column_num %}
  41.             {% endif %}
  42.             {% if nColNum == 0 %}   
  43.                 </div>
  44.             {% endif %}
  45.             {% include 'NCBSWBundle:Exposition:biblio.html.twig' %}
  46.         {% endif %}
  47.     {% endif %}
  48. {% else %}
  49.     {% if prev_next is defined and prev_next is not empty %}
  50.         {% set prv = prev_next['prev'] %}
  51.         {% set nxt = prev_next['next'] %}
  52.         {% if prv is not empty %}
  53.             <a class="nav_link nav-arrow-prev" href="{{ path('exposition_translation', {'translationUrl': prv})}}" alt="&larr; {{ app.session.get('ui_str')["exposition.passage.prev"] }}" title="&larr; {{ app.session.get('ui_str')["exposition.passage.prev"] }}"><i class="fa-duotone fa-circle-arrow-left" style="--fa-secondary-opacity: 0.3;"></i></a>&nbsp;&nbsp;
  54.         {% endif %}
  55.         {% if nxt is not empty %}
  56.             <a class="nav_link nav-arrow-next" href="{{ path('exposition_translation', {'translationUrl': nxt})}}" alt="{{ app.session.get('ui_str')["exposition.passage.next"] }} &rarr;" title="{{ app.session.get('ui_str')["exposition.passage.next"] }} &rarr;"><i class="fa-duotone fa-circle-arrow-right" style="--fa-secondary-opacity: 0.3;"></i></a>&nbsp;&nbsp;
  57.         {% endif %}
  58.     {% endif %}
  59. {% endif %}