<metal:page define-macro="master">
  <tal:doctype tal:replace="structure string:&lt;!DOCTYPE html&gt;" />

  <html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        xmlns:metal="http://xml.zope.org/namespaces/metal"
        xmlns:tal="http://xml.zope.org/namespaces/tal"
        tal:define="
          portal_state context/@@plone_portal_state;
          context_state context/@@plone_context_state;
          plone_view context/@@plone;
          plone_layout context/@@plone_layout;
          lang portal_state/language;
          view nocall:view | nocall: plone_view;
          dummy python: plone_layout.mark_view(view);
          portal_url portal_state/portal_url;
          checkPermission nocall: context/portal_membership/checkPermission;
          site_properties context/portal_properties/site_properties;
          ajax_include_head request/ajax_include_head | nothing;
          ajax_load python:False;
        "
        lang="${lang}"
        i18n:domain="plone"
  >

    <metal:cache tal:replace="structure provider:plone.httpheaders" />

    <head>
      <meta http-equiv="Content-Type"
            content="text/html; charset=utf-8"
      />
    </head>

    <body id="visual-portal-wrapper"
          tal:define="
            isRTL portal_state/is_rtl;
            sl python:plone_layout.have_portlets('plone.leftcolumn', view);
            sr python:plone_layout.have_portlets('plone.rightcolumn', view);
            body_class python:plone_layout.bodyClass(template, view);
          "
          tal:attributes="
            class body_class;
            dir python:isRTL and 'rtl' or 'ltr';
            python:plone_view.patterns_settings();
          "
    >

      <aside id="global_statusmessage">
        <tal:message tal:content="structure provider:plone.globalstatusmessage" />
        <div metal:define-slot="global_statusmessage">
        </div>
      </aside>
      <article id="portal-column-content">

        <metal:block define-slot="content">

          <div metal:define-macro="content">


            <metal:slot define-slot="body">

              <article id="content">

                <metal:bodytext define-slot="main">

                  <header>
                    <metal:title define-slot="content-title">
                      <h1 class="documentFirstHeading"
                          tal:define="
                            title context/Title;
                          "
                          tal:condition="title"
                          tal:content="title"
                      >Title or id</h1>
                    </metal:title>

                    <metal:description define-slot="content-description">
                      <div class="documentDescription description"
                           tal:define="
                             description context/Description;
                           "
                           tal:condition="description"
                           tal:content="description"
                      >
                    Description
                      </div>
                    </metal:description>
                  </header>

                  <div id="content-core">
                    <metal:text define-slot="content-core"
                                tal:content="nothing"
                    >
              Page body text
                    </metal:text>
                  </div>
                </metal:bodytext>
              </article>

            </metal:slot>
          </div>

        </metal:block>
      </article>

      <aside id="portal-column-one"
             metal:define-slot="column_one_slot"
             tal:condition="sl"
      >
        <metal:portlets define-slot="portlets_one_slot">
        </metal:portlets>
      </aside>

      <aside id="portal-column-two"
             metal:define-slot="column_two_slot"
             tal:condition="sr"
      >
        <metal:portlets define-slot="portlets_two_slot">
        </metal:portlets>
      </aside>

      <footer id="portal-footer-wrapper"
              i18n:domain="plone"
      >
      </footer>

    </body>
  </html>

</metal:page>
