+
+ if (($key = array_search($view_as_contact_id, $view_as_contact_ids)) !== false) {
+ $view_as_contact_alert = DI::l10n()->t(
+ 'You\'re currently viewing your profile as <b>%s</b> <a href="%s" class="btn btn-sm pull-right">Cancel</a>',
+ htmlentities($view_as_contacts[$key]['name'], ENT_COMPAT, 'UTF-8'),
+ 'profile/' . $this->parameters['nickname'] . '/profile'
+ );
+ }