summaryrefslogtreecommitdiff
path: root/modules_v3/todays_events/module.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules_v3/todays_events/module.php')
-rw-r--r--modules_v3/todays_events/module.php19
1 files changed, 10 insertions, 9 deletions
diff --git a/modules_v3/todays_events/module.php b/modules_v3/todays_events/module.php
index 841053ff59..f1cf7ca71a 100644
--- a/modules_v3/todays_events/module.php
+++ b/modules_v3/todays_events/module.php
@@ -42,11 +42,12 @@ class todays_events_WT_Module extends WT_Module implements WT_Module_Block {
require_once WT_ROOT . 'includes/functions/functions_print_lists.php';
- $filter = get_block_setting($block_id, 'filter', true);
- $onlyBDM = get_block_setting($block_id, 'onlyBDM', true);
+ $filter = get_block_setting($block_id, 'filter', '1');
+ $onlyBDM = get_block_setting($block_id, 'onlyBDM', '1');
$infoStyle = get_block_setting($block_id, 'infoStyle', 'table');
$sortStyle = get_block_setting($block_id, 'sortStyle', 'alpha');
- $block = get_block_setting($block_id, 'block', true);
+ $block = get_block_setting($block_id, 'block', '1');
+
if ($cfg) {
foreach (array('filter', 'onlyBDM', 'infoStyle', 'sortStyle', 'block') as $name) {
if (array_key_exists($name, $cfg)) {
@@ -113,33 +114,34 @@ class todays_events_WT_Module extends WT_Module implements WT_Module_Block {
set_block_setting($block_id, 'infoStyle', WT_Filter::post('infoStyle', 'list|table', 'table'));
set_block_setting($block_id, 'sortStyle', WT_Filter::post('sortStyle', 'alpha|anniv', 'alpha'));
set_block_setting($block_id, 'block', WT_Filter::postBool('block'));
- exit;
}
require_once WT_ROOT . 'includes/functions/functions_edit.php';
- $filter = get_block_setting($block_id, 'filter', true);
+ $filter = get_block_setting($block_id, 'filter', '1');
+ $onlyBDM = get_block_setting($block_id, 'onlyBDM', '1');
+ $infoStyle = get_block_setting($block_id, 'infoStyle', 'table');
+ $sortStyle = get_block_setting($block_id, 'sortStyle', 'alpha');
+ $block = get_block_setting($block_id, 'block', '1');
+
echo '<tr><td class="descriptionbox wrap width33">';
echo WT_I18N::translate('Show only events of living individuals?');
echo '</td><td class="optionbox">';
echo edit_field_yes_no('filter', $filter);
echo '</td></tr>';
- $onlyBDM = get_block_setting($block_id, 'onlyBDM', true);
echo '<tr><td class="descriptionbox wrap width33">';
echo WT_I18N::translate('Show only births, deaths, and marriages?');
echo '</td><td class="optionbox">';
echo edit_field_yes_no('onlyBDM', $onlyBDM);
echo '</td></tr>';
- $infoStyle = get_block_setting($block_id, 'infoStyle', 'table');
echo '<tr><td class="descriptionbox wrap width33">';
echo WT_I18N::translate('Presentation style');
echo '</td><td class="optionbox">';
echo select_edit_control('infoStyle', array('list'=>WT_I18N::translate('list'), 'table'=>WT_I18N::translate('table')), null, $infoStyle, '');
echo '</td></tr>';
- $sortStyle = get_block_setting($block_id, 'sortStyle', 'alpha');
echo '<tr><td class="descriptionbox wrap width33">';
echo WT_I18N::translate('Sort order');
echo '</td><td class="optionbox">';
@@ -149,7 +151,6 @@ class todays_events_WT_Module extends WT_Module implements WT_Module_Block {
), null, $sortStyle, '');
echo '</td></tr>';
- $block = get_block_setting($block_id, 'block', true);
echo '<tr><td class="descriptionbox wrap width33">';
echo /* I18N: label for a yes/no option */ WT_I18N::translate('Add a scrollbar when block contents grow');
echo '</td><td class="optionbox">';