<div class="list-group">
   <div class="list-group-item"><i class="fa fa-fw fa-envelope-o"></i> <?php echo $wo['lang']['email_notification']; ?> <?php if(Wo_IsAdmin($wo['user']['user_id']) === true) { ?><a href="<?php echo $wo['setting']['url'];?>">(<?php echo $wo['setting']['name'];?>)</a><?php } ?></div>
   <div class="setting-well">
   <form class="setting-general-form form-horizontal" method="post">
      <fieldset>
         <div class="setting-general-alert setting-update-alert"></div>
         <!-- Multiple Radios (inline) -->
         <div class="row">
         	<div class="col-md-3"><h5><?php echo $wo['lang']['email_me_when']; ?></h5></div>
         	<div class="col-lg-9">
         		<!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_liked   = ($wo['setting']['e_liked'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_liked" value="1" <?php echo $selected_e_liked; ?>> <?php echo $wo['lang']['e_likes_my_posts']; ?> 
            </div>
         </div>
         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_wondered   = ($wo['setting']['e_wondered'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_wondered" value="1" <?php echo $selected_e_wondered; ?>> <?php echo $wo['lang']['e_wondered_my_posts']; ?>
            </div>
         </div>
         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_commented   = ($wo['setting']['e_commented'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_commented" value="1" <?php echo $selected_e_commented; ?>> <?php echo $wo['lang']['e_commented_my_posts']; ?>
            </div>
         </div>
         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_shared = ($wo['setting']['e_shared'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_shared" value="1" <?php echo $selected_e_shared; ?>> <?php echo $wo['lang']['e_shared_my_posts']; ?> 
            </div>
         </div>
          <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_followed = ($wo['setting']['e_followed'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_followed" value="1" <?php echo $selected_e_followed; ?>> <?php echo $wo['lang']['e_followed_me']; ?> 
            </div>
         </div>

         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_liked_page = ($wo['setting']['e_liked_page'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_liked_page" value="1" <?php echo $selected_e_liked_page; ?>> <?php echo $wo['lang']['e_liked_page']; ?> 
            </div>
         </div>

         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_visited = ($wo['setting']['e_visited'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_visited" value="1" <?php echo $selected_e_visited; ?>> <?php echo $wo['lang']['e_visited_my_profile']; ?> 
            </div>
         </div>

         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_mentioned = ($wo['setting']['e_mentioned'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_mentioned" value="1" <?php echo $selected_e_mentioned; ?>> <?php echo $wo['lang']['e_mentioned_me']; ?> 
            </div>
         </div>

         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_joined_group = ($wo['setting']['e_joined_group'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_joined_group" value="1" <?php echo $selected_e_joined_group; ?>> <?php echo $wo['lang']['e_joined_group']; ?> 
            </div>
         </div>

         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_accepted = ($wo['setting']['e_accepted'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_accepted" value="1" <?php echo $selected_e_accepted; ?>> <?php echo $wo['lang']['e_accepted']; ?> 
            </div>
         </div>
         <!-- Multiple Radios (inline) -->
         <div class="form-group">
            <?php 
            $selected_e_profile_wall_post = ($wo['setting']['e_profile_wall_post'] == 1)   ? ' checked' : '';
            ?>
            <div class="col-md-12">
               <input type="checkbox" name="e_profile_wall_post" value="1" <?php echo $selected_e_profile_wall_post; ?>> <?php echo $wo['lang']['e_profile_wall_post']; ?> 
            </div>
         </div>
         
         <div class="form-group last-btn">
            <div class="col-sm-3">
               <button type="submit" class="form-control btn-main">
               <i class="fa fa-floppy-o progress-icon" data-icon="floppy-o"></i> <?php echo $wo['lang']['save']; ?>
               </button>
            </div>
         </div>
         	</div>
         </div>
         <input type="hidden" name="user_id" value="<?php echo $wo['setting']['user_id'];?>">
      </fieldset>
   </form>
   </div>
</div>
<script type="text/javascript">
$(function() {
  $('form.setting-general-form').ajaxForm({
    url: Wo_Ajax_Requests_File() + '?f=update_email_settings',
    beforeSend: function() {
      Wo_progressIconLoader($('form.setting-general-form').find('button'));
    },
    success: function(data) {
      scrollToTop();
      if (data.status == 200) {
        $('.setting-general-alert').html('<div class="alert alert-success">' + data.message + '</div>');
        $('.alert-success').fadeIn('fast', function() {
           $(this).delay(2500).slideUp(500, function() {
              $(this).remove();
            });
        });
      } 
      Wo_progressIconLoader($('form.setting-general-form').find('button'));
    }
  });
});
</script>