<?php
use kartik\growl\GrowlAsset;
use yii\helpers\Html;
use kartik\nav\NavX;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use yii\helpers\Url;
use sansusan\easyui\EasyuiAsset;
/* @var $this \yii\web\View */
/* @var $content string */
AppAsset::register($this);
GrowlAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<?php $this->head() ?>
</head>
<body>
<?php
if (Yii::$app->user->isWorker()){
$this->beginBody();
$this->beginContent('@app/views/layouts/portal/work/index.php', ['content' => $content]);
echo $content;
$this->endContent();
}else{
$this->beginBody();
$this->beginContent('@app/views/layouts/portal/site/index.php', ['content' => $content]);
echo $content;
$this->endContent();
}
?>
<style>
</style>
<?
$js = <<< 'SCRIPT'
/* To initialize BS3 tooltips set this below */
$(function () {
$("[data-toggle='tooltip']").tooltip();
});;
/* To initialize BS3 popovers set this below */
$(function () {
$("[data-toggle='popover']").popover();
});
$(function () {
if ($.pjax){
$.pjax.defaults.scrollTo = false;
$.pjax.defaults.timeout = 5000;
}
});
SCRIPT;
$this->registerJs($js, $this::POS_READY);
$this->registerCss('.glyph{ font-family: "Glyphicons Halflings"; }');
?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>