<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<ul>
    <?php if (!empty($groups)) : ?>
        <?php foreach ($groups as $key => $group) : ?>
            <li>
                <input type="hidden" name="subscribe_themes[<?php echo $group ?>]" value="<?php if (!empty($users_groups)): ?><?php if (in_array($group, $users_groups)): ?>1<?php else: ?>0<?php endif; ?><?php endif; ?>" />
                <input <?php if (!empty($users_groups)): ?><?php if (in_array($group, $users_groups)): ?>checked=""<?php endif; ?><?php endif; ?> type="checkbox" class="user_subscribe_theme">&nbsp;<?php echo $group ?><br />
            </li>
        <?php endforeach; ?>
    <?php endif; ?>

</ul>
