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 "", WT_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 "", WT_I18N::translate('Changes successfully accepted into database'), "
"; if ($controller->indi->isMarkedDeleted()) echo "".WT_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 = WT_Date::GetAgeGedcom($bdate); if ($age!="") $summary.= "
".WT_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); } } } } ?>
tabs as $tab) { echo $tab->getPreLoadContent(); } ?>
indi->canDisplayDetails()) { echo "
"; print_privacy_error(); echo "
"; } else { require './sidebar.php'; // Initially hide the sidebar controls & pin ====== ?> '; echo ''; foreach ($controller->tabs as $tab) { if ($tab->hasTabContent()) { if ($tab->getName()==$controller->default_tab || !$tab->canLoadAjax()) { echo '
'; echo $tab->getTabContent(); echo '
'; } } } ?>