-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfront-page.php
349 lines (340 loc) · 17.4 KB
/
front-page.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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<?php
get_header(); //can use Template part instead of usine all html and css hear , all section can be a on template part
// $general_group = upshotmedia_get_option('upshotmedia_general_group'); // var_dump($cmb_options);
$upshotmedia_slider = upshotmedia_get_option('main_slider');
$upshotmedia_logo_carousel = upshotmedia_get_option('upshotmedia_logo_carousel');
// var_dump($upshotmedia_logo_carousel);to undrestand better the file_list of cmb2
$upshotmedia_Alert_section = upshotmedia_get_option('Alert_section');
$upshotmedia_services = upshotmedia_get_option('upshotmedia_services');
$upshotmedia_services_item = upshotmedia_get_option('services_item');
$upshotmedia_aboutus_section = upshotmedia_get_option('Aboutus_section');
$upshotmedia_section_content_one = upshotmedia_get_option('section_content_one');
$upshotmedia_section_content_two = upshotmedia_get_option('section_content_two');
$upshotmedia_section_content_three = upshotmedia_get_option('section_content_three');
$upshotmedia_review = upshotmedia_get_option('customer_review');
$upshotmedia_background_image = upshotmedia_get_option('review_background_image');
?>
<style>
.customer-review {
background-image: url('<?php echo $upshotmedia_background_image[0]['review_background'] ?>');
padding: 50px 0 50px 0;
}
/* .slider_title {
color: <?php echo $slider_content['slider_title_color'] ?>;
}
.slider_text {
color: <?php echo $slider_content['slider_desc_color'] ?>;
}
.slider_button_style {
color: <?php echo $slider_content['slider_button_name_color'] ?>;
padding: 20px 40px;
border: 1px;
border-color: <?php echo $slider_content['border_color'] ?>;
} */
</style>
<section class="slider_sections">
<div>
<div class="splide" id="splide_slider">
<div class="splide__track">
<ul class="splide__list">
<?php
foreach ($upshotmedia_slider as $slider_content) {
?>
<li class="splide__slide">
<img class="w-100" src="<?php echo $slider_content['slider_image'] ?>" alt="">
<div class="slider_content">
<h2 class="slider_title" style="color:<?php echo $slider_content['slider_title_color']; ?>"><?php echo $slider_content['slider_title'] ?></h2>
<p class="slider_text" style="color:<?php echo $slider_content['slider_desc_color']; ?>"><?php echo $slider_content['slider_desc'] ?></p>
<button class="btn slider_button_style" style=" color: <?php echo $slider_content['slider_button_name_color'] ?>;border-color: <?php echo $slider_content['border_color'] ?>;"><?php echo $slider_content['slider_button_name'] ?></button>
</div>
</li>
<?php
}
?>
<!-- <li class="splide__slide">
<img class="w-100" src="<?php bloginfo('template_url') ?>/assets/images/Photo2.jpg" alt="">
<div class="slider_content">
<h2 class="slider_title">Testing Text2</h2>
<p class="slider_text">لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد</p>
<button class="btn btn-outline-light">Contact With Us</button>
</div>
</li>
<li class="splide__slide">
<img class="w-100" src="<?php bloginfo('template_url') ?>/assets/images/Photo3.jpg" alt="">
<div class="slider_content">
<h2 class="slider_title">Testing Text3</h2>
<p class="slider_text">لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است و برای شرایط فعلی تکنولوژی مورد نیاز و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد</p>
<button class="btn btn-outline-light">Contact With Us</button>
</div>
</li> -->
</ul>
</div>
</div>
</div>
</section>
<section id="covid" class="bg-purple alert-section">
<div class="container">
<div class="row">
<div class="col-12">
<p class="text-center text-light"><?php echo $upshotmedia_Alert_section[0]['Alert_section_content']; ?></p>
</div>
</div>
</div>
</section>
<!-- <section class="headsection">
<div class="row">
<div class="container">
<div class="overlay">
<div class="menubar-text text-center col-12">
<h1 class="text-light mb-4"><?php echo $general_group[0]['Main_title_Text']; ?></h1>
<h2 class="text-light mb-5">A Technology-Focused Design Agency</h2>
<button class="btn btn-outline-light">Contact With Us</button>
</div>
</div>
</div>
</div>
</section> -->
<section id="aboutus" class="bg-black">
<div class="container">
<div class="row">
<div id="aboutustext" class="text-light text-center p-5">
<h5 class="pb-3"><?php echo $upshotmedia_aboutus_section[0]['aboutus_title'] ?></h5>
<p class="pb-5"><?php echo $upshotmedia_aboutus_section[0]['aboutus_content'] ?></p>
<a href="<?php echo $upshotmedia_aboutus_section[0]['ab_button_url'] ?>"><button class="btn btn-outline-light"><?php echo $upshotmedia_aboutus_section[0]['ab_button_text'] ?></button></a>
</div>
</div>
</div>
</section>
<section id="services" class="bg-black">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
<span class="services-mini-text text-light"><?php echo $upshotmedia_services[0]['services_subtitle'] ?></span>
<h2 class="services-title text-light"><?php echo $upshotmedia_services[0]['services_title'] ?></h2>
</div>
<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
<a href="<?php echo $upshotmedia_services[0]['services_button_url'] ?>"><button class="btn btn-outline-light"><?php echo $upshotmedia_services[0]['services_button_text'] ?></button></a>
</div>
</div>
<div class="container">
<div class="services-box">
<div class="row">
<?php
foreach ($upshotmedia_services_item as $item_services) {
?>
<div class="col col-xs-12 col-sm-6 col-md-4 col-lg-4">
<?php
if (isset($item_services['right_line'])) {
$right_border = null;
} else {
$right_border = 'border_right';
}
if (isset($item_services['bottom_line'])) {
$bottom_border = null;
} else {
$bottom_border = 'border_bottom';
}
?>
<div class="service-item <?php echo $right_border . ' ' . $bottom_border ?>">
<i style="color: #ffff;" class="fa <?php echo $item_services['services_icon'] ?>"></i>
<h3><?php echo $item_services['item_title'] ?></h3>
<p><?php echo $item_services['item_text'] ?></p>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</section>
<section id="section_content1" class="bg-gradiant sectionheight">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 ">
<div class="img-figur">
<!-- <img src="<?php bloginfo('template_url'); ?>/assets/images/art-attic-1014x724.png" alt=""> -->
<img src="<?php echo $upshotmedia_section_content_one[0]['content_one_image'] ?>" alt="">
</div>
</div>
<div class="col-md-6">
<div class="text-center text-light">
<h1><?php echo $upshotmedia_section_content_one[0]['title_content_one'] ?></h1>
<p class="pb-4"><?php echo $upshotmedia_section_content_one[0]['Desc_content_one'] ?></p>
<a href="<?php echo $upshotmedia_section_content_one[0]['content_one_button_url'] ?>"><button class="btn btn-outline-light"><?php echo $upshotmedia_section_content_one[0]['content_one_button_text'] ?></button></a>
</div>
</div>
</div>
</div>
</section>
<section class="bg-black black-section">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 col-lg-4">
<div class="text-center text-light">
<h1><?php echo $upshotmedia_section_content_two[0]['title_content_two'] ?></h1>
<p class="pb-4"><?php echo $upshotmedia_section_content_two[0]['Desc_content_two'] ?></p>
<a href="<?php echo $upshotmedia_section_content_two[0]['content_two_button_url'] ?>"><button class="btn btn-outline-light"><?php echo $upshotmedia_section_content_two[0]['content_two_button_text'] ?></button></a>
</div>
</div>
<div class="col-md-4 col-lg-8 ">
<div class="img-figurdark">
<img src="<?php echo $upshotmedia_section_content_two[0]['content_two_image'] ?>" alt="">
</div>
</div>
</div>
</div>
</section>
<section class="blogcarosel">
<div class="container">
<div class="row">
<div class="col-12">
<p class="text-center text-light">Our New Blogs</p>
</div>
<div class="col-12">
<div>
<?php
$args = array(
'post_type' => 'post', // Fetch posts
'posts_per_page' => 5, // Number of posts to display
);
$query = new WP_Query($args);
if ($query->have_posts()) :
?>
<div class="owl-carousel">
<?php while ($query->have_posts()) : $query->the_post(); ?>
<div class="item">
<!-- Display post content here -->
<?php get_template_part('template-parts/post', 'carousel'); ?>
</div>
<?php endwhile; ?>
</div>
<?php
wp_reset_postdata(); // Reset post data query
else :
echo 'No posts found.';
endif;
?>
</div>
</div>
</div>
</div>
</section>
<section class="bg-gradiant sectionheight">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 ">
<div class="img-figur">
<img src="<?php echo $upshotmedia_section_content_three[0]['content_three_image'] ?>" alt="">
</div>
</div>
<div class="col-md-6">
<div class="text-center text-light">
<h1><?php echo $upshotmedia_section_content_three[0]['title_content_three'] ?></h1>
<p class="pb-4"><?php echo $upshotmedia_section_content_three[0]['Desc_content_three'] ?></p>
<a href="<?php echo $upshotmedia_section_content_three[0]['content_three_button_url'] ?>"><button class="btn btn-outline-light"><?php echo $upshotmedia_section_content_three[0]['content_three_button_text'] ?></button></a>
</div>
</div>
</div>
</div>
</section>
<!-- <section class="bg-black black-section">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 col-lg-4">
<div class="text-center text-light">
<h1>ENGAGING VIDEO CONTENT</h1>
<p class="pb-4">We create unique animations and breathtaking live-action movies. In today's tech-driven world, there's no excuse for not having access to the tools to create cinematic video content. And guess what? Our internationally trained team of cinematographers and editors defeat the rest!</p>
<button class="btn btn-outline-light">THINK DIGITAL</button>
</div>
</div>
<div class="col-md-4 col-lg-8 ">
<div class="img-figurdark">
<img src="<?php bloginfo('template_url'); ?>/assets/images/video-1068x1025.jpg" alt="">
</div>
</div>
</div>
</div>
</section> -->
<section class="customer-review">
<div class="container">
<div class="row">
<div id="splide_review" class="splide">
<div class="splide__track">
<div class="splide__list">
<?php foreach ($upshotmedia_review as $customer) { ?>
<div class="splide__slide">
<div class="review">
<p class="customer_review"><?php echo $customer['review'] ?></p>
<div class="customer_info">
<img class="customer_image" src="<?php echo $customer['customer_img'] ?>" alt="">
<span class="customer_name"><?php echo $customer['customer_name'] ?></span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="bg-carosel">
<div class="container">
<div class="row">
<div class="text-light text-center">
<h1>OUR CLIENTS</h1>
</div>
<div class="splide" id="customer_logo">
<div class="splide__track">
<ul class="splide__list">
<?php
foreach ($upshotmedia_logo_carousel[0]['Images_carousel'] as $logo_data) {
?>
<li class="splide__slide"><img class="logo_image" src="<?php echo $logo_data; ?>" alt=""></li>
<?php
}
?>
<!-- <li class="splide__slide"><img src="<?php bloginfo('template_url'); ?>/assets/images/fem-675x421.png" alt=""></li> -->
</ul>
</div>
</div>
</div>
</div>
</section>
<section class="bg-black">
<div class="container">
<div class="row col-12 text-center text-light p-5">
<h2><strong>READY TO WORK WITH US?</strong></h2>
</div>
<form class="p-4" action="" class="form-group" id="fromwidth">
<div class="row">
<div class="col-md-4 form-group">
<label for="" class="form-label text-light d-block">Name</label>
<input type="text" class="form-control">
</div>
<div class="col-md-4 form-group">
<label for="" class="form-label text-light d-block">Email</label>
<input type="email" class="form-control">
</div>
<div class="col-md-4 form-group">
<label for="" class="form-label text-light d-block">Phone</label>
<input type="text" class="form-control">
</div>
<div class="col-12 form-group">
<label for="" class="form-label text-light d-block">Message</label>
<textarea name="" id="" cols="30" rows="8"></textarea>
</div>
</div>
<button class="btn btn-outline-light d-block m-auto mb-3 mt-3">SEND FORM</button>
<div class="text-center">
<input type="checkbox" name="checkbox" id="checkbox_id" value="value">
<label for="checkbox_id" class="text-light">By continuing you agree to our </label><a href="#" class="astyle"> Terms of Service</a>
</div>
</div>
</form>
</div>
</section>
<?php
get_footer();
?>