gedcomCreatedSoftware();
$CREATED_VERSION = $stats->gedcomCreatedVersion();
$CREATED_DATE = $stats->gedcomDate();
/*
* First Pass.
* Handle embedded language, fact, global, etc. references
* This needs to be done first because the language variables could themselves
* contain embedded keywords.
*/
// Title
$title_tmp=embed_globals(get_block_setting($block_id, 'title'));
$html =embed_globals(get_block_setting($block_id, 'html'));
/*
* Second Pass.
*/
list($new_tags, $new_values) = $stats->getTags("{$title_tmp} {$html}");
// Title
if (strstr($title_tmp, '#')){$title_tmp = str_replace($new_tags, $new_values, $title_tmp);}
// Content
$html = str_replace($new_tags, $new_values, $html);
/*
* Restore Current GEDCOM
*/
$GEDCOM = WT_GEDCOM;
/*
* Start Of Output
*/
$id=$this->getName().$block_id;
$title='';
if ($ctype=="gedcom" && WT_USER_GEDCOM_ADMIN || $ctype=="user" && WT_USER_ID) {
if ($ctype=="gedcom") {
$name = WT_GEDCOM;
} else {
$name = WT_USER_NAME;
}
$title .= ""
."';
;
}
if (WT_USER_GEDCOM_ADMIN) {
$title .= help_link('index_htmlplus_a');
} else {
$title .= help_link('index_htmlplus');
}
$title.=$title_tmp;
$content = $html;
$block=get_block_setting($block_id, 'block', false);
if ($block) {
require $THEME_DIR.'templates/block_small_temp.php';
} else {
require $THEME_DIR.'templates/block_main_temp.php';
}
}
// Implement class WT_Module_Block
public function loadAjax() {
return true;
}
// 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, 'compat', safe_POST_bool('compat'));
set_block_setting($block_id, 'ui', safe_POST_bool('ui'));
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']);
$languages=array();
foreach (i18n::installed_languages() as $code=>$name) {
if (safe_POST_bool('lang_'.$code)) {
$languages[]=$code;
}
}
if (!$languages) {
$languages[]=WT_LOCALE;
}
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';
$useFCK = file_exists(WT_ROOT.'modules/FCKeditor/fckeditor.php');
if($useFCK){
require WT_ROOT.'modules/FCKeditor/fckeditor.php';
}
$templates=array(
i18n::translate('Keyword examples')=>
'
'.i18n::translate('Embedded variable').'
'.i18n::translate('Resulting value').'
#getAllTagsTable#
',
i18n::translate('Narrative description')=>/* I18N: do not translate the #keywords# */ i18n::translate('This site 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#.'),
i18n::translate('GEDCOM statistics')=>'
#gedcomTitle#
'.i18n::translate('This GEDCOM was created using %1$s on %2$s.', '#gedcomCreatedSoftware#', '#gedcomDate#').'