embedTags($title_tmp);
$html = $stats->embedTags($html);
}
/*
* Restore Current GEDCOM
*/
$GEDCOM = WT_GEDCOM;
/*
* Start Of Output
*/
$id=$this->getName().$block_id;
$class=$this->getName().'_block';
$title='';
if ($ctype=='gedcom' && WT_USER_GEDCOM_ADMIN || $ctype=='user' && WT_USER_ID) {
$title .= ""
."';
}
$title.=$title_tmp;
$content = $html;
if (get_block_setting($block_id, 'show_timestamp', false)) {
$content.=' '.format_timestamp(get_block_setting($block_id, 'timestamp', time()));
}
if ($template) {
if (get_block_setting($block_id, 'block', false)) {
require WT_THEME_DIR.'templates/block_small_temp.php';
} else {
require WT_THEME_DIR.'templates/block_main_temp.php';
}
} else {
return $content;
}
}
// Implement class WT_Module_Block
public function loadAjax() {
return false;
}
// Implement class WT_Module_Block
public function isUserBlock() {
return true;
}
// Implement class WT_Module_Block
public function isGedcomBlock() {
return true;
}
// Implement class WT_Module_Block
public function configureBlock($block_id) {
if (safe_POST_bool('save')) {
set_block_setting($block_id, 'gedcom', safe_POST('gedcom'));
set_block_setting($block_id, 'title', $_POST['title']);
set_block_setting($block_id, 'html', $_POST['html']);
set_block_setting($block_id, 'show_timestamp', safe_POST_bool('show_timestamp'));
set_block_setting($block_id, 'timestamp', safe_POST('timestamp'));
$languages=array();
foreach (WT_I18N::installed_languages() as $code=>$name) {
if (safe_POST_bool('lang_'.$code)) {
$languages[]=$code;
}
}
set_block_setting($block_id, 'languages', implode(',', $languages));
echo WT_JS_START, 'window.opener.location.href=window.opener.location.href;window.close();', WT_JS_END;
exit;
}
require_once WT_ROOT.'includes/functions/functions_edit.php';
$templates=array(
WT_I18N::translate('Keyword examples')=>
'#getAllTagsTable#',
WT_I18N::translate('Narrative description')=>
/* I18N: do not translate the #keywords# */ WT_I18N::translate('This GEDCOM (family tree) was last updated on #gedcomUpdated#. There are #totalSurnames# surnames in this family tree. The earliest recorded event is the #firstEventType# of #firstEventName# in #firstEventYear#. The most recent event is the #lastEventType# of #lastEventName# in #lastEventYear#.
If you have any comments or feedback please contact #contactWebmaster#.'),
WT_I18N::translate('GEDCOM statistics')=>
'
#gedcomTitle#
'.WT_I18N::translate('This GEDCOM was created using %1$s on %2$s.', '#gedcomCreatedSoftware#', '#gedcomDate#').'