93 lines
3.8 KiB
PHP
Executable File
93 lines
3.8 KiB
PHP
Executable File
<?php
|
|
|
|
use yii\bootstrap5\Nav;
|
|
use yii\bootstrap5\NavBar;
|
|
use yii\helpers\Html;
|
|
use frontend\themes\mali\MaliAsset;
|
|
use yii\helpers\Url;
|
|
|
|
MaliAsset::register($this);
|
|
|
|
$assets = Yii::$app->assetManager->getPublishedUrl('@frontend/themes/mali/assets');
|
|
?>
|
|
<?php $this->beginPage() ?>
|
|
<!DOCTYPE html>
|
|
<html lang="<?= Yii::$app->language ?>">
|
|
<head>
|
|
<title><?= Html::encode($this->title) ?></title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta charset="<?= Yii::$app->charset ?>">
|
|
|
|
<?php $this->registerCsrfMetaTags() ?>
|
|
<?php $this->head() ?>
|
|
|
|
<?php $this->registerJsFile("https://code.jquery.com/jquery-migrate-3.4.0.min.js", ['depends' => ['yii\web\JqueryAsset']]) ?>
|
|
|
|
|
|
<!-- Favicon icon -->
|
|
<link rel="shortcut icon" href="<?= $assets ?>/img/favicon.ico" type="image/x-icon">
|
|
|
|
<!-- Google fonts -->
|
|
<link rel="stylesheet" type="text/css"
|
|
href="https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800%7CPlayfair+Display:400,700%7CRoboto:100,300,400,400i,500,700">
|
|
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600;700;900&family=Roboto:wght@400;500;700&display=swap"
|
|
rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100;300;400;500;600;700;800;900&display=swap"
|
|
rel="stylesheet">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai&display=swap" rel="stylesheet">
|
|
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
|
<link rel="stylesheet" type="text/css" href="<?= $assets ?>/css/ie10-viewport-bug-workaround.css">
|
|
|
|
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
|
<!--[if lt IE 9]>
|
|
<script type="text/javascript" src="js/ie8-responsive-file-warning.js"></script><![endif]-->
|
|
<script src="<?= $assets ?>/js/ie-emulation-modes-warning.js"></script>
|
|
|
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
<!--[if lt IE 9]>
|
|
<script type="text/javascript" src="<?= $assets ?>/js/html5shiv.min.js"></script>
|
|
<script type="text/javascript" src="<?= $assets ?>/js/respond.min.js"></script>
|
|
<![endif]-->
|
|
<!-- Google Tag Manager -->
|
|
<script>(function (w, d, s, l, i) {
|
|
w[l] = w[l] || [];
|
|
w[l].push({
|
|
'gtm.start':
|
|
new Date().getTime(), event: 'gtm.js'
|
|
});
|
|
var f = d.getElementsByTagName(s)[0],
|
|
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
|
|
j.async = true;
|
|
j.src =
|
|
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
|
|
f.parentNode.insertBefore(j, f);
|
|
})(window, document, 'script', 'dataLayer', 'GTM-WDRGW6M');</script>
|
|
<!-- End Google Tag Manager -->
|
|
<?php $this->registerCss("
|
|
body {
|
|
font-family: 'Noto Sans Thai', 'Nunito', sans-serif !important;
|
|
}
|
|
") ?>
|
|
</head>
|
|
<body>
|
|
<?php $this->beginBody() ?>
|
|
<!-- Google Tag Manager (noscript) -->
|
|
<noscript>
|
|
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WDRGW6M"
|
|
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
|
</noscript>
|
|
<!-- End Google Tag Manager (noscript) -->
|
|
|
|
|
|
<?= $content?>
|
|
|
|
|
|
|
|
<?php $this->endBody() ?>
|
|
</body>
|
|
</html>
|
|
<?php $this->endPage() ?>
|