echo $author->data()->username; ?> </td> </tr> <?php } ?> </tbody> </table> <?php } else { Redirect::to('/forums'); } } else { echo "<h1>Categories</h1>"; foreach ($forums->listParentCat() as $parent) { echo "<div class='panel panel-primary'><div class='panel-heading'>{$parent['name']}</div><div class='panel-body'>"; foreach ($forums->listChildCat($parent['id']) as $child) { echo "<a href='/forums/cat/{$child['id']}'>{$child['name']}</a><br/>"; } echo "</div></div>"; } } ?> </div> <div class="col-md-3"> <?php if ($user->isLoggedIn() && Input::exists('get') && $cat) { ?> <br/> <a class="btn btn-default" href="create.php?c=<?php