<div class="section index">
    <div class="categories clear">
        <?php foreach ($featured as $c) : ?>
            <div class="item">
                <p>
                   <?php $path = rtrim(category::get_path($c['id']), '/'); ?>
                   <a class="title" href="product/index/<?php echo htmlspecialchars($path); ?>"><?php echo htmlspecialchars($c['name']); ?></a><br />
                    <?php if ($c['image']) : ?>
                        <table><tr><td>
                            <a class="image" href="product/index/<?php echo htmlspecialchars($path); ?>"><img src="<?php echo htmlspecialchars(category::DIRECTORY . $c['image'] . '-m.jpg'); ?>" /></a>
                        </td></tr></table>
                    <?php endif; ?>
                </p>
            </div>
        <?php endforeach; ?>
    </div>
</div>