<td class="replies"><?php 
echo WoW_Locale::GetString('template_forums_table_replies');
?>
</td>
  							<td class="views"><?php 
echo WoW_Locale::GetString('template_forums_table_views');
?>
</td>
  							<td class="poster"><?php 
echo WoW_Locale::GetString('template_forums_table_last_post');
?>
</td>
    					</tr>
    				</thead>
                <?php 
$threads = WoW_Forums::GetCategoryThreads(WoW_Template::GetPageData('current_page'));
if (is_array($threads)) {
    $types = array('featured' => 'featured', 'sticky' => 'sticky', 'regular' => 'regular');
    foreach ($types as $type => $style) {
        echo sprintf('<tbody class="%s">', $type);
        if (is_array($threads[$type])) {
            foreach ($threads[$type] as $thread) {
                echo sprintf('
                                <tr id="postRow%d" class="%s %s">
                                  <td class="post-icon">
                                    <div class="forum-post-icon">', $thread['thread_id'], $style, $thread['status']);
                if ($thread['first_blizz_post_id'] > 0) {
                    echo sprintf('<div class="blizzard_icon"><a href="../topic/%d#%d" data-tooltip="%s"></a></div>', $thread['thread_id'], $thread['first_blizz_post_id'], WoW_Locale::GetString('template_forums_first_blizz_post'));
                }
                echo '
                                    </div>