{% if bInFrame %}
{% set aParam = app.request.query.all %}
<script>
$('html').css('overflow','auto');
$('html').css('font-size','14.8px');
$('h1').css('color','#6c3a2a');
{% if aParam.st is defined %}
function ScrollToPos2(vElemID)
{
//$("#"+vElemID).css("scroll-margin", "80px");
var oElem = document.getElementById(vElemID);
oElem.scrollIntoView();
// Scroll back to top in frame
var oElem2 = document.getElementsByClassName('breadcrumb')[0];
oElem2.scrollIntoView();
top.scroll(0,0);
}
$(document).ready(function () {
ScrollToPos2("{{ aParam.st }}",'');
});
{% endif %}
</script>
{% endif %}
{% if (translation is not defined or translation is null) and passage is defined and passage is not null %}
{% if work is not defined %}
{% set work = passage.findWork() %}
{% endif %}
{% set translation = work.selectTranslation() %}
{% endif %}
{% include 'NCBSWBundle:Bible:chapter/prev-next-explanation.html.twig' %}
{% if plan_step is not defined %}
{% include 'NCBSWBundle:Exposition:passage_links.html.twig' with {'link_position': '1'} %}
{% endif %}
{% if work is defined and work is not null and work.stories is not empty %}
{% set story = work.stories|first %}
{% endif %}
{% if story is defined and story is not null and story.illustrations is not empty %}
{% include 'NCBSWBundle:Media:image_tag.html.twig' with {'image_entity': random(story.illustrations).image, 'border': 1} %}
<br><br>
{% endif %}
{% set text_style = '' %}
{% if text_style_override is defined and text_style_override is not null %}
{% set text_style = 'style="'~text_style_override|replace({'"':"'"})~'"' %}
{% endif %}
{% if compare_to is not defined or compare_to is null or compare_to == translation %}
<div style="clear:both;"></div>
{% if bInFrame %}
<div style="height: 500px; overflow-x: hidden;overflow-y: auto;">
{% endif %}
{% if (image is defined and image is not null) or (passage is defined and passage is not null and passage.media is not empty) %}
<div class="row">
<div class="col-md-4" id="media-column">
{% if image is defined and image is not null %}
{% include 'NCBSWBundle:Media:image_tag.html.twig' with {'image_entity': image, 'border': 1} %}
<br /><br />
{% endif %}
{% for media_item in passage.media %}
<p></p>
{% include 'NCBSWBundle:Media:embed_iframe.html.twig' with {'embed_entity': media_item.embed} %}
{% endfor %}
</div>
<div class="col-md-8 text-content" {{ text_style|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' %}
</div>
</div>
{% else %}
<div class="text-content" {{ text_style|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' %}
</div>
{% endif %}
{% if bInFrame %}
</div>
{% endif %}
{% elseif compare_to2 is not defined or compare_to2 is null %}
<div class="row">
<div class="col-md-6">
<h3>
{% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 1 } %}
{{ translation.getNameOrTitle() }}{% if translation.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
</h3>
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
<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> {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech1, 'column_num' : 1 } %}
{% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
{% if translation.getLanguage().getId() == 246 %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
{% endif %}
{% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
<br />
<div class="text-content" {{ text_style|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'column_num' : 1 } %}
</div>
</div>
<div class="col-md-6">
<h3>
{% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 2 } %}
{{ compare_to.getNameOrTitle() }}{% if compare_to.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
</h3>
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
<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> {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech2, 'column_num' : 2 } %}
{% if compare_to.getLanguage().getId() == 246 %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
{% endif %}
{% include 'NCBSWBundle:Default:askquestioninc.html.twig' with {'column_num' : 2 } %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
<br />
{% set text_style_compare_to = '' %}
{% if text_style_override_compare_to is defined and text_style_override_compare_to is not null %}
{% set text_style_compare_to = 'style="'~text_style_override_compare_to|replace({'"':"'"})~'"' %}
{% endif %}
<div class="text-content" {{ text_style_compare_to|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'translation': compare_to, 'text_to_speech' : text_to_speech2, 'column_num' : 2} %}
</div>
</div>
</div>
{% else %}
<div class="row">
<div class="col-md-4">
<h3>
{% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 1 } %}
{{ translation.getNameOrTitle() }}{% if translation.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
</h3>
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
<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> {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech1, 'column_num' : 1 } %}
{% include 'NCBSWBundle:Exposition:related_bible_ref.html.twig' %}
{% if translation.getLanguage().getId() == 246 %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
{% endif %}
{% include 'NCBSWBundle:Default:askquestioninc.html.twig' %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
<br />
<div class="text-content" {{ text_style|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'column_num' : 1 } %}
</div>
</div>
<div class="col-md-4">
<h3>
{% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 2 } %}
{{ compare_to.getNameOrTitle() }}{% if compare_to.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
</h3>
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
<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> {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech2, 'column_num' : 2 } %}
{% if compare_to.getLanguage().getId() == 246 %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
{% endif %}
{% include 'NCBSWBundle:Default:askquestioninc.html.twig' with {'column_num' : 2 } %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
<br />
{% set text_style_compare_to = '' %}
{% if text_style_override_compare_to is defined and text_style_override_compare_to is not null %}
{% set text_style_compare_to = 'style="'~text_style_override_compare_to|replace({'"':"'"})~'"' %}
{% endif %}
<div class="text-content" {{ text_style_compare_to|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'translation': compare_to, 'text_to_speech' : text_to_speech2, 'column_num' : 2 } %}
</div>
</div>
{% set text_style_compare_to2 = '' %}
{% if text_style_override_compare_to2 is defined and text_style_override_compare_to2 is not null %}
{% set text_style_compare_to2 = 'style="'~text_style_override_compare_to2|replace({'"':"'"})~'"' %}
{% endif %}
<div class="col-md-4">
<h3>
{% include 'NCBSWBundle:General:close_icon.html.twig' with {'column_num' : 3 } %}
{{ compare_to2.getNameOrTitle() }}{% if compare_to2.isOriginal %} {{ app.session.get('ui_str')["exposition.translate.mark.original"] }}{% endif %}
</h3>
{% include 'NCBSWBundle:Default:toolbarstart.html.twig' %}
<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> {% include 'NCBSWBundle:General:text_to_speech.html.twig' with {'text_to_speech' : text_to_speech3, 'column_num' : 3 } %}
{% if compare_to2.getLanguage().getId() == 246 %}
{% include 'NCBSWBundle:Exposition:show_scan_image.html.twig' %}
{% endif %}
{% include 'NCBSWBundle:Default:askquestioninc.html.twig' with {'column_num' : 3 } %}
{% include 'NCBSWBundle:Default:toolbarend.html.twig' %}
<br />
<div class="text-content" {{ text_style_compare_to2|trim|raw }}>
{% include 'NCBSWBundle:Exposition:passage_text.html.twig' with {'translation': compare_to2, 'text_to_speech' : text_to_speech3, 'column_num' : 3 } %}
</div>
</div>
</div>
{% endif %}
{% if story is defined and story is not null %}
{% set embed_options = story.getMultimedia() %}
{% for embed_entity in embed_options %}
{% include 'NCBSWBundle:Media:embed_iframe.html.twig' %}
{% endfor %}
{% endif %}
{% if plan_step is not defined %}
{% include 'NCBSWBundle:Exposition:passage_links.html.twig' with {'link_position': '2'} %}
{% else %}
{% include 'NCBSWBundle:Exposition:sidrw.html.twig' %}
{% endif %}
{% include 'NCBSWBundle:Bible:chapter/prev-next-explanation.html.twig' %}