-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
348 lines (335 loc) · 15.5 KB
/
index.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
<?php
require_once("includes/db.php");
$select_query = query("SELECT * FROM home_page;");
confirm($select_query);
while ($row = fetch_array($select_query)) {
$select_hero_subtitle = $row['hero_subtitle_' . $_SESSION["lan"]];
$select_hero_title = $row['hero_title_' . $_SESSION["lan"]];
$select_highlighted_text = $row['highlighted_text_' . $_SESSION["lan"]];
$select_hero_primary_btn_text = $row['hero_primary_btn_text_' . $_SESSION["lan"]];
$select_hero_secondary_btn_text = $row['hero_secondary_btn_text_' . $_SESSION["lan"]];
$select_why_us_subtitle = $row['why_us_subtitle_' . $_SESSION["lan"]];
$select_why_us_title = $row['why_us_title_' . $_SESSION["lan"]];
$select_why_us_description = $row['why_us_description_' . $_SESSION["lan"]];
$select_why_us_btn_text = $row['why_us_btn_text_' . $_SESSION["lan"]];
$select_why_us_element_icon1 = $row['why_us_element_icon1'];
$select_why_us_element_text1 = $row['why_us_element_text1_' . $_SESSION["lan"]];
$select_why_us_element_icon2 = $row['why_us_element_icon2'];
$select_why_us_element_text2 = $row['why_us_element_text2_' . $_SESSION["lan"]];
$select_why_us_element_icon3 = $row['why_us_element_icon3'];
$select_why_us_element_text3 = $row['why_us_element_text3_' . $_SESSION["lan"]];
$select_proejcts_subtitle = $row['proejcts_subtitle_' . $_SESSION["lan"]];
$select_projects_title = $row['projects_title_' . $_SESSION["lan"]];
$select_view_work_btn_text = $row['view_work_btn_text_' . $_SESSION["lan"]];
$select_seo_id = $row['seo_id'];
}
if (!strcmp($select_seo_id, "0")) {
$select_seo_id = 1;
}
$select_seo_query = query("SELECT * FROM seo WHERE id = '{$select_seo_id}'");
confirm($select_seo_query);
while ($seo_row = fetch_array($select_seo_query)) {
$select_seo_page_title = $seo_row['page_title'];
$select_seo_page_description = $seo_row['page_description'];
$select_seo_page_keywords = $seo_row['page_keywords'];
$select_seo_page_image = $seo_row['page_image'];
}
include "includes/header.php";
insert_contact_information();
?>
<!-- Main Body - Start
================================================== -->
<main class="page_content">
<!-- Hero Banner Section - Start
================================================== -->
<section class="hero_banner_section style_6 decoration_wrap">
<div class="container align-self-center">
<div class="row align-items-center">
<div class="col col-lg-6 order-lg-last">
<div class="banner_content_6 mb-5 mb-lg-0">
<h1 class="hero_banner_heading justify-content-start justify-content-lg-center">
<span class="small_title text-center text-lg-start"><?php echo $select_hero_subtitle; ?></span>
<span class="d-block text-center text-lg-start"><?php echo $select_hero_title; ?> <span class="focus_text"><?php echo $select_highlighted_text; ?></span></span>
</h1>
<ul class="btns_group unordered_list justify-content-center justify-content-lg-start">
<li>
<a href="contact" class="bd-btn-link btn_primary">
<span class="bd-button-content-wrapper">
<span class="bd-button-icon">
<i class="fa-light fa-arrow-right-long"></i>
</span>
<span class="pd-animation-flip">
<span class="bd-btn-anim-wrapp">
<span class="bd-button-text"><?php echo $select_hero_primary_btn_text; ?></span>
<span class="bd-button-text"><?php echo $select_hero_primary_btn_text; ?></span>
</span>
</span>
</span>
</a>
</li>
<li>
<a href="services" class="bd-btn-link outline-dark">
<span class="bd-button-content-wrapper">
<span class="bd-button-icon">
<i class="fa-light fa-arrow-right-long"></i>
</span>
<span class="pd-animation-flip">
<span class="bd-btn-anim-wrapp">
<span class="bd-button-text"><?php echo $select_hero_secondary_btn_text; ?></span>
<span class="bd-button-text"><?php echo $select_hero_secondary_btn_text; ?></span>
</span>
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
<div class="col col-lg-6 d-none d-lg-flex">
</div>
</div>
</div>
<div class="deco_item shape_1 d-none d-lg-flex home_hero_deco_item">
<img src="uploads/shapes/shapes-02.svg" alt="Streamline Media Background Shape" width="912px" height="876px">
</div>
</section>
<!-- Hero Banner Section - End
================================================== -->
<!-- Starter Steps Section - Start
================================================== -->
<section class="starter_steps_section section_space_lg pb-0">
<div class="deco_item shado">
<img src="uploads/shapes/shapes-04.svg" alt="Streamline Media Shape">
</div>
<div class="container decoration_wrap">
<div class="row align-items-center">
<div class="col col-lg-6">
<div class="starter_steps_group decoration_wrap mb-4 mg-lg-0">
<ul class="unordered_list">
<li>
<div class="content_wrap wow bounceIn" data-wow-delay=".1s">
<div class="item_icon">
<img class="why_element_icon" src="uploads/images/home/page/<?php echo $select_why_us_element_icon1; ?>" alt="Streamline Media Icon">
</div>
<h3 class="item_title m-0"><?php echo $select_why_us_element_text1; ?></h3>
</div>
</li>
<li>
<div class="content_wrap wow bounceIn" data-wow-delay=".2s">
<div class="item_icon">
<img class="why_element_icon" src="uploads/images/home/page/<?php echo $select_why_us_element_icon2; ?>" alt="Streamline Media Icon">
</div>
<h3 class="item_title m-0"><?php echo $select_why_us_element_text2; ?></h3>
</div>
</li>
<li>
<div class="content_wrap wow bounceIn" data-wow-delay=".3s">
<div class="item_icon">
<img class="why_element_icon" src="uploads/images/home/page/<?php echo $select_why_us_element_icon3; ?>" alt="Streamline Media Icon">
</div>
<h3 class="item_title m-0"><?php echo $select_why_us_element_text3; ?></h3>
</div>
</li>
</ul>
<div class="deco_item shape_1">
<img src="assets/images/shapes/shape_circle_dashed_1.svg" alt="Dashed Circle Shape">
</div>
<div class="deco_item shape_2">
<img src="assets/images/shapes/shape_circle_2.svg" alt="Circle Shape">
</div>
</div>
</div>
<div class="col col-lg-6">
<div class="steps_content_wrapper">
<div class="section_heading mb-5">
<h2 class="heading_subtitle text-uppercase d-flex align-items-center">
<span class="double_icon subtitle-icon" style="background-image: url('uploads/images/header/<?php echo $select_subtitle_icon; ?>');">
</span>
<span><?php echo $select_why_us_subtitle; ?></span>
</h2>
<h3 class="heading_title">
<?php echo $select_why_us_title; ?>
</h3>
<p class="heading_description mb-0">
<?php echo $select_why_us_description; ?>
</p>
</div>
<ul class="btns_group unordered_list justify-content-center justify-content-lg-start">
<li>
<a href="services" class="bd-btn-link btn_primary">
<span class="bd-button-content-wrapper">
<span class="bd-button-icon">
<i class="fa-light fa-arrow-right-long"></i>
</span>
<span class="pd-animation-flip">
<span class="bd-btn-anim-wrapp">
<span class="bd-button-text"><?php echo $select_why_us_btn_text; ?></span>
<span class="bd-button-text"><?php echo $select_why_us_btn_text; ?></span>
</span>
</span>
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="deco_item shape_3 wow fadeInUp" data-wow-delay=".1s">
<img src="uploads/shapes/shapes-04.svg" data-parallax='{"y" : -140, "smoothness": 10}' alt="Shape Streamline Media Circle">
</div>
<div class="deco_item shape_4 wow fadeInDown" data-wow-delay=".1s">
<img src="uploads/shapes/shapes-03.svg" data-parallax='{"y" : 140, "smoothness": 10}' alt="Shape Streamline Media">
</div>
</div>
</section>
<!-- Starter Steps Section - End
================================================== -->
<!-- Client Logo Section - Start
================================================== -->
<?php
$select_clients_query = query("SELECT * FROM clients;");
confirm($select_clients_query);
$display_clients = "";
if(mysqli_num_rows($select_clients_query) < 4){
$display_clients = "d-none";
}
?>
<div class="client_logo_section section_space_lg pb-0 <?php echo $display_clients; ?>">
<div class="container">
<div class="client_logo_carousel_box">
<div class="clients_carousel row">
<?php
$select_query = query("SELECT * FROM clients ORDER BY `priority`;");
confirm($select_query);
while($row = fetch_array($select_query)){
$select_logo = $row['logo'];
$client_option = <<<DELIMITER
<div class="client_logo_item col-3">
<div class="client_logo_image" style="background-image: url('uploads/images/clients/$select_logo');"></div>
</div>
DELIMITER;
echo $client_option;
}
?>
</div>
</div>
</div>
</div>
<!-- Client Logo Section - End
================================================== -->
<!-- Service Section - Start
================================================== -->
<section class="service_section section_space_lg pb-0">
<div class="container">
<div class="row">
<?php
$select_query = query("SELECT * FROM services;");
confirm($select_query);
while($row = fetch_array($select_query)){
$select_service_name = $row['service_name_' . $_SESSION["lan"]];
$select_service_description = $row['service_description_' . $_SESSION["lan"]];
$select_service_icon = $row['service_icon'];
$service_card = <<<DELIMITER
<div class="col col-lg-4 col-md-6 col-sm-6">
<div class="service_item style_1 h-100">
<div class="item_icon">
<img class="service_image" src="uploads/images/services/$select_service_icon">
</div>
<div class="item_content">
<h3 class="item_title">
$select_service_name
</h3>
<p class="item_description mb-0">
$select_service_description
</p>
</div>
</div>
</div>
DELIMITER;
echo $service_card;
}
?>
</div>
</div>
</section>
<!-- Service Section - End
================================================== -->
<!-- Portfolio Section - Start
================================================== -->
<?php
$display_projects = "";
$select_projects_query = query("SELECT * FROM projects ORDER BY priority LIMIT 6;");
confirm($select_projects_query);
if (mysqli_num_rows($select_projects_query) < 1) {
$display_projects = "d-none";
}
?>
<section class="service_section section_space_lg pb-0 <?php echo $display_projects; ?>">
<div class="container">
<div class="section_heading text-center">
<h2 class="heading_subtitle text-uppercase">
<span class="double_icon subtitle-icon" style="background-image: url('uploads/images/header/<?php echo $select_subtitle_icon; ?>');">
</span>
<span><?php echo $select_proejcts_subtitle; ?></span>
</h2>
<h3 class="heading_title mb-0">
<?php echo $select_projects_title; ?>
</h3>
</div>
<div class="services_carousel">
<div class="row common_carousel_3col" data-slick='{"arrows": false, "autoplay:": false}'>
<?php
confirm($select_projects_query);
while ($project_row = fetch_array($select_projects_query)) {
$select_project_name = $project_row['project_name_' . $_SESSION["lan"]];
$select_project_cover_image = $project_row['cover_image'];
$select_project_description = $project_row['project_description_' . $_SESSION["lan"]];
$select_project_category_id = $project_row['project_category'];
$select_projects_category_query = query("SELECT * FROM project_categories WHERE `id` = '{$select_project_category_id}';");
confirm($select_projects_category_query);
$projects_category_row = fetch_array($select_projects_category_query);
$projects_category_slug = $projects_category_row['slug'];
$projects_category_name = $projects_category_row['category_name_en'];
$select_project_slug = $project_row['slug'];
$project_item = <<<DELIMITER
<div class="col carousel_item">
<div class="col element-item $projects_category_slug" >
<div class="portfolio_item layout_grid text-center">
<div class="item_image">
<a href="project/$select_project_slug">
<img src="uploads/images/projects/$select_project_cover_image" alt="Stream Line Media Project Cover Image">
</a>
</div>
<div class="item_content">
<ul class="category_list unordered_list_center">
<li><a href="project/$select_project_slug">$projects_category_name</a></li>
</ul>
<h3 class="item_title mb-0">
<a href="project/$select_project_slug">
$select_project_name
</a>
</h3>
</div>
</div>
</div>
</div>
DELIMITER;
echo $project_item;
}
?>
</div>
</div>
</div>
</section>
<!-- Portfolio Section - End
================================================== -->
</main>
<!-- Main Body - End
================================================== -->
<!-- Site Footer - Start
================================================== -->
<footer class="site_footer style_3 section_space_lg pb-0">
<?php
display_contact_form($gdpr_text);
include "includes/footer.php";
?>