diff --git a/Sources/Subs.php b/Sources/Subs.php index 57b651b..6876e86 100644 --- a/Sources/Subs.php +++ b/Sources/Subs.php @@ -3969,12 +3969,14 @@ function setupMenuContext() ), 'is_last' => $context['right_to_left'], ), - //xxx show archived boards + //xxx show archived boards, commented out for Tom :) + /* 'show_archived' => array( 'title' => ($show_archived ? 'Hide' : 'Show').' Archived Boards', 'href' => $scripturl . '?show_archived='.($show_archived ? 0 : 1), 'show' => isset($show_archived), ), + */ 'help' => array( 'title' => $txt['help'], 'href' => $scripturl . '?action=help', diff --git a/Themes/core/BoardIndex.template.php b/Themes/core/BoardIndex.template.php index ba242d1..32e64c2 100644 --- a/Themes/core/BoardIndex.template.php +++ b/Themes/core/BoardIndex.template.php @@ -242,7 +242,7 @@ function template_main() function template_info_center() { - global $context, $settings, $options, $txt, $scripturl, $modSettings; + global $context, $settings, $options, $txt, $scripturl, $modSettings, $show_archived; // Here's where the "Info Center" starts... echo ' @@ -350,6 +350,7 @@ function template_info_center() // Show statistical style information... if ($settings['show_stats_index']) { + //xxx show archived boards echo '

', $txt['forum_stats'], '

@@ -360,7 +361,8 @@ function template_info_center()
', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': ' . $context['common_stats']['latest_member']['link'] . '' : '', '
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': "' . $context['latest_post']['link'] . '" ( ' . $context['latest_post']['time'] . ' )
' : ''), ' - ', $txt['recent_view'], '', $context['show_stats'] ? '
+ ', $txt['recent_view'], '
+ ', ($show_archived ? 'Hide' : 'View'), ' Archived Boards.', $context['show_stats'] ? '
' . $txt['more_stats'] . '' : '', '
diff --git a/Themes/default/BoardIndex.template.php b/Themes/default/BoardIndex.template.php index 2388d35..d9b374f 100644 --- a/Themes/default/BoardIndex.template.php +++ b/Themes/default/BoardIndex.template.php @@ -274,7 +274,7 @@ function template_main() function template_info_center() { - global $context, $settings, $options, $txt, $scripturl, $modSettings; + global $context, $settings, $options, $txt, $scripturl, $modSettings, $show_archived; // Here's where the "Info Center" starts... echo ' @@ -384,6 +384,7 @@ function template_info_center() // Show statistical style information... if ($settings['show_stats_index']) { + //xxx show archived boards echo '

@@ -396,7 +397,8 @@ function template_info_center()

', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': ' . $context['common_stats']['latest_member']['link'] . '' : '', '
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': "' . $context['latest_post']['link'] . '" ( ' . $context['latest_post']['time'] . ' )
' : ''), ' - ', $txt['recent_view'], '', $context['show_stats'] ? '
+ ', $txt['recent_view'], '
+ ', ($show_archived ? 'Hide' : 'View'), ' Archived Boards.', $context['show_stats'] ? '
' . $txt['more_stats'] . '' : '', '

'; }