{#
    Main CSS can be found in metadata.twig
#}

{# Core Theme Components #}
{{ asset_add("theme.js", "qcr.theme.qcr::js/vendor/jquery.min.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/vendor/bootstrap.min.js") }}
{#{{ asset_add("theme.js", "qcr.theme.qcr::js/vendor/vue.min.js") }}#}

{# Theme Scripts #}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/bootstrap-hover-dropdown.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/choices.min.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/js.cookie.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/lightbox.min.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/scrollreveal.min.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/skrollr.min.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/plugins/speedbump.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/theme/initialize.js") }}
{{ asset_add("theme.js", "qcr.theme.qcr::js/theme/utm.js") }}


{{ asset_script("qcr.theme.qcr::js/plugins/splide.min.js") }}

{{ asset_script("theme.js", ["min"]) }}

<script type="text/javascript">
    var SABTitle = '{{ env('SAB_TITLE', 'Community State Bank Iowa') }}';
    var SABAuthor = '{{ env('SAB_AUTHOR', 'Community State Bank Iowa') }}';
    var iPhoneID = '{{ env('SAB_IPHONE_ID', '796451125') }}';
    var iPadID = '{{ env('SAB_IPAD_ID', '794651943') }}';
    var AndroidPhoneID = '{{ env('SAB_ANDROID_PHONE_ID', 'com.communitystatebank.mobile') }}';
    var AndroidTabletID = '{{ env('SAB_ANDROID_TABLET_ID', 'com.communitystatebank.tablet') }}';
</script>
{{ asset_script("qcr.theme.qcr::js/plugins/jquery-ultimate-smartbanner.js") }}

{# Include Scripts Loaded From Outside #}
{% for script in asset_scripts("scripts.js", ["min"]) %}
{{ script|raw }}
{% endfor %}

{{ template.includes.render('scripts')|raw }}

{# Include Styles Loaded From Outside #}
{% for style in asset_styles("styles.css", ["min"]) %}
{{ style|raw }}
{% endfor %}

{% if agent_browser() == 'IE' and str_is('11.*', agent_version(agent_browser())) %}
<script style="text/javascript">
    $(function () {

        if (!Cookies.get('is-warning')) {

            Cookies.set('is-warning', true, {expires: 15});

            $('#ie11-warning').modal('toggle');
        }
    });
</script>
{% endif %}
