- '$lbl_submit' => DI::l10n()->t('Submit'),
-
- '$name' => ['name', DI::l10n()->t('Name'), $contact['name'], '', '', $readonly],
- '$nick' => ['nick', DI::l10n()->t('Account Nickname'), $contact['nick'], '', '', $readonly],
- '$attag' => ['attag', DI::l10n()->t('@Tagname - overrides Name/Nickname'), $contact['attag']],
- '$url' => ['url', DI::l10n()->t('Account URL'), $contact['url'], '', '', $readonly],
- '$alias' => ['alias', DI::l10n()->t('Account URL Alias'), $contact['alias'], '', '', $readonly],
- '$request' => ['request', DI::l10n()->t('Friend Request URL'), $contact['request'], '', '', $readonly],
- 'confirm' => ['confirm', DI::l10n()->t('Friend Confirm URL'), $contact['confirm'], '', '', $readonly],
- 'notify' => ['notify', DI::l10n()->t('Notification Endpoint URL'), $contact['notify'], '', '', $readonly],
- 'poll' => ['poll', DI::l10n()->t('Poll/Feed URL'), $contact['poll'], '', '', $readonly],
- 'photo' => ['photo', DI::l10n()->t('New photo from this URL'), '', '', '', $readonly],
+ '$lbl_submit' => $this->t('Submit'),
+
+ '$name' => ['name', $this->t('Name'), $contact['name'], '', '', $readonly],
+ '$nick' => ['nick', $this->t('Account Nickname'), $contact['nick'], '', '', 'readonly'],
+ '$url' => ['url', $this->t('Account URL'), $contact['url'], '', '', 'readonly'],
+ 'poll' => ['poll', $this->t('Poll/Feed URL'), $contact['poll'], '', '', ($contact['network'] == Protocol::FEED) ? '' : 'readonly'],
+ 'photo' => ['photo', $this->t('New photo from this URL'), '', '', '', $readonly],