HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/kofejob-wp/wp-content/themes/kofejob/single-employer.php
<?php
if(in_array('kofejob-core/kofejob-core.php', apply_filters('active_plugins', get_option('active_plugins'))))
{
	$actionbBar = kofejob_fl_framework_get_options('action_bar');
	$actionbar_space = '';
	if(isset($actionbBar) && $actionbBar == 1)
	{
		$actionbar_space = 'actionbar_space';
	}
	get_template_part('header');
	global $kofejob_theme_options;
	global $post;
	$emp_id = get_the_ID();

	$post_author = $post->post_author;
	$user_info = get_userdata($post_author);

	$img_alt_id ='';

	$banner_img_id = get_post_meta( $emp_id, '_employer_banner_id', true );
	$banner_img = wp_get_attachment_image_src( $banner_img_id, 'full' );
	$cover_img ='';
	if(empty($banner_img ))
	{
		$cover_img = $kofejob_theme_options['employer_df_cover']['url'];
	}
	else
	{
		$cover_img = $banner_img[0];
	}

	$limit = $kofejob_theme_options['employers_posted_project_limit'];
	$emp_location_html = $emp_location = '';
	$emp_location = get_term_names('employer-locations', '_employer_location', $emp_id, '', ',' );
	if(isset($emp_location) && $emp_location != '')
	{
		$emp_location_html = '<p><i class="fas fa-map-marker-alt"></i>'.$emp_location.'</p>';
	}
	?>

 

 <section class="profile-baner" style="background:url(<?php echo esc_html($cover_img,'kofejob'); ?>)">
<div class="container">
<div class="row align-items-center ">
<div class="col-auto">
<div class="profile-img">
<?php echo kofejob_get_profile_img($emp_id, 'employer'); ?>
</div>
</div>
<div class="col">
<div class="profile-main">
<h2> <?php echo esc_html(get_post_meta( $emp_id, '_employer_dispaly_name', true)); ?> 
<?php $is_employer_verified = get_post_meta( $emp_id, '_is_employer_verified' , true );
 if(!empty($is_employer_verified)  ) { ?> 
 <i class="fas fa-check-circle"></i>
  <?php } else {  } ?></h2>
<p><?php echo esc_html('Since','kofejob'); ?> <?php echo date_i18n( get_option( 'date_format' ), strtotime( $user_info->user_registered ) ); ?></p>
<div class="about-list">
<ul>
<li>
	<?php
	  echo  get_term_names('employer-locations', '_employer_location', $emp_id, '', ',' );
	 	  ?> </li>
<li><i class="fas fa-map-marker-alt"></i><?php echo esc_html(get_post_meta( $emp_id, '_employer_address', true)); ?> </li>
<li><i class="fas fa-user"></i><?php echo esc_html('Member Since','kofejob'); ?> <?php echo date_i18n( get_option( 'date_format' ), strtotime( $user_info->user_registered ) ); ?></li>
</ul>
</div>

</div>

</div>

<div class="col-auto d-flex align-items-center justify-content-end  ">
<div class="click_to_follow ">
					<?php

						if( get_user_meta( get_current_user_id(), '_emp_follow_id_'.$emp_id, true ) == $emp_id )
						{
							?>
							<a href="javascript:void(0)" class="btn btn-primary click-btn following"><?php echo esc_html('Favourited','kofejob'); ?></a>
							<?php
						}
						else
						{
							?>
							<a href="javascript:void(0)" class="btn btn-primary click-btn follow-employer" data-emp-id="<?php echo esc_attr($emp_id); ?>"><?php echo esc_html('Favourite','kofejob'); ?></a>
							<?php

						}
					?>
 </div>
 </div>
</div>
</div>
</section>
 	 
<div class="content">
	<div class="container">
		<div class="row">
			<div class="col-lg-8 col-md-12">
			<div class="pro-view">
			<nav class="provider-tabs abouts-view">
				<ul class="nav nav-tabs nav-tabs-solid nav-justified" id="myTab" role="tablist">
					<li class="nav-item" role="presentation">
						<a class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home" type="button" role="tab" aria-controls="home" aria-selected="true"><i class="fas fa-binoculars"></i>
						<p><?php echo esc_html__('About Us','kofejob'); ?></p></a>
					</li>
					<li class="nav-item " role="presentation">
						<a class="nav-link" id="profile-tab" data-bs-toggle="tab" data-bs-target="#profile" type="button" role="tab" aria-controls="profile" aria-selected="false">
						<i class="fas fa-folder-open"></i>
						<p><?php echo esc_html__('Projects','kofejob'); ?></p></a>
					</li>
	
				</ul>
			</nav>
<div class="tab-content employer_tabs" id="myTabContent">
  <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
	
  <div class="pro-post widget-box company-post abouts-detail">
									<h3 class="pro-title"><?php echo esc_html__('About Us','kofejob'); ?></h3>
									<div class="pro-content">
 			  <?php echo wp_kses($post->post_content, kofejob_allowed_html_tags()); ?>
									</div>
								</div>
  </div>
  <div class="tab-pane fade " id="profile" role="tabpanel" aria-labelledby="profile-tab">
 
  <div class="pro-post widget-box company-post ">
	<div class="posted-projects">
	   <h3 class="pro-title"><?php echo esc_html__('Projects', 'kofejob');?></h3>
 		  <?php
    $the_query = kofejob_get_all_projects($post_author,  array('publish', 'ongoing'), $limit);
    $total_posts = $the_query->found_posts;
    if($the_query->have_posts())
				{
 ?>
 <?php

while ( $the_query->have_posts() ) 
{
	$the_query->the_post();
	$pid = get_the_ID();
	$project_type = get_post_meta($pid, '_project_type', true);
	  $project_type1 = get_post_meta($pid, 'post_status', true);
	  

	$results = get_project_bids($pid);
							$count_bids =0;
							if(isset($results))
							{
								$count_bids = count($results);	
							}
 
	?>

<div class="projects-card flex-fill project-company">
										<div class="card-body">
											<div class="projects-details align-items-center">
												<div class="project-info">
  
													<span>
                                                        <?php
                                                                $freelancer_type = get_term( get_post_meta($pid, '_project_freelancer_type', true));
                                                                if(!empty($freelancer_type) && ! is_wp_error($freelancer_type))
                                                                {
                                                                    echo esc_html($freelancer_type->name);
                                                                }
                                                                ?></span>
														<h2>
                                                            <a href="<?php  echo esc_url(get_permalink()); ?>">
                                                              <?php echo esc_html(get_the_title()); ?>
                                                            </a>
                                                        </h2>

													<div class="customer-info">
														<ul class="list-details">
															<li>
																<div class="slot">
																	<p><?php echo esc_html('Price Type','kofejob'); ?></p>
																	 <?php
										$project_type_text = '';
										if($project_type == 'hourly' || $project_type == 2)
										{
											$project_type_text = esc_html('Hourly ','kofejob');
											$price = get_post_meta($pid, '_project_cost', true);
											$hours = get_post_meta($pid, '_estimated_hours', true);

											echo '<h5 data-pt-title="'.esc_attr__('For ','kofejob').$hours.__(' hours total will be  ','kofejob'). kofejob_fl_price_separator(is_numeric($hours)*is_numeric($price)).'" data-pt-position="top" data-pt-scheme="black">'.$project_type_text.' <i class="far fa-question-circle"></i></h5>';
										}
										else if($project_type == 'fixed' || $project_type == 1)
										{
											$project_type_text = esc_html('Fixed ','kofejob');
											echo '<h5 class="price_type ">'.$project_type_text.'</h5>';
										}
									?> 
																</div>
															</li>
															<li>
																<div class="slot">
																	<p><?php echo esc_html('Location','kofejob'); ?></p>
																	<h5><?php 
																			$project_loc='';
                                                                             $project_location = get_term( get_post_meta($pid, '_project_location', true));
                                                                             if(!empty($project_location) && ! is_wp_error($project_location))
                                                                                {
                                                                                    $project_loc = esc_html($project_location->name);
																					echo esc_html($project_loc,'kofejob');
                                                                                }
                                                                                  else {
																					echo esc_html('Remote','kofejob');
																				  }
                                                                                     ?></h5>
																</div>
															</li>
															<li>
																<div class="slot">
																	<p><?php echo esc_html('Expiry','kofejob'); ?></p>  
																	<h5><?php echo wp_strip_all_tags(project_expiry_calculation($pid),'kofejob'); ?></h5>
																</div>
															</li>
														</ul>
													</div>
												</div>
												<div class="project-hire-info">
													<div class="content-divider"></div>
													<div class="projects-amount">
														<h3><?php 
											if($project_type == 'fixed' || $project_type == 1)
											{ 
												echo kofejob_fl_price_separator(get_post_meta($pid, '_project_cost', true));
											}
											else if($project_type == 'hourly' || $project_type == 2)
											{
												echo kofejob_fl_price_separator(get_post_meta($pid, '_project_cost', true));
											}
										?></h3>
														<h5><?php echo wp_strip_all_tags(project_expiry_calculation($pid),'kofejob'); ?></h5>
													</div>
													<div class="content-divider"></div>
													 

													<div class="projects-action text-center">
															<a href="<?php  echo esc_url(get_permalink()); ?>" class="projects-btn"><?php echo esc_html__('View Project','kofejob'); ?> </a>
 <?php if(get_post_status($pid )=='publish') { ?>
															<a href="#" class="hired-detail"><span><?php echo esc_html($count_bids,'kofejob'); ?></span> <?php echo esc_html__('Proposals', 'kofejob');?></a>
<?php } elseif(get_post_status($pid )=='ongoing')  { ?>

 	<a href="#" class="hired-detail">
	 <?php
							  $hired_fler = get_post_meta( $pid, '_freelancer_assigned', true );
							$awarded_result = project_awarded($pid, $hired_fler);
							  foreach($awarded_result as $awarded_results)
									{
										$fl_id = $awarded_results->freelancer_id;
										?>

		<?php echo esc_html( 'Hired on: ', 'kofejob' ).date_i18n( get_option( 'date_format' ), strtotime( $awarded_results->timestamp ) );   ?>
		<?php 
									}
						            ?>
									
	</a>
	<?php } ?>
 														</div>

												</div>
											</div>
										</div>
									</div>


									


	<?php }  ?>

	<?php
					wp_reset_postdata();
					$limit = $kofejob_theme_options['employers_posted_project_limit'];
					$total_pages = ceil($total_posts/$limit);

					if($total_pages> 1 )
					{
						$pageno = 1;
						$page_end_limit = $pageno + 2; 
						?>
						<div class="row">
 <div class="col-md-12">
 <div class="emp-profile-pagination emp-profile-paginationtabs">
										<div class="fl-navigation float-right float-end">
											<ul class="paginations list-pagination ">
										 

												<?php

												
								for($i=1; $i<=$total_pages; $i++)
								{
									$page_limit = $i + 1; 
									$active_pagination ='';
									if($i ===1)
									{
										$active_pagination ='active';	
									}
									?>
									<li class="<?php echo esc_attr($active_pagination); ?> emp_pro_pagination" data-page-number="<?php echo esc_attr($i); ?>" data-post-author ="<?php echo esc_attr($post_author); ?>">
										<a href="javascript:void(0)"><?php echo esc_html($i); ?></a>
									</li>
									<?php
									if($i >= $page_end_limit)
									{
										?>
										<li class="emp_pro_pagination">
											<a href="javascript:void(0)">..</a>
										</li>
									<?php
										break;
									}
								}
								?>
												 
											</ul>
											</div>
											</div>
											</div>
 </div>

 <?php } ?>

	<?php }  ?>
</div>	
 </div>


								

								
                

  </div>
 </div>
			
 </div>
			 
 </div>
   <div class="col-lg-4 col-md-12 sidebar-right theiaStickySidebar  company-profile">
      
	  <div class="pro-post widget-box about-widget profile-overview">
								<div class="profile-head">
									<h4 class="pro-title"><?php echo esc_html__('Profile Overview', 'kofejob');?></h4>
								</div>
								<ul class="latest-posts pro-content">
									<li><p><?php echo esc_html('Company Name','kofejob'); ?></p><h6><?php echo esc_html(get_post_meta( $emp_id, '_employer_dispaly_name', true)); ?> </h6></li>
									
									<?php if(!empty(get_post_meta( $emp_id, '_emp_owner_name' , true ))) { ?>

									<li><p><?php echo esc_html('Company Established','kofejob'); ?></p><h6><?php echo esc_html(get_post_meta( $emp_id, '_emp_owner_name' , true )); ?></h6></li>
									<?php } ?>
									<li><p><?php echo esc_html('No of Employees','kofejob'); ?></p><h6><?php
                                    $employees =  get_term_names('employees-number', '_employer_employees', $emp_id, '', ',' );
                                    if($employees != '')
                                    {
                                        echo esc_html($employees);
                                    }
                                    else
                                    {
                                        echo esc_html('N/A','kofejob');
                                    }
                                ?></h6></li>
								<?php if(!empty(get_post_meta( $emp_id, '_emp_owner_name' , true ))) { ?>
									<li><p><?php echo esc_html('Owner Name','kofejob'); ?></p><h6><?php echo esc_html(get_post_meta( $emp_id, '_emp_owner_name' , true )); ?></h6></li>

									<?php } ?>

									<li><p><?php echo esc_html('Email','kofejob'); ?></p><h6><?php
 
 									  echo esc_html($user_info->user_email); ?></h6></li>

									<?php if(!empty(get_post_meta( $emp_id, '_emp_website' , true ))) { ?>

									<li><p><?php echo esc_html('Website','kofejob'); ?></p><h6><?php echo esc_html(get_post_meta( $emp_id, '_emp_website' , true )); ?></h6></h6></li>
									<?php } ?>
									
								</ul>
								<div class="contact-btn">
									<a href="tel:<?php echo esc_html(get_post_meta( $emp_id, '_employer_contact_number' , true )); ?>" class="btn btn-primary"><i class="fas fa-phone-alt"></i> <?php echo esc_html__('Contact', 'kofejob');?></a>
								</div>
        </div>

<?php
 
$facebook = get_post_meta( $emp_id, '_employer_facebook_url' , true );
					$employer_monday = get_post_meta( $emp_id, '_employer_monday' , true );
					$employer_tuesday = get_post_meta( $emp_id, '_employer_tuesday' , true );
					$employer_wednesday = get_post_meta( $emp_id, '_employer_wednesday' , true );
					$employer_thursday = get_post_meta( $emp_id, '_employer_thursday' , true );
					$employer_friday = get_post_meta( $emp_id, '_employer_friday' , true );
					$employer_saturday = get_post_meta( $emp_id, '_employer_saturday' , true );
					$employer_sunday = get_post_meta( $emp_id, '_employer_sunday' , true );

if($employer_monday == '' && $employer_tuesday == '' && $employer_wednesday == '' && $employer_thursday == '' && $employer_friday == '' && $employer_saturday == '' && $employer_sunday == '' )
					{}
					else
					{
						?>

		<div class="pro-post widget-box  working-days">
								<div class="profile-head">
									<h4 class="pro-title"><?php echo esc_html('Working Days','kofejob'); ?></h4>
								</div>
								<ul class="latest-posts pro-content">
								<?php
									if(isset($employer_monday) && $employer_monday != '')
									{ 
								?>

									<li><p><?php echo esc_html('Monday','kofejob'); ?></p><h6><?php echo wp_return_echo($employer_monday); ?></h6></li>
								<?php
							         }
							    ?>
								<?php
									if(isset($employer_tuesday) && $employer_tuesday != '')
									{ 
								?>

									<li><p><?php echo esc_html('Tuesday','kofejob'); ?></p><h6><?php echo wp_return_echo($employer_tuesday); ?></h6></li>
								<?php
							         }
							    ?>
								<?php
									if(isset($employer_wednesday) && $employer_wednesday != '')
									{ 
								?>
									<li><p><?php echo esc_html('Wednesday','kofejob'); ?></p><h6><?php echo wp_return_echo($employer_wednesday); ?></h6></li>
								<?php
							         }
							    ?>
								<?php
									if(isset($employer_thursday) && $employer_thursday != '')
									{ 
								?>
									<li><p><?php echo esc_html('Thursday','kofejob'); ?></p><h6><?php echo wp_return_echo($employer_thursday); ?></h6></li>
								<?php
							         }
							    ?>
								<?php
									if(isset($employer_friday) && $employer_friday != '')
									{ 
								?>
									<li><p><?php echo esc_html('Friday','kofejob'); ?></p><h6><?php echo wp_return_echo($employer_friday); ?></h6></li>
								<?php
							         }
							    ?>
								<?php
									if(isset($employer_saturday) && $employer_saturday != '')
									{ 
								?>
									<li><p><?php echo esc_html('Saturday','kofejob'); ?></p><h6><?php echo wp_return_echo($employer_saturday); ?></h6></li>
								<?php
							         }
							    ?>
								<?php
									if(isset($employer_sunday) && $employer_sunday != '')
									{ 
								?>
									<li><p><?php echo esc_html('Sunday','kofejob'); ?></p><h6><span><?php echo wp_return_echo($employer_sunday); ?></span></h6></li>
								<?php
							         }
							    ?>
								 
								</ul>

 <?php } ?>
 </div>

		<?php
				if($kofejob_theme_options['social_links_switch'] !='')
				{
					$facebook = get_post_meta( $emp_id, '_employer_facebook_url' , true );
					$twitter = get_post_meta( $emp_id, '_employer_twitter_url' , true );
					$linkedin = get_post_meta( $emp_id, '_employer_linkedin_url' , true );
					$instagram = get_post_meta( $emp_id, '_employer_instagram_url' , true );
					$dribble = get_post_meta( $emp_id, '_employer_dribble_url' , true );
					$behance = get_post_meta( $emp_id, '_employer_behance_url' , true );

					if($facebook == '' && $twitter == '' && $linkedin == '' && $instagram == '' && $dribble == '' && $behance == '' )
					{}
					else
					{
						?>

<div class="pro-post widget-box social-widget">
								<div class="profile-head">
									<h4 class="pro-title"><?php echo esc_html('Social Links','kofejob'); ?></h4>
								</div>
								<ul class="social-link-profile">
								<?php
									if(isset($facebook) && $facebook != '')
									{ ?>
									<li><a href="<?php echo wp_return_echo($facebook); ?>" rel="noopener" target="_blank"><i class="fab fa-facebook"></i></a></li>
									<?php } ?>
									<?php
									if(isset($twitter) && $twitter != '')
									{
									 ?>

									<li><a href="<?php echo wp_return_echo($twitter); ?>" rel="noopener" target="_blank"><i class="fab fa-twitter"></i></a></li>
									<?php } ?>

									<?php
									if(isset($instagram) && $instagram != '')
									{
										?>
									<li><a href="<?php echo wp_return_echo($instagram); ?>" rel="noopener" target="_blank">
									<i class="fab fa-instagram"></i></a></li>
									<?php } ?>

									<?php
									if(isset($linkedin) && $linkedin != '')
									{
										?>

									<li><a href="<?php echo wp_return_echo($linkedin); ?>" rel="noopener" target="_blank"><i class="fab fa-linkedin"></i></a></li>
									<?php } ?>

									<?php
									if(isset($dribble) && $dribble != '')
									{
										?>

									<li><a href="<?php echo wp_return_echo($dribble); ?>" rel="noopener" target="_blank"><i class="fab fa-telegram" ></i></a></li>
									<?php } ?>

								</ul>
							</div>

						 
						<?php
					}
				}
			  ?>
			  
		 

      
    </div>
 </div>
 </div>
</div>

	 
	<?php
}
else
{
	wp_redirect(home_url());
}
if(isset($kofejob_theme_options['footer_type'])) { $footer_type  = $kofejob_theme_options['footer_type']; } else { $footer_type  = 0; }
if($footer_type  ==  1) {
    if($footer_type  ==  1 && in_array('elementor-pro/elementor-pro.php', apply_filters('active_plugins', get_option('active_plugins'))))
    {
        elementor_theme_do_location('footer');
        get_footer();
    }else{
        get_footer();
    }
}else {
    get_template_part('footer');
}
?>