function contactGedcom() { return user_contact_link(get_gedcom_setting($this->_ged_id, 'CONTACT_USER_ID')); }
function contact_links($ged_id = WT_GED_ID) { $contact_user_id = get_gedcom_setting($ged_id, 'CONTACT_USER_ID'); $webmaster_user_id = get_gedcom_setting($ged_id, 'WEBMASTER_USER_ID'); $supportLink = user_contact_link($webmaster_user_id); if ($webmaster_user_id == $contact_user_id) { $contactLink = $supportLink; } else { $contactLink = user_contact_link($contact_user_id); } if (!$supportLink && !$contactLink) { return ''; } if ($supportLink == $contactLink) { return '<div class="contact_links">' . WT_I18N::translate('For technical support or genealogy questions, please contact') . ' ' . $supportLink . '</div>'; } else { $returnText = '<div class="contact_links">'; if ($supportLink) { $returnText .= WT_I18N::translate('For technical support and information contact') . ' ' . $supportLink; if ($contactLink) { $returnText .= '<br>'; } } if ($contactLink) { $returnText .= WT_I18N::translate('For help with genealogy questions contact') . ' ' . $contactLink; } $returnText .= '</div>'; return $returnText; } }
static function contactGedcom() { return user_contact_link($GLOBALS['CONTACT_EMAIL'], $GLOBALS['CONTACT_METHOD']); }