mirror of
https://github.com/moparisthebest/moparscape.org-smf
synced 2025-02-16 07:00:09 -05:00
Move hide/show archived boards button for Tom :)
This commit is contained in:
parent
a063b48335
commit
18fd90d80b
@ -3969,12 +3969,14 @@ function setupMenuContext()
|
|||||||
),
|
),
|
||||||
'is_last' => $context['right_to_left'],
|
'is_last' => $context['right_to_left'],
|
||||||
),
|
),
|
||||||
//xxx show archived boards
|
//xxx show archived boards, commented out for Tom :)
|
||||||
|
/*
|
||||||
'show_archived' => array(
|
'show_archived' => array(
|
||||||
'title' => ($show_archived ? 'Hide' : 'Show').' Archived Boards',
|
'title' => ($show_archived ? 'Hide' : 'Show').' Archived Boards',
|
||||||
'href' => $scripturl . '?show_archived='.($show_archived ? 0 : 1),
|
'href' => $scripturl . '?show_archived='.($show_archived ? 0 : 1),
|
||||||
'show' => isset($show_archived),
|
'show' => isset($show_archived),
|
||||||
),
|
),
|
||||||
|
*/
|
||||||
'help' => array(
|
'help' => array(
|
||||||
'title' => $txt['help'],
|
'title' => $txt['help'],
|
||||||
'href' => $scripturl . '?action=help',
|
'href' => $scripturl . '?action=help',
|
||||||
|
@ -242,7 +242,7 @@ function template_main()
|
|||||||
|
|
||||||
function template_info_center()
|
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...
|
// Here's where the "Info Center" starts...
|
||||||
echo '
|
echo '
|
||||||
@ -350,6 +350,7 @@ function template_info_center()
|
|||||||
// Show statistical style information...
|
// Show statistical style information...
|
||||||
if ($settings['show_stats_index'])
|
if ($settings['show_stats_index'])
|
||||||
{
|
{
|
||||||
|
//xxx show archived boards
|
||||||
echo '
|
echo '
|
||||||
<div class="infocenter_section">
|
<div class="infocenter_section">
|
||||||
<h4 class="titlebg">', $txt['forum_stats'], '</h4>
|
<h4 class="titlebg">', $txt['forum_stats'], '</h4>
|
||||||
@ -360,7 +361,8 @@ function template_info_center()
|
|||||||
<div class="windowbg2 sectionbody middletext">
|
<div class="windowbg2 sectionbody middletext">
|
||||||
', $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'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
|
', $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'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
|
||||||
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>"' . $context['latest_post']['link'] . '"</strong> ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
|
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>"' . $context['latest_post']['link'] . '"</strong> ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
|
||||||
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
|
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a><br />
|
||||||
|
<a href="', $scripturl, '?show_archived='.($show_archived ? 0 : 1).'">', ($show_archived ? 'Hide' : 'View'), ' Archived Boards.</a>', $context['show_stats'] ? '<br />
|
||||||
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
|
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -274,7 +274,7 @@ function template_main()
|
|||||||
|
|
||||||
function template_info_center()
|
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...
|
// Here's where the "Info Center" starts...
|
||||||
echo '
|
echo '
|
||||||
@ -384,6 +384,7 @@ function template_info_center()
|
|||||||
// Show statistical style information...
|
// Show statistical style information...
|
||||||
if ($settings['show_stats_index'])
|
if ($settings['show_stats_index'])
|
||||||
{
|
{
|
||||||
|
//xxx show archived boards
|
||||||
echo '
|
echo '
|
||||||
<div class="title_barIC">
|
<div class="title_barIC">
|
||||||
<h4 class="titlebg">
|
<h4 class="titlebg">
|
||||||
@ -396,7 +397,8 @@ function template_info_center()
|
|||||||
<p>
|
<p>
|
||||||
', $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'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
|
', $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'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
|
||||||
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>"' . $context['latest_post']['link'] . '"</strong> ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
|
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>"' . $context['latest_post']['link'] . '"</strong> ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
|
||||||
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
|
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a><br />
|
||||||
|
<a href="', $scripturl, '?show_archived='.($show_archived ? 0 : 1).'">', ($show_archived ? 'Hide' : 'View'), ' Archived Boards.</a>', $context['show_stats'] ? '<br />
|
||||||
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
|
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
|
||||||
</p>';
|
</p>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user