<?php
/**
  * Ahead WebSoft Technologies Pvt Ltd.
  * @copyright  Copyright 2006-2026 Ahead WebSoft Technologies Pvt Ltd.
  * @license    https://www.socialengine.com/policies
*/
?>
<div class="generic_layout_container layout_top">
  <div class="generic_layout_container layout_middle">
    <?php echo $this->content()->renderWidget('user.user-setting-cover-photo'); ?>
  </div>
</div>
<div class="generic_layout_container layout_main user_setting_main_page_main">
  <div class="generic_layout_container layout_left">
    <div class="theiaStickySidebar">
      <?php echo $this->content()->renderWidget('user.settings-menu'); ?>
    </div>
  </div>
  <div class="generic_layout_container layout_middle user_setting_main_middle">
    <div class="theiaStickySidebar">
      <div class="user_setting_global_form user_setting_notification_form">
        <?php echo $this->form->render($this) ?>
      </div>
      <script type="application/javascript">
        <?php if(!empty($this->user->disable_email)) { ?>
          en4.core.runonce.add(function() {
          scriptJquery('.email_settings').attr('disabled', true);
          });
        <?php } ?>
        function disableEmail(value) {
          if(value.checked == true) {
              scriptJquery('.email_settings').attr('disabled', true);
          } else {
              scriptJquery('.email_settings').attr('disabled', false);
          }
        }
      </script>
    </div>
  </div>
</div>
