<?php
/** @var $this \Zend\View\Renderer\PhpRenderer */

/** @var $layoutInfo \App\Entity\LayoutInfo */
$layoutInfo = $this->layoutInfo;

/** @var \App\Entity\IdentityInterface $identity */
$identity = $this->identity();
$identityRole = $identity ? $identity->getRoleId() : null;

if (in_array($identityRole, [\App\Acl\Roles::ROLE_ADMIN]))
{
    $layoutInfo->setLang(\App\Model\Locales::DEFAULT_LANG_ADMIN);
}
$lang = $layoutInfo ? $layoutInfo->getLang() : 'en';

?>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>Нейросеть картинок</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimal-ui">
    <meta name="theme-color" content="#FFFFFF">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="x-rim-auto-match" content="none">
    <!-- Favicon -->
    <link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png">
    <link rel="icon" type="image/png" href="/favicon/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="/favicon/favicon-16x16.png" sizes="16x16">
    <link rel="manifest" href="/favicon/manifest.json">
    <link rel="mask-icon" href="/favicon/safari-pinned-tab.svg" color="#5bbad5">
    <meta name="theme-color" content="#ffffff">
    <!-- Styles -->
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/reset-min.css">
    <link rel="stylesheet" type="text/css" href="/css/common-styles.css">
    <!-- Scripts -->
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>

    <!-- custom page scripts & styles -->
    <?= $this->headLink() ?>
    <?= $this->headScript() ?>
    <?= $this->headStyle() ?>

</head>
<body>

    <header class="l-header">
    </header>

    <div class="l-popup">
    </div>

    <main class="l-content">
        <!-- Main content   -->
        <?= $this->content ?>
    </main>

    <footer class="l-footer">
    </footer>
    
</body>

<?php
echo $this->inlineScript();
?>
</html>
