<div class="category-block">
    <label><?php echo $blockCategory['title'] ?></label>
    <div class="clearfix set-category-item">
        <?php if (!empty($menus)): ?>
            <?php foreach ($menus as $amenu): ?>
                <?php $menuSelections = $selections[$amenu->id] ?>
                <?php if (!empty($menuSelections)): ?>
                    <?php foreach ($menuSelections as $amenusel): ?>
                        <div class="pane-one-fourth"><input type="checkbox" name="items[]" value="<?php echo $amenusel->category . '_' . $amenusel->menu . '_' . $amenusel->id ?>">&nbsp;<?php echo $amenusel->title . '-' . $amenu->title ?></div>
                    <?php endforeach; ?>
                <?php else:; ?>
                    <div class="pane-one-fourth"><input type="checkbox" name="items[]" value="<?php echo $amenu->category . '_' . $amenu->id . '_0' ?>">&nbsp;<?php echo $amenu->title ?></div>
                <?php endif; ?>
            <?php endforeach; ?>
        <?php else: ?>
            <div class="pane-one-fourth">No menus in this category</div>
        <?php endif; ?>
    </div>
</div>