<?php 
/*****************************************************************************************************************************************************
******************************************************************************************************************************************************
 
																	Image Options
 
*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$slug='reza';


$image =  get_post_meta( $item->ID,  $slug.'_menu_image', true );
$full_width =  get_post_meta( $item->ID,  $slug.'_menu_full_width', true );
$full_height =  get_post_meta( $item->ID,  $slug.'_menu_full_height', true );
 		
if($full_width == "yes"){ $full_width_checked = 'checked="checked"';}else{$full_width_checked='';} 
if($full_height == "yes"){ $full_height_checked = 'checked="checked"';}else{$full_height_checked='';} 
$image_url =  get_post_meta( $item->ID,  $slug.'_menu_image_url', true );
					
		 ?>
<p class="field-custom  reza_menu_not_depth description description-wide menu-image-description">
 
	<span class="description"><?php echo esc_html__('You can not use this depth' , 'reza' );?></span>   
</p>
  
 
<!--------------------------------------- Icon Image--------------------------------->
<p class="field-custom reza_menu_image  menu-image-description  reza_menu_upload  description description-wide reza_menu_image<?php echo esc_attr( $item->ID ) ?>">
	<label for="reza_menu_image-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Image' , 'reza' );?></label>
	<a class="reza_menu_add_image button button-small"  data-uploader-title="<?php echo esc_attr__('Choose Image','reza');?>" data-uploader-button-text="<?php echo esc_attr__('Use This Image','reza');?>"  data-remove-text="<?php echo esc_attr__('Remove','reza');?>"><?php echo esc_html__('Upload','reza')?></a>
	<input type="hidden" name="<?php echo $slug;?>_menu_image[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo esc_attr($image);?>">
 		
	<?php if(!empty($image)){ $image= wp_get_attachment_image_src($image,'medium'); ?>
		<a class="reza_remove_image button button-small" ><?php echo  esc_html__('Remove','reza');?></a>
		<img src="<?php echo esc_url($image[0]) ?>"/> 
	<?php }?>
</p> 

<!--------------------------------------- Full Width--------------------------------->
<p class="field-custom  reza_menu_full_width  menu-image-description description description-wide">
	<label for="reza_menu_full_width-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Full Width' , 'reza' );?></label>
	<input id="reza_menu_full_width-<?php echo esc_attr( $item->ID ) ?>" name="<?php echo $slug;?>_menu_full_width[<?php  echo esc_attr( $item->ID ) ?>]" value="yes" <?php echo wp_kses_post($full_width_checked); ?> type="checkbox" >
</p>    

<!--------------------------------------- Full Height--------------------------------->
<p class="field-custom  reza_menu_full_height  menu-image-description description description-wide">
	<label for="reza_menu_full_height-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Full Height' , 'reza' );?></label>
	<input id="reza_menu_full_height-<?php echo esc_attr( $item->ID ) ?>" name="<?php echo $slug;?>_menu_full_height[<?php  echo esc_attr( $item->ID ) ?>]" value="yes" <?php echo wp_kses_post($full_height_checked); ?> type="checkbox" >
</p>    
 
<!--------------------------------------- Full Height--------------------------------->
<p class="field-custom  reza_menu_image_url  menu-image-description description description-wide">
	<label for="reza_menu_image_url-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('URL' , 'reza' );?></label>
	<input class="widefat" id="reza_menu_image_url-<?php echo esc_attr( $item->ID ) ?>" name="<?php echo $slug;?>_menu_image_url[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo esc_attr($image_url); ?>"  type="text" >
</p>    
 