<!DOCTYPE html>
<html lang="ko">

<head>
  <?php foreach ($viewDatas['layout']['metas'] as $meta) : ?><?= $meta ?><?php endforeach; ?>
  <?php foreach ($viewDatas['layout']['stylesheets'] as $stylesheet) : ?><?= $stylesheet ?><?php endforeach; ?>
  <?php foreach ($viewDatas['layout']['javascripts'] as $javascript) : ?><?= $javascript ?><?php endforeach; ?>
  <link href="/css/front.css" media="screen" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="/js/front.js"></script>
  <title><?= $viewDatas['title'] ?></title>
</head>

<body>
  <div id="head">
    <?= $this->include($viewDatas['layout']['path'] . '/top_navigator'); ?>
    <?= $this->include($viewDatas['layout']['path'] . '/top_menu'); ?>
    <?= TOP_BANNER[array_key_exists('currentCategory', $viewDatas) ? $viewDatas['currentCategory']->parent : 'default'] ?>
  </div>
  <div class="container-fluid">
    <nav class="nav"></nav>
    <nav class="nav justify-content-center">
      <table id="layout">
        <tr>
          <td id="left" valign="top" width="200">
            <?= $this->include($viewDatas['layout']['path'] . '/left_menu'); ?>
          </td>
          <td id="body" valign="top" width="*">
            <?= $this->include('templates/front/header'); ?>
            <?= $this->renderSection('content') ?>
            <?= $this->include('templates/front/footer'); ?>
          </td>
        </tr>
      </table>
      <nav class="nav justify-content-end"></nav>
  </div>
  <nav id="tail" class="navbar navbar-expand-lg" style="background-color:white">
    <?= $this->include($viewDatas['layout']['path'] . '/../common/copyright'); ?>
  </nav>
</body>

</html>