src/NCBS/WebsiteBundle/Resources/views/Bible/multicolumn/bible_text_column.html.twig line 1

Open in your IDE?
  1. {% set single_verse = contents|length == 1 and contents|first|length == 1 %}
  2. {% set bFullChapter = false %}
  3. {% set bSingleVerse = single_verse %}
  4. {% set nColNum = 0 %}
  5. {% if column_num is defined %}
  6.     {% set nColNum = column_num %}
  7. {% endif %}
  8. {% include 'NCBSWBundle:Bible:search/search_in_bible.html.twig' %}
  9.     
  10. {% if story is not defined and contents|length > 1 %}
  11.   <p>{% include 'NCBSWBundle:Bible:chapter/prev-next.html.twig' %}</p>
  12. {% endif %}
  13. {% for chapter_num, chapter_contents in contents if chapter_contents is not empty %}
  14.   {% set current_chapter = chapter_contents|first.chapter %}
  15.   {% if loop.first %}{% set book_name = current_chapter.book.name %}{% endif %}
  16.   <div style="clear:both"></div>
  17.   {% if story is not defined %}
  18.       <span style="display:inline-block;"> 
  19.   {% endif %}    
  20.   <h1>
  21.     {% if chapter_contents|first == current_chapter.verses|first and chapter_contents|last == current_chapter.verses|last %}
  22.       {{ app.session.get('ui_str')["bible.chapternav.bookchapter"]|replace({'_8100_': book_name, '_8200_': chapter_num})|raw }}
  23.     {% elseif chapter_contents|length == 1 %}
  24.       {{ app.session.get('ui_str')["bible.versenav.bookchapterverse"]|replace({'_8100_': book_name, '_8200_': chapter_num, '_8300_': chapter_contents|first.fullIndexDisplay})|raw }}
  25.     {% else %}
  26.       {{ app.session.get('ui_str')["bible.versenav.bookchapterverserange"]|replace({'_8100_': book_name, '_8200_': chapter_num, '_8310_': chapter_contents|first.fullIndexDisplay, '_8320_': chapter_contents|last.fullIndexDisplay})|raw }}
  27.     {% endif %}    
  28.     {% if story is defined and story.name is not empty %}
  29.           : {{ story.name }}
  30.     {% endif %}
  31.   </h1> 
  32.   </span>  
  33.   {% include 'NCBSWBundle:Bible:sidrbutton.html.twig' %}
  34.   <span style="float:left;margin-bottom:7px;">
  35.   {% if story is defined %}
  36.       {#% include 'NCBSWBundle:Bible:interface/translation_dropdown/dropdown.html.twig' with {'dropdown_target': 'multicolumn'} %#}
  37.       {% include 'NCBSWBundle:Bible:interface/popup/bible_story_translation_popup.html.twig' %}
  38.   {% else %}
  39.       <!-- <small>{{ translation.name }}</small> -->
  40.   {% endif %}
  41.   </span>
  42.             
  43.       <div style="clear:both"></div>
  44.       <span class="iconmenuspan">
  45.    {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}{% include 'NCBSWBundle:Bible:toggleview.html.twig' %}{% include 'NCBSWBundle:Bible:interface/popup/book_add_popup_multi_col.html.twig' %}{% include 'NCBSWBundle:Bible:toolbarsearch.html.twig' %}{% include 'NCBSWBundle:Bible:otlemusic.html.twig' %} {% if contents|length == 1 %}{% include 'NCBSWBundle:General:text_to_speech.html.twig' %}{% endif %} {% include 'NCBSWBundle:Bible:show_hide_links.html.twig' %}<li class="nav-item"><a href="{{ path('bible_info', {'translationUrl': translation.url}) }}" title="{{ app.session.get('ui_str')["generic.bibliographyicon"] }}" class="nav-link"><i class="fas fa-info-circle"></i><span class="mobile-only"> {{ app.session.get('ui_str')["generic.bibliographyicon"] }}</span></a></li>{% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}   
  46.    </span>
  47.       <span>
  48.       {% if column_num is defined and column_num < 2 %}
  49.      <span id='prev_next_story'></span> 
  50.       <script>
  51.         if(sPrevNextStory != '')
  52.             $("#prev_next_story").html(sPrevNextStory);
  53.     </script> 
  54.     {% endif %}    
  55.   {% if story is not defined %}
  56.       {% if single_verse %}
  57.         {% include 'NCBSWBundle:Bible:verse/prev-next.html.twig' with {'verse': chapter_contents|first} %}
  58.       {% elseif contents|length == 1 %}            
  59.         <span id="chapter_nav{{ column_num }}">{% include 'NCBSWBundle:Bible:chapter/prev-next.html.twig' with {'chapter': chapter_contents|first.chapter}
  60.         %}</span>
  61.       {% endif %}
  62.   {% endif %}
  63.   </span>
  64.   
  65.   <div style="clear:both"></div>
  66.   
  67.       {% set text_style = '' %}
  68.     {% if text_style_override is defined and text_style_override is not null %}
  69.         {% set text_style = 'style="'~text_style_override~'"' %}
  70.     {% endif %}   
  71.     <div class="text-content" >
  72.   
  73.     {% if right_to_left %}
  74.     <p style="direction: rtl;">
  75.     {% else %}
  76.     <p>
  77.     {% endif %}
  78.     <div id="tts{{ nColNum }}" >
  79.       {% for position, verse in chapter_contents %}        
  80.           {% include 'NCBSWBundle:Bible:verse/default.html.twig' %}        
  81.       {% endfor %}
  82.       </div>
  83.     </p>
  84.   </div>  
  85.   {% if story is not defined %}
  86.       {% if single_verse %}
  87.     {# Removed for aesthetic reasons ("if" tag kept in place so the "elseif" will still work)
  88.         <p>{% include 'NCBSWBundle:Bible:verse/prev-next.html.twig' with {'verse': chapter_contents|first} %}</p>
  89.     #}
  90.       {% elseif contents|length == 1 %}           
  91.         <p>{% include 'NCBSWBundle:Bible:chapter/prev-next.html.twig' with {'chapter': chapter_contents|first.chapter} %}</p>
  92.       {% endif %}
  93.   {% endif %}
  94. {% else %}
  95.   {# If the "contents" array is empty, then we have no actual Bible text, so we'll choose an appropriate error message #}
  96.   {% if no_content_msg is defined and no_content_msg is not null %}
  97.     {{ no_content_msg|trim|raw }}
  98.   {% else %}
  99.       {{ app.session.get('ui_str')["bible.alert.nocontent"] }}
  100.   {% endif %}
  101. {% endfor %}
  102. {% if story is not defined and contents|length > 1 %}
  103.   <p>{% include 'NCBSWBundle:Bible:chapter/prev-next.html.twig' %}</p>
  104. {% endif %}
  105.  
  106.     {% include 'NCBSWBundle:Bible:sidr.html.twig' %}
  107.   
  108.   {% if translation is not empty and translation.language_name != 'English' and translation.language_name != 'Latin'%}
  109.     <input type=hidden name="IsOtherLang" value="1">    
  110.   {% endif %}
  111. {% include 'NCBSWBundle:Bible:biblefooter.html.twig' %}