Ejemplo n.º 1
0
    public function getFamilyLi(WT_Family $family, WT_Individual $person, $generations = 0)
    {
        $marryear = $family->getMarriageYear();
        $marr = $marryear ? '<i class="icon-rings"></i>' . $marryear : '';
        $fam = '<a href="' . $family->getHtmlUrl() . '" class="icon-button_family"></a>';
        $kids = $this->loadChildren($family, $generations);
        return sprintf('<li class="sb_desc_indi_li">
		                  <a class="sb_desc_indi" href="#"><i class="plusminus icon-minus"></i>%s %s %s</a>
		                  <a class="icon-button_indi" href="%s"></a>
		                  %s
		                  <div>%s</div>
		                </li>', $person->getSexImage(), $person->getFullName(), $marr, $person->getHtmlUrl(), $fam, $kids);
    }