} else { $fams[$xref] .= '<br>' . calendar_fact_text($fact, true); } } } break; case 'calendar': $cal_facts = array(); foreach ($found_facts as $d => $facts) { $cal_facts[$d] = array(); foreach ($facts as $fact) { $xref = $fact->getParent()->getXref(); if (empty($cal_facts[$d][$xref])) { $cal_facts[$d][$xref] = calendar_fact_text($fact, false); } else { $cal_facts[$d][$xref] .= '<br>' . calendar_fact_text($fact, false); } } } break; } switch ($action) { case 'year': case 'today': echo '<table class="width100"><tr>'; // Table headings echo '<td class="descriptionbox center width50"><i class="icon-indis"></i>', WT_I18N::translate('Individuals'), '</td>'; echo '<td class="descriptionbox center width50"><i class="icon-cfamily"></i>', WT_I18N::translate('Families'), '</td>'; echo '</tr><tr>'; // Table rows $males = 0;
$fams[$fact['id']] .= '<br/>' . $fact_text; } break; } } break; case 'calendar': $cal_facts = array(); foreach ($found_facts as $d => $facts) { $cal_facts[$d] = array(); foreach ($facts as $fact) { $id = $fact['id']; if (empty($cal_facts[$d][$id])) { $cal_facts[$d][$id] = calendar_fact_text($fact, false); } else { $cal_facts[$d][$id] .= '<br/>' . calendar_fact_text($fact, false); } } } break; } switch ($action) { case 'year': case 'today': print "<table class=\"center {$TEXT_DIRECTION} width100\"><tr>"; // Table headings print "<td class=\"descriptionbox center width50\"><img src=\"{$PGV_IMAGE_DIR}/{$PGV_IMAGES['indis']['small']}\" border=\"0\" title=\"{$pgv_lang['individuals']}\" alt=\"{$pgv_lang['individuals']}\" /> {$pgv_lang['individuals']}</td>"; print "<td class=\"descriptionbox center width50\"><img src=\"{$PGV_IMAGE_DIR}/{$PGV_IMAGES['cfamily']['small']}\" border=\"0\" title=\"{$pgv_lang['families']}\" alt=\"{$pgv_lang['families']}\" /> {$pgv_lang['families']}</td>"; print "</tr><tr>"; // Table rows $males = 0;