<thead> <tr> <th style="padding:0px;padding-bottom:5px;" class="titles"><?php echo $cat['categoryName']; ?> </th> <th style="padding:0px;">Last Post</th> <th style="padding:0px;" class="td-counts">Topics</th> <th style="padding:0px;" class="td-counts">Replies</th> </tr> </thead> <tbody> <?php foreach ($cat['children'] as $idx => $subCat) { $categoryDescription = BuckysForumCategory::getCategoryDescription($subCat['categoryID']); ?> <tr <?php echo $idx == count($cat['children']) - 1 ? 'class="last-tr"' : ''; ?> > <td class="first-column" style="padding-left:0px; font-size:12px;" width="50%"> <a href="/forum/category.php?id=<?php echo $subCat['categoryID']; ?> "><img src="/images/forum/icons/<?php echo $subCat['categoryID']; ?> .png" class="poster-icon"></a> <a