-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-job.php
87 lines (73 loc) · 2.88 KB
/
single-job.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* The Template for displaying all single posts
*/
get_header();
?>
<div id="primary" class="site-content">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
global $post;
?>
<div class="large-title bg-green">
<div class="wrap">
<div class="large-title-icon bg-green">
<img src="/wp-content/uploads/2011/12/iconnwcua.png" alt="NWCUA Job Listing (Individual)">
</div>
<div class="large-title-text">
<h1><?php the_title(); ?></h1>
</div>
</div>
</div>
<div id="content" class="wrap group content-two-column" role="main">
<div class="quarter sidebar">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('page-sidebar-jobssidebar') ) : ?><!-- no sidebar --><?php endif; ?>
</div>
<div class="three-quarter">
<div class="third right job-info">
<?php
// display credit union name
print ( has_cmb_value( 'job_company' ) ? "<p><strong>Credit Union:</strong><br> " . get_cmb_value( 'job_company' ) . "</p>" : '' );
// display region
print ( has_cmb_value( 'job_region' ) ? "<p><strong>Region:</strong> " . get_cmb_value( 'job_region' ) . "</p>" : '' ) ;
// display job type
print ( has_cmb_value( 'job_type' ) ? "<p><strong>Type:</strong> " . get_cmb_value( 'job_type' ) . "</p>" : '' );
?>
<?php if ( has_cmb_value( 'job_contact_name' ) ) { ?>
<p>
<?php print ( has_cmb_value( 'job_contact_name' ) ? "<strong>Contact:</strong> " . get_cmb_value( 'job_contact_name' ) . '<br>' : '' ); ?>
<?php print ( has_cmb_value( 'job_contact_email' ) ? '<strong>Email:</strong> <a href="' . get_cmb_value( 'job_contact_email' ) . '">' . get_cmb_value( 'job_contact_email' ) . '</a><br>' : '' ); ?>
<?php print ( has_cmb_value( 'job_contact_phone' ) ? '<strong>Phone:</strong> ' . get_cmb_value( 'job_contact_phone' ) . '<br>' : '' ); ?>
<?php print ( has_cmb_value( 'job_contact_fax' ) ? "<strong>Fax:</strong> " . get_cmb_value( 'job_contact_fax' ) . "<br>" : '' ); ?>
</p>
<?php } ?>
<?php
// display job type
print ( has_cmb_value( 'job_expires' ) ? "<p><strong>Closing:</strong> " . date( "n/j/Y", strtotime( get_cmb_value( 'job_expires' ) ) ) . "</p>" : '' );
?>
</div>
<p><strong>Job Description:</strong></p>
<?php the_content(); ?>
<br>
<?php
if ( has_cmb_value( 'job_education' ) ) {
print "<p><strong>Education/Experience Required:</strong></p>";
print apply_filters( 'the_content', get_cmb_value( 'job_education' ) ) . "<br>";
}
if ( has_cmb_value( 'job_comments' ) ) {
print "<p><strong>Additional Comments:</strong></p>";
print apply_filters( 'the_content', get_cmb_value( 'job_comments' ) ) . "<br>";
}
edit_job_form();
?>
</div>
</div><!-- #content -->
<?php
endwhile;
endif;
?>
</div><!-- #primary -->
<?php
get_footer();
?>