getName().$block_id; $title=''; $content=embed_globals(get_block_setting($block_id, 'html')); if ($ctype=="gedcom" && WT_USER_GEDCOM_ADMIN || $ctype=="user") { $content .= "" ."\"".i18n::translate('Configure').'"'; } $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, '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'; } ?> BasePath = './modules/FCKeditor/'; $oFCKeditor->Value = get_block_setting($block_id, 'html'); $oFCKeditor->Width = 700; $oFCKeditor->Height = 250; $oFCKeditor->Config['AutoDetectLanguage'] = false ; $oFCKeditor->Config['DefaultLanguage'] = WT_LOCALE; $oFCKeditor->Create() ; } else { //use standard textarea echo ''; } ?> '; echo i18n::translate('Show this block for which languages?'); echo ''; echo edit_language_checkboxes('lang_', $languages); echo ''; } }