if (Yii::$app->user->isGuest) { $menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']]; $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']]; } else { $menuItems[] = ['label' => 'Logout (' . Yii::$app->user->identity->username . ')', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]; } echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]); NavBar::end(); ?> <div class="container"> <?php echo Breadcrumbs::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> <?php echo \odaialali\yii2toastr\ToastrFlash::widget(['options' => ['positionClass' => 'toast-top-right', 'timeOut' => 10000, 'extendedTimeOut' => 10000]]); ?> <?php echo $content; ?> </div> </div> <footer class="footer"> <div class="container"> <p class="pull-left">© <?php echo Yii::$app->name; ?> <?php echo date('Y'); ?>
<section class="content-header"> <h1><?php echo $this->title; ?> </h1> <?php echo Breadcrumbs::widget(['encodeLabels' => false, 'homeLink' => ['label' => '<i class="fa fa-dashboard"></i> Dashboard', 'url' => ['/dashboard/index']], 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> </section> <section class="content"> <?php echo $content; ?> </section> </aside> </div> <?php echo \odaialali\yii2toastr\ToastrFlash::widget(['options' => ['positionClass' => 'toast-bottom-left']]); ?> <?php $this->endBody(); ?> </body> </html> <?php $this->endPage();