Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
[WIP] Messaging (#92)
Browse files Browse the repository at this point in the history
Messaging basic structure for each of boxes and new message, reply etc.
  • Loading branch information
Kaik committed Sep 7, 2017
1 parent 126adc7 commit ce4bb47
Show file tree
Hide file tree
Showing 114 changed files with 2,776 additions and 2,088 deletions.
36 changes: 4 additions & 32 deletions Container/LinkContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function getAccount()
];

$links[] = [
'url' => $this->router->generate('zikulaintercommodule_messages_preferences'),
'url' => $this->router->generate('zikulaintercommodule_user_preferences'),
'text' => $this->translator->__('Messages settings'),
'title' => $this->translator->__('Private messaging settings'),
'icon' => 'wrench',
Expand Down Expand Up @@ -181,7 +181,6 @@ private function getUser()
return $links;
}

// //if ($this->variableApi->get('mode') == 0) {
$links[] = [
'url' => $this->router->generate('zikulaintercommodule_messages_getmessages', ['box' => 'inbox']),
'text' => $this->translator->__('Inbox'),
Expand All @@ -191,7 +190,7 @@ private function getUser()
$links[] = [
'url' => $this->router->generate('zikulaintercommodule_messages_getmessages', ['box' => 'sent']),
'text' => $this->translator->__('Sent'),
'title' => $this->translator->__('Messages send by you'),
'title' => $this->translator->__('Messages sent by you'),
'icon' => 'envelope',
];
$links[] = [
Expand All @@ -217,7 +216,7 @@ private function getUser()
$labelsLinks = [];
foreach ($defaultLabels as $dLabel) {
$labelsLinks[] = [
'url' => $this->router->generate('zikulaintercommodule_messages_newmessage'),
'url' => $this->router->generate('zikulaintercommodule_messages_getmessages', ['box' => 'labels', 'label' => $dLabel->getUrlName()]),
'text' => $this->translator->__($dLabel->getName()),
'icon' => 'tag',
];
Expand All @@ -230,7 +229,7 @@ private function getUser()
'links' => $labelsLinks,
];
$links[] = [
'url' => $this->router->generate('zikulaintercommodule_messages_preferences'),
'url' => $this->router->generate('zikulaintercommodule_user_preferences'),
'text' => $this->translator->__('Settings'),
'title' => $this->translator->__('Private messaging settings'),
'icon' => 'wrench',
Expand All @@ -241,33 +240,6 @@ private function getUser()
'title' => $this->translator->__('Click here to compose new message'),
'icon' => 'file',
];
// // }
// if ($this->variableApi->get('mode') == 1) {
// $links[] = array(
// 'url' => $this->router->generate('zikulaintercommodule_conversations_list'),
// 'text' => $this->translator->__('Conversations'),
// 'title' => $this->translator->__('See all of your conversations'),
// 'icon' => 'coffee'
// );
// $links[] = array(
// 'url' => $this->router->generate('zikulaintercommodule_archive_list'),
// 'text' => $this->translator->__('Archive'),
// 'title' => $this->translator->__('Your saved conversations'),
// 'icon' => 'archive'
// );
// $links[] = array(
// 'url' => $this->router->generate('zikulaintercommodule_user_preferences'),
// 'text' => $this->translator->__('Display messages settings'),
// 'title' => $this->translator->__('Private messaging settings'),
// 'icon' => 'wrench'
// );
// $links[] = array(
// 'url' => $this->router->generate('zikulaintercommodule_conversations_list'),
// 'text' => $this->translator->__('Start new conversation'),
// 'title' => $this->translator->__('New conversation'),
// 'icon' => 'file'
// );
// }

return $links;
}
Expand Down
Loading

0 comments on commit ce4bb47

Please sign in to comment.