<?php
/*****************************************************************************************************************************************************
******************************************************************************************************************************************************
 
																Section Options
 
*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 $slug='reza';
		
$sub_column =  get_post_meta( $item->ID, 'reza_menu_sub_column', true );
$padding_top =  get_post_meta( $item->ID, $slug.'_menu_padding_top', true );
$padding_left =  get_post_meta( $item->ID, $slug.'_menu_padding_left', true );
$padding_bottom =  get_post_meta( $item->ID,  $slug.'_menu_padding_bottom', true );
$padding_right =  get_post_meta( $item->ID,  $slug.'_menu_padding_right', true );


$gap =  get_post_meta( $item->ID,  $slug.'_menu_gap', true );


$sub_column_array =array('1-1','1-2' ,'1-3','2-3' ,'1-3-2-3' ,'1-4','3-4','1-4-3-4','1-5' ,'4-5','3-5','2-5-3-5','1-6','5-6','1-6-5-6','1-7','1-8');
		?>
        
<p class="field-custom  reza_menu_not_depth description description-wide menu-section-description">
 
	<span class="description"><?php echo esc_html__('You can not use this depth:' , 'reza' );?></span>   
</p>
        
<p class="field-custom reza_menu_sub_column <?php echo $sub_column;?> reza_menu_sub_column_<?php echo esc_attr( $item->ID ) ?> description description-wide menu-section-description">
	<label for="reza_menu_sub_column-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Sub Column:' , 'reza' );?></label>
	<span class="reza_menu_sub_column_ui">
	<?php  
	$sub_column_checked = !empty($sub_column)?$sub_column:'1-1';
	foreach ( $sub_column_array as $key => $name ) {
	?>
                
	<span class="reza_menu_sub_column-<?php echo esc_attr($name);?> reza_menu_sub_column_span <?php if($sub_column_checked == $name) echo 'selected';?> ">
	<input  name="reza_menu_sub_column[<?php echo esc_attr( $item->ID );?>]" class="display_none" id="reza_menu_sub_column-<?php echo esc_attr($name);?>"  value="<?php echo esc_attr($name);?>" type="radio" <?php checked( $sub_column_checked, $name );?>>
	<img src="<?php echo REZA_DIR;?>/admin/assets/images/menu-col/<?php echo esc_attr($name);?>.jpg" width="120" height="30">
	</span>
	<?php }?>
	</span>
</p>
<p class="field-custom  reza_menu_padding_top description description-wide menu-section-description ">
	<label for="reza_menu_padding_top-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Padding Top:' , 'reza' );?></label>
 	<input type="number" name="<?php echo  $slug;?>_menu_padding_top[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo isset($padding_top) ? esc_attr($padding_top):'';?>">
	<span class="description"><?php echo esc_html__('In pixels' , 'reza' );?></span>   
</p>

<p class="field-custom  reza_menu_padding_right description description-wide menu-section-description">
	<label for="reza_menu_padding_right-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Padding Right:' , 'reza' );?></label>
 	<input type="number" name="<?php echo  $slug;?>_menu_padding_right[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo isset($padding_right) ?  esc_attr($padding_right):'';?>">
	<span class="description"><?php echo esc_html__('In pixels' , 'reza' );?></span>   
</p>

<p class="field-custom  reza_menu_padding_bottom description description-wide menu-section-description">
	<label for="reza_menu_padding_bottom-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Padding Bottom:' , 'reza' );?></label>
 	<input type="number" name="<?php echo  $slug;?>_menu_padding_bottom[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo isset($padding_bottom) ? esc_attr($padding_bottom):'';?>">
	<span class="description"><?php echo esc_html__('In pixels' , 'reza' );?></span>   
</p>

<p class="field-custom  reza_menu_padding_left description description-wide menu-section-description">
	<label for="reza_menu_padding_left-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Padding Left' , 'reza' );?></label>
 	<input type="number" name="<?php echo  $slug;?>_menu_padding_left[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo isset($padding_left) ? esc_attr($padding_left):'';?>">
	<span class="description"><?php echo esc_html__('In pixels' , 'reza' );?></span>   
</p>


<p class="field-custom  reza_menu_gap description description-wide menu-section-description">
	<label for="reza_menu_gap-<?php echo esc_attr( $item->ID ) ?>" ><?php echo esc_html__('Gap Between Column:' , 'reza' );?></label>
 	<input type="number" name="<?php echo  $slug;?>_menu_gap[<?php  echo esc_attr( $item->ID ) ?>]" value="<?php echo isset($gap) ? esc_attr($gap):'';;?>">
	<span class="description"><?php echo esc_html__('In pixels' , 'reza' );?></span>   
</p>