<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?php echo Html::encode(\Yii::$app->controller->meta_title)?></title>
    <?php $this->head() ?>
    <?php echo $this->render('head')?>
</head>
<body>
	<?php echo $this->render('htmlcodes')?>
	
    <?php $this->beginBody() ?>

        <?php echo $this->render('header'); // Добавить проверку на авторизацию и вывести другую шапку header-auth.php ?>

        <?php echo $content ?>


    <?php $this->endBody() ?>

    <?php echo $this->render('foot')?>

</body>
</html>
<?php $this->endPage() ?>
