generated from render-examples/wordpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-single-job_listing.php
51 lines (45 loc) · 1.17 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
45
46
47
48
49
50
51
<?php
/**
* Single job listing.
*
* This template can be overridden by copying it to yourtheme/job_manager/content-single-job_listing.php.
*
* @see https://wpjobmanager.com/document/template-overrides/
* @author Automattic
* @package wp-job-manager
* @category Template
* @since 1.0.0
* @version 1.28.0
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
global $post;
?>
<div class="single_job_listing">
<?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="job_description">
<?php wpjm_the_job_description(); ?>
</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>