- $tpl = Renderer::getMarkupTemplate('profile/index.tpl');
- $o .= Renderer::replaceMacros($tpl, [
- '$title' => DI::l10n()->t('Profile'),
- '$view_as_contacts' => $view_as_contacts,
- '$view_as_contact_id' => $view_as_contact_id,
- '$view_as' => DI::l10n()->t('View profile as:'),
- '$basic' => DI::l10n()->t('Basic'),
- '$advanced' => DI::l10n()->t('Advanced'),
- '$is_owner' => $a->profile_uid == local_user(),
- '$query_string' => DI::args()->getQueryString(),
- '$basic_fields' => $basic_fields,
- '$custom_fields' => $custom_fields,
- '$profile' => $a->profile,
- '$edit_link' => [
- 'url' => DI::baseUrl() . '/settings/profile', DI::l10n()->t('Edit profile'),
+ $tpl = Renderer::getMarkupTemplate('profile/profile.tpl');
+ $o .= Renderer::replaceMacros($tpl, [
+ '$title' => $this->t('Profile'),
+ '$yourself' => $this->t('Yourself'),
+ '$view_as_contacts' => $view_as_contacts,
+ '$view_as_contact_id' => $view_as_contact_id,
+ '$view_as_contact_alert' => $view_as_contact_alert,
+ '$view_as' => $this->t('View profile as:'),
+ '$submit' => $this->t('Submit'),
+ '$basic' => $this->t('Basic'),
+ '$advanced' => $this->t('Advanced'),
+ '$is_owner' => $profile['uid'] == $this->session->getLocalUserId(),
+ '$query_string' => $this->args->getQueryString(),
+ '$basic_fields' => $basic_fields,
+ '$custom_fields' => $custom_fields,
+ '$profile' => $profile,
+ '$edit_link' => [
+ 'url' => 'settings/profile', $this->t('Edit profile'),