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

Open in your IDE?
  1. {% set translation_id = '' %}
  2. {% if translation is defined and translation is not null %}
  3.   {% set translation_id = translation.id %}
  4. {% endif %}
  5. {% if (in_bible_slider is defined and in_bible_slider) %}
  6.     <sup id="fn{{translation_id}}_{{ item.text|trim|nl2br }}">{{ item.text|nl2br }}</sup>
  7. {% elseif (use_quickview is defined and use_quickview) or (bible_chapter_summary is defined and bible_chapter_summary) %}
  8.     {% set sContent = '' %}
  9.     {% if (use_quickview is defined and use_quickview) %}
  10.         {% set sContent = 'result-content' %}    
  11.     {% endif %}
  12.     {% set sLink = '<a href="javascript:ScrollToElem(\'fnt'~translation_id~'_'~item.text|trim|nl2br~'\',\''~sContent~'\')" style="color:red">'~item.text|trim|nl2br~'</a>' %}
  13.     <sup id="fn{{translation_id}}_{{ item.text|trim|nl2br }}">{{ sLink|trim|raw }}</sup>
  14. {% else %}
  15.     <sup id="fn{{translation_id}}_{{ item.text|trim|nl2br }}"><a data-toggle="popover" data-content="{% autoescape 'html_attr' %}<p>{% if item.subitems is not empty %}{% for subitem in item.subitems %}{% include "NCBSWBundle:Exposition:display_behaviors/footnote_popup.html.twig" with {'item': subitem} %}{% endfor %}{% else %}{% if passage_footnote is defined and passage_footnote is not empty and passage_footnote[item.text] is defined %}{{ passage_footnote[item.text] }}{% endif %}{% endif %}</p>{% endautoescape %}" style="color:red;cursor:pointer">{{ item.text|nl2br }}</a></sup>
  16. {% endif %}