HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/panigaletech.com/wp-content/themes/panigale/template-parts/find-talent.php
<?php
/**
 * Template Name: Find talent Page
 *
 * @package WordPress
 * @subpackage Twenty_Fourteen
 * @since Twenty Fourteen 1.0
 */
 get_header(); 
?>

<!--FInd Talent-->
<section class="inner-section mb-3">
    <div class="container-fluid">
      <div class="row">
      <?php while ( have_posts() ) : the_post(); ?>
        <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"><?php echo the_title(); ?></h2>
          <p class=" wow fadeInUp" data-wow-duration="2s"><?php the_content(); ?></p>
        </div>
      <?php endwhile; ?>
        <div class="col-lg-10 offset-lg-1 mt-5">
          <div class="row">
            <?php include '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">
                <?php if($total_no_of_candidates> 0) { ?><div class="result"><?php echo $total_no_of_candidates; ?> Results</div><?php } ?>
                <div class="short-by">
                  <div class="form-group mb-0">
                    <label for="staticEmail" class="col-form-label">Sort by </label>
                    <select class="form-control" name="sort_by" id="sort_by">
                      <option value=""></option>
                      <option value="date" <?php if($search_sort_by == 'date'){ echo 'selected="selected"';}?>>Date added</option>
                      <option value="title" <?php if($search_sort_by == 'title'){ echo 'selected="selected"';}?>>Title</option>
                    </select>
                  </div>
                </div>
              </div>
              
              <?php
							if(!empty($employments )){
							?>
              <div class="row findtalent-post">
                <!--Blog 1-->
                <?php 
                  foreach($employments as $key=>$value){
                ?>
                <div class="col-lg-4 col-md-12">
                  <div class="card wow fadeInUp" data-wow-duration="2s">
                    <a href="<?php echo get_permalink($value->ID); ?>"><?php echo $value->post_title; ?></a>
                  <?php if (!empty(get_field( "city", $value->ID ))) { ?><p><i class="fas fa-map-marker-alt"></i><?php echo get_field( "city", $value->ID ) ?></p> <?php } ?>
                    <p><i class="fas fa-tag"></i>
                    <?php $product_terms = wp_get_object_terms( $value->ID,  'industry' )[0]->name;
                    echo string_part($product_terms, 70); 
                    // echo "<pre>";
                    // print_r($product_terms);
                    // echo "</pre>";
                    ?></p>
                  </div>
                </div>
                  <?php } ?>
               <!--End Blog 1-->
              </div>
              <?php } else { ?>
                <div class="row findtalent-post">
                <p>No candidates found</p>
                </div>
              <?php } ?>
               
            </div>
            <?php include 'footer-upper-content.php';?>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!--FInd Talent-->
  

<?php get_footer(); ?>
<script type="text/javascript">
 
$(document).ready(function() {
	$("#apply_filter").click(function() {
		$("#frm_talent_search").submit();
		
    });
	$("#sort_by").change(function() {
		$("#search_sort_by").val($("#sort_by").val());
		$("#frm_talent_search").submit();
		
    });
});
</script>