예제 #1
0
 public static function layout($active = [])
 {
     return parent::layout(array_merge($active, [SiteLayout::translations()]));
 }
예제 #2
0
 public static function layout($active = [])
 {
     return parent::layout(array_merge($active, [SiteLayout::client_users()]));
 }
예제 #3
0
 public static function layout(array $active = [])
 {
     $nav_bar = parent::layout(array_merge($active, [SiteLayout::users()]));
     return $nav_bar;
 }
예제 #4
0
 public static function layout($active = array())
 {
     $active = array_merge($active, [SiteLayout::groups()]);
     $nav_bar = parent::layout($active);
     return $nav_bar;
 }
예제 #5
0
 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;
 }
예제 #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())]];
 }