public function run() { NavBar::begin(['brandLabel' => false, 'options' => ['class' => 'tor-nav']]); echo Html::tag('div', $this->torMenu(), ['class' => 'container']); NavBar::end(); $view = $this->view; NavAsset::register($view); }
public function run() { NavBar::begin(['brandLabel' => false, 'options' => ['class' => 'top-nav']]); echo NavX::widget(['items' => $this->topMenu(), 'options' => ['class' => 'nav navbar-nav navbar-left nav-pills main-nav'], 'encodeLabels' => false]); echo NavX::widget(['items' => $this->accountMenu(), 'options' => ['class' => 'nav navbar-nav navbar-right nav-pills account-top-nav'], 'encodeLabels' => false]); NavBar::end(); $view = $this->view; NavAsset::register($view); }
public function run() { $user = User::findOne(Yii::$app->user->id); echo Nav::widget(['items' => [['label' => 'Контактная информация', 'url' => ['/tor/profile']], ['label' => 'Добавить лот на продажу', 'url' => ['/tor/mng-ad']], ['label' => 'Мои объявления <span class="badge">' . TorAds::find()->count() . '</span>', 'url' => ['/tor/my-ads']], ['label' => 'Пополнить баланс ', 'url' => ['/']], ['label' => 'История платежей', 'url' => ['/']], ['label' => 'Реферальная ссылка', 'url' => ['/']]], 'options' => ['class' => 'account-nav'], 'encodeLabels' => false]); $view = $this->view; NavAsset::register($view); }