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

<head>
  <title><?= $viewDatas['layout']['title'] ?></title>
  <?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/<?= $viewDatas['layout']['path'] ?>.css" media="screen" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="/js/<?= $viewDatas['layout']['path'] ?>.js"></script>
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn' t work if you view the page via file:// -->
  <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
  <?php if ($error = session('message')): ?><?= $viewDatas['service']->getHelper()->alertTrait($error) ?><?php endif ?>
  <?= $this->renderSection('content') ?></div>
</body>
<?php foreach ($viewDatas['layout']['footerScripts'] as $javascript): ?><?= $javascript ?><?php endforeach; ?>

</html>