add frontend ticket translations
This commit is contained in:
@@ -22,11 +22,15 @@ class FrontendMenuStructure{
|
||||
}
|
||||
|
||||
|
||||
protected function isLogged(){
|
||||
return Yii::$app->user->isGuest;
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected function addUserMainMenu(){
|
||||
$this->menuItems[] = ['label' => 'Recepcio', 'url' => ['/customer/reception'] ];
|
||||
protected function addRecepcio(){
|
||||
if ( $this->isLogged() ){
|
||||
$this->menuItems[] = ['label' => 'Recepcio', 'url' => ['/customer/reception'] ];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +49,7 @@ class FrontendMenuStructure{
|
||||
|
||||
|
||||
public function run(){
|
||||
$this->addUserMainMenu();
|
||||
$this->addRecepcio();
|
||||
$this->addLoginMainMenu();
|
||||
return $this->menuItems;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user