<title>Портал БУ "НГП"</title> <?php $this->head(); ?> </head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php use kartik\icons\Icon; Icon::map($this); NavBar::begin(['brandLabel' => 'БУ "Нижневартовская городская поликлиника"', 'brandUrl' => Yii::$app->homeUrl, 'options' => ['class' => 'navbar-inverse navbar-fixed-top']]); echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => array_merge([['label' => 'Главная', 'url' => ['/site/index']]], Proc::GetMenuButtons($this), [Yii::$app->user->isGuest ? ['label' => 'Вход', 'url' => ['/site/login']] : ['label' => 'Выход (' . Yii::$app->user->identity->auth_user_fullname . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]])]); NavBar::end(); ?> <div class="container body-container"> <?php /* $controller = Yii::$app->controller; $default_controller = Yii::$app->defaultRoute; $isHome = (($controller->id === $default_controller) && ($controller->action->id === $controller->defaultAction)) ? true : false; if (!$isHome) { NavBar::begin([ 'options' => [ 'class' => 'navbar-default container-fluid', ], ]);