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/html_block.php | |
| parent | fbeac796c9d96deb89bfccf12be80641bf5b6288 (diff) | |
| download | webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.tar.gz webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.tar.bz2 webtrees-d6bd81d4b18b3a97a26e06e7f54f1f5602b9cbef.zip | |
Make block initialisation consistent
Diffstat (limited to 'blocks/html_block.php')
| -rw-r--r-- | blocks/html_block.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/blocks/html_block.php b/blocks/html_block.php index 67170b1445..ad95fe6f16 100644 --- a/blocks/html_block.php +++ b/blocks/html_block.php @@ -36,12 +36,15 @@ if (!defined('WT_WEBTREES')) { define('WT_HTML_BLOCK_PHP', ''); -$WT_BLOCKS["print_html_block"]["name"] = i18n::translate('HTML'); -$WT_BLOCKS["print_html_block"]["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.'); -$WT_BLOCKS["print_html_block"]["canconfig"]= true; -$WT_BLOCKS["print_html_block"]["config"] = array( - "cache"=>1, - "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>') +$WT_BLOCKS['print_html_block']=array( + 'name'=>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('<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>') + ) ); function print_html_block($block=true, $config="", $side, $index) { |
