init(); // tell tabs that use jquery that it is already loaded define('WT_JQUERY_LOADED', 1); // We have finished writing session data, so release the lock Zend_Session::writeClose(); print_header($controller->getPageTitle()); if (!$controller->indi){ echo "", i18n::translate('Unable to find record with ID'), "

"; print_footer(); exit; } else if (!$controller->indi->canDisplayName()) { print_privacy_error(); print_footer(); exit; } $linkToID=$controller->pid; // -- Tell addmedia.php what to link to ?>
accept_success)) echo "", i18n::translate('Changes successfully accepted into database'), "
"; if ($controller->indi->isMarkedDeleted()) echo "".i18n::translate('This record has been marked for deletion upon admin approval.').""; if (strlen($controller->indi->getAddName()) > 0) echo "", PrintReady($controller->indi->getAddName()), "
"; ?>

indi->getFullName()); } if (WT_USER_IS_ADMIN) { $user_id=get_user_from_gedcom_xref(WT_GED_ID, $controller->pid); if ($user_id) { $user_name=get_user_name($user_id); echo " "; echo printReady("({$user_name})"); } } ?>

canShowHighlightedObject()) { echo $controller->getHighlightedObject(); } ?>
indi->canDisplayDetails()) { $globalfacts=$controller->getGlobalFacts(); $nameSex = array('NAME', 'SEX'); foreach ($globalfacts as $key=>$value) { if ($key == 0) { // First name $fact = $value->getTag(); if (in_array($fact, $nameSex)) { if ($fact=="NAME") $controller->print_name_record($value); } //Display facts echo '
'; //Display gender foreach ($globalfacts as $key=>$value) { $fact = $value->getTag(); if (in_array($fact, $nameSex)) { if ($fact=="SEX") $controller->print_sex_record($value); } } // Display summary birth/death info. $summary=$controller->indi->format_first_major_fact(WT_EVENTS_BIRT, 2); // If alive display age if (!$controller->indi->isDead()) { $bdate=$controller->indi->getBirthDate(); $age = GedcomDate::GetAgeGedcom($bdate); if ($age!="") $summary.= "
".i18n::translate('Age')."
".get_age_at_event($age, true)."
"; } $summary.=$controller->indi->format_first_major_fact(WT_EVENTS_DEAT, 2); if ($SHOW_LDS_AT_GLANCE) { $summary.="
".get_lds_glance($controller->indi->getGedcomRecord())."
"; } if ($summary) { echo $summary; } echo '
'; } else { // 2nd and more names $fact = $value->getTag(); if (in_array($fact, $nameSex)) { if ($fact=="NAME") $controller->print_name_record($value); } } } } ?>
indi->isRemote()) { echo '
'; echo i18n::translate('The information for this individual was linked from a remote site.');//
-->
"; } else { print_footer(); }