-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-careers.php
440 lines (192 loc) · 10.2 KB
/
page-careers.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<?php
/**
* Template Name: Careers
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other "pages" on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage MicroAgility
* @since Micro Agility 1.0
*/
get_header(); ?>
<?php
$url = "http://iagility.com/xml/jobs.php?department=3";
// department =3 means MicroAgility As an Agency name
$url_link = "http://iagility.com/";
$response = wp_remote_get($url);
// echo "<pre>";
// print_r($response);
// echo "</pre>";
$body = wp_remote_retrieve_body($response);
$parsed_json = json_decode($body, true);
?>
<div class="inner-banner about" style="background-image : url('<?php the_field('careers_page_banner_image');?>')">
<div class="container">
<div class="col-5">
<h2><?php the_field('careers_page_banner_heading'); ?></h2>
<?php the_field('careers_page_content_description'); ?>
</div>
<div class="col-7 border-lft">
<h2><?php the_field('careers_page_banner_text'); ?></h2>
</div>
</div>
</div>
<div class="inner-page-tabs business-solutions">
<div class="container">
<div class="inner-top-above-tabs">
<h1 class="wow fadeInLeft" data-wow-duration="1s" data-wow-delay=".5s"><?php the_field('careers_page_content_heading'); ?></h1>
<p><?php the_field('careers_page_content_description_2'); ?></p>
</div>
<div class="tab-wrap wow fadeIn" data-wow-duration="1s" data-wow-delay=".5s">
<input type="radio" id="tab1" name="tabGroup1" class="tab" checked>
<label for="tab1"><?php the_field('careers_page_tab1_title'); ?></label>
<input type="radio" id="tab2" name="tabGroup1" class="tab">
<label for="tab2"><?php the_field('careers_page_tab2_title'); ?></label>
<input type="radio" id="tab3" name="tabGroup1" class="tab">
<label for="tab3"><?php the_field('careers_page_tab3_title'); ?></label>
<!-- Tab 1 Content -->
<div class="tab__content">
<div class="masnory-card-layout">
<ul class="careers">
<?php
/* $args = array('orderby' => 'id','order' => 'DESC', 'post_type' => 'careers','posts_per_page' => '20' );
$new_query = new WP_Query($args);
if (have_posts()) : while ($new_query -> have_posts()) : $new_query -> the_post(); */
foreach($parsed_json as $rows){
?>
<li>
<h3><?php echo $job_title = $rows['Job_title']; ?></h3>
<span>Location : <?php echo $rows['City_Name'].",".$rows['States']; ?></span>
<div class="job-desc">
<div class="line">
<small>Title : </small><p><?php echo $job_title = $rows['Job_title']; ?></p>
</div>
<div class="line">
<small>Location : </small><p><?php echo $rows['City_Name'].", ".$rows['States']; ?></p>
</div>
<div class="line">
<small>Type : </small><p><?php echo $rows['Job_type']; ?></p>
</div>
<div class="line">
<?php
$ratess= 0;
if($rows['Min_Rate']==0 && $rows['Max_Rate']==0){
$ratess= "Depends On Experience";
}else{
$ratess= "$".$rows['Min_Rate']." - $".$rows['Max_Rate']." per hour";
}
?>
<small>Rate : </small><p><?php echo $ratess; ?></p>
</div>
<div class="line">
<small>Duration : </small><p><?php echo $rows['Duration']; ?></p>
</div>
<div class="line">
<small>Job ID : </small><p><?php echo $job_id = $rows['Job_no']; ?></p>
</div>
<a target="_blank" href="<?php echo $url_link?>job_detail.php?job=<?php echo $rows['Job_ID']; ?>" title="<?php echo $job_title; ?>">Apply Now</a>
</div>
</li>
<?php } ?>
<?php //endwhile;?>
<?php //wp_reset_query();?>
<?php //endif;?>
</ul>
</div>
</div>
<!-- Tab 2 Content -->
<div class="tab__content">
<div class="referal-program-section">
<?php the_field('reffereal_program'); ?>
</div>
</div>
<!-- Tab 3 Content -->
<div class="tab__content">
<div class="referal-program">
<?php the_field('info_content'); ?>
<div class="col-6 ">
<div class="rfral-color-bulet-points rfral-color-1">
<?php the_field('referring_candidates'); ?>
</div>
</div>
<div class="col-6 ">
<div class="rfral-color-bulet-points rfral-color-2">
<?php the_field('referring_a_hiring_authority'); ?>
</div>
</div>
</div>
<!-- <div class="tab-profile-panel">
<div class="col-4">
<div class="feature-post-slider">
<div class="slide-profile">
<?php
$new_query = new WP_Query('post_type=team&posts_per_page=6');
if (have_posts()) : while ($new_query -> have_posts()) : $new_query -> the_post(); ?>
<div>
<img src="<?php echo $team_image = get_field('team_member_image', $post->ID); ?>" alt="">
<h2><?php echo $name_title = get_field('team_name_title', $post->ID); ?> <span><?php echo $post_title = get_field('team_post_title', $post->ID); ?></span></h2>
<?php echo $team_desc = get_field('team_description', $post->ID); ?>
<a href="mailto:<?php echo $team_member_contact_link = get_field('team_contact_email', $post->ID); ?>">Please contact me via email.</a>
</div>
<?php endwhile;?>
<?php wp_reset_query();?>
<?php endif;?>
</div>
</div>
</div>
<div class="col-8">
<div class="list-profiles">
<?php
$new_query = new WP_Query('post_type=team&posts_per_page=6');
if (have_posts()) : while ($new_query -> have_posts()) : $new_query -> the_post(); ?>
<div class="col-4">
<div class="list-single-profile">
<img src="<?php echo $team_image = get_field('team_member_image', $post->ID); ?>" alt="">
<h4><?php echo $team_name = get_field('team_name_title', $post->ID); ?><span><?php echo $team_post = get_field('team_post_title', $post->ID); ?></span></h4>
</div>
</div>
<?php endwhile;?>
<?php wp_reset_query();?>
<?php endif;?>
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
<div class="blog-posts-bottom">
<div class="container">
<div class="blog-posts-slider">
<?php
if( have_rows('careers_add_sliders') ):
while ( have_rows('careers_add_sliders') ) : the_row();
$image = get_sub_field('careers_add_slider_image');
?>
<div class="slider-single-post">
<div class="blog-image" style="background-image : url('<?php the_sub_field('careers_add_slider_image');?>')"></div>
<div class="slider-post-text">
<h4><?php the_sub_field('careers_add_slider_heading'); ?></h4>
<p><?php the_sub_field('careers_add_slider_description'); ?></p>
<a href="<?php the_sub_field('careers_add_slider_redirect_link'); ?>"><?php the_sub_field('careers_add_slider_redirect_text'); ?></a>
</div>
</div>
<?php
endwhile;
else :
// no rows found
endif; ?>
</div>
</div>
</div>
<div class="above-footer-link">
<div class="container">
<h2><?php the_field('business_solutions_abovefooter_heading'); ?></h2>
<a href="<?php the_field('careers_page_abovefooter_button_link'); ?>">
<?php the_field('careers_page_abovefooter_button_text') ?>
</a>
</div>
</div>
<?php get_footer(); ?>