<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<h2><?php _e('Subscriptions of user', THEMEMAKERS_THEME_FOLDER_NAME) ?>: <?php echo $user->user_email ?></h2>
<form method="post">
    <?php if (!empty($groups)) : ?>
        <?php foreach ($groups as $key => $group) : ?>
            <input <?php if (!empty($users_groups)): ?><?php if (in_array($group, $users_groups)): ?>checked=""<?php endif; ?><?php endif; ?> type="checkbox" name="subscribe_themes[]" value="<?php echo $group ?>">&nbsp;<?php echo $group ?><br />
        <?php endforeach; ?>
    <?php endif; ?>
    <br />
    <input type="hidden" name="subscribe_hash" value="<?php echo $user->user_email ?>" />
    <input type="submit" class="button default yellow" value="<?php _e('Save', THEMEMAKERS_THEME_FOLDER_NAME) ?>" />
</form>

