-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-job_listing.php
26 lines (26 loc) · 1.29 KB
/
content-job_listing.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php global $post; ?>
<li <?php job_listing_class(); ?> data-longitude="<?php echo esc_attr( $post->geolocation_lat ); ?>" data-latitude="<?php echo esc_attr( $post->geolocation_long ); ?>">
<a href="<?php the_job_permalink(); ?>" class="job_listing-clickbox">
<div class="job_listing-logo">
<?php the_company_logo(); ?>
</div>
<div class="job_listing-about">
<div class="job_listing-position job_listing__column">
<h3 class="job_listing-title"><?php the_title(); ?></h3>
<div class="job_listing-company">
<?php the_company_name( '<strong>', '</strong> ' ); ?>
<?php the_company_tagline( '<span class="tagline">', '</span>' ); ?>
</div>
</div> <!-- position -->
<div class="job_listing-location job_listing__column">
<?php the_job_location( false ); ?>
</div>
<ul class="job_listing-meta job_listing__column">
<?php do_action( 'job_listing_meta_start' ); ?>
<li class="job-type <?php echo get_the_job_type() ? sanitize_title( get_the_job_type()->slug ) : ''; ?>"><?php the_job_type(); ?></li>
<li class="date"><date><?php printf( __( '%s ago', 'wp-job-manager' ), human_time_diff( get_post_time( 'U' ), current_time( 'timestamp' ) ) ); ?></date></li>
<?php do_action( 'job_listing_meta_end' ); ?>
</ul>
</div> <!-- job listing about -->
</a>
</li>