-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
156 lines (146 loc) · 5.2 KB
/
footer.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
<div id ="footer">
<div class="container">
<div class="row">
<div class="col-md-3">
<?php
$db = new Database();
$db->select('options','site_name,footer_text,site_desc,contact_phone,contact_email,contact_address',null,null,null,null);
$footer = $db->getResult(); ?>
<h3><?php echo $footer[0]['site_name']; ?></h3>
<p><?php echo $footer[0]['site_desc']; ?></p>
</div>
<div class="col-md-3">
<h3>Categories</h3>
<ul class="menu-list">
<?php
$db = new Database();
$db->select('sub_categories','*',null,'cat_products > 0 AND show_in_footer ="1"',null,null);
$result = $db->getResult();
if(count($result) > 0){
foreach($result as $res){ ?>
<li><a href="category.php?cat=<?php echo $res['sub_cat_id']; ?>"><?php echo $res['sub_cat_title']; ?></a></li>
<?php }
} ?>
</ul>
</div>
<div class="col-md-3">
<h3>Useful Links</h3>
<ul class="menu-list">
<li><a href="<?php echo $hostname; ?>">Home</a></li>
<li><a href="all_products.php">All Products</a></li>
<li><a href="latest_products.php">Latest Products</a></li>
<li><a href="popular_products.php">Popular Products</a></li>
</ul>
</div>
<div class="col-md-3">
<h3>Contact Us</h3>
<ul class="menu-list">
<?php if(!empty($footer[0]['contact_address'])){ ?>
<li><i class="fa fa-home" ></i><span>: <?php echo $footer[0]['contact_address']; ?></span></li>
<?php } ?>
<?php if(!empty($footer[0]['contact_phone'])){ ?>
<li><i class="fa fa-phone" ></i><span>: <?php echo $footer[0]['contact_phone']; ?></span></li>
<?php } ?>
<?php if(!empty($footer[0]['contact_email'])){ ?>
<li><i class="fa fa-envelope" ></i><span>: <?php echo $footer[0]['contact_email']; ?></span></li>
<?php } ?>
</ul>
</div>
<div class="col-md-12">
<span><?php echo $footer[0]['footer_text'] ?> | Created by <a href="index.php" target="_blank">Incredible Coders</a></span>
</div>
</div>
</div>
</div>
<script src="js\jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="js\bootstrap.min.js"></script>
<script src="js\actions.js"></script>
<!--okzoom Plugin-->
<script src="js/okzoom.min.js" type="text/javascript"></script>
<!--owl carousel plugin-->
<script type="text/javascript" src="js/owl.carousel.js"></script>
<script>
$(document).ready(function(){
$('#product-img').okzoom({
width: 200,
height: 200,
scaleWidth: 800
});
$('.banner-carousel').owlCarousel({
loop: true,
margin: 0,
responsiveClass: true,
navText : ["",""],
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 1,
nav: true
},
1000: {
items: 1,
nav: true,
loop: false,
margin: 10
}
}
});
$('.popular-carousel').owlCarousel({
loop: true,
margin: 0,
responsiveClass: true,
navText : ["",""],
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 2,
nav: true
},
800: {
items: 4,
nav: true
},
1000: {
items: 5,
nav: true,
loop: false,
margin: 10
}
}
});
$('.latest-carousel').owlCarousel({
loop: true,
margin: 0,
responsiveClass: true,
navText : ["",""],
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 2,
nav: true
},
800: {
items: 3,
nav: true
},
1000: {
items: 4,
nav: true,
loop: false,
margin: 5
}
}
});
});
</script>
</body>
</html>