src/NCBS/WebsiteBundle/Resources/views/Bible/interface/popup/book_popup_multi_col.html.twig line 1

Open in your IDE?
  1. {% set nColNum = 0 %}
  2. {% if column_num is defined %}
  3.     {% set nColNum = column_num %}
  4. {% endif %}
  5. {% if book is defined and book is not null %}
  6.     {% set sBookName = book.name %}
  7. {% else %}    
  8.     {% set sBookName = book_display_name %}
  9. {% endif %}
  10. {% set sTranslationName = '' %}
  11. {% set sTranslationUrl = '' %}
  12. {% if from_menu is not defined %}
  13.     {% if translation is defined and translation is not null %}
  14.         {% set sTranslationName = translation.name %}
  15.         {% set sTranslationUrl = translation.url %}
  16.     {% elseif nColNum == 1 and translation1 is defined and translation1 is not null %}
  17.         {% set sTranslationName = translation1.name %}
  18.         {% set sTranslationUrl = translation1.url %}
  19.     {% elseif nColNum == 2 and translation2 is defined and translation2 is not null %}
  20.         {% set sTranslationName = translation2.name %}
  21.         {% set sTranslationUrl = translation2.url %}
  22.     {% elseif nColNum == 3 and translation3 is defined and translation3 is not null %}
  23.         {% set sTranslationName = translation3.name %}
  24.         {% set sTranslationUrl = translation3.url %}        
  25.     {% endif %}
  26. {% endif %}
  27. {% set sParam = multicolumn_route_params|join(';;') %}
  28. {% set sUrlEnd = '?multi='~sParam~'&col='~nColNum %}
  29. {% if sTranslationName != '' %}    
  30.     {% set sUrlEnd = sUrlEnd~'&translation='~sTranslationName|url_encode %}    
  31. {% endif %}
  32. {% set sUrlEnd = sUrlEnd~'&ti='~nColNum %}
  33. {#% include 'NCBSWBundle:Bible:interface/popup/translation_section_frombook.html.twig' %#}
  34. {% set sUrl = path('select_bible_book', {'translationUrl': sTranslationUrl,'translationUrl2': '-none-','translationUrl3': '-none-'}) ~ sUrlEnd %}
  35. <button type="button" class="btn btn-link" style="font-weight:400;" onclick='openNav("{{ sBookName }}","{{ sUrl }}")'>
  36. {% if sBookName != '' %}
  37.   {{ sBookName }} <i class="fas fa-angle-down"></i>
  38. {% endif %}  
  39. </button>