-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-our-people.php
174 lines (124 loc) · 5.98 KB
/
page-our-people.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<?php get_header(); ?>
<div class="content">
<?php $banner = get_field('about_page_banner'); ?>
<div class="pg_banner" style="background-image: url('<?php echo $banner['url']; ?>')">
<div class="overlay"></div>
</div>
<div class="pg_wrap">
<div class="section sec_bot">
<div class="inner-wrap -js_anime">
<div class="pg_title">Our People</div>
<div class="news_sort -js_anime">
<ul class="clearfix">
<li><a href="<?php echo site_url('/our-people'); ?>/#overview">Overview</a></li>
<li><a href="<?php echo site_url('/our-people'); ?>/#verraki">Why Verraki</a></li>
<li><a href="<?php echo site_url('/our-people'); ?>/#professionals">Professionals</a></li>
<li><a href="<?php echo site_url('/our-people'); ?>/#students">Students & Graduates</a></li>
<li><a href="<?php echo site_url('/our-people'); ?>/#apply">Apply Now</a></li>
</ul>
</div>
<div class="row-t">
<?php $overview = get_field('overview')?>
<div class="sec_cap -js_anime" id="overview"><?php echo $overview['section_title']; ?></div>
<div class="major_cap"><?php echo $overview['major_caption']; ?></div>
<div class="det_text s_line">
<p><?php echo $overview['sub_text']; ?></p>
</div>
<div class="col_photo">
<img src="<?php echo $overview['photo'] ?>" />
</div>
<div class="col_inner">
<?php $verraki = get_field('why_verraki')?>
<div class="sec_cap -js_anime" id="verraki"><?php echo $verraki['section_title']; ?></div>
<div class="major_cap"><?php echo $verraki['major_caption']; ?></div>
<div class="det_text s_line">
<p><?php echo $verraki['sub_caption']; ?></p>
</div>
</div>
</div>
</div>
</div>
<?php $professionals = get_field('professionals')?>
<div class="pop_row">
<div class="png_photo">
<img src="<?php echo $professionals['photo'] ?>" />
</div>
<div class="q_wrap">
<div class="q_det">
<i class="fa fa-quote-right" aria-hidden="true"></i>
<div class="q_text">
<div class="q_cap"><?php echo $professionals['testimony'] ?></div>
<div class="q_author"><?php echo $professionals['author'] ?></div>
</div>
</div>
</div>
</div>
<div class="section grey_sec sec_bot">
<div class="inner-wrap">
<div class="sec_cap -js_anime" id="professionals"><?php echo $professionals['section_title'] ?></div>
<div class="major_cap"><?php echo $professionals['major_caption'] ?></div>
<div class="det_text"><p><?php echo $professionals['sub_caption'] ?></p></div>
</div>
</div>
<?php $students = get_field('students_and_graduates')?>
<div class="pop_row grey_sec">
<div class="png_photo">
<img src="<?php echo $students['photo'] ?>" />
</div>
<div class="q_wrap">
<div class="q_det">
<i class="fa fa-quote-right" aria-hidden="true"></i>
<div class="q_text">
<div class="q_cap"><?php echo $students['testimony'] ?></div>
<div class="q_author"><?php echo $students['author'] ?></div>
</div>
</div>
</div>
</div>
<div class="section grey_sec">
<div class="inner-wrap">
<div class="sec_cap -js_anime" id="students"><?php echo $students['section_title'] ?></div>
<div class="major_cap"><?php echo $students['major_caption'] ?></div>
<div class="det_text"><?php echo $students['sub_caption'] ?></div>
</div>
</div>
<div class="section">
<div class="inner-wrap">
<?php $apply = get_field('students_and_graduates')?>
<div class="sec_cap -js_anime" id="apply"><?php echo $apply['section_title'] ?></div>
<div class="major_cap"><?php echo $apply['major_caption'] ?></div>
<div class="car_hld">
<?php
$args = array(
'post_type' => 'positions'
);
$position = new WP_Query($args);
while($position->have_posts()) {
$position->the_post();
?>
<div class="car_wrap">
<div class="ic">
<div class="car_title"><?php echo the_title(); ?></div>
<div class="car_loc"><?php echo get_post_meta(get_the_ID(), 'location', true); ?></div>
<div class="car_type"><?php echo get_post_meta(get_the_ID(), 'position_type', true); ?></div>
</div>
<div class="car_det">
<div class="car_text">
<?php $date = get_post_meta(get_the_ID(), 'date_posted', true)?>
<div class="car_date">Posted on <?php echo date('F d, Y', strtotime($date)); ?></div>
<div class="sub_h">What we are looking for</div>
<div class="det_text">
<p><?php echo get_post_meta(get_the_ID(), 'position_details', true); ?></p>
</div>
</div>
</div>
</div>
<?php
} wp_reset_query();
?>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>