<div id="journal-cms-block-<?php echo $module; ?>" class="box cms-blocks <?php echo $hide_on_mobile_class; ?> <?php echo isset($gutter_on_class) ? $gutter_on_class : ''; ?>" style="<?php echo isset($css) ? $css : ''; ?>">
    <?php if ($title): ?>
    <div class="box-heading"><?php echo $title; ?></div>
    <?php endif; ?>
    <div class="blocks">
<?php foreach ($sections as $section): ?>
    <div class="cms-block <?php echo $grid_classes; ?>">
        <?php if ($section['title']): ?>
        <h3><?php echo $section['title']; ?></h3>
        <?php endif; ?>
        <span class="block-content">
            <?php if ($section['has_icon']): ?>
            <div class="block-icon block-icon-<?php echo $section['icon_position']; ?>" style="<?php echo $section['icon_css']; ?>"><?php echo $section['icon']; ?></div>
            <?php endif; ?>
            <div class="editor-content" style="text-align: <?php echo $section['content_align']; ?>"> <?php echo $section['content']; ?></div>
        </span>
    </div>
<?php endforeach; ?>
</div>
</div>
<script>Journal.equalHeight($('#journal-cms-block-<?php echo $module; ?> .cms-block'), '.block-content');</script>