{% set translation_id = '' %}{% if translation is defined and translation is not null %}{% set translation_id = translation.id %}{% endif %}{% if item.type_id == 2 %}{#
#}{% include "NCBSWBundle:Exposition:display_behaviors/hyperlink.html.twig" %}{#
#}{% elseif (in_bible_slider is defined and in_bible_slider) %}{{ item.text|nl2br|raw }}{% else %}{#
#}{% set aText = item.text|split(' ') %}{#
#}{% set aNewText = [] %}{% set nCount = 0 %}{% set sLink = '' %}{#
#}{% for str in aText %}{#
#}{% if nCount == 0 %}{#
#}{% if str|first in [1,2,3,4,5,6,7,8,9,] and '.' in str %}{#
#}{% 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>'~'. ' %}{#
#}{% else %}{#
#}{% set aNewText = aNewText|merge([str]) %}{#
#}{% endif %}{#
#}{% else %}{#
#}{% set aNewText = aNewText|merge([str]) %}{#
#}{% endif %}{#
#}{% set nCount = nCount +1 %}{#
#}{% endfor %}{{ sLink|trim|raw }}{{ aNewText|join(' ')|replace({"\n":"<br>"})|raw }}{#
#}{% endif %}