Files
yii3-app/resources/layout/main.php
Alexander Makarov 8be5420be5 More fixes (#2)
* Fix console config
* Clean up ignore patterns
* Export .editorconfig and .gitignore
* Fix readme and typo
* Hint $params in configs
* Update .htaccess
* Cleanup views
* More cleanup and parameter renaming
* Fix changelog
* Add security advisories package
* Fix image path in readme
2020-06-04 00:52:54 +03:00

56 lines
1.6 KiB
PHP

<?php
declare(strict_types=1);
use App\Asset\AppAsset;
use Yiisoft\Html\Html;
/**
* @var \Yiisoft\Assets\AssetManager $assetManager
* @var \App\ApplicationParameters $applicationParameters
* @var string $csrf
* @var string $content
*/
$assetManager->register([
AppAsset::class,
]);
$this->setCssFiles($assetManager->getCssFiles());
$this->setJsFiles($assetManager->getJsFiles());
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<?= Html::beginTag('html', ['lang' => $applicationParameters->getLanguage()]) ?>
<?= $this->render('_head', ['csrf' => $csrf]) ?>
<?php $this->beginBody() ?>
<body>
<?= Html::beginTag('section', $applicationParameters->getHeroOptions()) ?>
<?= Html::beginTag('div', $applicationParameters->getHeroHeadOptions()) ?>
<?= $this->render('_menu') ?>
<?= Html::endTag('div') ?>
<?= Html::beginTag('div', $applicationParameters->getHeroBodyOptions()) ?>
<?= Html::beginTag('div', $applicationParameters->getHeroContainerOptions()) ?>
<?= $content ?>
<?= Html::endTag('div') ?>
<?= Html::endTag('div') ?>
<?= Html::beginTag('div', $applicationParameters->getHeroFooterOptions()) ?>
<?= $this->render('_footer') ?>
<?= Html::endTag('div') ?>
<?= Html::endTag('section') ?>
</body>
<?php $this->endBody() ?>
<?= Html::endTag('html') ?>
<?php $this->endPage() ?>