';
// Are there actually any topics to show?
if (!empty($context['topics']))
{
echo '
|
', $txt[70], $context['sort_by'] == 'subject' ? ' ' : '', ' |
', $txt[109], $context['sort_by'] == 'starter' ? ' ' : '', ' |
', $txt[110], $context['sort_by'] == 'replies' ? ' ' : '', ' |
', $txt[301], $context['sort_by'] == 'views' ? ' ' : '', ' |
', $txt[111], $context['sort_by'] == 'last_post' ? ' ' : '', ' | ';
// Show a "select all" box for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
echo '
| ';
// If it's on in "image" mode, don't show anything but the column.
elseif (!empty($options['display_quick_mod']))
echo '
| ';
}
// No topics.... just say, "sorry bub".
else
echo '
', $txt[151], ' | ';
echo '
';
if (!empty($settings['display_who_viewing']))
{
echo '
| ';
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) or $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_board'], '
|
';
}
foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'sticky') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_sticky'));
if (!empty($settings['seperate_sticky_lock']) && strpos($topic['class'], 'locked') !== false)
$topic['class'] = substr($topic['class'], 0, strrpos($topic['class'], '_locked'));
echo '
|
|
';
if (!empty($settings['seperate_sticky_lock']))
echo '
' , $topic['is_locked'] ? ' ' : '' , '
' , $topic['is_sticky'] ? ' ' : '';
echo '
', $topic['is_sticky'] ? '' : '' , '', $topic['first_post']['link'], '', $topic['is_sticky'] ? '' : '';
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
';
echo '
', $topic['pages'], '
|
', $topic['first_post']['member']['link'], '
|
', $topic['replies'], '
|
', $topic['views'], '
|
', $topic['last_post']['time'], '
', $txt[525], ' ', $topic['last_post']['member']['link'], '
| ';
// Show the quick moderation options?
if (!empty($options['display_quick_mod']))
{
echo '
';
if ($options['display_quick_mod'] == 1)
echo '
';
else
{
// Check permissions on each and show only the ones they are allowed to use.
if ($topic['quick_mod']['remove'])
echo ' ';
if ($topic['quick_mod']['lock'])
echo ' ';
if ($topic['quick_mod']['lock'] || $topic['quick_mod']['remove'])
echo ' ';
if ($topic['quick_mod']['sticky'])
echo ' ';
if ($topic['quick_mod']['move'])
echo ' ';
}
echo ' | ';
}
echo '
';
}
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
{
echo '
|
';
if ($context['can_move'])
{
echo '
';
}
echo '
|
';
| ', $txt[159], ' |
', $context['allow_pm'] ? '' : '', ' ', $context['allow_pm'] ? '' : '', '
|
', $txt[159], '
', $txt[660], ' ', $context['user']['messages'], ' ', $context['user']['messages'] == 1 ? $txt[471] : $txt[153], '.... ', $txt[661], ' ', $txt[662], ' ', $txt[663], '
|
';
}
// Show the login bar. (it's only true if they are logged out anyway.)
//if ($context['show_login_bar'])
//{
// echo '
//
// | ', $txt[34], ' (' . $txt[315] . ') |
//
//
//
//
// |
//
//
// |
//
';
//}
echo '