{% set bExplainedVerses = explained_verse is defined and explained_verse is not empty %}
{% set bSingleVersePage = false %}
{% if content_type is defined and content_type == 'single_verse' %}
{% set bSingleVersePage = true %}
{% endif %}
{% set bStoryText = (content_class is defined and content_class == 'storytext' and story.explanations is not empty) %}
{% if (has_slider_item is defined and has_slider_item) or (qbible_link is defined and qbible_link is not empty) or (commentary_with_doc is defined and commentary_with_doc is not empty) or bStoryText %}
{% set nCol = '0' %}
{% if column_num is defined %}
{% set nCol = column_num %}
{% endif %}
<div id="sidr{{ nCol }}" class="slider" style="display:none">
<div class="slider-header">
<a id="close-menu-button{{ nCol }}" ><button class="close close-sidr" title="close study window"><i class="fas fa-arrow-right"></i></button></a> <i class="fas fa-layer-group"></i> {{ app.session.get('ui_str')["bible.button.innermeaning"]|raw }}
</div>
<div class="slider-body" id="sliderBody{{ nCol }}">
<div class="row" style="text-align: center;">
<div class="col" style="display: inline-block;padding-top:88px;">
<img style="width:64px; height:64px;" alt="page loading graphic" src="{{ asset('/bundles/ncbsw/img/loading.svg') }}" />
</div>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$('#simple-menu{{ nCol }}').sidr({
name: 'sidr{{ nCol }}',
timing: 'ease-in-out',
speed: '400',
side: 'right',
displace: false
});
});
$('#close-menu-button{{ nCol }}').click(function () {
$.sidr('close', 'sidr{{ nCol }}');
onCloseSlider();
});
if($('body') != null)
{
$('body').on('click', function (e) {
if ($(e.target).attr('id') != 'simple-menu{{ nCol }}' && $(e.target).parents('.slider').length == 0)
{
$.sidr('close', 'sidr{{ nCol }}');
onCloseSlider();
}
});
}
$( document ).ready(function() {
showElemByID("sidr{{ nCol }}");
});
</script>
{% endif %}