summaryrefslogtreecommitdiff
path: root/modules/yahrzeit
diff options
context:
space:
mode:
authorŁukasz Wilenski <wooc@gazeta.pl>2010-06-03 10:36:02 +0000
committerŁukasz Wilenski <wooc@gazeta.pl>2010-06-03 10:36:02 +0000
commit020e79131bc1ddcf4a5b0e2ed41936165167f82b (patch)
tree447f6a61235ac3b1baf72e9aa15e6c0506422d54 /modules/yahrzeit
parent9246c9f483d06e5b1b891d6df0568680536be3b2 (diff)
downloadwebtrees-020e79131bc1ddcf4a5b0e2ed41936165167f82b.tar.gz
webtrees-020e79131bc1ddcf4a5b0e2ed41936165167f82b.tar.bz2
webtrees-020e79131bc1ddcf4a5b0e2ed41936165167f82b.zip
call to other blocks into html block (extended interface)
Diffstat (limited to 'modules/yahrzeit')
-rw-r--r--modules/yahrzeit/module.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/yahrzeit/module.php b/modules/yahrzeit/module.php
index ca95ee1cb1..708e8e26cd 100644
--- a/modules/yahrzeit/module.php
+++ b/modules/yahrzeit/module.php
@@ -44,7 +44,7 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block {
}
// Implement class WT_Module_Block
- public function getBlock($block_id) {
+ public function getBlock($block_id, $template=true) {
global $ctype, $SHOW_ID_NUMBERS, $TEXT_DIRECTION, $WT_IMAGE_DIR, $WT_IMAGES, $WT_BLOCKS, $DAYS_TO_SHOW_LIMIT, $SHOW_MARRIED_NAMES, $THEME_DIR;
$days=get_block_setting($block_id, 'days', $DAYS_TO_SHOW_LIMIT);
@@ -213,11 +213,14 @@ class yahrzeit_WT_Module extends WT_Module implements WT_Module_Block {
break;
}
- $block=get_block_setting($block_id, 'block', true);
- if ($block) {
- require $THEME_DIR.'templates/block_small_temp.php';
+ if ($template) {
+ if (get_block_setting($block_id, 'block', true)) {
+ require $THEME_DIR.'templates/block_small_temp.php';
+ } else {
+ require $THEME_DIR.'templates/block_main_temp.php';
+ }
} else {
- require $THEME_DIR.'templates/block_main_temp.php';
+ return $content;
}
}