"; // Display user field input if ($profile_method == "input") { $options = [ 'inline' => TRUE, 'error_text' => $locale['uf_psn_error'], 'regex_error_text' => $locale['uf_psn_error_1'], 'placeholder' => $locale['uf_psn_desc'], 'label_icon' => $icon ] + $options; $user_fields = form_text('user_psn', $locale['uf_psn'], $field_value, [ 'inline' => TRUE, 'placeholder' => $locale['uf_psn_placeholder'], 'error_text' => $locale['uf_psn_error'], 'label_icon' => $icon, ]); // Display in profile } else if ($profile_method == "display") { $link = ''; if ($field_value) { $link = !preg_match("@^http(s)?\:\/\/@i", $field_value) ? "https://my.playstation.com/".$field_value : $field_value; $field_value = (fusion_get_settings('index_url_userweb') ? "" : "")."".$locale['uf_psn_desc']."".(fusion_get_settings('index_url_userweb') ? "" : ""); } $user_fields = [ 'icon' => $icon, 'link' => $link, 'type' => 'social', 'title' => $locale['uf_psn'], 'value' => $field_value ?: '' ]; }