{% load i18n inlinetrans breadcrumbs messagebox svn block_tags %}
{% block doctype %}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">{% endblock %}
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  {% if LANGUAGE_CODE %}
    <meta http-equiv="content-language" content="{{ LANGUAGE_CODE }}">
  {% endif %}
  {% block metatags %}
    {% include "inc.metatags.html" %}
  {% endblock %}
  {% block shortcut %}
  <link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.ico" type="image/gif" />
  {% endblock %}
  <title>{% block pagetitle %}{% include "base/inc.pagetitle.html" %}{% endblock %} - {% block sitetitle %}Merengue powered site{% endblock %}</title>

  {% block cssstyles %}
    {% include "inc.cssstyles.html" %}
    {% block extrastyles %}{% endblock %}
  {% endblock %}

  {% block jsscripts %}
    {% include "inc.jsfiles.html" %}
  {% endblock %}

  {% inlinetrans_media %}
  {% render_blocks_media %}

  {% block extrascripts %}{% endblock %}

  {% block extrahead %}{% endblock %}

  {% block customstyle %}{% endblock %}

  {% if request.testing %}
    <script type="text/javascript">
      if (typeof TinyMCE_Engine != 'undefined') {
        TinyMCE_Engine.prototype.init=function(settings) { this.settings=settings; return;};
      }
    </script>
  {% endif %}
</head>

<body dir="ltr" {% block extrabodytag %}{% endblock %}>
{% block page %}
<div id="page-wrapper">

<div id="container" class="theme-{{ theme }} {% block bodyextraclasses %}{% endblock %}">
  {% block currentrevision %}
  <div id="current-svn-revision">
    {% current_svn_rev %}
  </div>
  {% endblock %}

{% if not request.HIDE_DECORATIONS %}
  {% block headerwrapper %}
  <div id="header">
    {% block headerlogowrapper %}
    <div id="headerlogo">
      {% block headerlogo %}
        {% include "inc.headerlogo.html" %}
      {% endblock %}
    </div>
    {% endblock %}

    {% block headerblockswrapper %}
    <div id="header-blocks">
      {% block headerblocks %}
        {% include "inc.headerblocks.html" %}
      {% endblock %}
    </div>
    {% endblock %}

    {% block languagetoolswrapper %}
    <div id="language-tools">
      {% block languagetools %}
        {% include "inc.languagetools.html" %}
      {% endblock %}
    </div>
    {% endblock %}

    {% block useractionswrapper %}
    <div id="user-actions">
      {% block useractions %}
        {% include "inc.useractions.html" %}
      {% endblock %}
    </div>
    {% endblock %}

    {% block portalactionswrapper %}
    <div id="site-actions">
      {% block portalactions %}
        {% include "inc.siteactions.html" %}
      {% endblock %}
    </div>
    {% endblock %}

    {% block sitebrandingwrapper %}
      <div id="site-branding">
      {% block sitebranding %}
        <h1>Merengue</h1>
      {% endblock %}
      </div>
    {% endblock %}

    {% block extraheader %}
      {# things like page titles, or whatever thing you could think #}
    {% endblock %}
  </div>
  {% endblock headerwrapper %}

  {% block breadcrumbswrapper %}
    <div id="breadcrumbs">
      {% block breadcrumbs %}
        {% include "inc.breadcrumbs.html" %}
        {% block extrabreadcrumbs %}
        {% endblock %}
      {% endblock %}
    </div>
  {% endblock %}

{% endif %}

{% block contenttop %} {% endblock %}

  <div id="contentwrapper">
  {% block contentwrapper %}

  {% if not request.HIDE_MENU %}
    <div id="left-sidebar">
      {% block leftsidebar %}
        {% include "inc.leftsidebar.html" %}
      {% endblock %}
    </div>
  {% endif %}

  <div id="content" class="{% block contentclass %}withsidebar{% endblock %}">
    {% block messagebox %}
    <div id="messagebox">
      {% messagebox %}
    </div>
    {% endblock %}
    {% block content %}
    {% endblock %}
  </div>

  {% if not request.HIDE_MENU %}
    <div id="right-sidebar">
      {% block rightsidebar %}
        {% include "inc.rightsidebar.html" %}
      {% endblock %}
    </div>
  {% endif %}
    <div class="visualClear"></div>

  {% if not request.HIDE_DECORATIONS %}
    <div class="visualClear"></div>

    {% block footerwrapper %}
      <div id="footer">
      {% block footer %}
        {% include "inc.footer.html" %}
      {% endblock %}
      </div>
    {% endblock %}
  {% endif %}
  {% endblock contentwrapper %}
</div>

{% block extrabody %}
{% endblock %}
</div>
{% endblock %}
</body>
</html>
