@@ -109,14 +109,15 @@ private function getAccount()
109109 'icon ' => 'inbox ' ,
110110 ];
111111 //@todo add something more general to disable user preferences even if this and future features are enabled
112- if ($ this ->variableApi ->get ($ this ->name , 'allow_emailnotification ' , false ) && $ this ->variableApi ->get ($ this ->name , 'allow_autoreply ' , false )) {
113- $ links [] = [
114- 'url ' => $ this ->router ->generate ('zikulaintercommodule_user_preferences ' ),
115- 'text ' => $ this ->translator ->__ ('Messages settings ' ),
116- 'title ' => $ this ->translator ->__ ('Private messaging settings ' ),
117- 'icon ' => 'wrench ' ,
118- ];
119- }
112+ // disable till preferences are actually used
113+ // if ($this->variableApi->get($this->name, 'allow_emailnotification', false) && $this->variableApi->get($this->name, 'allow_autoreply', false)) {
114+ // $links[] = [
115+ // 'url' => $this->router->generate('zikulaintercommodule_user_preferences'),
116+ // 'text' => $this->translator->__('Messages settings'),
117+ // 'title' => $this->translator->__('Private messaging settings'),
118+ // 'icon' => 'wrench',
119+ // ];
120+ // }
120121
121122 return $ links ;
122123 }
@@ -134,33 +135,33 @@ private function getAdmin()
134135 'url ' => $ this ->router ->generate ('zikulaintercommodule_admin_status ' ),
135136 'text ' => $ this ->translator ->__ ('Info ' ),
136137 'title ' => $ this ->translator ->__ ('Display informations ' ),
137- 'icon ' => 'dashboard ' , ];
138+ 'icon ' => 'bar-chart ' , ];
138139 $ links [] = [
139140 'url ' => $ this ->router ->generate ('zikulaintercommodule_admin_preferences ' ),
140141 'text ' => $ this ->translator ->__ ('Settings ' ),
141142 'title ' => $ this ->translator ->__ ('Adjust module settings ' ),
142143 'icon ' => 'wrench ' , ];
143- if ($ this ->variableApi ->get ($ this ->name , 'labels_enabled ' , false )) {
144- $ links [] = [
145- 'url ' => $ this ->router ->generate ('zikulaintercommodule_labels_list ' ),
146- 'text ' => $ this ->translator ->__ ('Labels ' ),
147- 'title ' => $ this ->translator ->__ ('Here you can import messages from older versions ' ),
148- 'icon ' => 'tags ' , ];
149- }
150- if ($ this ->variableApi ->get ($ this ->name , 'support_enabled ' , false )) {
151- $ links [] = [
152- 'url ' => $ this ->router ->generate ('zikulaintercommodule_support_list ' ),
153- 'text ' => $ this ->translator ->__ ('Support messages ' ),
154- 'title ' => $ this ->translator ->__ ('Here you can import messages from older versions ' ),
155- 'icon ' => 'life-buoy ' , ];
156- }
157- if ($ this ->variableApi ->get ($ this ->name , 'notifications_enabled ' , false )) {
158- $ links [] = [
159- 'url ' => $ this ->router ->generate ('zikulaintercommodule_notifications_list ' ),
160- 'text ' => $ this ->translator ->__ ('Notifications ' ),
161- 'title ' => $ this ->translator ->__ ('Here you can import messages from older versions ' ),
162- 'icon ' => 'bullhorn ' , ];
163- }
144+ // if ($this->variableApi->get($this->name, 'labels_enabled', false)) {
145+ // $links[] = [
146+ // 'url' => $this->router->generate('zikulaintercommodule_labels_list'),
147+ // 'text' => $this->translator->__('Labels'),
148+ // 'title' => $this->translator->__('Here you can import messages from older versions'),
149+ // 'icon' => 'tags', ];
150+ // }
151+ // if ($this->variableApi->get($this->name, 'support_enabled', false)) {
152+ // $links[] = [
153+ // 'url' => $this->router->generate('zikulaintercommodule_support_list'),
154+ // 'text' => $this->translator->__('Support messages'),
155+ // 'title' => $this->translator->__('Here you can import messages from older versions'),
156+ // 'icon' => 'life-buoy', ];
157+ // }
158+ // if ($this->variableApi->get($this->name, 'notifications_enabled', false)) {
159+ // $links[] = [
160+ // 'url' => $this->router->generate('zikulaintercommodule_notifications_list'),
161+ // 'text' => $this->translator->__('Notifications'),
162+ // 'title' => $this->translator->__('Here you can import messages from older versions'),
163+ // 'icon' => 'bullhorn', ];
164+ // }
164165 $ links [] = [
165166 'url ' => $ this ->router ->generate ('zikulaintercommodule_import_status ' ),
166167 'text ' => $ this ->translator ->__ ('Import ' ),
@@ -231,14 +232,14 @@ private function getUser()
231232 'links ' => $ labelsLinks ,
232233 ];
233234 //@todo add something more general to disable user preferences even if this and future features are enabled
234- if ($ this ->variableApi ->get ($ this ->name , 'allow_emailnotification ' , false ) && $ this ->variableApi ->get ($ this ->name , 'allow_autoreply ' , false )) {
235- $ links [] = [
236- 'url ' => $ this ->router ->generate ('zikulaintercommodule_user_preferences ' ),
237- 'text ' => $ this ->translator ->__ ('Settings ' ),
238- 'title ' => $ this ->translator ->__ ('Private messaging settings ' ),
239- 'icon ' => 'wrench ' ,
240- ];
241- }
235+ // if ($this->variableApi->get($this->name, 'allow_emailnotification', false) && $this->variableApi->get($this->name, 'allow_autoreply', false)) {
236+ // $links[] = [
237+ // 'url' => $this->router->generate('zikulaintercommodule_user_preferences'),
238+ // 'text' => $this->translator->__('Settings'),
239+ // 'title' => $this->translator->__('Private messaging settings'),
240+ // 'icon' => 'wrench',
241+ // ];
242+ // }
242243 $ links [] = [
243244 'url ' => $ this ->router ->generate ('zikulaintercommodule_messages_newmessage ' ),
244245 'text ' => $ this ->translator ->__ ('New message ' ),
0 commit comments