
<?php wp_enqueue_style( 'ihc-croppic_css', IHC_URL . 'assets/css/croppic.css', array(), 9.7 );?>
<?php wp_enqueue_script( 'ihc-jquery_mousewheel', IHC_URL . 'assets/js/jquery.mousewheel.min.js', ['jquery'], 10.1 );?>
<?php wp_enqueue_script( 'ihc-croppic', IHC_URL . 'assets/js/croppic.js', ['jquery'], 10.1 );?>
<?php wp_enqueue_script( 'ihc-image_croppic', IHC_URL . 'assets/js/image_croppic.js', ['jquery'], 10.1 );?>

<span class="ihc-js-admin-upload-image-data"
      data-rand="<?php echo $data['rand'];?>"
      data-url="<?php echo IHC_URL . 'public/ajax-upload.php?ihcpublicn=' . wp_create_nonce( 'ihcpublicn' );?>"
      data-bttn_label="<?php echo esc_html__('Upload', 'ihc');?>"
      data-name="<?php echo $data['name'];?>"
    ></span>

<div class="ihc-upload-image-wrapper">

    <div class="ihc-upload-image-wrapp ihc-js-upload-image-wrapp" >
        <?php if ( !empty($data['imageUrl']) ):?>
            <img src="<?php echo $data['imageUrl'];?>" class="<?php echo $data['imageClass'];?>" />
        <?php else:?>
            <?php if ( $data['name']=='ihc_avatar' ):?>
                <div class="ihc-no-avatar ihc-member-photo"></div>
            <?php endif;?>
        <?php endif;?>
        <div class="ihc-clear"></div>
    </div>
    <div class="ihc-content-left">
    	 <div class="ihc-avatar-trigger" id="<?php echo 'js_ihc_trigger_avatar' . $data['rand'];?>" >
         	<div id="ihc-avatar-button" class="ihc-upload-avatar"><?php esc_html_e('Upload', 'ihc');?></div>
         </div>
        <span class="ihc-upload-image-remove-bttn ihc-visibility-hidden" id="<?php echo 'ihc_upload_image_remove_bttn_' . $data['rand'];?>"><?php esc_html_e('Remove', 'ihc');?></span>
    </div>
    <input type="hidden" value="<?php echo $data['value'];?>" name="<?php echo $data['name'];?>" id="<?php echo 'ihc_upload_hidden_' . $data['rand'];?>" data-new_user="<?php echo ( $data['user_id'] == -1 ) ? 1 : 0;?>" />

    <?php if (!empty($data['sublabel'])):?>
        <label class="iump-form-sublabel"><?php echo ihc_correct_text($data['sublabel']);?></label>
    <?php endif;?>
</div>
