i18n::translate('HTML'),
'type'=>'both',
'descr'=>i18n::translate('This is a simple HTML block that you can place on your page to add any sort of message you may want.'),
'canconfig'=>true,
'config'=>array(
'cache'=>1,
'html'=>i18n::translate('
Put your title here
Click the configure button')." ".i18n::translate('to change what is printed here.
')
)
);
function print_html_block($block=true, $config="", $side, $index) {
global $WT_IMAGE_DIR, $TEXT_DIRECTION, $WT_IMAGES, $HTML_BLOCK_COUNT, $WT_BLOCKS, $ctype;
if (empty($config)) $config = $WT_BLOCKS["print_html_block"]["config"];
if (!isset($HTML_BLOCK_COUNT)) $HTML_BLOCK_COUNT = 0;
$HTML_BLOCK_COUNT++;
$id = "html_block$HTML_BLOCK_COUNT";
$title = "";
$content = embed_globals($config['html']);
if ($WT_BLOCKS["print_html_block"]["canconfig"]) {
if ($ctype=="gedcom" && WT_USER_GEDCOM_ADMIN || $ctype=="user" && WT_USER_ID) {
if ($ctype=="gedcom") {
$name = WT_GEDCOM;
} else {
$name = WT_USER_NAME;
}
$content .= " ";
$content .= "\n";
}
}
global $THEME_DIR;
if ($block) {
require $THEME_DIR.'templates/block_small_temp.php';
} else {
require $THEME_DIR.'templates/block_main_temp.php';
}
}
function print_html_block_config($config) {
global $ctype, $WT_BLOCKS, $TEXT_DIRECTION;
$useFCK = file_exists(WT_ROOT.'modules/FCKeditor/fckeditor.php');
if($useFCK){
require WT_ROOT.'modules/FCKeditor/fckeditor.php';
}
if (empty($config)) $config = $WT_BLOCKS["print_html_block"]["config"];
if (empty($config["cache"])) $config["cache"] = $WT_BLOCKS["print_html_block"]["config"]["cache"];
?>