-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-single-job_listing.php
44 lines (41 loc) · 1.82 KB
/
content-single-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
<?php global $post; ?>
<div class="single_job_listing" itemscope itemtype="http://schema.org/JobPosting">
<meta itemprop="title" content="<?php echo esc_attr( $post->post_title ); ?>" />
<?php if ( get_option( 'job_manager_hide_expired_content', 1 ) && 'expired' === $post->post_status ) : ?>
<div class="job-manager-info"><?php _e( 'This listing has expired.', 'wp-job-manager' ); ?></div>
<?php else : ?>
<?php
/**
* single_job_listing_start hook
*
* @hooked job_listing_meta_display - 20
* @hooked job_listing_company_display - 30
*/
do_action( 'single_job_listing_start' );
?>
<div class="page-header">
<h2 class="page-title"><?php echo the_title(); ?></h2>
<h3 class="page-subtitle">
<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>
<li class="location"><?php the_job_location( false ); ?></li>
<?php do_action( 'job_listing_meta_end' ); ?>
</ul>
</h3>
</div>
<div class="job_description" itemprop="description">
<?php echo apply_filters( 'the_job_description', get_the_content() ); ?>
</div>
<?php if ( candidates_can_apply() ) : ?>
<?php get_job_manager_template( 'job-application.php' ); ?>
<?php endif; ?>
<?php
/**
* single_job_listing_end hook
*/
do_action( 'single_job_listing_end' );
?>
<?php endif; ?>
</div>