public static function getTabs($active = [])
 {
     $tabs = parent::getTabs($active);
     array_splice($tabs, 1, 0, [['label' => Yii::t('beacon_layout', ':beacon_create'), 'url' => Url::to(['beacon/create']), 'active' => self::getActive($active, TabbedLayout::create())]]);
     array_splice($tabs, 2, 0, [['label' => Yii::t('beacon_layout', ':beacon_map'), 'url' => Url::to(['beacon/map']), 'active' => self::getActive($active, AdminBeaconLayout::map())]]);
     return $tabs;
 }
 public static function getTabs($active = [])
 {
     $tabs = [['label' => Yii::t('client_user', ':client_user'), 'url' => Url::to(['client-user/list']), 'active' => self::getActive($active, TabbedLayout::listing())]];
     if (self::getActive($active, TabbedLayout::update())) {
         $tabs[] = ['label' => Yii::t('client_user', ':client_user'), 'url' => Url::to(['client-user/update'] + $_GET), 'active' => self::getActive($active, TabbedLayout::update())];
     }
     return $tabs;
 }
 public static function getTabs($active = [])
 {
     $tabs = [['label' => Yii::t('user_layout', ':list_users'), 'url' => Url::to(['user/list']), 'active' => self::getActive($active, TabbedLayout::listing())], ['label' => Yii::t('user_layout', ':create_user'), 'url' => Url::to(['user/create']), 'active' => self::getActive($active, TabbedLayout::create())]];
     if (self::getActive($active, TabbedLayout::update())) {
         $tabs[] = ['label' => Yii::t('user_layout', ':manage_user'), 'url' => Url::to(['user/update']), 'active' => self::getActive($active, TabbedLayout::update())];
     }
     return $tabs;
 }
 public static function getTabs($active = [])
 {
     $tabs = [['label' => Yii::t('group_layout', ':groups_list'), 'url' => Url::to(['group/list']), 'active' => self::getActive($active, TabbedLayout::listing())], ['label' => Yii::t('group_layout', ':group_create'), 'url' => Url::to(['group/create']), 'active' => self::getActive($active, TabbedLayout::create())]];
     if (self::getActive($active, TabbedLayout::update())) {
         $tabs[] = ['label' => Yii::t('group_layout', ':group_manage'), 'url' => Url::to(['group/update'] + $_GET), 'active' => self::getActive($active, TabbedLayout::update())];
     }
     return $tabs;
 }
 public static function getTabs($active = [])
 {
     $tabs = [['label' => Yii::t('beacon_layout', ':beacons_list'), 'url' => Url::to(['beacon/list']), 'active' => self::getActive($active, TabbedLayout::listing())]];
     if (self::getActive($active, TabbedLayout::update())) {
         $tabs[] = ['label' => Yii::t('beacon_layout', ':beacon_update'), 'url' => Url::to(['beacon/update'] + $_GET), 'active' => self::getActive($active, TabbedLayout::update())];
     }
     if (self::getActive($active, TabbedLayout::view())) {
         $tabs[] = ['label' => Yii::t('beacon_layout', ':beacon_view'), 'url' => Url::to(['beacon/view'] + $_GET), 'active' => self::getActive($active, TabbedLayout::view())];
     }
     return $tabs;
 }
 public static function getTabs($active = [])
 {
     $tabs = [['label' => Yii::t('translation_layout', ':translations_list'), 'url' => Url::to(['translation/list'] + $_GET), 'active' => self::getActive($active, TabbedLayout::listing())], ['label' => Yii::t('translation_layout', ':translations_import'), 'url' => Url::to(['translation/import'] + $_GET), 'active' => self::getActive($active, TranslationLayout::import())]];
     return $tabs;
 }
Exemple #7
0
 public static function getTabs($active = [])
 {
     $tabs = [['label' => Yii::t('site_layout', ':my_profile'), 'url' => Url::to(['user/view'] + $_GET), 'active' => self::getActive($active, TabbedLayout::view())], ['label' => Yii::t('user_layout', ':update_profile'), 'url' => Url::to(['user/update'] + $_GET), 'active' => self::getActive($active, TabbedLayout::update())]];
     return $tabs;
 }
 public static function getLeftSubTabs(array $active = [])
 {
     $tabs = [['label' => Yii::t('group_layout', ':group_update'), 'url' => Url::to(['group/update'] + self::getParams()), 'active' => self::getActive($active, GroupManageLayout::update())], ['label' => Yii::t('group_layout', ':group_view'), 'url' => Url::to(['group/view'] + $_GET), 'active' => self::getActive($active, TabbedLayout::view())], ['label' => Yii::t('group_layout', ':group_beacons'), 'url' => Url::to(['group/beacons'] + self::getParams()), 'active' => self::getActive($active, GroupManageLayout::beacons())]];
     return $tabs;
 }
 public static function layout(array $active = [])
 {
     $nav_bar = parent::layout(array_merge($active, [TabbedLayout::update()]));
     return $nav_bar;
 }
 public static function getLeftSubTabs(array $active = [])
 {
     $tabs = [['label' => Yii::t('user_layout', ':update_user'), 'url' => Url::to(['user/update'] + self::getParams()), 'active' => self::getActive($active, AdminUserManageLayout::update())], ['label' => Yii::t('user_layout', ':view_user'), 'url' => Url::to(['user/view'] + $_GET), 'active' => self::getActive($active, TabbedLayout::view())], ['label' => Yii::t('user_layout', ':user_beacons'), 'url' => Url::to(['user/beacons'] + self::getParams()), 'active' => self::getActive($active, AdminUserManageLayout::beacons())]];
     return $tabs;
 }