From 114054ddfc43aea79281c2087e1bc42848c59e76 Mon Sep 17 00:00:00 2001 From: Nigel Osborne Date: Tue, 25 Oct 2011 01:04:41 +0000 Subject: Lukasz - as per emails, I think this will help solve the positioning issues etc for the popup links --- includes/functions/functions_print.php | 37 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 19 deletions(-) (limited to 'includes') diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index c9ef017e22..c2505f7027 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -89,47 +89,47 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") { if (empty($SEARCH_SPIDER)) { //-- draw a box for the family popup // NOTE: Start div I.$pid.$personcount.$count.links - $personlinks .= "
"; - // NOTE: Zoom - $personlinks .= "".WT_I18N::translate('Pedigree').""; + $personlinks .= "
"; + $personlinks .= "
".WT_I18N::translate('Pedigree')."
"; if (array_key_exists('googlemap', WT_Module::getActiveModules())) { - $personlinks .= '
'.WT_I18N::translate('Pedigree map').''; + $personlinks .= '
'.WT_I18N::translate('Pedigree map').'
'; } if (WT_USER_GEDCOM_ID && WT_USER_GEDCOM_ID!=$pid) { - $personlinks .= '
'.WT_I18N::translate('Relationship to me').''; + $personlinks .= '
'.WT_I18N::translate('Relationship to me').'
'; } - $personlinks .= "
".WT_I18N::translate('Descendants')."
"; - $personlinks .= "".WT_I18N::translate('Ancestors')."
"; - $personlinks .= "".WT_I18N::translate('Compact tree')."
"; + $personlinks .= "
".WT_I18N::translate('Descendants')."
"; + $personlinks .= "
".WT_I18N::translate('Ancestors')."
"; + $personlinks .= "
".WT_I18N::translate('Compact tree')."
"; if (function_exists("imagettftext")) { - $personlinks .= "".WT_I18N::translate('Fan chart')."
"; + $personlinks .= "
".WT_I18N::translate('Fan chart')."
"; } - $personlinks .= "".WT_I18N::translate('Hourglass chart')."
"; + $personlinks .= "
".WT_I18N::translate('Hourglass chart')."
"; if (array_key_exists('tree', WT_Module::getActiveModules())) { - $personlinks .= ''.WT_I18N::translate('Interactive tree').'
'; + $personlinks .= '
'.WT_I18N::translate('Interactive tree').'
'; } foreach ($person->getSpouseFamilies() as $family) { $spouse = $family->getSpouse($person); - $children = $family->getChildren(); $num = count($children); + $personlinks .= '
'; if ((!empty($spouse))||($num>0)) { - $personlinks .= "getHtmlUrl()."&show_full=1\">".WT_I18N::translate('Family with spouse')."
"; + $personlinks .= ''.WT_I18N::translate('Family with spouse').'
'; if (!empty($spouse)) { $personlinks .= "getHtmlUrl()."\">"; $personlinks .= $spouse->getFullName(); - $personlinks .= "
"; + $personlinks .= ""; } } + $personlinks .= "
"; foreach ($children as $child) { - $personlinks .= "  getHtmlUrl()."\">"; + $personlinks .= "
getHtmlUrl()."\">"; $personlinks .= $child->getFullName(); - $personlinks .= "
"; + $personlinks .= "
"; } } - $personlinks .= "
"; + $personlinks .= ""; // NOTE: Start div out-$pid.$personcount.$count if ($style==1) $outBoxAdd .= " class=\"person_box$isF\" style=\"width: ".$bwidth."px; height: ".$bheight."px; overflow: hidden; z-index:-1;\""; else $outBoxAdd .= " class=\"person_box$isF\" style=\"padding: 2px;\""; @@ -142,8 +142,7 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") { $icons .= ">\"".WT_I18N::translate('Zoom"; } - $icons .= ''.$personlinks.''; + $icons .= '
'; } else { if ($style==1) { $outBoxAdd .= "class=\"person_box$isF\" style=\"width: ".$bwidth."px; height: ".$bheight."px; overflow: hidden;\""; -- cgit v1.3