<!doctype html>
{% load i18n static cms_tags sekizai_tags menu_tags %}
<html lang="{{ LANGUAGE_CODE }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1">
    <title>
        {% block title %}{% endblock %}{% trans "My Website" %}
    </title>
    <link rel="icon" type="image/x-icon"
          href="{% static 'site/img/favicon.ico' %}">

    {% block meta_tags %}{% endblock %}

    {% render_block "css" %}
    {% block base_stylesheet %}
        <link rel="stylesheet" type="text/css"
              href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
        <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
              integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
              crossorigin="anonymous">
        <link rel="stylesheet" type="text/css" media="screen"
              href="{% static 'site/css/style.css' %}">
    {% endblock %}
    {% block stylesheet %}{% endblock %}

    {% block extrahead %}{% endblock %}
</head>
<body class="{% block bodyclass %}{% endblock %}
             {% if request.current_page.cssextension %}
             {{ request.current_page.cssextension.body_css_class }}
             {% endif %}">
{% cms_toolbar %}
{% block page %}
<section class="wrapper">
    <header class="clearfix container navbar navbar-expand-lg
                   navbar-light bg-light mb-4 mx-0">
        <h1 class="navbar-brand col mb-0">{% trans "My Website" %}</h1>
        <nav role="navigation" class="navbar-nav col-10">
            {% block header_navigation %}
            <ul class="navbar-nav col">
                {% show_menu_below_id "start-page" 0 1 1 1 %}
            </ul>
            {% endblock %}
            {% block language_chooser %}
            <ul class="navbar-nav col-3">
                {% language_chooser %}
            </ul>
            {% endblock %}
        </nav>
    </header>
    {% block container %}
    <div id="content" class="clearfix container">
        {% block content %}{% endblock %}
    </div>
    {% endblock %}
    <footer class="clearfix container">
        {% block footer_navigation %}
        <nav class="navbar navbar-expand-lg" role="navigation">
            <ul class="navbar-nav">
                {% show_menu_below_id "footer-navigation" 0 1 1 1 %}
            </ul>
        </nav>
        {% endblock %}
    </footer>
</section>
{% endblock %}
{% block extrabody %}{% endblock %}

{% block base_js %}
    <script src="https://code.jquery.com/jquery-3.3.1.min.js"
            integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
            crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
            integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
            integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
            crossorigin="anonymous"></script>
    <script src="{% url "js_settings" %}"></script>
{% endblock %}
{% block js %}{% endblock %}
{% render_block "js" %}
</body>
</html>
