{% extends '::base.html.twig' %}
{% set bInFrame = false %}
{% if in_frame is defined and in_frame %}
{% set bInFrame = true %}
{% endif %}
{% set current_locale_code = app.request.locale %}
{% set sPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
{% set bUseGoogleTag = not bInFrame and current_locale_code != 'zh' and 'localhost' not in app.request.schemeAndHttpHost %}
{% block stylesheets %}
{{ parent() }}
{% include 'NCBSWBundle::layout_css.html.twig' %}
{% endblock %}
{#% block cache_control %}
{% if 'bible' in sPath or 'swedenborg' in sPath or 'consider' in sPath or 'concepts' in sPath or 'search' in sPath or 'multi' in sPath %}
<meta http-equiv="Cache-control" content="no-cache">
<meta name="expires" content="0">
{% else %}
<meta http-equiv="Cache-control" content="max-age=691200, public">
<meta name="expires" content="never">
{% endif %}
{% endblock %#}
{% block javascripts %}
{{ parent() }}
{% if bUseGoogleTag %}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.defer=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KN9QFFX');</script>
<!-- End Google Tag Manager -->
{% endif %}
{% include 'NCBSWBundle::layout_js.html.twig' %}
{% endblock %}
{% block body %}
{% if bUseGoogleTag %}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KN9QFFX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
{% set sUserID = app.session.get('user_id') %}
{% set bLoggedIn = false %}
{% set sMainsiteMenu = '' %}
{% if log_out is not defined and sUserID != '' %}
{% set bLoggedIn = true %}
<script>
bLoggedIn = true;
$(document).ready(function () {
checkFontSize();
});
</script>
{% endif %}
{% set bHasPortalPriv = false %}
{% set bAdminUser = false %}
{% set bLNCAdmin = false %}
{% set bGCEDAdmin = false %}
{% set bNeoSearchAdmin = false %}
{% set bReceiveVerseOfDay = false %}
{% set nUserLevelId = null %}
{% if bLoggedIn %}
{% set nUserLevelId = app.session.get('user_level') %}
{% if not (nUserLevelId == '' or nUserLevelId == '0' or nUserLevelId == '7' or nUserLevelId == '10' or nUserLevelId == '11' or nUserLevelId == '13') %}
{% set bHasPortalPriv = true %}
{% endif %}
{% if nUserLevelId == '-1' %}
{% set bAdminUser = true %}
{% endif %}
{% if nUserLevelId == '12' %}
{% set bLNCAdmin = true %}
{% endif %}
{% if nUserLevelId == '8' %}
{% set bGCEDAdmin = true %}
{% endif %}
{% if nUserLevelId == '14' %}
{% set bNeoSearchAdmin = true %}
{% endif %}
{% set bReceiveVerseOfDay = app.session.get('user_receive_verse_of_day') %}
{% endif %}
{% if not bInFrame %}
<div id="wrap" style="background:#fff;">
<div id="header-menu">
<div class="navbar-top" style="margin:0px;height:43px;background:#f5f5f5;">
<div class="navbar-top-inner">
<div class="container">
{% if on_new_window is not defined %}
<div style="float:right;padding: 2px 0px 0px 1px;margin-top: -4px;" class="noprint" title="{{ app.session.get('ui_str')["generic.selectsitelanguage"]|raw }}">
<div class="dropdown">
<a id="language-select" data-toggle="dropdown" href="#" title="{{ app.session.get('ui_str')["generic.selectsitelanguage"]|raw }}">
<span style="font-size: 29px; color:#000; padding-left:5px;cursor: pointer;"><i class="fas fa-language"></i></span></a>
<div id='locale_dropdown'>
{% set sLocaleDropDown = '' %}
{% if available_locales is defined and available_locales is not null %}
{% set sLocaleDropDown = '<div class="dropdown-menu" role="menu" aria-labelledby="language-select">' %}
{% for locale_code, locale_name in available_locales if locale_code != current_locale_code %}
{% set sLocaleDropDown = sLocaleDropDown ~ '<a class="dropdown-item" id="link_' ~ locale_code ~ '" role="menuitem" href="' %}
{% set sLocaleDropDown = sLocaleDropDown ~ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge(app.request.query.all)|merge({'_locale': locale_code})) %}
{% set sLocaleDropDown = sLocaleDropDown ~ '">' ~ locale_name ~ '</a>' %}
{% endfor %}
{% set sLocaleDropDown = sLocaleDropDown ~ '</div>' %}
{{ sLocaleDropDown|trim|raw }}
{% endif %}
</div>
</div>
</div>
{% endif %}
<div style="float:right;padding: 0px 10px 0px 4px;" class="noprint">
<span style="font-size: 25px; color:#000;"><a style="color:#000;" href="{{ path('new_church_map') }}" title="{{ app.session.get('ui_str')["newchurchmappage.iconhovertext"]|raw }}"><i class="fas fa-location-dot"></i></a></span>
</div>
<div style="float:right;padding: 4px 10px 0px 4px;margin-top: -2px;" class="noprint">
<span style="font-size: 25px; color:#000;">
<a href="javascript:goToLastViewed();" id="lastViewedLink" style="color:#000;" title="{{ app.session.get('ui_str')["generic.lastviewediconhover"]|raw }}"><i class="fas fa-clock-rotate-left"></i></a></span>
</div>
<script>
checkLastViewed();
</script>
<div><a href="{{ path('landing_page') }}"><img class="logo" alt="New Christian Bible Study" src="{{ asset('/bundles/ncbsw/img/logo-transparent-253.png') }}"/></a> </div>
<a class="navbar-brand" href="{{ path('landing_page') }}">{{ app.session.get('ui_str')["generic.ncbstitle"]|raw }}</a>
</div>
</div>
</div>
<!-- menu starts -->
<div class="navbar noprint" style="width:100%;overflow: visible;margin-bottom: 9px;">
<div >
<div class="container main-nav">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div>
<ul class="navbar-nav always-show-menu">
{% if not bLoggedIn %}
<li id="loginLink" class="nav-item"><a class="nav-link" href="{{ path('login') }}">{{ app.session.get('ui_str')["linktitle.short.login"]|raw }}</a>
{% else %}
{% set sUrlEnd = '' %}
{% if bHasPortalPriv %}
{% set sUrlEnd = '?pp=1' %}
{% endif %}
{% set sUrl = path('select_loggedin_menu') ~ sUrlEnd %}
<li class="nav-item dropdown" id="login" >
<a class="nav-link dropdown-toggle" href='javascript:openNav("{{ app.session.get('ui_str')["popup.usermenu"]|raw }}","{{ sUrl }}")' id="navbarDropdown">
<span><i class="fas fa-user"></i></span>
</a>
{% endif %}
<li class="nav-item" style="background:#2a836d;"><a class="nav-link" href="{{ path('chatbot') }}" target="_blank"><i class="fas fa-message-bot"></i></a></li>
{% include 'NCBSWBundle::quicksearchbox.html.twig' %}
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button></div>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="{{ path('landing_page') }}">{{ app.session.get('ui_str')["linktitle.short.home"]|raw }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:openBibleIndex();">{{ app.session.get('ui_str')["linktitle.short.bible.main"]|raw }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('consider') }}">
{{ app.session.get('ui_str')["linktitle.short.consider"]|raw }}
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('swedenborg') }}">
{{ app.session.get('ui_str')["homepage.quadrants.swedenborg.title"]|raw }}
</a>
</li>
<li class="nav-item dropdown" id="site-links">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ app.session.get('ui_str')["linktitle.short.more"]|raw }}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ path('news') }}"><i class="fa-regular fa-newspaper" style="color:#000;width:22px;"></i> {{ app.session.get('ui_str')["linktitle.short.news"]|raw }}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('bible_stories') }}"><i class="fas fa-book-open-reader" style="color:#296e47;width:22px;"></i> {{ app.session.get('ui_str')["linktitle.short.bible.stories"]|raw }}</a>
<a class="dropdown-item" href="{{ path('daily_verse') }}"><i class="fa-solid fa-quotes" style="color:#d27316;width:22px;"></i> {{ app.session.get('ui_str')["linktitle.short.dailyverse"]|raw }}</a>
<a class="dropdown-item" href="{{ path('reading_plan_index') }}"><i class="fas fa-list-check" style="color:#122880;width:22px;"></i> {{ app.session.get('ui_str')["linktitle.short.bible.readingplans"]|raw }}</a>
<a class="dropdown-item" href="{{ path('concepts') }}"><i class="fas fa-key" style="color:#f8b40b;width:22px;"></i> {{ app.session.get('ui_str')["linktitle.short.concepts"]|raw }}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('chatbot') }}" target="_blank"><i class="fas fa-message-bot" style="color:#2a836d; width:22px;"></i> {{ app.session.get('ui_str')["chatbot.heading"]|raw }}</a>
<a class="dropdown-item" href="{{ path('mobile_app') }}"><i class="fas fa-feather-pointed" style="color:#6c3a2a;"></i> {{ app.session.get('ui_str')["apppage.heading"] }}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('otle_videos') }}"><i class="fas fa-video" style="width:22px;"></i> {{ app.session.get('ui_str')["videopage.heading"]|raw }}</a>
<a class="dropdown-item" href="{{ path('audio_hub') }}"><i class="fas fa-volume-high" style="width:22px;"></i> {{ app.session.get('ui_str')["audiopage.heading"]|raw }}</a>
<a class="dropdown-item" href="{{ path('classes_and_groups') }}"><i class="fa-solid fa-users-line" style="width:22px;"></i> {{ app.session.get('ui_str')["classpage.heading"]|raw }}</a>
<a class="dropdown-item" href="{{ path('sermon_storehouse') }}"><i class="fa-solid fa-books" style="width:22px;"></i> {{ app.session.get('ui_str')["sermonstorehouse.heading"]|raw }}</a>
<a class="dropdown-item" href="{{ path('q_and_a') }}"><i class="fas fa-comments" style="width:22px;"></i> {{ app.session.get('ui_str')["qandapage.heading"]|raw }}</a>
<a class="dropdown-item" href="{{ path('new_church_map') }}"><i class="fas fa-location-dot" style="width:22px;"></i> {{ app.session.get('ui_str')["linktitle.short.newchurchmap"]|raw }}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('swedenborg_research_tools') }}">{{ app.session.get('ui_str')["linktitle.short.research"]|raw }}</a>
<a class="dropdown-item" href="{{ path('resources') }}">{{ app.session.get('ui_str')["linktitle.short.resources"]|raw }}</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('about') }}">{{ app.session.get('ui_str')["linktitle.short.about"]|raw }}</a>
{% if not bLoggedIn %}
<a class="dropdown-item" href="{{ path('register') }}">{{ app.session.get('ui_str')["linktitle.short.register"]|raw }}</a>
{% endif %}
<a class="dropdown-item" href="{{ path('donate') }}">{{ app.session.get('ui_str')["linktitle.short.donate"]|raw }}</a>
<a class="dropdown-item" href="{{ path('contact') }}">{{ app.session.get('ui_str')["linktitle.short.contact"]|raw }}</a>
</div>
</li>
</ul>
</ul>
</div>
</nav>
</div>
</div>
</div>
<!-- menu ends -->
{% endif %}
</div>
{% set sStyleInFrame = "" %}
{% if bInFrame or bible_new is defined %}
{% set sStyleInFrame = ' style="max-width:100%;" ' %}
{% endif %}
<div class="container" {{ sStyleInFrame|raw }} >
{% block error_message_display %}
{% if error_message is defined %}
<div class="row">
<p style="color:red">{{ error_message|nl2br }}</p>
</div>
{% endif %}
{% if not bInFrame %}
{% set sDisplayStr = 'display:none;' %}
{% if ('bible' in sPath and 'stories' not in sPath and 'translations' not in sPath) or 'exposition' in sPath or 'multi' in sPath %}
{% set sDisplayStr = '' %}
{% endif %}
{% set bNoExplanation = (app.session.get('current_explanation_translation_id') == 0) %}
{% if bNoExplanation %}
{% set sExplainStr = app.session.get('ui_str')["homepage.explainchapter"]|raw %}
{% else %}
{#% set sExplainStr = app.session.get('ui_str')["homepage.editexplanation"]|raw %#}
{% endif %}
<div style="padding-bottom:8px;">
<div style="{{ sDisplayStr }} text-align:right;" id="BookmarkNote" >
{% if bNoExplanation %}
<a class="btn btn-sm btn-outline-secondary user-button" style="display:none;" id="ExplainChapter" href="javascript:explainChapter();" title="{{ sExplainStr }}"><i class="fas fa-pencil"></i> {{ sExplainStr }}</a>
{% endif %}
{% if verse_id_for_verse_of_day is defined and bAdminUser %}
<a class="btn btn-sm btn-outline-secondary user-button" href="javascript:addVerseOfDay({{ verse_id_for_verse_of_day }});" title="Add this verse to verse-of-the-day queue"><i class="fas fa-plus"></i> Add to Verse of the Day queue</a>
{% endif %}
</div>
</div>
{% endif %}
{# end userstuff3 #}
{% endblock %}
<main class="flex-shrink-0">
{% block container %}
<div class="container">
{% block content %}
{% endblock %}
</div>
{% endblock %}
</main>
</div>
</div>
<!-- Print footer -->
<div class="row print-footer">
<div class="col-lg-12">
<hr />
<p>{{ app.session.get('ui_str')["footer.print.notice"]|raw }}</p>
</div>
</div>
{% block footer %}
{% if not bInFrame and bible_new is not defined %}
<div id="footer" class="footer mt-auto py-3">
{% include 'NCBSWBundle:Includes:footer.html.twig' %}
</div>
{% endif %}
{% endblock %}
{% include 'NCBSWBundle::layout_inc.html.twig' %}
{% endblock %}