show_thumbs = WT_Filter::getBool('show_thumbs');
if ($this->root && $this->root->canShowName()) {
$this->setPageTitle(
/* I18N: %s is an individual’s name */
WT_I18N::translate('Compact tree of %s', $this->root->getFullName())
);
} else {
$this->setPageTitle(WT_I18N::translate('Compact tree'));
}
$this->treeid = $this->sosaAncestors(5);
}
public function sosaIndividual($n) {
global $SHOW_HIGHLIGHT_IMAGES;
$indi = $this->treeid[$n];
if ($indi && $indi->canShowName()) {
$name=$indi->getFullName();
$addname=$indi->getAddName();
if ($this->show_thumbs && $SHOW_HIGHLIGHT_IMAGES) {
$html=$indi->displayImage();
} else {
$html='';
}
$html .= '';
$html .= $name;
if ($addname) $html .= '
' . $addname;
$html .= '';
$html .= '
';
if ($indi->canShow()) {
$html.='