public static function layout($active = [])
 {
     return parent::layout(array_merge($active, [SiteLayout::translations()]));
 }
 public static function layout($active = [])
 {
     return parent::layout(array_merge($active, [SiteLayout::client_users()]));
 }
 public static function layout(array $active = [])
 {
     $nav_bar = parent::layout(array_merge($active, [SiteLayout::users()]));
     return $nav_bar;
 }
Beispiel #4
0
 public static function layout($active = array())
 {
     $active = array_merge($active, [SiteLayout::groups()]);
     $nav_bar = parent::layout($active);
     return $nav_bar;
 }
 public function behaviors()
 {
     $behaviors = array_merge(parent::behaviors(), ['access' => ['class' => AccessControl::className(), 'only' => ['logout'], 'rules' => [['actions' => ['logout'], 'allow' => true, 'roles' => ['@']]]], 'layout' => ['class' => SiteLayout::className()]]);
     return $behaviors;
 }
Beispiel #6
0
 public static function getGuestRightNav($active)
 {
     return [['label' => Yii::t('site_layout', ':login'), 'url' => Url::to(['site/login']), 'active' => self::getActive($active, SiteLayout::login())], ['label' => Yii::t('site_layout', ':register'), 'url' => Url::to(['site/register']), 'active' => self::getActive($active, SiteLayout::register())]];
 }