src/NCBS/WebsiteBundle/Resources/views/Bible/verse/default.html.twig line 1

Open in your IDE?
  1. {% set bRightToLeft = false %}
  2. {% if right_to_left is defined and right_to_left is not null %}
  3.     {% set bRightToLeft = right_to_left %}
  4. {% else %}    
  5.     {% set bRightToLeft = verse.findMainVerse().chapter.book.translation.language.rightToLeft %}
  6. {% endif %}
  7. {% set bForSearch = false %}
  8. {% if for_search is defined %}
  9.     {% set bForSearch = for_search %}
  10. {% endif %}
  11. {% if bRightToLeft %}
  12.         <p style="direction: rtl;margin-top: 1px;margin-bottom: 1px;text-align:right;">
  13.     {% else %}
  14.     <p style="margin-top: 1px;margin-bottom: 1px;">
  15.     {% endif %}
  16. {% if verse.subverses is empty %}
  17.   {% include 'NCBSWBundle:Bible:verse/literal.html.twig' with {'for_search': bForSearch} %}
  18. {% else %}
  19.   {% include 'NCBSWBundle:Bible:verse/optional.html.twig' with {'for_search': bForSearch} %}
  20.   
  21.   {% if (content_class is defined and content_class == 'verse') or (content_category is defined and content_category == 'v')  %}
  22.       {% for subverse in verse.subverses %}    
  23.         {% include 'NCBSWBundle:Bible:verse/optional.html.twig' with {'verse': subverse, 'for_search': bForSearch} %}
  24.       {% endfor %}
  25.   {% endif %} 
  26. {% endif %}
  27. </p>