"; // Display user field input if ($profile_method == "input") { $user_fields = form_text('user_facebook', $locale['uf_facebook'], $field_value, [ 'inline' => TRUE, 'placeholder' => $locale['uf_facebook_placeholder'], 'error_text' => $locale['uf_facebook_error'], 'label_icon' => $icon, ] + $options); // Display in profile } else if ($profile_method == "display") { $link = ''; if ($field_value) { $link = !preg_match("@^http(s)?\:\/\/@i", $field_value) ? "https://www.facebook.com/".$field_value : $field_value; $field_value = (fusion_get_settings('index_url_userweb') ? "" : "")."".$locale['uf_facebook_desc']."".(fusion_get_settings('index_url_userweb') ? "" : ""); } $user_fields = [ 'icon' => $icon, 'link' => $link, 'type' => 'social', 'title' => $locale['uf_facebook'], 'value' => $field_value ?: '' ]; }