diff options
| author | Nigel Osborne <kiwi3685@me.com> | 2011-11-09 22:40:28 +0000 |
|---|---|---|
| committer | Nigel Osborne <kiwi3685@me.com> | 2011-11-09 22:40:28 +0000 |
| commit | da30a24a2610f507c8d16f3ebff6216fd5584a22 (patch) | |
| tree | 225f8c63853a47ec0ccd6b9b9b0ba811908782e5 | |
| parent | 7eaf68952096d76b0a8d67bc2e4671d9c55d2525 (diff) | |
| download | webtrees-da30a24a2610f507c8d16f3ebff6216fd5584a22.tar.gz webtrees-da30a24a2610f507c8d16f3ebff6216fd5584a22.tar.bz2 webtrees-da30a24a2610f507c8d16f3ebff6216fd5584a22.zip | |
Remove showparents from small blocks
| -rw-r--r-- | includes/functions/functions_print_lists.php | 10 | ||||
| -rw-r--r-- | modules_v3/recent_changes/module.php | 13 |
2 files changed, 4 insertions, 19 deletions
diff --git a/includes/functions/functions_print_lists.php b/includes/functions/functions_print_lists.php index 7ba7f34bf2..8533124cc9 100644 --- a/includes/functions/functions_print_lists.php +++ b/includes/functions/functions_print_lists.php @@ -1438,7 +1438,7 @@ function format_surname_list($surnames, $style, $totals, $type) { // print a list of recent changes -function print_changes_list($change_ids, $sort, $show_parents=false) { +function print_changes_list($change_ids, $sort) { global $SHOW_MARRIED_NAMES; $n = 0; $arr=array(); @@ -1480,9 +1480,6 @@ function print_changes_list($change_ids, $sort, $show_parents=false) { } } } - if ($show_parents) { - $return .= $value['record']->getPrimaryParentsNames('details1'); - } } $return .= /* I18N: [a record was] Changed on <date/time> by <user> */ WT_I18N::translate('Changed on %1$s by %2$s', $value['record']->LastChangeTimestamp(false), $value['record']->LastChangeUser()); $return .= '</div>'; @@ -1491,7 +1488,7 @@ function print_changes_list($change_ids, $sort, $show_parents=false) { } // print a table of recent changes -function print_changes_table($change_ids, $sort, $show_parents=false) { +function print_changes_table($change_ids, $sort) { global $SHOW_MARRIED_NAMES, $TEXT_DIRECTION, $WT_IMAGES, $controller; $return = ''; @@ -1597,9 +1594,6 @@ function print_changes_table($change_ids, $sort, $show_parents=false) { } } } - if ($show_parents) { - $return .= $record->getPrimaryParentsNames("parents_$table_id details1"); - } $return .= '</div>'; //class='indent' } $return .= "</td>"; diff --git a/modules_v3/recent_changes/module.php b/modules_v3/recent_changes/module.php index 036f1d06c4..0b49c7cd5c 100644 --- a/modules_v3/recent_changes/module.php +++ b/modules_v3/recent_changes/module.php @@ -49,7 +49,6 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { $days = get_block_setting($block_id, 'days', 7); $infoStyle = get_block_setting($block_id, 'infoStyle', 'table'); - $show_parents = get_block_setting($block_id, 'show_parents', false); $sortStyle = get_block_setting($block_id, 'sortStyle', 'date_desc'); $hide_empty = get_block_setting($block_id, 'hide_empty', false); $block = get_block_setting($block_id, 'block', true); @@ -83,11 +82,11 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { ob_start(); switch ($infoStyle) { case 'list': - $content .= print_changes_list($found_facts, $sortStyle, $show_parents); + $content .= print_changes_list($found_facts, $sortStyle); break; case 'table': // sortable table - $content .= print_changes_table($found_facts, $sortStyle, $show_parents); + $content .= print_changes_table($found_facts, $sortStyle); break; } $content .= ob_get_clean(); @@ -124,7 +123,6 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { if (safe_POST_bool('save')) { set_block_setting($block_id, 'days', safe_POST_integer('days', 1, 30, 7)); set_block_setting($block_id, 'infoStyle', safe_POST('infoStyle', array('list', 'table'), 'table')); - set_block_setting($block_id, 'show_parents', safe_POST_bool('show_parents')); set_block_setting($block_id, 'sortStyle', safe_POST('sortStyle', array('name', 'date_asc', 'date_desc'), 'date_desc')); set_block_setting($block_id, 'hide_empty', safe_POST_bool('hide_empty')); set_block_setting($block_id, 'block', safe_POST_bool('block')); @@ -160,13 +158,6 @@ class recent_changes_WT_Module extends WT_Module implements WT_Module_Block { ), null, $sortStyle, ''); echo '</td></tr>'; - $show_parents = get_block_setting($block_id, 'show_parents', true); - echo '<tr><td class="descriptionbox wrap width33">'; - echo /* I18N: label for a yes/no option */ WT_I18N::translate('Show parents'); - echo '</td><td class="optionbox">'; - echo edit_field_yes_no('show_parents', $show_parents); - 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'); |
