beginPage(); ?> <?= $this->title ?> head(); ?> beginBody(); echo $content; if (Yii::$app->getSession()->hasFlash('login')) { $overlay = true; echo $this->render('parts/registration_done_popup'); } if (Yii::$app->getSession()->hasFlash('info-popup')) { $overlay = true; $message = Yii::$app->getSession()->getFlash('info-popup'); $message = $message[0]; echo $this->render('parts/info_popup', ['title' => $message['title'], 'text' => $message['text']]); } echo Html::tag('div', '', [ 'class' => 'overlay', 'id' => 'overlay', 'style' => (isset($overlay)) ? 'display: block;' : ' ' ]); ?> getUser()->isGuest): echo Login::widget(['view' => 'authorization-popup']) . Register::widget(['view' => 'registration-popup']) . RequestPasswordReset::widget(['view' => 'forgot-password-popup']); endif; $this->endBody(); echo RenderLdJsonInfo::widget(); ?> endPage() ?>