-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·354 lines (350 loc) · 17.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
349
350
351
352
353
354
<?php require_once('./includes/header.php'); ?>
<?php $products_id = get_bestseller_products_ids(); ?>
<?php $products = get_conditional_rows('products', array('limit' => 9)); ?>
<!-- Start Slider Area -->
<div class="slider__container slider--one bg__cat--3">
<div class="slide__container slider__activation__wrap owl-carousel">
<!-- Start Single Slide -->
<div class="single__slide animation__style01 slider__fixed--height">
<div class="container">
<div class="row align-items__center">
<div class="col-md-7 col-sm-7 col-xs-12 col-lg-6">
<div class="slide">
<div class="slider__inner">
<h2>collection 2018</h2>
<h1>NICE CHAIR</h1>
<div class="cr__btn">
<a href="cart.html">Shop Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-5 col-xs-12 col-md-5">
<div class="slide__thumb">
<img src="assets/images/slider/fornt-img/1.png" alt="slider images">
</div>
</div>
</div>
</div>
</div>
<!-- End Single Slide -->
<!-- Start Single Slide -->
<div class="single__slide animation__style01 slider__fixed--height">
<div class="container">
<div class="row align-items__center">
<div class="col-md-7 col-sm-7 col-xs-12 col-lg-6">
<div class="slide">
<div class="slider__inner">
<h2>collection 2018</h2>
<h1>NICE CHAIR</h1>
<div class="cr__btn">
<a href="cart.html">Shop Now</a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-sm-5 col-xs-12 col-md-5">
<div class="slide__thumb">
<img src="assets/images/slider/fornt-img/2.png" alt="slider images">
</div>
</div>
</div>
</div>
</div>
<!-- End Single Slide -->
</div>
</div>
<!-- Start Slider Area -->
<!-- Start Category Area -->
<section class="htc__category__area ptb--100">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="section__title--2 text-center">
<h2 class="title__line">New Arrivals</h2>
<p>But I must explain to you how all this mistaken idea</p>
</div>
</div>
</div>
<div class="htc__product__container">
<div class="row">
<div class="product__list clearfix mt--30">
<!-- Start Single Category -->
<?php foreach($products as $product) : ?>
<div class="col-md-4 col-lg-3 col-sm-4 col-xs-12">
<div class="category">
<div class="ht__cat__thumb">
<a href="<?php echo get_permalink('product.php', $product['id']); ?>">
<?php echo $product['image'] != '' ? "<img src='uploads/products/". $product['image'] ."' alt='". $product['name'] ."'>" : ""; ?>
</a>
</div>
<div class="fr__hover__info">
<ul class="product__action">
<li><a href="javascript:void(0)" onclick="manage_wishlist(<?php echo $product['id']; ?>, 'add')"><i class="icon-heart icons"></i></a></li>
<li><a href="javascript:void(0)" onclick="manageCart(<?php echo $product['id']; ?>, 'add')"><i class="icon-handbag icons"></i></a></li>
</ul>
</div>
<div class="fr__product__inner">
<h4><a href="<?php echo get_permalink('product.php', $product['id']); ?>"><?php echo $product['name']; ?></a></h4>
<ul class="fr__pro__prize">
<li class="old__prize"><?php echo get_currency() . $product['price']; ?></li>
<?php echo $product['selling_price'] != 0 ? "<li>" . get_currency() . $product['selling_price'] . "</li>" : ""; ?>
</ul>
</div>
</div>
</div>
<?php endforeach; ?>
<!-- End Single Category -->
</div>
</div>
</div>
</div>
</section>
<!-- End Category Area -->
<!-- Start Prize Good Area -->
<section class="htc__good__sale bg__cat--3">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-12">
<div class="fr__prize__inner">
<h2>Contrary to popular belief is simply rand.</h2>
<h3>Professor at Hamp deny dney College.</h3>
<a class="fr__btn" href="#">Read More</a>
</div>
</div>
<div class="col-md-6 col-lg-6 col-sm-6 col-xs-12">
<div class="prize__inner">
<div class="prize__thumb">
<img src="assets/images/banner/big-img/1.png" alt="banner images">
</div>
<div class="banner__info">
<div class="pointer__tooltip pointer--3 align-left">
<div class="tooltip__box">
<h4>Tooltip Left</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--4 align-top">
<div class="tooltip__box">
<h4>Tooltip Top</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--5 align-bottom">
<div class="tooltip__box">
<h4>Tooltip Bottom</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--6 align-top">
<div class="tooltip__box">
<h4>Tooltip Bottom</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
<div class="pointer__tooltip pointer--7 align-top">
<div class="tooltip__box">
<h4>Tooltip Bottom</h4>
<p>Lorem ipsum pisaci volupt atem accusa saes ntisdumtiu loperm asaerks.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Prize Good Area -->
<!-- Start Product Area -->
<section class="ftr__product__area ptb--100">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="section__title--2 text-center">
<h2 class="title__line">Best Seller</h2>
<p>But I must explain to you how all this mistaken idea</p>
</div>
</div>
</div>
<div class="row">
<div class="product__wrap clearfix">
<?php
foreach($products_id as $product_id) :
$best_product = get_data_by_id('products', $product_id);
?>
<!-- Start Single Category -->
<div class="col-md-4 col-lg-3 col-sm-4 col-xs-12">
<div class="category">
<div class="ht__cat__thumb">
<a href="<?php echo get_permalink('product.php', $best_product['id']); ?>">
<?php echo $best_product['image'] != '' ? "<img src='uploads/products/". $best_product['image'] ."' alt='product images'>" : ""; ?>
</a>
</div>
<div class="fr__hover__info">
<ul class="product__action">
<li><a href="javascript:void(0)" onclick="manage_wishlist(<?php echo $best_product['id']; ?>, 'add')"><i class="icon-heart icons"></i></a></li>
<li><a href="javascript:void(0)" onclick="manageCart(<?php echo $best_product['id']; ?>, 'add')"><i class="icon-handbag icons"></i></a></li>
</ul>
</div>
<div class="fr__product__inner">
<h4><a href="<?php echo get_permalink('product.php', $best_product['id']); ?>"><?php echo $best_product['name']; ?></a></h4>
<ul class="fr__pro__prize">
<li class="old__prize"><?php echo get_currency() . $best_product['price']; ?></li>
<?php echo $best_product['price'] != 0 ? "<li>" . get_currency() . $best_product['price'] . "</li>" : ""; ?>
</ul>
</div>
</div>
</div>
<!-- End Single Category -->
<?php endforeach; ?>
</div>
</div>
</div>
</section>
<!-- End Product Area -->
<!-- Start Testimonial Area -->
<section class="htc__testimonial__area bg__cat--4">
<div class="container">
<div class="row">
<div class="ht__testimonial__activation clearfix">
<!-- Start Single Testimonial -->
<div class="col-lg-6 col-md-6 single__tes">
<div class="testimonial">
<div class="testimonial__thumb">
<img src="assets/images/test/client/1.png" alt="testimonial images">
</div>
<div class="testimonial__details">
<h4><a href="#">Mr.Mike Band</a></h4>
<p>I’m up to something. Stay focused. The weather is amazing, walk with me through the pathway of more success. </p>
</div>
</div>
</div>
<!-- End Single Testimonial -->
<!-- Start Single Testimonial -->
<div class="col-lg-6 col-md-6 single__tes">
<div class="testimonial">
<div class="testimonial__thumb">
<img src="assets/images/test/client/2.png" alt="testimonial images">
</div>
<div class="testimonial__details">
<h4><a href="#">Ms.Lucy Barton</a></h4>
<p>I’m up to something. Stay focused. The weather is amazing, walk with me through the pathway of more success. </p>
</div>
</div>
</div>
<!-- End Single Testimonial -->
<!-- Start Single Testimonial -->
<div class="col-lg-6 col-md-6 single__tes">
<div class="testimonial">
<div class="testimonial__thumb">
<img src="assets/images/test/client/1.png" alt="testimonial images">
</div>
<div class="testimonial__details">
<h4><a href="#">Ms.Lucy Barton</a></h4>
<p>I’m up to something. Stay focused. The weather is amazing, walk with me through the pathway of more success. </p>
</div>
</div>
</div>
<!-- End Single Testimonial -->
<!-- Start Single Testimonial -->
<div class="col-lg-6 col-md-6 single__tes">
<div class="testimonial">
<div class="testimonial__thumb">
<img src="assets/images/test/client/2.png" alt="testimonial images">
</div>
<div class="testimonial__details">
<h4><a href="#">Ms.Lucy Barton</a></h4>
<p>I’m up to something. Stay focused. The weather is amazing, walk with me through the pathway of more success. </p>
</div>
</div>
</div>
<!-- End Single Testimonial -->
</div>
</div>
</div>
</section>
<!-- End Testimonial Area -->
<!-- Start Blog Area -->
<section class="htc__blog__area bg__white ptb--100">
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="section__title--2 text-center">
<h2 class="title__line">Our Blog</h2>
<p>But I must explain to you how all this mistaken idea</p>
</div>
</div>
</div>
<div class="row">
<div class="ht__blog__wrap clearfix">
<!-- Start Single Blog -->
<div class="col-md-6 col-lg-4 col-sm-6 col-xs-12">
<div class="blog">
<div class="blog__thumb">
<a href="blog-details.html">
<img src="assets/images/blog/blog-img/1.jpg" alt="blog images">
</a>
</div>
<div class="blog__details">
<div class="bl__date">
<span>March 22, 2016</span>
</div>
<h2><a href="blog-details.html">Lorem ipsum dolor sit amet, consec tetur adipisicing elit</a></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<div class="blog__btn">
<a href="blog-details.html">Read More</a>
</div>
</div>
</div>
</div>
<!-- End Single Blog -->
<!-- Start Single Blog -->
<div class="col-md-6 col-lg-4 col-sm-6 col-xs-12">
<div class="blog">
<div class="blog__thumb">
<a href="blog-details.html">
<img src="assets/images/blog/blog-img/2.jpg" alt="blog images">
</a>
</div>
<div class="blog__details">
<div class="bl__date">
<span>May 22, 2017</span>
</div>
<h2><a href="blog-details.html">Lorem ipsum dolor sit amet, consec tetur adipisicing elit</a></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<div class="blog__btn">
<a href="blog-details.html">Read More</a>
</div>
</div>
</div>
</div>
<!-- End Single Blog -->
<!-- Start Single Blog -->
<div class="col-md-6 col-lg-4 col-sm-6 col-xs-12">
<div class="blog">
<div class="blog__thumb">
<a href="blog-details.html">
<img src="assets/images/blog/blog-img/3.jpg" alt="blog images">
</a>
</div>
<div class="blog__details">
<div class="bl__date">
<span>March 22, 2018</span>
</div>
<h2><a href="blog-details.html">Lorem ipsum dolor sit amet, consec tetur adipisicing elit</a></h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<div class="blog__btn">
<a href="blog-details.html">Read More</a>
</div>
</div>
</div>
</div>
<!-- End Single Blog -->
</div>
</div>
</div>
</section>
<!-- End Blog Area -->
<!-- End Banner Area -->
<!-- Start Footer Area -->
<?php include_once('includes/footer.php'); ?>