diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-07-17 16:10:29 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-07-17 16:10:29 +0000 |
| commit | b4da02a0df04e995a24e998d472f1052d498565b (patch) | |
| tree | d66bd0f74a5b856e159efb323c2cb985f3eb0ca6 /compact.php | |
| parent | 72cc34148c69d4aa6f14584d3268ea835b9ce739 (diff) | |
| download | webtrees-b4da02a0df04e995a24e998d472f1052d498565b.tar.gz webtrees-b4da02a0df04e995a24e998d472f1052d498565b.tar.bz2 webtrees-b4da02a0df04e995a24e998d472f1052d498565b.zip | |
Combine large and small icons - use CSS to downsize when small icons are required
Diffstat (limited to 'compact.php')
| -rw-r--r-- | compact.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compact.php b/compact.php index d4792b76ad..87a76cd8ff 100644 --- a/compact.php +++ b/compact.php @@ -327,19 +327,19 @@ function print_td_person($n) { $text .= "<img id=\"box-$pid\" src=\"".$whichFile."\"vspace=\"0\" hspace=\"0\" class=\"$class\" alt =\"\" title=\"".PrintReady(htmlspecialchars(strip_tags($name), ENT_QUOTES, 'UTF-8'))." - ".strip_tags(html_entity_decode($birth_date->Display(false)." - ".$death_date->Display(false),ENT_QUOTES,'UTF-8'))."\""; if ($imgsize) $text .= " /></a>\n"; else $text .= " />\n"; - } else if ($USE_SILHOUETTE && isset($WT_IMAGES["default_image_U"]["other"])) { + } else if ($USE_SILHOUETTE && isset($WT_IMAGES["default_image_U"])) { $class = "pedigree_image_portrait"; if ($TEXT_DIRECTION == "rtl") $class .= "_rtl"; $sex = $indi->getSex(); $text = "<img src=\""; if ($sex == 'F') { - $text .= $WT_IMAGES["default_image_F"]["other"]; + $text .= $WT_IMAGES["default_image_F"]; } else if ($sex == 'M') { - $text .= $WT_IMAGES["default_image_M"]["other"]; + $text .= $WT_IMAGES["default_image_M"]; } else { - $text .= $WT_IMAGES["default_image_U"]["other"]; + $text .= $WT_IMAGES["default_image_U"]; } $text .="\" class=\"".$class."\" border=\"none\" alt=\"\" />"; } @@ -409,8 +409,8 @@ function print_arrow_person($n, $arrow_dir) { } else { $title = $pid." :".i18n::translate('Compact Chart'); } - $arrow_img = "<img id='arrow$n' src='".$WT_IMAGES[$arrow_dir."arrow"]["other"]."' border='0' align='middle' alt='$title' title='$title' />"; - $hideArrow = "<img id='arrow$n' src='".$WT_IMAGES[$arrow_dir."arrow"]["other"]."' border='0' align='middle' alt='$title' title='$title' style='visibility:hidden;' />"; + $arrow_img = "<img id='arrow$n' src='".$WT_IMAGES[$arrow_dir."arrow"]."' border='0' align='middle' alt='$title' title='$title' />"; + $hideArrow = "<img id='arrow$n' src='".$WT_IMAGES[$arrow_dir."arrow"]."' border='0' align='middle' alt='$title' title='$title' style='visibility:hidden;' />"; $text = ""; if ($pid) { |
