Add additional account types to the profile filter
This commit is contained in:
parent
360c421796
commit
f1b960c4eb
|
@ -193,9 +193,16 @@ class Profile
|
|||
return false;
|
||||
}
|
||||
|
||||
$account_type = 'People';
|
||||
if (!empty($params['comm'])) {
|
||||
$account_type = 'Forum';
|
||||
switch ($params['account-type'] ?? 0) {
|
||||
case 1: $account_type = 'News'; break;
|
||||
case 2: $account_type = 'Organization'; break;
|
||||
case 3: $account_type = 'Forum'; break;
|
||||
case 0:
|
||||
default:
|
||||
$account_type = 'People';
|
||||
if (!empty($params['comm'])) {
|
||||
$account_type = 'Forum';
|
||||
}
|
||||
}
|
||||
|
||||
$tags = [];
|
||||
|
|
|
@ -53,8 +53,10 @@ class AccountTypeTabs
|
|||
|
||||
foreach ($account_types as $account_type) {
|
||||
switch ($account_type['account_type']) {
|
||||
case 'People': $title = $this->renderer->np__('account-type', 'People (%d)', 'People (%d)', $account_type['count']); break;
|
||||
case 'Forum' : $title = $this->renderer->np__('account-type', 'Forum (%d)', 'Forums (%d)', $account_type['count']); break;
|
||||
case 'People' : $title = $this->renderer->np__('account-type', 'People (%d)' , 'People (%d)' , $account_type['count']); break;
|
||||
case 'News' : $title = $this->renderer->np__('account-type', 'News (%d)' , 'News (%d)' , $account_type['count']); break;
|
||||
case 'Organization': $title = $this->renderer->np__('account-type', 'Organization (%d)', 'Organizations (%d)', $account_type['count']); break;
|
||||
case 'Forum' : $title = $this->renderer->np__('account-type', 'Forum (%d)' , 'Forums (%d)' , $account_type['count']); break;
|
||||
default: $title = $this->renderer->np__('account-type', $account_type['account_type']. ' (%d)', $account_type['account_type']. ' (%d)', $account_type['count']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue