src/NCBS/WebsiteBundle/Resources/views/Exposition/passage_view.html.twig line 1

Open in your IDE?
  1. {% if bInFrame %}
  2.     {% set aParam = app.request.query.all %} 
  3.     
  4.     <script>    
  5.         $('html').css('overflow','auto');
  6.         $('html').css('font-size','14.8px');
  7.         $('h1').css('color','#6c3a2a');    
  8.         {% if aParam.st is defined %}
  9.             function ScrollToPos2(vElemID)
  10.             {
  11.                 //$("#"+vElemID).css("scroll-margin", "80px");
  12.                 var oElem = document.getElementById(vElemID);                
  13.                 oElem.scrollIntoView();
  14.                 
  15.                 // Scroll back to top in frame                                
  16.                 var oElem2 = document.getElementsByClassName('breadcrumb')[0];
  17.                 oElem2.scrollIntoView();
  18.                 
  19.                 top.scroll(0,0);                           
  20.             }    
  21.             
  22.             $(document).ready(function () {
  23.                   ScrollToPos2("{{ aParam.st }}",'');
  24.             });    
  25.         {% endif %}    
  26.     </script>
  27. {% endif %}
  28. {% if (translation is not defined or translation is null) and passage is defined and passage is not null %}
  29.   {% if work is not defined %}
  30.     {% set work = passage.findWork() %}
  31.   {% endif %}
  32.   {% set translation = work.selectTranslation() %}
  33. {% endif %}
  34. {% include 'NCBSWBundle:Bible:chapter/prev-next-explanation.html.twig' %}
  35. {% if plan_step is not defined %}
  36.     {% include 'NCBSWBundle:Exposition:passage_links.html.twig' with {'link_position': '1'} %}
  37. {% endif %}
  38. {% if work is defined and work is not null and work.stories is not empty %}
  39.   {% set story = work.stories|first %}
  40. {% endif %}
  41. {% if story is defined and story is not null and story.illustrations is not empty %}
  42.   {% include 'NCBSWBundle:Media:image_tag.html.twig' with {'image_entity': random(story.illustrations).image, 'border': 1} %}
  43.   <br><br>
  44. {% endif %}
  45. {% set text_style = '' %}
  46. {% if text_style_override is defined and text_style_override is not null %}
  47.     {% set text_style = 'style="'~text_style_override|replace({'"':"'"})~'"' %}
  48. {% endif %} 
  49. {% if compare_to is not defined or compare_to is null or compare_to == translation %}
  50.     <div style="clear:both;"></div>
  51. {% if bInFrame %}
  52.     <div style="height: 500px; overflow-x: hidden;overflow-y: auto;">
  53. {% endif %} 
  54.   {% if reading_plan_notes is defined and reading_plan_notes is not empty %}
  55.     <div class="row">             
  56.         <div class="col-8" >
  57.     {% else %}
  58.         <div>
  59.     {% endif %}    
  60.     
  61.   {% if (image is defined and image is not null) or (passage is defined and passage is not null and passage.media is not empty) %}      
  62.     <div class="row">
  63.       <div class="col-md-4" id="media-column">      
  64.         {% if image is defined and image is not null %}
  65.           {% include 'NCBSWBundle:Media:image_tag.html.twig' with {'image_entity': image, 'border': 1} %}
  66.           <br /><br />
  67.         {% endif %}
  68.         {% for media_item in passage.media %}
  69.         <p></p>
  70.           {% include 'NCBSWBundle:Media:embed_iframe.html.twig' with {'embed_entity': media_item.embed} %}
  71.         {% endfor %}
  72.       </div>
  73.       <div class="col-md-8 text-content" {{ text_style|trim|raw }}>
  74.         {% include 'NCBSWBundle:Exposition:passage_text.html.twig' %}
  75.       </div>
  76.     </div>
  77.   {% else %}      
  78.     <div class="text-content" {{ text_style|trim|raw }}>
  79.       {% include 'NCBSWBundle:Exposition:passage_text.html.twig' %}
  80.     </div>
  81.   {% endif %}
  82.   </div>
  83.           {% include 'NCBSWBundle:Bible:readingplan/readingplan_note_list.html.twig' %}
  84.    </div>
  85.         
  86.   {% if bInFrame %}
  87.           </div>
  88.   {% endif %}
  89. {% elseif compare_to2 is not defined or compare_to2 is null %}
  90.   <div class="row">
  91.     <div class="col-md-6">
  92.       <h3>
  93.       {% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 1 } %} 
  94.       {{ translation.getNameOrTitle() }}{% if translation.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
  95.       </h3>
  96.       {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
  97.        <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': translation.getUrl()}) }}" 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> 
  98.        {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
  99.        {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech1, 'column_num' : 1 } %}    
  100.       {% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
  101.       {% if translation.getLanguage().getId() == 246 %}
  102.           {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}  
  103.       {% endif %}
  104.        {% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}    
  105.        {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}    
  106.       
  107.       <br />
  108.       <div class="text-content" {{ text_style|trim|raw }}>      
  109.         {% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'column_num' : 1 } %}
  110.       </div>
  111.     </div>
  112.     <div class="col-md-6">
  113.       <h3>
  114.       {% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 2 } %}       
  115.       {{ compare_to.getNameOrTitle() }}{% if compare_to.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
  116.       </h3>
  117.       {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
  118.       <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': compare_to.getUrl()}) }}" 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> 
  119.       {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
  120.       {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech2, 'column_num' : 2 } %}
  121.       {% if compare_to.getLanguage().getId() == 246 %}
  122.         {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
  123.       {% endif %}
  124.       {% include 'NCBSWBundle:Default:askquestioninc.html.twig' with {'column_num' : 2 } %}
  125.       {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
  126.       
  127.       <br />
  128.       {% set text_style_compare_to = '' %}
  129.         {% if text_style_override_compare_to is defined and text_style_override_compare_to is not null %}
  130.             {% set text_style_compare_to = 'style="'~text_style_override_compare_to|replace({'"':"'"})~'"' %}
  131.         {% endif %}
  132.       <div class="text-content" {{ text_style_compare_to|trim|raw }}>
  133.         {% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'translation': compare_to, 'text_to_speech' : text_to_speech2, 'column_num' : 2} %}        
  134.       </div>
  135.     </div>
  136.   </div>
  137. {% else %}
  138.   <div class="row">
  139.     <div class="col-md-4">
  140.       <h3>
  141.       {% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 1 } %}        
  142.       {{ translation.getNameOrTitle() }}{% if translation.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
  143.        </h3>
  144.        {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
  145.        <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': translation.getUrl()}) }}" 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> 
  146.        {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
  147.        {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech1, 'column_num' : 1 } %}
  148.        {% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
  149.        {% if translation.getLanguage().getId() == 246 %}
  150.             {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
  151.        {% endif %}
  152.         {% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
  153.         {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
  154.       
  155.       <br />
  156.       <div class="text-content" {{ text_style|trim|raw }}>
  157.         {% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'column_num' : 1 } %}
  158.       </div>
  159.     </div>
  160.     <div class="col-md-4">
  161.       <h3>
  162.       {% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 2 } %}       
  163.       {{ compare_to.getNameOrTitle() }}{% if compare_to.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %} 
  164.        </h3>
  165.        {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
  166.        <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': compare_to.getUrl()}) }}" 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> 
  167.        {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
  168.        {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech2, 'column_num' : 2 } %}
  169.        {% if compare_to.getLanguage().getId() == 246 %}
  170.         {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
  171.       {% endif %}
  172.       {% include 'NCBSWBundle:Default:askquestioninc.html.twig' with {'column_num' : 2 } %}
  173.       {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
  174.       
  175.       <br />
  176.       {% set text_style_compare_to = '' %}
  177.         {% if text_style_override_compare_to is defined and text_style_override_compare_to is not null %}
  178.             {% set text_style_compare_to = 'style="'~text_style_override_compare_to|replace({'"':"'"})~'"' %}
  179.         {% endif %}
  180.       <div class="text-content" {{ text_style_compare_to|trim|raw }}>
  181.         {% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'translation': compare_to, 'text_to_speech' : text_to_speech2, 'column_num' : 2 } %}
  182.       </div>
  183.     </div>
  184.     {% set text_style_compare_to2 = '' %}
  185.     {% if text_style_override_compare_to2 is defined and text_style_override_compare_to2 is not null %}
  186.         {% set text_style_compare_to2 = 'style="'~text_style_override_compare_to2|replace({'"':"'"})~'"' %}
  187.     {% endif %}
  188.     <div class="col-md-4">
  189.       <h3>
  190.       {% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 3 } %}       
  191.       {{ compare_to2.getNameOrTitle() }}{% if compare_to2.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %} 
  192.        </h3>
  193.        {% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
  194.        <li class="nav-item"><a href="{{ path('exposition_translation_index', {'translationUrl': compare_to2.getUrl()}) }}" 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>
  195.        {% include 'NCBSWBundle:Exposition:toolbar_for_concept.html.twig' %}
  196.        {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech3, 'column_num' : 3 } %}
  197.        {% if compare_to2.getLanguage().getId() == 246 %}
  198.         {% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
  199.       {% endif %}
  200.       {% include 'NCBSWBundle:Default:askquestioninc.html.twig' with {'column_num' : 3 } %}
  201.       {% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
  202.       
  203.       <br />
  204.       <div class="text-content" {{ text_style_compare_to2|trim|raw }}>
  205.         {% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'translation': compare_to2, 'text_to_speech' : text_to_speech3, 'column_num' : 3 } %}
  206.       </div>
  207.     </div>
  208.   </div>
  209. {% endif %}
  210. {% if story is defined and story is not null %}
  211.   {% set embed_options = story.getMultimedia() %}
  212.   {% for embed_entity in embed_options %}
  213.     {% include 'NCBSWBundle:Media:embed_iframe.html.twig' %}
  214.   {% endfor %}
  215. {% endif %}
  216. {% if plan_step is not defined %}
  217.     {% include 'NCBSWBundle:Exposition:passage_links.html.twig' with {'link_position': '2'} %}
  218. {% else %}    
  219.     {% include 'NCBSWBundle:Exposition:sidrw.html.twig' %}
  220. {% endif %}
  221. {% include 'NCBSWBundle:Bible:chapter/prev-next-explanation.html.twig' %}