function calendar_list_text($list, $tag1, $tag2, $show_sex_symbols) { global $PGV_IMAGE_DIR, $PGV_IMAGES, $pgv_lang; global $males, $females; foreach ($list as $id => $facts) { $tmp = GedcomRecord::GetInstance($id); print "{$tag1}<a href=\"" . encode_url($tmp->getLinkUrl()) . "\">" . PrintReady($tmp->getFullName()) . "</a> "; if ($show_sex_symbols && $tmp->getType() == 'INDI') { switch ($tmp->getSex()) { case 'M': echo Person::sexImage('M', 'small', 'vertical-align: middle', $pgv_lang['all']); ++$males; break; case 'F': echo Person::sexImage('F', 'small', 'vertical-align: middle', $pgv_lang['all']); ++$females; break; default: echo Person::sexImage('U', 'small', 'vertical-align: middle', $pgv_lang['all']); break; } } print "<div class=\"indent\">" . $facts . "</div>{$tag2}"; } }