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