<?php
use yii\helpers\Html;
use frontend\components\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use frontend\assets\MallPlatformAsset;
use common\widgets\Alert;
use yii\helpers\Url;

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

$store = $this->context->store;

MallPlatformAsset::register($this);
$this->registerCssFile($this->context->getCss('style-platform.css?v=1'), ['depends' => MallPlatformAsset::className()]);
$this->registerJsFile($this->context->getJs('main-platform.js'), ['depends' => MallPlatformAsset::className()]);
?>
<?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><?= Html::encode($this->title) ?> - <?= Html::encode($store->settings['website_name'] ?: $store->name) ?></title>
    <meta name="keywords" content="<?= Html::encode($store->settings['website_seo_keywords'] ?: $store->settings['website_name']) ?>"/>
    <meta name="description" content="<?= Html::encode($store->settings['website_seo_description'] ?: $store->settings['website_name']) ?>"/>
    <link rel="icon" href="<?= $this->context->getFavicon() ?>" type="image/x-icon" />
    <?php $this->head() ?>
</head>
<body class="bg-light">
<?php $this->beginBody() ?>
    <header>
        <?= $this->render('nav-platform') ?>
    </header>

    <main class="container">
        <?= Alert::widget() ?>
        <?= $content ?>
    </main>

    <footer>
        <?= $this->render('footer-platform') ?>
    </footer>

    <?= strlen($store->settings['website_stat']) > 10 ? $store->settings['website_stat'] : '' ?>
<?php $this->endBody() ?>

<script>
    $(document).ready(function () {
        ua = navigator.userAgent.toLowerCase();
        var regexp=/\.(bot.htm|spider.htm)(\.[a-z0-9\-]+){1,2}\//ig;
        if(!regexp.test(ua)) {
            jQuery.cookieBar({
                message:'We use cookies to give you the best experience on our website. By continuing, you agree to our use of cookies.',
                fixed: true,
                policyButton: false,
                expireDays: 60,
            });
        }
    });
</script>
</body>
</html>
<?php $this->endPage() ?>


{'avg_line_length': 33.81159420289855, 'max_line_length': 141, 'alphanum_fraction': 0.5996570938705529, 'licenses': ['BSD-3-Clause'], 'repository_name': 'ruixiaodantiandao/funboot', 'path': 'web/resources/mall/default/views/layouts/main-platform.php', 'size': 2333, 'lang': 'PHP'}