<?php
use home\assets\MainAsset;
use yii\helpers\Html;
use yii\helpers\Url;

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

$asset = MainAsset::register($this);
$configs = Yii::$app->cache->get('basic_config');
?>

<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
    <head>
        <meta charset="<?= Yii::$app->charset ?>"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <?= Html::csrfMetaTags() ?>
        <title><?= Html::encode($this->title) ?> <?= (isset($configs['web_name'])) ? ' - ' . $configs['web_name'] : ''; ?> - Powered By UBOA </title>
        <?php $this->head() ?>
        <script>
            var GV = {
                announceAjaxUrl:"<?= Url::to(['/announcement/ajax']) ?>"
            };
        </script>
    </head>
    <body>
        <?php $this->beginBody() ?>
        <!--nav-->
		<?= $this->render('//site/_nav',['asset' => $asset, 'configs' => $configs]) ?>
        
        <!--container-->
        <?= $content ?>
        <!--container-->

        <p class="copyright"><?= isset($configs['web_info']) ? $configs['web_info'] : '' ?>&nbsp; 版权所有©<a href="http://www.u-bo.com" target="_blank">友博网络</a>&nbsp;&nbsp;<a href="<?= Yii::getAlias('@web') ?>/admin.php"  target="_blank">后台管理</a></p>

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

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