{% set bRightToLeft = false %}
{% if right_to_left is defined and right_to_left is not null %}
{% set bRightToLeft = right_to_left %}
{% else %}
{% set bRightToLeft = verse.findMainVerse().chapter.book.translation.language.rightToLeft %}
{% endif %}
{% set bForSearch = false %}
{% if for_search is defined %}
{% set bForSearch = for_search %}
{% endif %}
{% if bRightToLeft %}
<p style="direction: rtl;margin-top: 1px;margin-bottom: 1px;text-align:right;">
{% else %}
<p style="margin-top: 1px;margin-bottom: 1px;">
{% endif %}
{% if verse.subverses is empty %}
{% include 'NCBSWBundle:Bible:verse/literal.html.twig' with {'for_search': bForSearch} %}
{% else %}
{% include 'NCBSWBundle:Bible:verse/optional.html.twig' with {'for_search': bForSearch} %}
{% if (content_class is defined and content_class == 'verse') or (content_category is defined and content_category == 'v') %}
{% for subverse in verse.subverses %}
{% include 'NCBSWBundle:Bible:verse/optional.html.twig' with {'verse': subverse, 'for_search': bForSearch} %}
{% endfor %}
{% endif %}
{% endif %}
</p>