-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
executable file
·210 lines (165 loc) · 6.72 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
<?php
include("header.php");
?>
<!-- end navigation -->
<!-- start flexslider -->
<div class="flexslider">
<ul class="slides">
<li>
<img src="images/slider-img1.jpg" alt="Pizza Image 1">
<div class="flex-caption">
<h2 class="slider-title">We make Pizza</h2>
<h3 class="slider-subtitle">Fresh, clean, and delicious.</h3>
<p class="slider-description">Praesent tincidunt neque semper elementum gravida. Donec id euismod magna. Ut erat ligula, malesuada eu quam a, fringilla auctor augue.</p>
</div>
</li>
<li>
<img src="images/slider-img2.jpg" alt="Pizza Image 2">
<div class="flex-caption">
<h2 class="slider-title">Freshly Baked Pizza</h2>
<h3 class="slider-subtitle">Premium Quality, Finest Ingredients</h3>
<p class="slider-description">Donec id euismod magna. Ut erat ligula, malesuada eu quam a, fringilla auctor augue. Praesent tincidunt neque semper elementum gravida.</p>
</div>
</li>
</ul>
</div>
<!-- end flexslider -->
<!-- start about -->
<section id="about" class="templatemo-section templatemo-top-130">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h1 class="text-uppercase">Your Pizza Shop</h1>
</div>
<div class="col-md-6 col-sm-6">
<h3 class="text-uppercase padding-bottom-10">Another Baker</h3>
<p>Pizza Villa is about much more than pizzas. From freshly sauteed pastas and delicious appetizers to mocktails, desserts, soups and salads, we have a wide range for you to feast on. All this, combined with the warm, inviting ambience and friendly service, will lead to endless conversations, laughter and memories that you'll cherish forever. So, let your hair down and feel at ease. Go ahead and enjoy the All New Pizza Villa experience!</p>
</div>
<div class="col-md-6 col-sm-6">
<img src="images/about-img1.jpg" class="img-responsive img-bordered img-about" alt="about img">
</div>
</div>
</div>
</section>
<!-- end about -->
<!-- start menu -->
<section id="menu" class="templatemo-section templatemo-light-gray-bg">
<div class="product">
<div class="container">
<div class="row">
<div class="col-md-12 menu">
<h2 class="text-center text-uppercase">Menu</h2>
<hr>
<ul class="nav nav-tabs menu-tabs">
<li class="active"><a data-toggle="tab" data-target="#pizzas" div-toggle="pizzas" onclick="load_menu(this)">Pizzas</a></li>
<li><a data-toggle="tab" data-target="#sides" div-toggle="sides" onclick="load_menu(this)">Sides</a></li>
<li><a data-toggle="tab" data-target="#beverages" div-toggle="beverages" onclick="load_menu(this)">Beverages</a></li>
</ul>
<div class="tab-content">
<div id="pizzas" class="tab-pane fade in active">
</div>
<div id="sides" class="tab-pane fade">
</div>
<div id="beverages" class="tab-pane fade">
</div>
</div>
<div class="menu-loader loader col-xs-6 col-xs-offset-5" style="display: none;"></div>
</div>
</div>
</div>
</section>
<!-- end menu -->
<!-- start contact -->
<section id="feedback" class="templatemo-section">
<div class="container">
<div class="row">
<div class="col-md-12">
<h2 class="text-uppercase text-center">FeedBack</h2>
<hr>
</div>
<div class="col-md-2"></div>
<div class="col-md-8">
<?php if (isset($feedback_msg)) { ?>
<div id="error" class="alert alert-success" role="alert"><?php echo $feedback_msg ?></div>
<script>window.location.hash = "#feedback"; </script>
<?php } ?>
<form action="feedback.php" method="post" role="form">
<div class="col-md-6 col-sm-6">
<input name="name" type="text" class="form-control" id="name" maxlength="60" placeholder="Name">
<input name="email" type="email" class="form-control" id="email" placeholder="Email">
<input name="subject" type="text" class="form-control" id="subject" placeholder="Subject">
</div>
<div class="col-md-6 col-sm-6">
<textarea class="form-control" rows="5" placeholder="Message" name="message"></textarea>
</div>
<div class="col-md-offset-3 col-md-6 col-sm-offset-3 col-sm-6">
<input name="submit" type="submit" class="form-control" id="submit" value="Send">
</div>
</form>
</div>
<div class="col-md-2"></div>
<div class="col-md-4 col-sm-4">
<h3 class="padding-bottom-10 text-uppercase">Get in Touch with us</h3>
<p>
<i class="fa fa-phone contact-fa"></i>
<a href="tel:010-020-0340" class="contact-link">010-020-0340</a>,
<a href="tel:080-090-0660" class="contact-link">080-090-0660</a>
</p>
<p><i class="fa fa-envelope-o contact-fa"></i>
<a href="mailto:[email protected]" class="contact-link">[email protected]</a></p>
</div>
<div class="col-md-4 col-sm-4">
<div class="google_map">
<div id="map-canvas" class="map"></div>
</div>
</div>
</div>
</div>
</section>
<!-- end contact -->
<!-- modals start -->
<script src="js/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.mycart.js"></script>
<script src="js/scroll.js"></script>
<script type="text/javascript">
$(function() {
$('html').smoothScroll(500);
});
</script>
<script>
function load_menu(category) {
var tab = $(category).attr("div-toggle");
console.log(tab);
if (!$("#" + tab).hasClass("loaded")) {
var loader_clone = $(".menu-loader").clone().css("display", "block").removeClass("menu-loader");
$.ajax({
data: {category: tab},
url: 'menu.php',
beforeSend : function() {
$("#" + tab).html(loader_clone);
},
success: function(result) {
$("#" + tab).slideUp("slow");
$("#" + tab).html(result);
$("#" + tab).slideDown("slow", function() {$(this).css('display', '');});
$("#" + tab).addClass("loaded");
},
error:function(e){
$(".menu-loader").hide();
alert("Error Loading data");
}
});
}
}
$(document).ready(function() {$(".menu-tabs .active a").click();});
var cart = 0;
<?php if(isset($cart)) { ?>
cart = JSON.parse('<?php echo $cart; ?>');
<?php } ?>
</script>
<script type="text/javascript" src="js/menu.js"></script>
<?php include("modals.php"); ?>
<!-- start footer -->
<?php include("footer.php"); ?>