<!DOCTYPE html>
<html class="no-js" lang="en">
    <head>
        <meta charset="UTF-8" />
   		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

        <title>{{ (title is defined ? title : 'ZapConexion') }}</title>

        <link rel="icon" type="image/x-icon" href="{{ asset('bundles/rxconnexion/images/favicon.ico') }}" />

        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/foundation/css/foundation.min.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/foundation/icons/foundation-icons.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/jquery-ui/jquery-ui.min.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/jquery-ui/theme.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/dataTables/css/jquery.dataTables.min.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/dataTables/css/jquery.dataTables.responsive.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/dataTables/css/jquery.dataTables.jqueryui.css') }}" />
        <link rel="stylesheet" href="{{ asset('bundles/rxconnexion/css/global.css') }}" />

        {% if stylesheets is defined %}
        	{% for stylesheet in stylesheets %}
	    		<link rel="stylesheet" href="{{ asset('bundles/rxconnexion/' ~ stylesheet ) }}" >
        	{% endfor %}
        {% endif %}

        {% if googleMap is defined and googleMap %}
            <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
        {% endif %}

        <script src="{{ asset('bundles/rxconnexion/js/jquery.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/ckeditor/ckeditor.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/js/global.js') }}"></script>

        <script language="JavaScript">
            //<![C[DATA
            jQ(document).ready(function(){
                global.url = "{{ global_url }}";
                global.init();
            });
            //]]>
        </script>

    </head>

    <body>

        {% if show_test_env_banner %}
            <div id="test-env-banner-container">
                <i class="fa fa-warning"></i> WARNING!!! THIS IS A TESTING ENVIRONMENT ONLY.
            </div>
        {% endif %}

        {% block body %}{% endblock %}

        <script src="{{ asset('bundles/rxconnexion/js/jquery-migrate.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/js/jquery.maskedinput.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/js/jquery.maskedMoney.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/js/jquery.chained.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/jquery-ui/jquery-ui.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/foundation/js/foundation.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/foundation/js/vendor/modernizr.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/dataTables/js/jquery.dataTables.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/dataTables/js/jquery.dataTables.responsive.min.js') }}"></script>
        <script src="{{ asset('bundles/rxconnexion/dataTables/js/jquery.dataTables.jqueryui.js') }}"></script>

        {% if javascripts is defined %}
            {% for javascript in javascripts %}
                <script src="{{ asset('bundles/rxconnexion/' ~ javascript ) }}"></script>
            {% endfor %}
        {% endif %}

    </body>

</html>
