summaryrefslogtreecommitdiff
path: root/includes/functions/functions_print.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-09-07 17:08:45 +0000
committerfisharebest <fisharebest@gmail.com>2010-09-07 17:08:45 +0000
commit3155c7e9f549f7bfcf2938a7ab31d23485b30caa (patch)
tree69072f0c75057819cc6bb657e8bb310623419038 /includes/functions/functions_print.php
parent85dd29a00fbc6fa276dc049a54f32d12562c4625 (diff)
downloadwebtrees-3155c7e9f549f7bfcf2938a7ab31d23485b30caa.tar.gz
webtrees-3155c7e9f549f7bfcf2938a7ab31d23485b30caa.tar.bz2
webtrees-3155c7e9f549f7bfcf2938a7ab31d23485b30caa.zip
Remove "tool tips" that don't add any useful information
Diffstat (limited to 'includes/functions/functions_print.php')
-rw-r--r--includes/functions/functions_print.php50
1 files changed, 12 insertions, 38 deletions
diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php
index 897b9270b0..c3f35b1c15 100644
--- a/includes/functions/functions_print.php
+++ b/includes/functions/functions_print.php
@@ -104,53 +104,35 @@ function print_pedigree_person($pid, $style=1, $count=0, $personcount="1") {
// NOTE: Start div I.$pid.$personcount.$count.links
$personlinks .= "<table class=\"person_box$isF\"><tr><td class=\"details1\">";
// NOTE: Zoom
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Pedigree Chart').": ".$pid;
- else $title = $pid." :".i18n::translate('Pedigree Chart');
- $personlinks .= "<a href=\"".encode_url("pedigree.php?rootid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&PEDIGREE_GENERATIONS={$OLD_PGENS}&talloffset={$talloffset}&ged={$GEDCOM}")."\" title=\"$title\" $mouseAction1><b>".i18n::translate('Pedigree Tree')."</b></a>";
+ $personlinks .= "<a href=\"".encode_url("pedigree.php?rootid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&PEDIGREE_GENERATIONS={$OLD_PGENS}&talloffset={$talloffset}&ged={$GEDCOM}")."\" $mouseAction1><b>".i18n::translate('Pedigree Tree')."</b></a>";
if (file_exists(WT_ROOT.'modules/googlemap/pedigree_map.php')) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Pedigree Map').": ".$pid;
- else $title = $pid." :".i18n::translate('Pedigree Map');
- $personlinks .= "<br /><a href=\"".encode_url("module.php?mod=googlemap&mod_action=pedigree_map&rootid={$pid}&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Pedigree Map')."</b></a>";
+ $personlinks .= "<br /><a href=\"".encode_url("module.php?mod=googlemap&mod_action=pedigree_map&rootid={$pid}&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Pedigree Map')."</b></a>";
}
$username = WT_USER_NAME;
if (!empty($username)) {
$myid=WT_USER_GEDCOM_ID;
if ($myid && $myid!=$pid) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Relationship Chart').": ".$pid;
- else $title = $pid." :".i18n::translate('Relationship Chart');
- $personlinks .= "<br /><a href=\"".encode_url("relationship.php?show_full={$PEDIGREE_FULL_DETAILS}&pid1={$myid}&pid2={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&pretty=2&followspouse=1&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Relationship to me')."</b></a>";
+ $personlinks .= "<br /><a href=\"".encode_url("relationship.php?show_full={$PEDIGREE_FULL_DETAILS}&pid1={$myid}&pid2={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&pretty=2&followspouse=1&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Relationship to me')."</b></a>";
}
}
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Descendancy chart').": ".$pid;
- else $title = $pid." :".i18n::translate('Descendancy chart');
- $personlinks .= "<br /><a href=\"".encode_url("descendancy.php?pid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&generations={$generations}&box_width={$box_width}&ged={$GEDCOM}")."\" title=\"$title\" $mouseAction1><b>".i18n::translate('Descendancy chart')."</b></a><br />";
+ $personlinks .= "<br /><a href=\"".encode_url("descendancy.php?pid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&generations={$generations}&box_width={$box_width}&ged={$GEDCOM}")."\" $mouseAction1><b>".i18n::translate('Descendancy chart')."</b></a><br />";
if (file_exists(WT_ROOT.'ancestry.php')) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Ancestry chart').": ".$pid;
- else $title = $pid." :".i18n::translate('Ancestry chart');
- $personlinks .= "<a href=\"".encode_url("ancestry.php?rootid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&chart_style={$chart_style}&PEDIGREE_GENERATIONS={$OLD_PGENS}&box_width={$box_width}&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Ancestry chart')."</b></a><br />";
+ $personlinks .= "<a href=\"".encode_url("ancestry.php?rootid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&chart_style={$chart_style}&PEDIGREE_GENERATIONS={$OLD_PGENS}&box_width={$box_width}&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Ancestry chart')."</b></a><br />";
}
if (file_exists(WT_ROOT.'compact.php')) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Compact Chart').": ".$pid;
- else $title = $pid." :".i18n::translate('Compact Chart');
- $personlinks .= "<a href=\"".encode_url("compact.php?rootid={$pid}&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Compact Chart')."</b></a><br />";
+ $personlinks .= "<a href=\"".encode_url("compact.php?rootid={$pid}&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Compact Chart')."</b></a><br />";
}
if (file_exists(WT_ROOT.'fanchart.php') and defined("IMG_ARC_PIE") and function_exists("imagettftext")) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Circle diagram').": ".$pid;
- else $title = $pid." :".i18n::translate('Circle diagram');
- $personlinks .= "<a href=\"".encode_url("fanchart.php?rootid={$pid}&PEDIGREE_GENERATIONS={$OLD_PGENS}&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Circle diagram')."</b></a><br />";
+ $personlinks .= "<a href=\"".encode_url("fanchart.php?rootid={$pid}&PEDIGREE_GENERATIONS={$OLD_PGENS}&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Circle diagram')."</b></a><br />";
}
if (file_exists(WT_ROOT.'hourglass.php')) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Hourglass chart').": ".$pid;
- else $title = $pid." :".i18n::translate('Hourglass chart');
- $personlinks .= "<a href=\"".encode_url("hourglass.php?pid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&chart_style={$chart_style}&PEDIGREE_GENERATIONS={$OLD_PGENS}&box_width={$box_width}&ged={$GEDCOM}&show_spouse={$show_spouse}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Hourglass chart')."</b></a><br />";
+ $personlinks .= "<a href=\"".encode_url("hourglass.php?pid={$pid}&show_full={$PEDIGREE_FULL_DETAILS}&chart_style={$chart_style}&PEDIGREE_GENERATIONS={$OLD_PGENS}&box_width={$box_width}&ged={$GEDCOM}&show_spouse={$show_spouse}")."\" ".$mouseAction1."><b>".i18n::translate('Hourglass chart')."</b></a><br />";
}
if (file_exists(WT_ROOT.'treenav.php')) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Interactive tree').": ".$pid;
- else $title = $pid." :".i18n::translate('Interactive tree');
- $personlinks .= "<a href=\"".encode_url("treenav.php?rootid={$pid}&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Interactive tree')."</b></a><br />";
+ $personlinks .= "<a href=\"".encode_url("treenav.php?rootid={$pid}&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Interactive tree')."</b></a><br />";
}
$fams = $person->getSpouseFamilies();
@@ -162,13 +144,9 @@ function print_pedigree_person($pid, $style=1, $count=0, $personcount="1") {
$children = $family->getChildren();
$num = count($children);
if ((!empty($spouse))||($num>0)) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Family book chart').": ".$famid;
- else $title = $famid." :".i18n::translate('Family book chart');
- $personlinks .= "<a href=\"".encode_url("family.php?famid={$famid}&show_full=1&ged={$GEDCOM}")."\" title=\"$title\" ".$mouseAction1."><b>".i18n::translate('Family with spouse')."</b></a><br />";
+ $personlinks .= "<a href=\"".encode_url("family.php?famid={$famid}&show_full=1&ged={$GEDCOM}")."\" ".$mouseAction1."><b>".i18n::translate('Family with spouse')."</b></a><br />";
if (!empty($spouse)) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Individual information').": ".$spouse->getXref();
- else $title = $spouse->getXref()." :".i18n::translate('Individual information');
- $personlinks .= "<a href=\"".encode_url($spouse->getLinkUrl())."\" title=\"$title\" $mouseAction1>";
+ $personlinks .= "<a href=\"".encode_url($spouse->getLinkUrl())."\" $mouseAction1>";
if ($spouse->canDisplayName()) $personlinks .= PrintReady($spouse->getFullName());
else $personlinks .= i18n::translate('Private');
$personlinks .= "</a><br />";
@@ -176,9 +154,7 @@ function print_pedigree_person($pid, $style=1, $count=0, $personcount="1") {
}
/* @var $child Person */
foreach($children as $c=>$child) {
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Individual information').": ".$child->getXref();
- else $title = $child->getXref()." :".i18n::translate('Individual information');
- $personlinks .= "&nbsp;&nbsp;<a href=\"".encode_url($child->getLinkUrl())."\" title=\"$title\" $mouseAction1>";
+ $personlinks .= "&nbsp;&nbsp;<a href=\"".encode_url($child->getLinkUrl())."\" $mouseAction1>";
if ($child->canDisplayName()) $personlinks .= PrintReady($child->getFullName());
else $personlinks .= i18n::translate('Private');
$personlinks .= "<br /></a>";
@@ -318,8 +294,6 @@ function print_pedigree_person($pid, $style=1, $count=0, $personcount="1") {
//$name = PrintReady(htmlspecialchars(strip_tags($name), ENT_QUOTES, 'UTF-8'));
$name = PrintReady($name);
- if ($TEXT_DIRECTION=="ltr") $title = i18n::translate('Individual information').": ".$pid;
- else $title = $pid." :".i18n::translate('Individual information');
// add optional CSS style for each fact
$indirec = $person->getGedcomRecord();
$cssfacts = array("BIRT", "CHR", "DEAT", "BURI", "CREM", "ADOP", "BAPM", "BARM", "BASM", "BLES", "CHRA", "CONF", "FCOM", "ORDN", "NATU", "EMIG", "IMMI", "CENS", "PROB", "WILL", "GRAD", "RETI", "CAST", "DSCR", "EDUC", "IDNO",