<?php $helper = ContaoBootstrap\Layout\Helper\LayoutHelper::forTemplate($this); ?>
<!DOCTYPE html>
<html lang="<?= $this->language ?>"<?php if ($this->isRTL): ?> dir="rtl"<?php endif; ?>>
<head>

  <?php $this->block('head'); ?>
    <meta charset="<?= $this->charset ?>">
    <title><?= $this->title ?></title>
    <base href="<?= $this->base ?>">

    <?php $this->block('meta'); ?>
      <meta name="robots" content="<?= $this->robots ?>">
      <meta name="description" content="<?= $this->description ?>">
      <meta name="generator" content="Contao Open Source CMS">
      <meta http-equiv="x-ua-compatible" content="ie=edge">
    <?php $this->endblock(); ?>

    <?= $this->viewport ?>
    <?= $this->framework ?>
    <?= $this->stylesheets ?>
    <?= $this->mooScripts ?>
    <?= $this->head ?>

    <?php $this->block('html5shiv'); ?>
      <!--[if lt IE 9]><script src="<?= TL_ASSETS_URL ?>assets/html5shiv/js/html5shiv-printshiv.min.js"></script><![endif]-->
    <?php $this->endblock(); ?>
  <?php $this->endblock(); ?>
</head>
<body id="top" class="{{ua::class}}<?php if ($this->class) echo ' ' . $this->class; ?>"<?php if ($this->onload): ?> onload="<?= $this->onload ?>"<?php endif; ?> itemscope itemtype="http://schema.org/WebPage">

<?php $this->block('body'); ?>
    <?php $this->sections('top'); ?>

      <?php $this->block('header'); ?>
        <?php if ($this->header): ?>
          <header id="header" itemscope itemtype="http://schema.org/WPHeader">
            <div <?= $helper->getAttributes($helper::HEADER, true) ?>>
              <?= $this->header ?>
            </div>
          </header>
        <?php endif; ?>
      <?php $this->endblock(); ?>

      <?php $this->sections('before'); ?>

      <?php $this->block('container'); ?>
        <div <?= $helper->getAttributes($helper::CONTAINER) ?>>
          <?php if ($helper->isGridActive()): ?><div class="row"><?php endif; ?>

          <?php $this->block('main'); ?>
            <main <?= $helper->getAttributes($helper::MAIN) ?>>
            	<?php $this->section('id-08-MainTop'); ?>
                <?= $this->main ?>
              <?php $this->sections('main'); ?>
            </main>
          <?php $this->endblock(); ?>

          <?php $this->block('left'); ?>
            <?php if ($this->left): ?>
              <aside <?= $helper->getAttributes($helper::LEFT) ?>>
                  <?= $this->left ?>
              </aside>
            <?php endif; ?>
          <?php $this->endblock(); ?>

          <?php $this->block('right'); ?>
            <?php if ($this->right): ?>
              <aside <?= $helper->getAttributes($helper::RIGHT) ?>>
                  <?= $this->right ?>
              </aside>
            <?php endif; ?>
          <?php $this->endblock(); ?>

          <?php if ($helper->isGridActive()): ?></div><?php endif; ?>
        </div>
      <?php $this->endblock(); ?>

      <?php $this->sections('after'); ?>

      <?php $this->block('footer'); ?>
        <?php if ($this->footer): ?>
          <footer id="footer" itemscope itemtype="http://schema.org/WPFooter">
            <div <?php echo $helper->getAttributes($helper::FOOTER, true); ?>>
              <?= $this->footer ?>
            </div>
          </footer>
        <?php endif; ?>
      <?php $this->endblock(); ?>

    <?php $this->sections('bottom'); ?>
  <?php $this->endblock(); ?>

  <?= $this->mootools ?>

</body>
</html>
