<?php if (!empty($titles)): ?>
    <?php foreach ($titles as $title): ?>
        <?php list($heading, $title, $styles) = $rdgb->helpers->get_title($title); ?>

        <?php if(!empty($title)): ?>
            <div class="title" style="<?php echo $styles; ?>">
                <<?php echo $heading; ?>><?php echo $title; ?></<?php echo $heading; ?>>
            </div>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>
