From 4cdbf33d7e114b9b5c2fe4a7318b822e6511590a Mon Sep 17 00:00:00 2001 From: Nigel Osborne Date: Tue, 25 Oct 2011 01:21:12 +0000 Subject: Tidy up code --- includes/functions/functions_print.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'includes') diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index c2505f7027..b86ea222a8 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -89,8 +89,8 @@ 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 .= "
"; - $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').'
'; @@ -98,17 +98,16 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") { if (WT_USER_GEDCOM_ID && WT_USER_GEDCOM_ID!=$pid) { $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('Compact tree').'
'; if (function_exists("imagettftext")) { - $personlinks .= "
".WT_I18N::translate('Fan chart')."
"; + $personlinks .= '
".WT_I18N::translate('Hourglass chart')."
"; + $personlinks .= '
'.WT_I18N::translate('Interactive tree').'
'; } - foreach ($person->getSpouseFamilies() as $family) { $spouse = $family->getSpouse($person); $children = $family->getChildren(); @@ -117,19 +116,19 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") { if ((!empty($spouse))||($num>0)) { $personlinks .= ''.WT_I18N::translate('Family with spouse').'
'; if (!empty($spouse)) { - $personlinks .= "getHtmlUrl()."\">"; + $personlinks .= '"; $personlinks .= $spouse->getFullName(); - $personlinks .= ""; + $personlinks .= ''; } } - $personlinks .= ""; + $personlinks .= ''; foreach ($children as $child) { - $personlinks .= "
getHtmlUrl()."\">"; + $personlinks .= '
'; $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;\""; -- cgit v1.3