<!DOCTYPE html>
{% load leonardo_tags feincms_page_tags applicationcontent_tags branding i18n %}
{% load analytical %}

<html>
  <head>
    {% analytical_head_top %}
    {% include "_header.html" %}
    {% analytical_head_bottom %}
  </head>
  <body id="{% block body_id %}{% endblock %}" ng-app='hz' class="skin-blue">
    {% analytical_body_top %}
    {% include "horizon/_messages.html" %}
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        {% feincms_render_region feincms_page "header" request %}
      </div>
    </div>
    <div class="container">
      <div id="banner" class="page-header">
        {% feincms_render_region feincms_page "toolbar" request %}
      </div>
      <div id="main-content">
        <aside class="col1 {% get_col_classes feincms_page 'col1' %}">
          {% feincms_render_region feincms_page "col1" request %}
          {% render_region_tools feincms_page "col1" request %}
        </aside>
        <section class="col3 {% get_col_classes feincms_page 'col3' %}">
          {% if not in_appcontent_subpage %}
            {% feincms_render_region feincms_page "col3" request %}
            {% render_region_tools feincms_page "col3" request %}
          {% else %}
            {% feincms_render_region_appcontent feincms_page "main" request %}
          {% endif %}
          {% block body_main %}{% endblock %}
        </section>
        {% if not in_appcontent_subpage %}
        <aside class="col2 {% get_col_classes feincms_page 'col2' %}">
          {% feincms_render_region feincms_page "col2" request %}
          {% render_region_tools feincms_page "col2" request %}
        {% endif %}
        </aside>
      </div>
      <footer>
        {% feincms_render_region feincms_page "footer" request %}
      </footer>
    </div>
    {% include "horizon/_scripts.html" %}
    {% feincms_render_region feincms_page "helper" request %}
    <div id="modal_wrapper"></div>
    {% analytical_body_bottom %}
  </body>
</html>