summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNigel Osborne <kiwi3685@me.com>2011-10-25 01:36:45 +0000
committerNigel Osborne <kiwi3685@me.com>2011-10-25 01:36:45 +0000
commite317fb089e933db398d21dfc3142f09aef7ea1ba (patch)
treef05cc2100fbc8ea2de70ab5366227ef82e755868 /includes
parent4cdbf33d7e114b9b5c2fe4a7318b822e6511590a (diff)
downloadwebtrees-e317fb089e933db398d21dfc3142f09aef7ea1ba.tar.gz
webtrees-e317fb089e933db398d21dfc3142f09aef7ea1ba.tar.bz2
webtrees-e317fb089e933db398d21dfc3142f09aef7ea1ba.zip
Correction to 12403
Diffstat (limited to 'includes')
-rw-r--r--includes/functions/functions_print.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index b86ea222a8..4fa63f4f81 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -91,23 +91,22 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") {
// NOTE: Start div I.$pid.$personcount.$count.links
$personlinks .= '<dl class="person_box'.$isF.'">';
$personlinks .= '<dt><a href="pedigree.php?rootid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;talloffset='.$talloffset.'&amp;ged='.rawurlencode($GEDCOM).'"><b>'.WT_I18N::translate('Pedigree').'</b></a></dt>';
-
if (array_key_exists('googlemap', WT_Module::getActiveModules())) {
$personlinks .= '<dt><a href="module.php?mod=googlemap&amp;mod_action=pedigree_map&amp;rootid='.$pid.'&amp;ged='.WT_GEDURL.'"><b>'.WT_I18N::translate('Pedigree map').'</b></a></dt>';
- }
+ }
if (WT_USER_GEDCOM_ID && WT_USER_GEDCOM_ID!=$pid) {
$personlinks .= '<dt><a href="relationship.php?show_full='.$PEDIGREE_FULL_DETAILS.'&amp;pid1='.WT_USER_GEDCOM_ID.'&amp;pid2='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;pretty=2&amp;followspouse=1&amp;ged='.WT_GEDURL.'"><b>'.WT_I18N::translate('Relationship to me').'</b></a></dt>';
- }
- $personlinks .= '<dt><a href="descendancy.php?pid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;generations='.$generations.'&amp;box_width='.$box_width.'&amp;ged='.rawurlencode($GEDCOM).'"><b>'.WT_I18N::translate('Descendants').'</b></a></dt>';
- $personlinks .= '<dt><a href="ancestry.php?rootid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;chart_style='.$chart_style.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;box_width='.$box_width.'&amp;ged='.rawurlencode($GEDCOM).'><b>'.WT_I18N::translate('Ancestors').'</b></a></dt>';
- $personlinks .= '<dt><a href="compact.php?rootid='.$pid.'&amp;ged='.rawurlencode($GEDCOM).'><b>'.WT_I18N::translate('Compact tree').'</b></a></dt>';
+ }
+ $personlinks .= '<dt><a href="descendancy.php?pid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;generations='.$generations.'&amp;box_width='.$box_width.'&amp;ged='.rawurlencode($GEDCOM).'"><b>'.WT_I18N::translate('Descendants').'</b></a></dt>';
+ $personlinks .= '<dt><a href="ancestry.php?rootid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;chart_style='.$chart_style.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;box_width='.$box_width.'&amp;ged='.rawurlencode($GEDCOM).'"><b>'.WT_I18N::translate('Ancestors').'</b></a></dt>';
+ $personlinks .= '<dt><a href="compact.php?rootid='.$pid.'&amp;ged='.rawurlencode($GEDCOM).'"><b>'.WT_I18N::translate('Compact tree').'</b></a></dt>';
if (function_exists("imagettftext")) {
- $personlinks .= '<dt><a href="fanchart.php?rootid='.$pid.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;ged='.rawurlencode($GEDCOM).'><b>'.WT_I18N::translate('Fan chart').'</b></a></dt>';
- }
- $personlinks .= '<dt><a href="hourglass.php?pid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;chart_style='.$chart_style.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;box_width='.$box_width.'&amp;ged='.rawurlencode($GEDCOM).'&amp;show_spouse='.$show_spouse.'><b>'.WT_I18N::translate('Hourglass chart').'</b></a></dt>';
+ $personlinks .= '<dt><a href="fanchart.php?rootid='.$pid.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;ged='.rawurlencode($GEDCOM).'"><b>'.WT_I18N::translate('Fan chart').'</b></a></dt>';
+ }
+ $personlinks .= '<dt><a href="hourglass.php?pid='.$pid.'&amp;show_full='.$PEDIGREE_FULL_DETAILS.'&amp;chart_style='.$chart_style.'&amp;PEDIGREE_GENERATIONS='.$OLD_PGENS.'&amp;box_width='.$box_width.'&amp;ged='.rawurlencode($GEDCOM).'&amp;show_spouse='.$show_spouse.'"><b>'.WT_I18N::translate('Hourglass chart').'</b></a></dt>';
if (array_key_exists('tree', WT_Module::getActiveModules())) {
$personlinks .= '<dt><a href="module.php?mod=tree&amp;mod_action=treeview&amp;ged='.WT_GEDURL.'&amp;rootid='.$pid.'"><b>'.WT_I18N::translate('Interactive tree').'</b></a></dt>';
- }
+ }
foreach ($person->getSpouseFamilies() as $family) {
$spouse = $family->getSpouse($person);
$children = $family->getChildren();