-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-jobs.php
80 lines (73 loc) · 3.26 KB
/
archive-jobs.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
<?php
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
// Set global var $pagename according to static related page
global $pagename;
$pagename = 'jobs';
?>
<?php get_header(); ?>
<div class="fusion-builder-row fusion-row ">
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_2 fusion-one-half fusion-column-first 1_2" style="width:50%;width:calc(50% - ( ( 1% + 1% ) * 0.5 ) );margin-right: 1%;">
<div class="fusion-column-wrapper">
<?php the_field('jobs_settings_content', 'option'); ?>
<div class="fusion-clearfix"></div>
</div>
</div>
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_2 fusion-one-half fusion-column-last 1_2" style="width:50%;width:calc(50% - ( ( 1% + 1% ) * 0.5 ) );margin-right: 1%;">
<div class="fusion-column-wrapper">
<?php $image = get_field('jobs_settings_side_image', 'option');
if( !empty($image) ): ?>
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
<?php endif; ?>
<div class="fusion-clearfix"></div>
</div>
</div>
</div>
<?php while ( have_posts() ) : the_post(); ?>
<div id="jobs" <?php Avada()->layout->add_style( 'content_style' ); ?>>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php echo wp_kses_post( fusion_render_rich_snippets_for_pages() ); ?>
<div class="post-content jobs">
<div class="fusion-builder-row fusion-row ">
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_2 fusion-one-half fusion-column-first 1_2" style="width:50%;width:calc(50% - ( ( 1% + 1% ) * 0.5 ) );margin-right: 1%;">
<div class="fusion-column-wrapper">
<?php include('partials/ACFfusionSlider.php'); ?>
<div class="fusion-clearfix"></div>
</div>
</div>
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_4 fusion-one-fourth 1_4" style="width:25%;width:calc(25% - ( ( 1% + 1% ) * 0.25 ) );margin-right: 1%;">
<div class="fusion-column-wrapper">
<div class="job-content">
<div class="job-title">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="job-description">
<?php the_field('description'); ?>
</div>
</div>
<div class="fusion-clearfix"></div>
</div>
</div>
<div class="fusion-layout-column fusion_builder_column fusion_builder_column_1_4 fusion-one-fourth fusion-column-last 1_4" style="width:25%;width:calc(25% - ( ( 1% + 1% ) * 0.25 ) );">
<div class="fusion-column-wrapper">
<div class="job-text">
<?php the_excerpt(); ?>
</div>
<a class="button default-button" target="_blank" href="<?php the_permalink(); ?>">
Read More
</a>
<div class="fusion-clearfix"></div>
</div>
</div>
</div>
<?php fusion_link_pages(); ?>
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
</div>
<?php do_action( 'avada_after_content' ); ?>
<?php get_footer();
/* Omit closing PHP tag to avoid "Headers already sent" issues. */