<!DOCTYPE html>
<html lang="<?= $this->language ?>">
<head>

  <meta charset="<?= $this->charset ?>">
  <title><?= $this->title ?> - Contao Open Source CMS <?= VERSION ?></title>
  <base href="<?= $this->base ?>">
  <meta name="generator" content="Contao Open Source CMS">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <meta name="referrer" content="origin">

  <link rel="stylesheet" href="<?php
    $objCombiner = new Combiner();
    $objCombiner->add('assets/mootools/stylect/css/stylect.css');
    $objCombiner->add('system/themes/'. $this->theme .'/basic.css');
    $objCombiner->add('system/themes/'. $this->theme .'/diff.css');
    echo $objCombiner->getCombinedFile();
  ?>">
  <!--[if IE]><link rel="stylesheet" href="<?= TL_ASSETS_URL ?>system/themes/<?= $this->theme ?>/iefixes.css"><![endif]-->
  <?= $this->stylesheets ?>

  <script><?= $this->getLocaleString() ?></script>
  <script src="<?php
    $objCombiner = new Combiner();
    $objCombiner->add('assets/mootools/core/' . $GLOBALS['TL_ASSETS']['MOOTOOLS'] . '/mootools.js', $GLOBALS['TL_ASSETS']['MOOTOOLS']);
    $objCombiner->add('assets/mootools/stylect/js/stylect.js');
    echo $objCombiner->getCombinedFile();
  ?>"></script>
  <?= $this->javascripts ?>
  <!--[if lt IE 9]><script src="<?= TL_ASSETS_URL ?>assets/html5shiv/<?= $GLOBALS['TL_ASSETS']['HTML5SHIV'] ?>/html5shiv.min.js"></script><![endif]-->

</head>
<body class="<?= $this->ua ?>">

  <div id="container">

    <div id="main">
      <form action="<?= $this->action ?>" method="post">
        <div class="formbody">
          <input type="hidden" name="REQUEST_TOKEN" value="<?= REQUEST_TOKEN ?>">
          <?php if ($this->staticFrom): ?>
            <span class="static-version"><?= $this->staticFrom ?></span>
          <?php else: ?>
            <select name="from" id="ctrl_from" class="tl_select">
              <?php foreach ($this->versions as $k=>$v): ?>
                <option value="<?= $k ?>"<?php if ($v['version'] == $this->from): ?> selected="selected"<?php endif; ?>><?= $v['info'] ?></option>
              <?php endforeach; ?>
            </select>
          <?php endif; ?>
          <span class="arrow">→</span>
          <?php if ($this->staticTo): ?>
            <span class="static-version"><?= $this->staticTo ?></span>
          <?php else: ?>
            <select name="to" id="ctrl_to" class="tl_select">
              <?php foreach ($this->versions as $k=>$v): ?>
                <option value="<?= $k ?>"<?php if ($v['version'] == $this->to): ?> selected="selected"<?php endif; ?>><?= $v['info'] ?></option>
              <?php endforeach; ?>
            </select>
          <?php endif; ?>
          <input type="submit" class="tl_submit" value="<?= $this->showLabel ?>">
        </div>
      </form>
      <div id="diff">
        <?= $this->content ?>
      </div>
    </div>

  </div>

</body>
</html>