diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-04-14 17:10:47 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-04-14 17:10:47 +0000 |
| commit | d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef (patch) | |
| tree | 3414719d8adcd1f924e68fc1e30cc3f0c179bbd4 /blocks/block_htmlplus.php | |
| parent | fbeac796c9d96deb89bfccf12be80641bf5b6288 (diff) | |
| download | webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.tar.gz webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.tar.bz2 webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.zip | |
Make block initialisation consistent
Diffstat (limited to 'blocks/block_htmlplus.php')
| -rw-r--r-- | blocks/block_htmlplus.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/blocks/block_htmlplus.php b/blocks/block_htmlplus.php index f7a68cc6be..edf4570910 100644 --- a/blocks/block_htmlplus.php +++ b/blocks/block_htmlplus.php @@ -40,16 +40,19 @@ define('WT_BLOCK_HTMLPLUS_PHP', ''); require_once WT_ROOT.'includes/functions/functions_print_lists.php'; require_once WT_ROOT.'includes/classes/class_stats.php'; -$WT_BLOCKS['print_htmlplus_block']['name'] = i18n::translate('Advanced HTML'); -$WT_BLOCKS['print_htmlplus_block']['descr'] = i18n::translate('This is an HTML block that you can place on your page to add any sort of message you may want. You can insert references to information from your GEDCOM into the HTML text.'); -$WT_BLOCKS['print_htmlplus_block']['canconfig'] = true; -$WT_BLOCKS['print_htmlplus_block']['config'] = array( - 'cache'=>0, - 'title'=>'', - 'html'=>i18n::translate('<p class="blockhc"><b>Put your title here</b></p><br /><p>Click the configure button')." <img src=\"{$WT_IMAGE_DIR}/{$WT_IMAGES['admin']['small']}\" alt=\"".i18n::translate('Configure')."\" /> ".i18n::translate('to change what is printed here.</p>'), - 'gedcom'=>'__current__', - 'compat'=>0, - 'ui'=>0 +$WT_BLOCKS['print_htmlplus_block']=array( + 'name'=>i18n::translate('Advanced HTML'), + 'type'=>'both', + 'descr'=>i18n::translate('This is an HTML block that you can place on your page to add any sort of message you may want. You can insert references to information from your GEDCOM into the HTML text.'), + 'canconfig'=>true, + 'config'=>array( + 'cache'=>0, + 'title'=>'', + 'html'=>i18n::translate('<p class="blockhc"><b>Put your title here</b></p><br /><p>Click the configure button')." <img src=\"{$WT_IMAGE_DIR}/{$WT_IMAGES['admin']['small']}\" alt=\"".i18n::translate('Configure')."\" /> ".i18n::translate('to change what is printed here.</p>'), + 'gedcom'=>'__current__', + 'compat'=>0, + 'ui'=>0 + ) ); function print_htmlplus_block($block=true, $config='', $side, $index) { |
