-
Notifications
You must be signed in to change notification settings - Fork 5
/
product-details.php
408 lines (397 loc) · 20.3 KB
/
product-details.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
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<?php require('inc/header.php');
$query = new query();
$shopAction = new shopAction();
if (!isset($_GET['id'])) {
header("location: index.php");
} else {
$p_id = $_GET['id'];
$p_data = $query->fetchData("products", "*", "id='$p_id' and product_status='publish'");
if (count($p_data) == 0) {
header("location: index.php");
}
}
$price = (int)$query->fetchData("product_meta", "min_price", "product_id='$p_id'")[0]['min_price'];
$date = date("F j, Y", strtotime($p_data[0]['publish_date']));
$update_date = date("F j, Y", strtotime($p_data[0]['product_modified']));
$image = $p_data[0]['product_image'];
$title = $p_data[0]['product_title'];
$buy_now_btn_text = "Add to Cart";
$buy_now_btn_link = "?id=$p_id&add_to_cart=$p_id&msg=msg";
$version = "Latest";
if ($price == 0) {
$price = "FREE!";
$buy_now_btn_text = "Download Now";
$buy_now_btn_link = "?id=$p_id&download=$p_id";
} else if ($shopAction->isPurchased($p_id)) {
$price = "Already Purchased!";
$buy_now_btn_text = "Download Now";
$buy_now_btn_link = "?id=$p_id&download=$p_id";
}
?>
<!-- header area end -->
<!-- cart mini area start -->
<?php include("inc/cart.php"); ?>
<!-- sidebar area end -->
<div class="body-overlay"></div>
<!-- sidebar area end -->
<main>
<!-- bg shape area start -->
<div class="bg-shape">
<img src="assets/img/shape/shape-1.png" alt="">
</div>
<!-- bg shape area end -->
<!-- page title area -->
<section class="page__title-area pt-85">
<div class="container">
<div class="row">
<div class="col-xxl-12">
<div class="page__title-content mb-50">
<h2 class="page__title"><?php echo $title; ?></h2>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item"><a href="product.php">Product</a></li>
<li class="breadcrumb-item active" aria-current="page">Current</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
</section>
<!-- page title end -->
<!-- product area start -->
<section class="product__area pb-115">
<div class="container">
<div class="row">
<div class="col-xxl-8 col-xl-8 col-lg-8">
<div class="product__wrapper">
<div class="product__details-thumb w-img mb-30">
<img src="<?php echo $image; ?>" alt="product-details">
</div>
<div class="product__details-content">
<div class="product__tab mb-40">
<ul class="nav nav-tabs" id="proTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="overview-tab" data-bs-toggle="tab" data-bs-target="#overview" type="button" role="tab" aria-controls="overview" aria-selected="true">Overview</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="support-tab" data-bs-toggle="tab" data-bs-target="#support" type="button" role="tab" aria-controls="support" aria-selected="false">Support</button>
</li>
</ul>
</div>
<div class="product__tab-content">
<div class="tab-content" id="proTabContent">
<div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
<div class="product__overview">
<h3 class="product__overview-title">Template Details</h3>
<?php echo $p_data[0]['product_content']; ?>
<div class="product__social m-social grey-bg-2">
<h4 class="product__social-title">Follow us</h4>
<ul>
<li><a href="#" class="fb"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="#" class="tw"><i class="fab fa-twitter"></i></a></li>
<li><a href="#" class="pin"><i class="fab fa-pinterest-p"></i></a></li>
<li><a href="#" class="link"><i class="fab fa-linkedin-in"></i></a></li>
</ul>
</div>
</div>
</div>
<div class="tab-pane fade" id="support" role="tabpanel" aria-labelledby="support-tab">
<div class="product__support">
<div class="latest-comments mb-55">
<ul>
<li>
<div class="comments-box grey-bg-2">
<div class="comments-info d-flex">
<div class="comments-avatar mr-15">
<img src="assets/img/product/support/sup-1.jpg" alt="">
</div>
<div class="avatar-name">
<h5>Jason Response</h5>
<span class="post-meta">Author</span>
</div>
</div>
<div class="comments-text ml-65">
<p>Harry codswalp boot porkies up the duff morish cor blimey guvnor fa about blower twit Why it's your round matie.</p>
</div>
</div>
</li>
<li class="children">
<div class="comments-box grey-bg-2">
<div class="comments-info d-flex">
<div class="comments-avatar mr-15">
<img src="assets/img/product/support/sup-2.jpg" alt="">
</div>
<div class="avatar-name">
<h5>Hilary Ouse</h5>
<span class="post-meta">Author</span>
</div>
</div>
<div class="comments-text ml-65">
<p>I don't want no agro dropped a clanger do one wind.!</p>
</div>
</div>
</li>
</ul>
</div>
<div class="post-comment-form wow fadeInUp" data-wow-delay=".2s">
<h4 class="post-comment-title mb-25">Add a comment</h4>
<form action="#">
<div class="post-comment-inner">
<div class="row">
<div class="col-xl-12">
<div class="post-input d-sm-flex align-items-center mb-10">
<textarea placeholder="Comment for the author..."></textarea>
<button type="submit" class="m-btn m-btn-4"> <span></span> Post Comment</button>
</div>
</div>
<div class="col-xl-12">
<div class="post-agree d-flex align-items-center">
<input class="m-check-input" type="checkbox" id="m-agree">
<label class="m-check-label" for="m-agree">Email me when this comment receives a reply</label>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xxl-4 col-xl-4 col-lg-4">
<div class="product__details-sidebar ml-30">
<div class="product__proprietor white-bg mb-30">
<div class="product__proprietor-head mb-25">
<div class="product__prorietor-info mb-20 d-flex justify-content-between">
<div class="product__proprietor-avater d-flex align-items-center">
<div class="product__proprietor-thumb">
<img src="assets/img/product/proprietor/proprietor-1.jpg" alt="">
</div>
<div class="product__proprietor-name">
<h5><a href="#">Justin Case</a></h5>
<a href="#">View Profile</a>
</div>
</div>
<div class="product__proprietor-price">
<span class="d-flex align-items-start"><span>₹</span><?php echo $price; ?></span>
</div>
</div>
<div class="product__proprietor-text">
<p>Pay once and get lifetime free updates.</p>
</div>
</div>
<div class="product__proprietor-body fix">
<ul class="mb-10 fix">
<li>
<h6>Downloads:</h6>
<span>44</span>
</li>
<li>
<h6>Version:</h6>
<span><?php echo $version; ?></span>
</li>
<li>
<h6>Released On:</h6>
<span><?php echo $date; ?></span>
</li>
<li>
<h6>Last Update:</h6>
<span><?php echo $update_date; ?></span>
</li>
<li>
<h6>Framework:</h6>
<span>Redux:</span>
</li>
</ul>
<a href="<?php echo $buy_now_btn_link; ?>" class="m-btn m-btn-2 w-100 mb-20"> <span></span> <?php echo $buy_now_btn_text; ?></a>
<a href="pricing.php" class="m-btn m-btn-border w-100"> <span></span> Preview Project</a>
</div>
</div>
<div class="sidebar__banner" data-background="assets/img/banner/sidebar-banner.jpg">
<h4 class="sidebar__banner-title">Check Out <br>Our free Templates</h4>
<a href="product.php" class="m-btn m-btn-white"> <span></span> free template</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- product area end -->
<!-- subscribe area start -->
<section class="subscribe__area p-relative pt-100 pb-110" data-background="assets/img/bg/subscribe-bg.jpg">
<div class="subscribe__icon">
<img class="ps" src="assets/img/icon/subscribe/ps.png" alt="">
<img class="wp" src="assets/img/icon/subscribe/wp.png" alt="">
<img class="html" src="assets/img/icon/subscribe/html.png" alt="">
<img class="f" src="assets/img/icon/subscribe/f.png" alt="">
<img class="man" src="assets/img/icon/subscribe/man.png" alt="">
</div>
<div class="container">
<div class="row">
<div class="col-xxl-12">
<div class="subscribe__content text-center wow fadeInUp" data-wow-delay=".3s">
<h3 class="subscribe__title">Have a project? <br> Create your website now.</h3>
<p>Try our any product for FREE!</p>
<div class="subscribe__form wow fadeInUp" data-wow-delay=".5s">
<form action="#">
<input type="email" placeholder="Email Address">
<button type="submit" class="m-btn m-btn-black"><span></span> subscribe </button>
</form>
<p>Join 20,000+ other creators in our Markit community.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- subscribe area end -->
</main>
<!-- footer area start -->
<footer>
<div class="footer__area footer-bg">
<div class="footer__top pt-90 pb-50">
<div class="container">
<div class="row">
<div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-4">
<div class="footer__widget mb-40 wow fadeInUp" data-wow-delay=".3s">
<div class="footer__widget-head mb-35">
<h4 class="footer__widget-title">Follow our Socials</h4>
</div>
<div class="footer__widget-content">
<div class="footer__social mb-30">
<ul>
<li><a href="#" class="fb"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="#" class="tw"><i class="fab fa-twitter"></i></a></li>
<li><a href="#" class="pin"><i class="fab fa-pinterest-p"></i></a></li>
</ul>
</div>
<div class="footer__lang">
<span><a href="#">US</a> English</span>
<span><a href="#">ES</a> Spanish</span>
</div>
</div>
</div>
</div>
<div class="col-xxl-2 col-xl-2 col-lg-2 col-md-2 col-sm-4">
<div class="footer__widget mb-40 wow fadeInUp" data-wow-delay=".5s">
<div class="footer__widget-head">
<h4 class="footer__widget-title">Products</h4>
</div>
<div class="footer__widget-content">
<div class="footer__link">
<ul>
<li><a href="#">Tutor LMS </a></li>
<li><a href="#">WP Mega Menu </a></li>
<li><a href="#">WP Page Builder </a></li>
<li><a href="#">Themes</a></li>
<li><a href="#">Interactions</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-xxl-3 col-xl-3 col-lg-3 col-md-3 col-sm-4">
<div class="footer__widget mb-40 wow fadeInUp footer__pl" data-wow-delay=".7s">
<div class="footer__widget-head">
<h4 class="footer__widget-title">Resources</h4>
</div>
<div class="footer__widget-content">
<div class="footer__link">
<ul>
<li><a href="#">Promotion </a></li>
<li><a href="#">Submit Content</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Design System</a></li>
<li><a href="#">Expert</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-xxl-2 col-xl-2 col-lg-2 col-md-2 col-sm-4">
<div class="footer__widget mb-40 wow fadeInUp" data-wow-delay=".9s">
<div class="footer__widget-head">
<h4 class="footer__widget-title">Products</h4>
</div>
<div class="footer__widget-content">
<div class="footer__link">
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Support</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-xxl-2 col-xl-2 col-lg-2 col-md-2 col-sm-4">
<div class="footer__widget mb-40 wow fadeInUp" data-wow-delay="1.2s">
<div class="footer__widget-head">
<h4 class="footer__widget-title">Community</h4>
</div>
<div class="footer__widget-content">
<div class="footer__link">
<ul>
<li><a href="#">Forums</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Meetups</a></li>
<li><a href="#">Jobs</a></li>
<li><a href="#">Careers</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer__bottom">
<div class="container">
<div class="footer__bottom-inner">
<div class="row">
<div class="col-xxl-6 col-xl-6 col-md-6">
<div class="footer__copyright wow fadeInUp" data-wow-delay=".5s">
<p>Copyright © 2021 All Rights Reserved, Design by <a href="#">Theme Pure</a></p>
</div>
</div>
<div class="col-xxl-6 col-xl-6 col-md-6">
<div class="footer__bottom-link wow fadeInUp text-md-end" data-wow-delay=".8s">
<ul>
<li><a href="#">Licence</a></li>
<li><a href="#">Privacy Policy </a></li>
<li><a href="#">Affiliate Notice</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- footer area end -->
<!-- JS here -->
<script src="assets/js/vendor/jquery-3.5.1.min.js"></script>
<script src="assets/js/vendor/waypoints.min.js"></script>
<script src="assets/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/jquery.meanmenu.js"></script>
<script src="assets/js/slick.min.js"></script>
<script src="assets/js/jquery.fancybox.min.js"></script>
<script src="assets/js/isotope.pkgd.min.js"></script>
<script src="assets/js/parallax.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/backToTop.js"></script>
<script src="assets/js/jquery.counterup.min.js"></script>
<script src="assets/js/ajax-form.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/imagesloaded.pkgd.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>