add frontend ticket translations

This commit is contained in:
2015-10-09 08:12:39 +02:00
parent 11e7c85cf3
commit fda450b801
21 changed files with 227 additions and 57 deletions

View File

@@ -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;
}