-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-jobs.php
executable file
·102 lines (86 loc) · 3.36 KB
/
template-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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/* Template Name: Jobs Seite */
get_header();
if (have_posts()) : while (have_posts()) : the_post();
$bigHeaderHeadline = get_field('bigHeaderHeadline');
$galleryImgs = get_field('bigHeaderSlider');
$infoAreaImg = get_field('infoAreaImg');
$infoAreaContent = get_field('infoAreaContent');
$offer = get_field('offer');
$notOffer = get_field('notOffer');
$bringWithContent = get_field('bringWithContent');
$bringWithImg = get_field('bringWithImg');
$theContent = get_the_content();
$theContentClass = 'mt-4';
$h1 = get_the_title();
if(isset($bigHeaderHeadline) && $bigHeaderHeadline != '') {
$h1 = $bigHeaderHeadline;
} else if(is_404()){
$h1 = _x( 'Die Seite wurde leider nicht gefunden', 'vca' );
}
if (isset($galleryImgs) && is_array($galleryImgs) && count($galleryImgs) > 0) {
$theContentClass = ' hasHeaderImg';
}
if(isset($theContent) && $theContent != '' || isset($h1) && $h1 !== ''){ ?>
<section id="theContent" class="my-2 my-md-3 my-lg-4 <?php echo $theContentClass; ?>">
<div class="container">
<div class="row">
<div class="col col-md-12">
<div class="contentContainer">
<h1><?php echo $h1 ?></h1>
<?php the_content(); ?>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</section>
<?php }
if (isset($infoAreaContent) && $infoAreaContent !== '' && isset($infoAreaImg) && $infoAreaImg !== '') { ?>
<section id="infoArea" class="my-2 my-md-3 my-lg-4">
<?php get_template_part('template-parts/imgText', null,
array(
'img' => $infoAreaImg,
'content' => $infoAreaContent,
'class' => 'right smaller',
'bottle' => false
)
); ?>
</section>
<?php }
if (isset($offer) && $offer !== '' && isset($notOffer) && $notOffer !== '') { ?>
<section id="offer" class="my-2 my-md-3 my-lg-4 py-3 blue">
<div class="container">
<div class="row">
<div class="col-md-6 mb-3 mb-md-0">
<div class="offer">
<?php echo $offer; ?>
</div>
</div>
<div class="col-md-6">
<div class="notOffer">
<?php echo $notOffer; ?>
</div>
</div>
</div>
</div>
</section>
<?php }
if (isset($bringWithContent) && $bringWithContent !== '' && isset($bringWithImg) && $bringWithImg !== '') { ?>
<section id="bringWith" class="my-2 my-md-3 my-lg-4">
<?php get_template_part('template-parts/imgText', null,
array(
'img' => $bringWithImg,
'content' => $bringWithContent,
'class' => 'left smaller',
'bottle' => false
)
); ?>
</section>
<?php }
include('template-parts/bellowPost.php');
endwhile;
else:
get_template_part('template-parts/noContent');
endif;
get_footer(); ?>