-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-job_listing.php
49 lines (44 loc) · 1.51 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* Job listing in the loop.
*
* This template can be overridden by copying it to yourtheme/job_manager/content-job_listing.php.
*
* @see https://wpjobmanager.com/document/template-overrides/
* @author Automattic
* @package wp-job-manager
* @category Template
* @since 1.0.0
* @version 1.34.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
global $post;
?>
<li <?php job_listing_class(); ?> data-longitude="<?php echo esc_attr( $post->geolocation_long ); ?>" data-latitude="<?php echo esc_attr( $post->geolocation_lat ); ?>">
<a href="<?php the_job_permalink(); ?>">
<?php the_company_logo(); ?>
<div class="position">
<h3><?php wpjm_the_job_title(); ?></h3>
<div class="company">
<?php the_company_name( '<strong>', '</strong> ' ); ?>
<?php the_company_tagline( '<span class="tagline">', '</span>' ); ?>
</div>
</div>
<div class="location">
<?php the_job_location( false ); ?>
</div>
<ul class="meta">
<?php do_action( 'job_listing_meta_start' ); ?>
<?php if ( get_option( 'job_manager_enable_types' ) ) { ?>
<?php $types = wpjm_get_the_job_types(); ?>
<?php if ( ! empty( $types ) ) : foreach ( $types as $type ) : ?>
<li class="job-type <?php echo esc_attr( sanitize_title( $type->slug ) ); ?>"><?php echo esc_html( $type->name ); ?></li>
<?php endforeach; endif; ?>
<?php } ?>
<li class="date"><?php the_job_publish_date(); ?></li>
<?php do_action( 'job_listing_meta_end' ); ?>
</ul>
</a>
</li>