This repository has been archived by the owner on Mar 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-homepage.php
executable file
·295 lines (282 loc) · 11.2 KB
/
page-homepage.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<?php
/* Template Name: Homepage */
get_header();
$portfolios = new WP_Query( array(
'post_type' => 'works',
'posts_per_page' => 16,
'order' => 'asc',
'order_by' => 'date'
) );
$portfolios_count = 0;
$testimonials = new WP_Query( array(
'post_type' => 'testimonials',
'posts_per_page' => 3,
'order' => 'asc',
'order_by' => 'date'
));
$clients = new WP_Query(array(
'post_type' => 'clients',
'posts_per_page' => 16,
'order' => 'asc',
'order_by' => 'date'
));
?>
<main class="main">
<!-- hero block -->
<div class="hero-block">
<div class="container">
<div class="row">
<div class="col-sm-8">
<h1><?php _e('HANDCRAFTED DIGITAL PLATFORMS', 'jindatheme') ?></h1>
<h2><?php _e('By software lovers', 'jindatheme') ?></h2>
</div>
<div class="col-sm-4">
</div>
</div>
<img data-src="<?php echo get_template_directory_uri() ?>/img/hero-image.png" class="hero-image lazy" alt="JindaTheme" />
</div>
</div>
<!-- intro -->
<div class="lead-section-block">
<div class="container">
<h2>JINDATHEME</h2>
<p><?php _e('We create beautiful products people love to use', 'jindatheme') ?></p>
</div>
</div>
<!-- features -->
<div class="featured-block">
<div class="container">
<div class="row">
<div class="col-sm-4">
<div class="featured-card">
<figure>
<img data-src="<?php echo get_template_directory_uri() ?>/img/gif/website.gif" alt="Web development" class="lazy" />
<span class="grey-background"></span>
</figure>
<div class="featured-content">
<p class="_title"><?php _e('Responsive Website', 'jindatheme') ?></p>
<p class="_description">
<?php _e('Super neat fully responsive website that fits all screens. Our experts will help transform your idea into a perfect gem', 'jindatheme') ?>
</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="featured-card">
<figure>
<img data-src="<?php echo get_template_directory_uri() ?>/img/gif/app.gif" alt="Application" class="lazy" />
<span class="grey-background"></span>
</figure>
<div class="featured-content">
<p class="_title"><?php _e('Mobile App', 'jindatheme') ?></p>
<p class="_description">
<?php _e('Reach your business goals with superfine iOS and Android apps, ease of use and super (user) friendly experience!', 'jindatheme') ?>
</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="featured-card">
<figure>
<img data-src="<?php echo get_template_directory_uri() ?>/img/gif/consult.gif" alt="Consulting" class="lazy" />
<span class="grey-background"></span>
</figure>
<div class="featured-content">
<p class="_title"><?php _e('Consulting', 'jindatheme') ?></p>
<p class="_description">
<?php _e('We provide sound advice for our customers on IT infrastructure, software development, go-to-market strategies and much more', 'jindatheme') ?>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- imagery -->
<div class="imagery-block" id="works">
<div class="container">
<div class="row">
<div class="col-sm-7">
<img data-src="<?php echo get_template_directory_uri() ?>/img/works-image.png" class="img-responsive work-imagery lazy" alt="Works" />
</div>
<div class="col-sm-5">
<div class="content">
<h3 class="main-header"><?php _e('Our Clients', 'jindatheme') ?></h3>
<p>
<?php _e('It’s good to be a part of your success, but we are over the moon when your customers tell you they love to use your web and mobile app.', 'jindatheme') ?>
</p>
<ul class="clients-list list-unstyled">
<?php if ($clients->have_posts()): while ($clients->have_posts()): $clients->the_post(); ?>
<li><img data-src="<?php echo has_post_thumbnail() ? get_the_post_thumbnail_url($post->ID, 'full') : 'https://www.placehold.it/115x50' ?>" class="client-image lazy" alt="<?php the_title(); ?>" /></li>
<?php endwhile; wp_reset_postdata(); endif; ?>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- portfolio -->
<div class="portfolio-block" id="portfolio">
<div class="container">
<div class="owl-carousel owl-theme">
<?php if ( $portfolios->have_posts() ) : while ( $portfolios->have_posts() ) : $portfolios->the_post(); $portfolios_count++ ?>
<?php if ($portfolios_count % 2 != 0): ?>
<div class="portfolio-card">
<figure>
<a href="<?php echo has_post_thumbnail() ? get_the_post_thumbnail_url($post->ID, 'full') : 'https://www.placehold.it/540x540' ?>" class="image-popup" title="<?php the_title(); ?>">
<img data-src="<?php echo has_post_thumbnail() ? get_the_post_thumbnail_url($post->ID, 'jindatheme-portfolio-cover') : 'https://www.placehold.it/540x540' ?>" class="img-responsive owl-lazy" alt="<?php the_title(); ?>" />
</a>
</figure>
<div class="portfolio-content">
<p class="_title"><?php the_title(); ?></p>
<p class="_category"><?php the_field('type'); ?></p>
<p class="_link"><?php the_field('link'); ?></p>
</div>
</div>
<?php else: ?>
<div class="portfolio-card invert">
<div class="portfolio-content">
<p class="_title"><?php the_title(); ?></p>
<p class="_category"><?php the_field('type'); ?></p>
<p class="_link"><?php the_field('link'); ?></p>
</div>
<figure>
<a href="<?php echo has_post_thumbnail() ? get_the_post_thumbnail_url($post->ID, 'full') : 'https://www.placehold.it/540x540' ?>" class="image-popup" title="<?php the_title(); ?>">
<img data-src="<?php echo has_post_thumbnail() ? get_the_post_thumbnail_url($post->ID, 'jindatheme-portfolio-cover') : 'https://www.placehold.it/540x540' ?>" class="img-responsive owl-lazy" alt="<?php the_title(); ?>" />
</a>
</figure>
</div>
<?php endif ?>
<?php endwhile; wp_reset_postdata(); endif; ?>
</div>
</div>
</div>
<!-- testimonial -->
<div class="testimonial-block" id="testimonials">
<div class="container">
<h3 class="main-header"><?php _e('Testimonials', 'jindatheme') ?></h3>
<div class="row">
<?php if ($testimonials->have_posts()): while($testimonials->have_posts()): $testimonials->the_post(); ?>
<!-- people card -->
<div class="col-sm-4">
<div class="testimonial-card">
<img data-src="<?php echo has_post_thumbnail() ? get_the_post_thumbnail_url() : 'https://www.placehold.it/140x262' ?>" class="eq-content lazy" alt="<?php the_title(); ?>" />
<div class="content eq-content">
<p class="_name"><?php the_title(); ?></p>
<p class="_title"><?php the_field('title') ?></p>
<p class="_description"><?php the_field('quote') ?></p>
</div>
<div class="clearfix"></div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); endif; ?>
</div>
</div>
</div>
<!-- about -->
<div class="about-block" id="about">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h3 class="main-header">JindaTeam</h3>
<p>
<?php _e('We are young and passionate developers, who want to build great software for a better internet.', 'jindatheme') ?>
</p>
<blockquote class="quote">
The only way to do great work is to love what you do
</blockquote>
<p class="quote-by">— Steve Jobs</p>
</div>
<div class="col-sm-6">
<div class="team-info-block">
<div class="row">
<div class="col-sm-6">
<div class="avatar-left-block">
<img data-src="<?php echo get_template_directory_uri() ?>/img/avatar-product.png" alt="Product Lead" class="lazy" />
<div class="team-info">
<p class="_name">Jirayu Limjinda</p>
<p class="_title"><?php _e('Product Lead', 'jindatheme') ?></p>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="col-sm-6">
<div class="avatar-left-block">
<img data-src="<?php echo get_template_directory_uri() ?>/img/avatar-technical.png" alt="Product Lead" class="lazy" />
<div class="team-info">
<p class="_name">Pawit Khid-arn</p>
<p class="_title"><?php _e('Technical Lead', 'jindatheme') ?></p>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<div class="expertise-block">
<h3 class="block-header">
<img data-src="<?php echo get_template_directory_uri() ?>/img/icon-expertise.png" alt="Our Expertise" class="lazy" />
<?php _e('Our Expertise', 'jindatheme') ?>
</h3>
<div class="expertise-row">
<span>Ruby on Rails</span>
<div class="percentage-bar rails"></div>
<div class="clearfix"></div>
</div>
<div class="expertise-row">
<span>WordPress</span>
<div class="percentage-bar wordpress"></div>
<div class="clearfix"></div>
</div>
<div class="expertise-row">
<span>UI/UX Design</span>
<div class="percentage-bar uiux"></div>
<div class="clearfix"></div>
</div>
<div class="expertise-row">
<span>Responsive Website</span>
<div class="percentage-bar responsive"></div>
<div class="clearfix"></div>
</div>
<div class="expertise-row">
<span>Jolliness</span>
<div class="percentage-bar happiness"></div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- map -->
<div class="map-block">
<div id="map-canvas"></div>
<div class="map-contact">
<h3 class="main-header"><?php _e('Contact Us', 'jindatheme') ?></h3>
<p><?php the_field('address', 'option') ?></p>
<ul class="contact-list">
<li><strong><?php _e('Email', 'jindatheme') ?>:</strong> <?php the_field('email', 'option') ?></li>
<li><strong><?php _e('Tel', 'jindatheme') ?>:</strong> <?php the_field('phone_number', 'option') ?></li>
</ul>
<ul class="social-list list-unstyled">
<?php if (get_field('enable_facebook', 'option')): ?>
<li><a href="<?php the_field('facebook_url', 'option') ?>" target="_blank" title="JindaTheme on Facebook"><span class="i-facebook"></span></a></li>
<?php endif ?>
<?php if (get_field('enable_github', 'option')): ?>
<li><a href="<?php the_field('github_url', 'option') ?>" target="_blank" title="JindaTheme on Github"><span class="i-github"></span></a></li>
<?php endif ?>
<?php if (get_field('enable_instagram', 'option')): ?>
<li><a href="<?php the_field('instagram_url', 'option') ?>" target="_blank" title="JindaTheme on Instagram"><span class="i-instagram"></span></a></li>
<?php endif ?>
</ul>
<ul class="addon-button-list list-unstyled">
<?php if (get_field('enable_line', 'option')): ?>
<li><a href="<?php the_field('line_url', 'option') ?>" target="_blank"><img data-src="<?php echo get_template_directory_uri() ?>/img/line-add.png" alt="Add line" class="lazy"></a></li>
<?php endif; ?>
<li><a href="https://www.trustmarkthai.com/callbackData/popup.php?data=42c-38-5-6a926038faaeaea2f57cb8fb483d469abf92522522" title="DBD trustmarkthai" target="_blank"><span class="i-dbd"></span></a></li>
</ul>
</div>
<div class="clearfix"></div>
</div>
</main>
<?php get_footer(); ?>