-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.php
More file actions
134 lines (127 loc) · 4.89 KB
/
home.php
File metadata and controls
134 lines (127 loc) · 4.89 KB
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
<?php
session_start();
require('navbar.php');
$truckMenu = [];
$count = 0;
?>
<body>
<!-- Header Area End -->
<!-- Banner Area Starts -->
<section class="banner-area text-center">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h6><?php echo getTranslate("titre1", $tabLang, $setLanguage); ?></h6>
<h1><?php echo getTranslate("titre2", $tabLang, $setLanguage); ?></h1>
</div>
</div>
</div>
</section>
<!-- Banner Area End -->
<!-- Welcome Area Starts -->
<section class="welcome-area section-padding4">
<div class="container-fluid">
<div class="row">
<div class="col-md-6 align-self-center">
<div class="welcome-img">
<img src="assets/images/welcome-bg.png" class="img-fluid" alt="">
</div>
</div>
<div class="col-md-6 align-self-center">
<div class="welcome-text mt-5 mt-md-0">
<h3>
<span class="style-change"><?php echo getTranslate("bienvenue", $tabLang, $setLanguage); ?></span> <?php echo getTranslate("chez", $tabLang, $setLanguage); ?>
</h3>
<p class="pt-3"><?php echo getTranslate("descriptionHome", $tabLang, $setLanguage); ?></p>
<a href="./viewTrucks.php"
class="template-btn mt-3"><?php echo getTranslate("voirTruck", $tabLang, $setLanguage); ?></a>
</div>
</div>
</div>
</div>
</section>
<!-- Welcome Area End -->
<!-- Reservation Area Starts -->
<div class="reservation-area section-padding text-center">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2><?php echo getTranslate("titreMenuHome", $tabLang, $setLanguage); ?></h2>
<h4 class="mt-1"><?php echo getTranslate("descriptionMenuHome", $tabLang, $setLanguage); ?></h4>
</div>
</div>
</div>
</div>
<!-- Reservation Area End -->
<!-- Food Area starts -->
<section class="food-area section-padding">
<div class="container">
<div class="row">
<?php $getMenus = getMenuForHomePage();
foreach ($getMenus as $getMenu) {
if ($count < '6') {
if (!in_array($getMenu["truck"], $truckMenu)) {
?>
<div class="col-md-4 col-sm-6">
<div class="single-food">
<div class="food-img">
<img src="<?php echo $getMenu["menuImage"] ?>" class="img-fluid" alt="">
</div>
<div class="food-content">
<div class="d-flex justify-content-between">
<h5><?php echo $getMenu["menuName"]; ?></h5>
<span class="style-change"><?php echo number_format($getMenu["menuPrice"], 2) . "€"; ?></span>
</div>
</div>
</div>
</div>
<?php $truckMenu[] = $getMenu["truck"];
$count++;
}
}
} ?>
</div>
</div>
</section>
<!-- Food Area End -->
<?php
$events = getEventsPreview();
?>
<!-- Testimonial Area Starts -->
<section class="testimonial-area section-padding4">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="section-top2 text-center">
<h3>
<?php
echo getTranslate("eventPres", $tabLang, $setLanguage);
?>
</h3>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="testimonial-slider owl-carousel">
<?php foreach ($events as $event) { ?>
<div class="single-slide d-sm-flex" style="height: 200px;">
<div class="customer-img mr-4 mb-4 mb-sm-0">
<img src="<?php echo $event["eventImg"] ?>" alt="">
</div>
<div class="customer-text">
<h5><?php echo $event["eventName"] ?></h5>
<span><i><?php echo $event["truckName"] ?></i></span>
<p class="pt-3 eventText "><?php echo $event["eventDesc"] ?></p>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</section>
<!-- Testimonial Area End -->
<?php
require 'footer.php';
?>