}
?>
    </div>
</div>
<div>
<div class="clear"></div>

<div>
<?php 
include CLIENTINC_DIR . 'templates/button-form.tmpl.php';
if ($cfg && $cfg->isKnowledgebaseEnabled()) {
    //FIXME: provide ability to feature or select random FAQs ??
    ?>
<br/><br/>
<?php 
    $cats = Category::getFeatured();
    if ($cats->all()) {
        ?>
<h1>Featured Knowledge Base Articles</h1>
<?php 
    }
    foreach ($cats as $C) {
        ?>
    <div class="featured-category front-page">
        <i class="icon-folder-open icon-2x"></i>
        <div class="category-name">
            <?php 
        echo $C->getName();
        ?>
        </div>
<?php