/** * XML <Footnote > start element * Collect the Footnote links * GEDCOM Records that are protected by Privacy setting will be ignore * * @param array $attrs an array of key value pairs for the attributes * * @see FootnoteEHandler() */ function FootnoteSHandler($attrs) { global $printData, $printDataStack, $currentElement, $footnoteElement, $processFootnote, $gedrec, $ReportRoot; $match = array(); $id = ""; $tag = ""; if (preg_match("/[0-9] (.+) @(.+)@/", $gedrec, $match)) { $tag = $match[1]; $id = $match[2]; } $record = WT_GedcomRecord::GetInstance($id); if ($record && $record->canShow()) { array_push($printDataStack, $printData); $printData = true; $style = ""; if (!empty($attrs['style'])) { $style = $attrs['style']; } $footnoteElement = $currentElement; $currentElement = $ReportRoot->createFootnote($style); } else { $printData = false; $processFootnote = false; } }
function calendar_list_text($list, $tag1, $tag2, $show_sex_symbols) { global $males, $females; $html = ''; foreach ($list as $id => $facts) { $tmp = WT_GedcomRecord::GetInstance($id); $html .= $tag1 . '<a href="' . $tmp->getHtmlUrl() . '">' . $tmp->getFullName() . '</a> '; if ($show_sex_symbols && $tmp instanceof WT_Individual) { switch ($tmp->getSex()) { case 'M': $html .= '<i class="icon-sex_m_9x9" title="' . WT_I18N::translate('Male') . '"></i>'; ++$males; break; case 'F': $html .= '<i class="icon-sex_f_9x9" title="' . WT_I18N::translate('Female') . '"></i>'; ++$females; break; default: $html .= '<i class="icon-sex_u_9x9" title="' . WT_I18N::translate_c('unknown gender', 'Unknown') . '"></i>'; break; } } $html .= '<div class="indent">' . $facts . '</div>' . $tag2; } return $html; }