/**
  * Draw a person name preceded by sex icon, with parents as tooltip
  *
  * @param WT_Individual $individual an individual
  * @param string        $dashed     if = 'dashed' print dashed top border to separate multiple spuses
  *
  * @return string
  */
 private function drawPersonName(WT_Individual $individual, $dashed = '')
 {
     if ($this->all_partners === 'true') {
         $family = $individual->getPrimaryChildFamily();
         if ($family) {
             switch ($individual->getSex()) {
                 case 'M':
                     $title = ' title="' . strip_tags(WT_I18N::translate('Son of %s', $family->getFullName())) . '"';
                     break;
                 case 'F':
                     $title = ' title="' . strip_tags(WT_I18N::translate('Daughter of %s', $family->getFullName())) . '"';
                     break;
                 case 'U':
                     $title = ' title="' . strip_tags(WT_I18N::translate('Child of %s', $family->getFullName())) . '"';
                     break;
             }
         } else {
             $title = '';
         }
     } else {
         $title = '';
     }
     $sex = $individual->getSex();
     return '<div class="tv' . $sex . ' ' . $dashed . '"' . $title . '><a href="' . $individual->getHtmlUrl() . '"></a>' . $individual->getFullName() . ' <span class="dates">' . $individual->getLifeSpan() . '</span></div>';
 }