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

Open in your IDE?
  1. {% set translation_id = '' %}{% if translation is defined and translation is not null %}{% set translation_id = translation.id %}{% endif %}{% if item.type_id == 2 %}{#
  2.     #}{% include "NCBSWBundle:Exposition:display_behaviors/hyperlink.html.twig" %}{#
  3. #}{% elseif (in_bible_slider is defined and in_bible_slider) %}{{ item.text|nl2br|raw }}{% else %}{#
  4.     #}{% set aText = item.text|split(' ') %}{#
  5.     #}{% set aNewText = [] %}{% set nCount = 0 %}{% set sLink = '' %}{#
  6.     #}{% for str in aText %}{#
  7. #}{% if nCount == 0 %}{#
  8.     #}{% if str|first in [1,2,3,4,5,6,7,8,9,] and '.' in str %}{#
  9.         #}{% set sContent = '' %}{% if use_quickview is defined and use_quickview %}{% set sContent = 'result-content' %}{% endif %}{% set sLink = '<a href="javascript:ScrollToElem(\'fn'~translation_id~'_'~str|trim('.')~'\',\''~sContent~'\')" style="color:red" id="fnt'~translation_id~'_'~str|trim('.')~'">'~str|trim('.')~'</a>'~'.&nbsp;' %}{#
  10.     #}{% else %}{#
  11.         #}{% set aNewText = aNewText|merge([str]) %}{#
  12.     #}{% endif %}{#
  13.  #}{% else %}{#
  14.     #}{% set aNewText = aNewText|merge([str]) %}{#
  15.  #}{% endif %}{#
  16.     #}{% set nCount = nCount +1 %}{#
  17. #}{% endfor %}{{ sLink|trim|raw }}{{ aNewText|join(' ')|replace({"\n":"<br>"})|raw }}{#
  18. #}{% endif %}