<?php
	$dir_map_api=get_option('epjbdir_map_api');	
	if($dir_map_api==""){$dir_map_api='';}	
	$jobbank_directory_url=get_option('ep_jobbank_url');					
	if($jobbank_directory_url==""){$jobbank_directory_url='job';}
	$map_api_have='no';
?>

		
<?php					
	global $wpdb;
	// Check Max\
	$max=999999;									 
	 
	$jobbank_pack='jobbank_pack';
	$sql=$wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_type = '%s'  and post_status='draft' ",$jobbank_pack );
	$membership_pack = $wpdb->get_results($sql);
	$total_package = count($membership_pack);
	$max=999999;
	$package_id=get_user_meta($current_user->ID,'jobbank_package_id',true);							
					
	if($package_id!=""){  					
		$max=get_post_meta($package_id, 'jobbank_package_max_post_no', true);
	}											
	if($package_id=="" OR $package_id=="0"){  						
		global $wpdb;
		$sql=$wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_type = '%s' and post_status='draft'", $jobbank_pack);
		$membership_pack = $wpdb->get_results($sql);
		$total_package=count($membership_pack);								
		if($total_package>0){		  						
			$max=get_post_meta($package_id, 'jobbank_package_max_post_no', true);								
		}else{ 
			 $max=999999;
		}	
	}		
	
	if(isset($current_user->roles[0]) and $current_user->roles[0]=='administrator'){
		$max=999999;
	}		
						 
	
	$sql=$wpdb->prepare("SELECT count(*) as total FROM $wpdb->posts WHERE post_type ='%s' and post_status IN ('publish','pending','draft') and post_author='%d'",$jobbank_directory_url, $current_user->ID);									
	$all_post = $wpdb->get_row($sql);
	$my_post_count=$all_post->total;
	if ( $my_post_count>=$max or !current_user_can('edit_posts') )  { 
		$iv_redirect = get_option('epjbjobbank_profile_page');							
		$reg_page= get_permalink( $iv_redirect); 							
	?>
	<?php  esc_html_e('Please Upgrade Your Account','jobbank'); ?>
	<a href="<?php echo esc_url($reg_page).'?&profile=level'; ?>" title="Upgarde"><b><?php  esc_html_e('Here','jobbank'); ?> </b></a> 
	<?php  esc_html_e('To Add More Post.','jobbank'); ?>	
	<?php
		}else{
	?>					
	<div class="row">
		<div class="col-md-12">	 
			<form action="" id="new_post" name="new_post"  method="POST" role="form">
				<div class=" form-group">
					<label for="text" class=" control-label"><?php  esc_html_e('Title','jobbank'); ?></label>
					<div class="  "> 
						<input type="text" class="form-control" name="title" id="title" value="" placeholder="<?php  esc_html_e('Enter Title Here','jobbank'); ?>">
					</div>																		
				</div>	
				
				<?php
					$jobbank_active_chatGPT=get_option('jobbank_active_chatGPT');		
					if($jobbank_active_chatGPT==""){$jobbank_active_chatGPT='yes';}	
					if($jobbank_active_chatGPT=="yes"){
					?>
					<div class="row">
						<div class="col-md-12 "> <hr/>											
							<button type="button" onclick="jobbank_chatgtp_settings_popup();"  class="btn green-haze mt-2 mb-2"><?php  esc_html_e('Create Post Using ChatGPT ',	'jobbank'); ?></button>	
							<div id="chatgpt-message"></div>
						</div>						
					</div>	
					<?php
					}
					?>
					
				<input type="hidden" name="feature_image_id" id="feature_image_id" value="">
				
				<div class=" form-group row">	
						<div class="col-md-6" id="post_image_div">				
						</div> 
						
						<div class="col-md-6" id="post_image_edit">	
							<button type="button" onclick="jobbank_edit_post_image('post_image_div');"  class="btn btn-small-ar"><?php  esc_html_e('Company Logo[best fit 450X350]','jobbank'); ?> </button>
						</div>									
				</div>
				
				<div class=" form-group row">																
					<div class=" col-md-6" id="post_image_topbaner">
					</div> 
					<div class=" form-group col-md-6">											
							<div class="" id="topbanner_image_edit">
							
								<button type="button" onclick="jobbank_topbanner_image('post_image_topbaner');"  class="btn btn-small-ar"><?php  esc_html_e('Top Banner[best fit 1200X400]','jobbank'); ?> </button>
							</div>									
					</div>								
				</div>	
			
			
			<input type="hidden" name="topbanner_image_id" id="topbanner_image_id" value="">	
				<div class="form-group">
					<label for="text" class="control-label"><?php  esc_html_e('Job Description','jobbank'); ?>  </label>
					<?php
						$settings_a = array(															
						'textarea_rows' =>8,
						'editor_class' => 'form-control'															 
						);
						$editor_id = 'new_post_content';
						wp_editor( '', $editor_id,$settings_a );										
					?>
				</div>
				<div class="form-group">
					<label for="text" class="control-label"><?php  esc_html_e('Education & Experience','jobbank'); ?>  </label>
					<?php
						$settings_a = array(															
						'textarea_rows' =>8,
						'editor_class' => 'form-control'															 
						);
						$editor_id = 'content_education';
						wp_editor( '', $editor_id,$settings_a );										
					?>
				</div>
				<div class="form-group">
					<label for="text" class="control-label"><?php  esc_html_e('Must Have','jobbank'); ?>  </label>
					<?php
						$settings_a = array(															
						'textarea_rows' =>8,
						'editor_class' => 'form-control'															 
						);
						$editor_id = 'content_must_have';
						wp_editor( '', $editor_id,$settings_a );										
					?>
				</div>							
				
				
				<div class="  form-group ">
					<label for="text" class="  control-label"><?php  esc_html_e('Status','jobbank'); ?>  </label>
					<select name="post_status" id="post_status"  class="form-control">
						<?php
								$jobbank_user_can_publish=get_option('jobbank_user_can_publish');	
								if($jobbank_user_can_publish==""){$jobbank_user_can_publish='yes';}	
								if(isset($current_user->roles[0]) and $current_user->roles[0]=='administrator'){?>
								<option value="publish"><?php esc_html_e('Publish','jobbank'); ?></option>
								<?php
								}
								if(isset($current_user->roles[0]) and $current_user->roles[0]!='administrator'){
									if($jobbank_user_can_publish=="yes"){
									?>
									<option value="publish"><?php esc_html_e('Publish','jobbank'); ?></option>
									<?php
									}
								}
							?>											
						<option value="pending"><?php esc_html_e('Pending Review','jobbank'); ?></option>
						<option value="draft" ><?php esc_html_e('Draft','jobbank'); ?></option>	
					</select>	
				</div>										
				
				<span class="caption-subject">														
				<?php  esc_html_e('External form URL e.g. Google Form link(if any) ','jobbank'); ?>
				</span>
				<hr/>								
				<div class=" form-group ">	
					<input type="text" class="form-control col-md-12" name="external_form_url" id="external_form_url" value="" placeholder="<?php  esc_html_e('External form URL','jobbank'); ?>">				
				</div>
				
				<span class="caption-subject">														
					<?php  esc_html_e('Contact Info','jobbank'); ?>
				</span>
				<hr/>
				<?php
				
					$listing_contact_source='';
					if($listing_contact_source==''){$listing_contact_source='user_info';}
				?>
				<div class=" form-group">	
					<div class="radio">											
						<label><input type="radio" name="contact_source" value="user_info"  class="mr-1" <?php echo ($listing_contact_source=='user_info'?'checked':''); ?> > <?php  esc_html_e(' Use The company Info ->','jobbank'); ?> <?php echo ucfirst($current_user->display_name); ?><?php  esc_html_e(' : Logo, Email, Phone, Website','jobbank'); ?> <a href="<?php echo get_permalink().'?profile=setting';?>" target="_blank"> <?php  esc_html_e('Edit','jobbank'); ?> </a></label>
					</div>
					<div class="radio">
						<label><input type="radio" name="contact_source" value="new_value" class="mr-1" <?php echo ($listing_contact_source=='new_value'?'checked':''); ?>><?php  esc_html_e(' New Contact Info','jobbank'); ?>  </label>
					</div>
				</div>
				<div  class="row" id="new_contact_div" <?php echo ($listing_contact_source=='user_info'?'style="display:none"':''); ?> >
					
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('Company Name','jobbank'); ?></label>						
						<input type="text" class="form-control" name="company_name" id="company_name" value="" placeholder="<?php  esc_attr_e('Company name','jobbank'); ?>">
					</div>
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('Phone','jobbank'); ?></label>						
						<input type="text" class="form-control" name="phone" id="phone" value="" placeholder="<?php  esc_attr_e('Enter Phone Number','jobbank'); ?>">
					</div>
								
					
					<div class=" form-group col-md-12">
						<label for="text" class=" control-label"><?php  esc_html_e('Address autocomplete helper','jobbank'); ?></label>
						<div id="map"></div>
						<div id="search-box"></div>

						<div id="result"></div>
					</div>
					<div class=" form-group col-md-12">
						<label for="text" class=" control-label"><?php  esc_html_e('Address (Save in the listing field)','jobbank'); ?></label>						
						<input type="text" class="form-control" name="address" id="address" value=""  placeholder="<?php  esc_html_e('Enter Address','jobbank'); ?>">
					</div>
				
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('city','jobbank'); ?></label>
						<input type="text" class="form-control" name="city" id="city" value="" placeholder="<?php  esc_attr_e('Enter city','jobbank'); ?>">
					</div>	
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('State','jobbank'); ?></label>
						<input type="text" class="form-control" name="state" id="state" value="" placeholder="<?php  esc_attr_e('Enter State','jobbank'); ?>">
					</div>	
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('Zipcode/Postcode','jobbank'); ?></label>
						<input type="text" class="form-control" name="postcode" id="postcode" value="" placeholder="<?php  esc_attr_e('Enter Zipcode/Postcode','jobbank'); ?>">
					</div>	
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('Country','jobbank'); ?></label>
						<input type="text" class="form-control" name="country" id="country" value="" placeholder="<?php  esc_attr_e('Enter Country','jobbank'); ?>">
					</div>	
					<div class=" form-group col-md-6">
					<label for="text" class=" control-label"><?php  esc_html_e('Latitude ','jobbank'); ?></label>
					<input type="text" class="form-control" name="latitude" id="latitude" value="" placeholder="<?php  esc_attr_e('Enter Latitude','jobbank'); ?>">
				</div>	
					<div class=" form-group col-md-6">
					<label for="text" class=" control-label"><?php  esc_html_e('Longitude','jobbank'); ?></label>
					<input type="text" class="form-control" name="longitude" id="longitude" value="" placeholder="<?php  esc_attr_e('Enter Longitude','jobbank'); ?>">
				</div>	
					
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('Email Address','jobbank'); ?></label>
						<input type="text" class="form-control" name="contact-email" id="contact-email" value="" placeholder="<?php  esc_attr_e('Enter Email Address','jobbank'); ?>">
					</div>
					<div class=" form-group col-md-6">
						<label for="text" class=" control-label"><?php  esc_html_e('Web Site','jobbank'); ?></label>
						<input type="text" class="form-control" name="contact_web" id="contact_web" value="" placeholder="<?php  esc_attr_e('Enter Web Site','jobbank'); ?>">
					</div>
				</div>	
				
				
				<hr/>
				<div class="clearfix"></div>
				<span class="caption-subject">												
					<?php  esc_html_e('Categories','jobbank'); ?>
				</span>
				<hr/>
				
					<div class=" form-group row"  id="jobbankcats-container">																	
						<?php $selected='';
						
							
							//job
							$taxonomy = $jobbank_directory_url.'-category';
							$args = array(
							'orderby'           => 'name', 
							'order'             => 'ASC',
							'hide_empty'        => false, 
							'exclude'           => array(), 
							'exclude_tree'      => array(), 
							'include'           => array(),
							'number'            => '', 
							'fields'            => 'all', 
							'slug'              => '',
						
							'hierarchical'      => true, 
							'child_of'          => 0,
							'childless'         => false,
							'get'               => '', 
							);
							$terms = get_terms($taxonomy,$args); // Get all terms of a taxonomy
							if ( $terms && !is_wp_error( $terms ) ) :
							$i=0;
							foreach ( $terms as $term_parent ) {  ?>												
							<?php  
							if($term_parent->name!=''){	
							?>	
								<div class="col-md-6">
									<label class="form-group "> <input type="checkbox" name="postcats[]" id="postcats"  value="<?php echo esc_attr($term_parent->slug); ?>" class="jobbankcats-fields" > <?php echo esc_html($term_parent->name); ?> </label>
								</div>
							<?php
							}
								$i++;
							} 								
							endif;	
							
						?>	
							
						<div class="col-md-12">
							<input type="text" class="form-control" name="new_category" id="new_category" value="" placeholder="<?php  esc_html_e('Enter New Categories: Separate with commas','jobbank'); ?>">
						</div>		
						
					</div>
					
				<div class="clearfix"></div>
				<span class="caption-subject">												
					<?php  esc_html_e('Tags','jobbank'); ?>
				</span>
				<hr/>
				
				<div class=" row">		
				<?php
					$args2 = array(
					'type'                     => $jobbank_directory_url,
					'orderby'                  => 'name',
					'order'                    => 'ASC',
					'hide_empty'               => 0,
					'hierarchical'             => 1,
					'exclude'                  => '',
					'include'                  => '',
					'number'                   => '',
					'taxonomy'                 => $jobbank_directory_url.'-tag',
					'pad_counts'               => false
					);
					$main_tag = get_categories( $args2 );	
					$tags_all= '';													
					if ( $main_tag && !is_wp_error( $main_tag ) ) :
					foreach ( $main_tag as $term_m ) {
					?>
					<div class="col-md-6">
						<label class="form-group"> 
							<input type="checkbox" name="tag_arr[]" id="tag_arr[]"  value="<?php echo esc_attr($term_m->slug); ?>"> <?php echo esc_html($term_m->name); ?> </label>  
					</div>
					<?php	
					}
					endif;	
				?>
				</div>
				<div class=" form-group">	
						<input type="text" class="form-control" name="new_tag" id="new_tag" value="" placeholder="<?php  esc_html_e('Enter New Tags: Separate with commas','jobbank'); ?>">
				</div>															
				<div class="clearfix"></div>
				<span class="caption-subject">												
					<?php  esc_html_e('Locations','jobbank'); ?>
				</span>
				<hr/>
				
				<div class=" row mb-3">		
				<?php
					$args2 = array(
					'type'                     => $jobbank_directory_url,
					'orderby'                  => 'name',
					'order'                    => 'ASC',
					'hide_empty'               => 0,
					'hierarchical'             => 1,
					'exclude'                  => '',
					'include'                  => '',
					'number'                   => '',
					'taxonomy'                 => $jobbank_directory_url.'-locations',
					'pad_counts'               => false
					);
					$main_tag = get_categories( $args2 );	
					$tags_all= '';													
					if ( $main_tag && !is_wp_error( $main_tag ) ) :
					foreach ( $main_tag as $term_m ) {
					?>
					<div class="col-md-6">
						<label class="form-group"> 
							<input type="checkbox" name="location_arr[]" id="location_arr"  value="<?php echo esc_attr($term_m->slug); ?>"> <?php echo esc_html($term_m->name); ?> </label>  
					</div>
					<?php	
					}
					endif;	
				?>
						<div class="col-md-12">
							<input type="text" class="form-control" name="new_location" id="new_location" value="" placeholder="<?php  esc_html_e('Enter New Locations: Separate with commas','jobbank'); ?>">
						</div>															
						
				</div>
				<div class="clearfix"></div>	
				
				<span class="caption-subject">												
					<?php  esc_html_e('Job information','jobbank'); ?>
				</span>
				<hr/>	
				<div class="clearfix"></div>
				<div class="row">
				
				<div class="col-md-6  form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Educational Requirements','jobbank'); ?></label>
						<input type="text" class="form-control" name="educational_requirements" id="educational_requirements" value="" placeholder="<?php  esc_html_e('Bachelor Degree','jobbank'); ?>">								
					</div>
					
					<div class="  form-group col-md-6">
						<label for="text" class="  control-label"><?php  esc_html_e('Job Nature','jobbank'); ?></label>
						<select name="job_type" class="form-control ">		
							<?php
								$jobbank_job_status='';
								$jobbank_job_status_all=get_option('jobbank_job_status');					
								if($jobbank_job_status_all==""){$jobbank_job_status_all='Full Time, Part Time,Freelance, Hourly, Project Base';}
								$jobbank_job_status_all_arr= explode(',',$jobbank_job_status_all);
								foreach($jobbank_job_status_all_arr as $jobbank_job_statusone){ 
									if(!empty($jobbank_job_statusone)){
										echo' <option '. ($jobbank_job_status ==$jobbank_job_statusone ? 'selected':'' ).' value="'.trim(esc_attr($jobbank_job_statusone)).'">'.esc_html__($jobbank_job_statusone,'jobbank').'</option>';
									}
								}											
							?>	
						</select>									
					</div>
					<div class="  form-group col-md-6">
						<label for="text" class="  control-label"><?php  esc_html_e('Job Level','jobbank'); ?></label>
						<select name="jobbank_job_level" class="form-control ">		
							<?php
								$jobbank_job_level='';
								$jobbank_job_level_all=get_option('jobbank_job_level');					
								if($jobbank_job_level_all==""){$jobbank_job_level_all='Any,Entry Lavel,Mid Level,Top Level';}
								$jobbank_job_level_arr= explode(',',$jobbank_job_level_all);
								foreach($jobbank_job_level_arr as $jobbank_job_statusone){ 
									if(!empty($jobbank_job_statusone)){
										echo' <option '. ($jobbank_job_level ==$jobbank_job_statusone ? 'selected':'' ).' value="'.trim(esc_attr($jobbank_job_statusone)).'">'.esc_html__($jobbank_job_statusone,'jobbank').'</option>';
									}
								}											
							?>	
						</select>									
					</div>
					<div class="  form-group col-md-6">
						<label for="text" class="  control-label"><?php  esc_html_e('Experience Range','jobbank'); ?></label>
						<select name="jobbank_experience_range" class="form-control ">		
							<?php
								$jobbank_experience_range='';
								$jobbank_experience_range=get_option('jobbank_experience_range');					
								if($jobbank_experience_range==""){
									$jobbank_experience_range='Any,Below 1 Year,1 - 3 Years,3 - 5 Years,5 - 10 Years,Over 10 Years';
									}
								$job_arr= explode(',',$jobbank_experience_range);
								foreach($job_arr as $jobbank_job_statusone){ 
									if(!empty($jobbank_job_statusone)){
										echo' <option '. ($jobbank_job_status ==$jobbank_job_statusone ? 'selected':'' ).' value="'.trim($jobbank_job_statusone).'">'.esc_html__($jobbank_job_statusone,'jobbank').'</option>';
									}
								}											
							?>	
						</select>														
					</div>
					<div class="  form-group col-md-6">
						<label for="text" class="  control-label"><?php  esc_html_e('Age Range','jobbank'); ?></label>
						<select name="age_range" class="form-control ">		
							<?php
								$age_range='';
								$age_range=get_option('age_range');					
								if($age_range==""){$age_range=esc_html__('Any, Below 20 years, 20-30 Years, 30-40 Years,40-50 Years,Over 50 Years','jobbank');}
								
								$job_arr= explode(',',$age_range);
								foreach($job_arr as $jobbank_job_statusone){ 
									if(!empty($jobbank_job_statusone)){
										echo' <option '. ($jobbank_job_status ==$jobbank_job_statusone ? 'selected':'' ).' value="'.trim(esc_attr($jobbank_job_statusone)).'">'.esc_html__($jobbank_job_statusone,'jobbank').'</option>';
									}
								}											
							?>	
						</select>														
					</div>
					<div class=" col-md-6 form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Gender','jobbank'); ?></label>
						<select name="gender"  class="form-control">
							<option value="Any"><?php  esc_html_e('Any','jobbank'); ?></option>
							<option value="Male"><?php  esc_html_e('Male','jobbank'); ?></option>
							<option value="Female"><?php  esc_html_e('Female','jobbank'); ?></option>
						</select>
					</div>
					<div class="col-md-6  form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Vacancy','jobbank'); ?></label>
						<input type="text" class="form-control" name="vacancy" id="vacancy" value="" placeholder="<?php  esc_html_e('Enter Vacancy, e.g : 2','jobbank'); ?>">								
					</div>
					<div class=" col-md-6 form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Application Deadline','jobbank'); ?></label>
						<input type="text" class="form-control" name="deadline" id="deadline" value="" >
					</div>	
					<div class=" col-md-6 form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Workplace','jobbank'); ?></label>
						<input type="text" class="form-control" name="workplace"  value=""  placeholder="<?php  esc_html_e('Office, Work from Home','jobbank'); ?>">
					</div>
					<div class="col-md-6  form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Offered Salary','jobbank'); ?></label>
						<input type="text" class="form-control" name="salary" value="" >								
					</div>
					<div class="col-md-12  form-group">
						<label for="text" class=" control-label"><?php  esc_html_e('Compensation & Other Benefits','jobbank'); ?></label>
						<input type="text" class="form-control" name="other_benefits" value="" >								
					</div>
					
					
				</div>
				<span class="caption-subject">	
					<?php  esc_html_e('Videos ','jobbank'); ?>
				</span>
				
				<hr/>
			
					<div class="row">
						<div class=" col-md-6 form-group">
							<label for="text" class=" control-label"><?php  esc_html_e('Youtube','jobbank'); ?></label>
							<input type="text" class="form-control" name="youtube" id="youtube" value="" placeholder="<?php  esc_html_e('Enter Youtube video ID, e.g : bU1QPtOZQZU ','jobbank'); ?>">
						</div>
						<div class="col-md-6  form-group">
							<label for="text" class=" control-label"><?php  esc_html_e('vimeo','jobbank'); ?></label>
							<input type="text" class="form-control" name="vimeo" id="vimeo" value="" placeholder="<?php  esc_html_e('Enter vimeo ID, e.g : 134173961','jobbank'); ?>">								
						</div>
					</div>	
					
				<span class="caption-subject">											
					<?php  esc_html_e('Image Gallery','jobbank'); ?>
				</span>
				<hr/>
			
					<input type="hidden" name="gallery_image_ids" id="gallery_image_ids" value="">
					<div class="row" id="gallery_image_div">
					
					</div>									
				
				<div class="row">										
					<div class="  form-group col-md-12">									
						<button type="button" onclick="jobbank_edit_gallery_image('gallery_image_div');"  class="btn btn-small-ar mt-2"><?php  esc_html_e('Add Images','jobbank'); ?></button>
					</label>						
					</div>
				</div>
				
				<hr/>
				<span class="caption-subject">	
					<?php  esc_html_e('More Details ','jobbank'); ?>
				</span>								
				<hr/>
				<div class="row" id="jobbank_fields">
					<?php							
							$post_cats=array();			
							echo ''.$main_class->jobbank_listing_fields(0, $post_cats );
						?>	
				</div>
				<span class="caption-subject">	
					<?php  esc_html_e('FAQs ','jobbank'); ?>
				</span>								
				<hr/>
				<div class="row">
					<?php							
						include( ep_jobbank_template. 'private-profile/profile-add-edit-faq.php');						
						?>		
				</div>
				<span class="caption-subject">												
					<?php  esc_html_e('Button Setting','jobbank'); ?>
				</span>
				<hr/>
				<?php											
					
					$dir_style5_email=get_option('dir_style5_email');	
					if($dir_style5_email==""){$dir_style5_email='yes';}
					if($dir_style5_email=="yes"){
						$dirpro_email_button='';
						if($dirpro_email_button==""){$dirpro_email_button='yes';}
					?>	
					<div class="form-group row ">
						<label  class="col-md-4 control-label"> <?php  esc_html_e('Contact Button','jobbank');  ?></label>
						<div class="col-md-3">
							<label>												
								<input type="radio" name="dirpro_email_button" id="dirpro_email_button" value='yes' class=" mr-1" <?php echo ($dirpro_email_button=='yes' ? 'checked':'' ); ?> ><?php  esc_html_e('Show','jobbank');  ?>
							</label>	
						</div>
						<div class="col-md-5">	
							<label>											
								<input type="radio"  name="dirpro_email_button" id="dirpro_email_button" class=" mr-1" value='no' <?php echo ($dirpro_email_button=='no' ? 'checked':'' );  ?> > <?php  esc_html_e('Hide','jobbank');  ?>
							</label>
						</div>	
					</div>		
					<?php
					}	
					?>
					
				
				
				<div class="clearfix"></div>	
				<div class="row">
					<div class="col-md-12  "> <hr/>
						<div class="" id="update_message"></div>
						<input type="hidden" name="user_post_id" id="user_post_id" value="0">
						<button type="button" onclick="jobbank_save_post();"  class="btn green-haze"><?php  esc_html_e('Save Post',	'jobbank'); ?></button>
						
					</div>	
					
				</div>	
			</form>
		</div>
	
	<?php
	} // for Role
?>
				
		
<!-- END PROFILE CONTENT -->
<?php
	$save_address='';
	$my_theme = wp_get_theme();
	$theme_name= strtolower($my_theme->get( 'Name' ));
	wp_enqueue_script('jobbank_add-edit-listing', ep_jobbank_URLPATH . 'admin/files/js/add-edit-listing.js');
	wp_localize_script('jobbank_add-edit-listing', 'realpro_data', array(
	'ajaxurl' 					=> admin_url( 'admin-ajax.php' ),
	'loading_image'			=> '<img src="'.ep_jobbank_URLPATH.'admin/files/images/loader.gif">',
	'current_user_id'		=>get_current_user_id(),
	'Set_Feature_Image'	=> esc_html__('Set Feature Image','jobbank'),
	'Set_plan_Image'		=> esc_html__('Set plan Image','jobbank'),
	'Set_Event_Image'		=> esc_html__('Set Event Image','jobbank'),
	'Gallery Images'		=> esc_html__('Gallery Images','jobbank'),
	'permalink'				=> get_permalink(),
	'save_address'			=> $save_address,
	'dirwpnonce'			=> wp_create_nonce("addlisting"),
	'theme_name'			=> $theme_name,
	) );
?> 