$endGenNum = $this->lists['endGenNum']; $personIdArray = $this->personId; $id = array(); $id['app_id'] = $this->lists['app_id']; $html = ''; $generationNumber = $startGenNum; $thisGeneration = array(); $nextGeneration = array(); foreach ($personIdArray as $personId) { $thisGeneration[] = $personId; } $continue = true; while ($continue == true) { $displayGenerationNum = JoaktreeHelper::displayEnglishCounter($generationNumber); $displayThisGenNumber = JoaktreeHelper::arabicToRomanNumeral($generationNumber); $displayNextGenNumber = JoaktreeHelper::arabicToRomanNumeral($generationNumber + 1); $nextGenerationCounter = 0; $html .= '<div class="jt-clearfix"><div class="jt-h3">' . JText::_($displayGenerationNum) . ' ' . JText::_('JT_GENERATION') . '</div></div>'; foreach ($thisGeneration as $gen_i => $generation) { $genPerson = explode('|', $generation); $id['person_id'] = $genPerson[0]; $person = new Person($id, 'basic'); if (isset($genPerson[3])) { // This is relationtype $person->relationtype = $genPerson[3]; } $html .= '<div class="jt-clearfix jt-high-row">'; $html .= '<a name="P' . $person->id . '"></a>'; if (!($generationNumber == 1 and $genPerson[1] == 1)) { $html .= '<a href="#P' . $genPerson[2] . '">'; }