File: /var/www/panigaletech.com/wp-content/themes/panigale/single-candidates.php
<?php
/**
* The template for displaying all single posts and attachments
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
get_header(); ?>
<?php while ( have_posts() ) : the_post();
$candidates_id = get_the_id();
$candidatesDetails=get_post($candidates_id);
$candidatesAddress1 = get_field( "address1", $candidates_id );
$candidatesCity = get_field( "city", $candidates_id );
$candidatesState = get_field( "state", $candidates_id );
$candidatesZip = get_field( "zip", $candidates_id );
$candidatesCountry = get_field( "country", $candidates_id );
/*echo "<pre>";
print_r($blogDetails);*/
$blog_posted_by = get_post_meta($blog_id,'blog_posted_by',true);
?>
<?php
$terms_cat = wp_get_object_terms($candidates_id, 'industry' );
//print_r($terms_cat);
$cc = count($terms_cat);
$cats = '';
if(is_array($terms_cat))
{
$ct = 1;
foreach ( $terms_cat as $term )
{
$cats .= $term->name;
if($ct != $cc)
{
$cats .= ', ';
}
$ct++;
}
}
$terms_cat_for_type = wp_get_object_terms($candidates_id, 'employment-type' );
//print_r($terms_cat);
$cc1 = count($terms_cat_for_type);
$catsempType = '';
if(is_array($terms_cat_for_type))
{
$ct1 = 1;
foreach ( $terms_cat_for_type as $term )
{
$catsempType .= $term->name;
if($ct1 != $cc1)
{
$catsempType .= ', ';
}
$ct1++;
}
}
?>
<!--FInd Talent-->
<section class="inner-section mb-3">
<div class="container-fluid">
<div class="row">
<div class="col-lg-8 col-md-10 col-sm-12 offset-lg-2 offset-md-1 text-center">
<h2 class="heading02 font-weight-7 mb-2 wow fadeInUp" data-wow-duration="2s">Talent Showcase</h2>
<p class=" wow fadeInUp" data-wow-duration="2s">We spend our day discovering top talent. With access to millions of resumes, our teams screen more than 10K candidates weekly.Below is a snapshot of our talent showcase. Let us know how we can help you identify your next hire.</p>
</div>
<div class="col-lg-10 offset-lg-1 mt-5">
<div class="row">
<?php include 'template-parts/find-talent_filter.php';?>
<div class="col-lg-9 col-md-7 col-sm-7">
<!-- <div class="result-blog mb-4 clearfix wow fadeInUp" data-wow-duration="2s">
<div class="result">425 Results</div>
</div> -->
<div class="row findtalent-post">
<!--Blog 1-->
<div class="col-md-12">
<div class="card">
<h5 class="heading05 text-blue font-weight-7 wow fadeInUp" data-wow-duration="2s"><?php echo $candidatesDetails->post_title; ?></h5>
<!-- <p class=" wow fadeInUp" data-wow-duration="2s"><b>#</b> ID: 342435</p> -->
<p class=" wow fadeInUp" data-wow-duration="2s"><i class="fas fa-map-marker-alt"></i> City: <?php echo $candidatesCity; ?></p>
<?php if($cc>0) { ?><p class=" wow fadeInUp" data-wow-duration="2s"><i class="fas fa-tag"></i>Category: <?php echo $cats; ?><?php } ?>
</p>
<?php if($cc1>0) { ?><p class=" wow fadeInUp" data-wow-duration="2s"><i class="fas fa-user-friends"></i>Employment Type: <?php echo $catsempType; ?></p><?php } ?>
<hr class="mb-5">
<h5 class="heading05 text-blue font-weight-6 wow fadeInUp" data-wow-duration="2s">Job description</h5>
<div class="dang-inner-html">
<?php echo $candidatesDetails->post_content; ?>
<div class="text-right">
<button class="btn btn-blue text-uppercase mt-2 wow fadeInUp animated" data-wow-duration="2s" data-toggle="modal" data-target="#sendInquiryModal">Send Inquiry</button>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'template-parts/footer-upper-content.php';?>
</div>
</div>
</div>
</div>
</section>
<!--FInd Talent-->
<!-- Send Inquiry Modal -->
<div class="modal fade" id="sendInquiryModal" tabindex="-1" role="dialog" aria-labelledby="sendInquiryModal" aria-hidden="true">
<?php echo do_shortcode('[contact-form-7 id="238" title="Send Inquiry"]'); ?>
</div>
<!-- /Send Inquiry Modal -->
<?php endwhile; ?>
<?php get_footer(); ?>
<script type="text/javascript">
$(document).ready(function() {
$("#apply_filter").click(function() {
$("#frm_talent_search").submit();
});
});
</script>