-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
181 lines (167 loc) · 6.68 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
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
<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="https://www.instagram.com/" target="_blank">Aneel, Shamaiza, Khizar</a></span>
<hr>
<h2><strong><center>Follow us on our Social Networks:</center></strong></h2>
<span class="footer-social-overlap footer-social-icons-wrapper">
<a href="https://www.pinterest.com/" class="generic-anchor" target="_blank" title="Pinterest" itemprop="significantLink"><i class="fa fa-pinterest"></i></a>
<a href="https://www.facebook.com/" class="generic-anchor" target="_blank" title="Facebook" itemprop="significantLink"><i class="fa fa-facebook"></i></a>
<a href="https://twitter.com/" class="generic-anchor" target="_blank" title="Twitter" itemprop="significantLink"><i class="fa fa-twitter"></i></a>
<a href="http://instagram.com/" class="generic-anchor" target="_blank" title="Instagram" itemprop="significantLink"><i class="fa fa-instagram"></i></a>
<a href="https://www.youtube.com/" class="generic-anchor" target="_blank" title="Youtube" itemprop="significantLink"><i class="fa fa-youtube"></i></a>
<a href="https://plus.google.com/" class="generic-anchor" target="_blank" title="Google Plus" itemprop="significantLink"><i class="fa fa-google-plus"></i></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>
<style>
#footer{
color: #808080;
display: block;
margin: auto;
background-color: #37474F;
padding: 30px 0 0;
background-image: url(https://png.pngitem.com/pimgs/s/561-5615692_footer-graphic-muslim-mirror-footer-graphics-hd-png.png);
}
</style>
</body>
</html>