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