mirror of
https://github.com/friendica/friendica
synced 2025-04-27 03:10:12 +00:00
Remove uses of profile.marital
This commit is contained in:
parent
8e2910976f
commit
e69497454b
9 changed files with 1 additions and 81 deletions
|
@ -234,59 +234,4 @@ class ContactSelector
|
|||
$o .= '</select>';
|
||||
return $o;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $current optional, default empty
|
||||
* @return string
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public static function maritalStatus($current = "")
|
||||
{
|
||||
$o = '';
|
||||
$select = [
|
||||
'' => DI::l10n()->t('No answer'),
|
||||
'Single' => DI::l10n()->t('Single'),
|
||||
'Lonely' => DI::l10n()->t('Lonely'),
|
||||
'In a relation' => DI::l10n()->t('In a relation'),
|
||||
'Has crush' => DI::l10n()->t('Has crush'),
|
||||
'Infatuated' => DI::l10n()->t('Infatuated'),
|
||||
'Dating' => DI::l10n()->t('Dating'),
|
||||
'Unfaithful' => DI::l10n()->t('Unfaithful'),
|
||||
'Sex Addict' => DI::l10n()->t('Sex Addict'),
|
||||
'Friends' => DI::l10n()->t('Friends'),
|
||||
'Friends/Benefits' => DI::l10n()->t('Friends/Benefits'),
|
||||
'Casual' => DI::l10n()->t('Casual'),
|
||||
'Engaged' => DI::l10n()->t('Engaged'),
|
||||
'Married' => DI::l10n()->t('Married'),
|
||||
'Imaginarily married' => DI::l10n()->t('Imaginarily married'),
|
||||
'Partners' => DI::l10n()->t('Partners'),
|
||||
'Cohabiting' => DI::l10n()->t('Cohabiting'),
|
||||
'Common law' => DI::l10n()->t('Common law'),
|
||||
'Happy' => DI::l10n()->t('Happy'),
|
||||
'Not looking' => DI::l10n()->t('Not looking'),
|
||||
'Swinger' => DI::l10n()->t('Swinger'),
|
||||
'Betrayed' => DI::l10n()->t('Betrayed'),
|
||||
'Separated' => DI::l10n()->t('Separated'),
|
||||
'Unstable' => DI::l10n()->t('Unstable'),
|
||||
'Divorced' => DI::l10n()->t('Divorced'),
|
||||
'Imaginarily divorced' => DI::l10n()->t('Imaginarily divorced'),
|
||||
'Widowed' => DI::l10n()->t('Widowed'),
|
||||
'Uncertain' => DI::l10n()->t('Uncertain'),
|
||||
'It\'s complicated' => DI::l10n()->t('It\'s complicated'),
|
||||
'Don\'t care' => DI::l10n()->t('Don\'t care'),
|
||||
'Ask me' => DI::l10n()->t('Ask me'),
|
||||
];
|
||||
|
||||
Hook::callAll('marital_selector', $select);
|
||||
|
||||
$o .= '<select name="marital" id="marital-select" size="1" >';
|
||||
foreach ($select as $neutral => $selection) {
|
||||
if ($selection !== 'NOTRANSLATION') {
|
||||
$selected = (($neutral == $current) ? ' selected="selected" ' : '');
|
||||
$o .= "<option value=\"$neutral\" $selected >$selection</option>";
|
||||
}
|
||||
}
|
||||
$o .= '</select>';
|
||||
return $o;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue