-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
198 lines (164 loc) · 7.25 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<?php
$mysqli = new DBSelect;
?>
<div class="container-fluid bg-light pt-5 px-sm-3 px-md-5">
<div class="row">
<div class="col-lg-3 col-md-6 mb-5">
<a href="index.php" class="navbar-brand">
<h1 class="mb-2 mt-n2 display-5 text-uppercase"><span class="text-primary">Coder</span>bee</h1>
</a>
<p>Volup amet magna clita tempor. Tempor sea eos vero ipsum. Lorem lorem sit sed elitr sed kasd et</p>
<div class="d-flex justify-content-start align-items-center mt-4">
<?php
$social_qry = mysqli_query($conn, "SELECT * FROM social_media_link");
$row = mysqli_fetch_assoc($social_qry) ?>
<a class="btn btn-outline-primary text-center mr-2 px-0" style="width: 38px; height: 38px; " href="<?php echo $row['twitter'] ?>"><i class="fab fa-twitter"></i></a>
<a class="btn btn-outline-primary text-center mr-2 px-0" style="width: 38px; height: 38px; " href="<?php echo $row['facebook'] ?>"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-outline-primary text-center mr-2 px-0" style="width: 38px; height: 38px; " href="<?php echo $row['linkedin'] ?>"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-outline-primary text-center mr-2 px-0" style="width: 38px; height: 38px; " href="<?php echo $row['instagram'] ?>"><i class="fab fa-instagram"></i></a>
<a class="btn btn-outline-primary text-center mr-2 px-0" style="width: 38px; height: 38px; " href="<?php echo $row['youtube'] ?>"><i class="fab fa-youtube"></i></a>
<?php
?>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-5">
<h3 class="font-weight-bold mb-4">Categories</h3>
<div class="d-flex flex-wrap m-n1">
<?php
$cat_qry = $mysqli->select(["catId", "catName", "catSlug"])->from("category")->get();
if ($cat_qry->num_rows > 0) {
while ($cat = mysqli_fetch_assoc($cat_qry)) {
echo '<a href="/coderbees/category/' . $cat['catName'] . ' " class="btn btn-sm btn-outline-secondary m-1">' . $cat["catName"] . '</a>';
}
} else {
echo "<button class='btn btn-outline-secondary btn-sm'>Uncategory</button>";
}
?>
</div>
</div>
<div class="col-lg-3 col-md-6 mb-5">
<?php include "partial/tags.php"; ?>
</div>
<div class="col-lg-3 col-md-6 mb-5">
<h4 class="font-weight-bold mb-4">Quick Links</h4>
<div class="d-flex flex-column justify-content-star">
<a class="text-secondary mb-2" href="<?php url_for('aobut-us') ?>"><i class="fa fa-angle-right text-dark mr-2"></i>About</a>
<a class="text-secondary mb-2" href="#"><i class="fa fa-angle-right text-dark mr-2"></i>Advertise</a>
<a class="text-secondary mb-2" href="#"><i class="fa fa-angle-right text-dark mr-2"></i>Privacy & policy</a>
<a class="text-secondary mb-2" href="<?php url_for("our-rools") ?>"><i class="fa fa-angle-right text-dark mr-2"></i>Terms & conditions</a>
<a class="text-secondary" href="<?php url_for("contact-us") ?>"><i class="fa fa-angle-right text-dark mr-2"></i>Contact</a>
</div>
</div>
</div>
</div>
<div class="container-fluid py-4 px-sm-3 px-md-5">
<p class="m-0 text-center">
© <a class="font-weight-bold" href="#">coderbees</a>. All Rights Reserved.
<!--/*** This template is free as long as you keep the footer author’s credit link/attribution link/backlink. If you'd like to use the template without the footer author’s credit link/attribution link/backlink, you can purchase the Credit Removal License from "https://htmlcodex.com/credit-removal". Thank you for your support. ***/-->
Designed by <a class="font-weight-bold" href="">Coderbees</a>
</p>
</div>
<!-- Back to Top -->
<a href="#" class="btn btn-outline-primary back-to-top"><i class="fa fa-angle-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="/coderbees/bootstrap-5.1.0-dist/js/bootstrap.min.js"></script>
<!-- <script src="/coderbees/lib/easing/easing.min.js"></script> -->
<script src="/coderbees/lib/owlcarousel/owl.carousel.min.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<!-- Contact Javascript File -->
<!-- <script src="mail/jqBootstrapValidation.min.js"></script> -->
<!-- <script src="mail/contact.js"></script> -->
<!-- toaster_plugin -->
<!-- <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/css/toastr.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/2.0.1/js/toastr.js"></script>
<script src=""></script>
<!-- axios plugins -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<!-- Template Javascript -->
<script src="/coderbees/js/custom.site.js"></script>
<script src="/coderbees/js/main.js"></script>
</body>
</html>
<?php
//if session set. then alert swho
if (isset($_SESSION['status'])) {
switch ($_SESSION['status']) {
case 'like_login_error':
?>
<script>
toastr.warning("Please login to react.");
</script>
<?php
break;
//if login. welcomed him
case 'greeting':
?>
<script>
toastr.success("Successfully login.");
</script>
<?php
break;
case 'subscribe_error':
?>
<script>
toastr.info('No need subscrive again. You already subscrived.');
</script>
<?php
break;
case 'subscrived':
?>
<script>
toastr.success('Thanks for your subscription. w\'ll mail you our sevicess');
</script>
<?php
break;
case 'comment_success':
?>
<script>
toastr.info('Comment successfully added. Comment under review !');
</script>
<?php
break;
case 'comment_reject':
?>
<script>
toastr.warning('Something wrong ! You can\'t comment right now');
</script>
<?php
break;
//like alert
case 'like':
?>
<script>
toastr.success('Like added');
</script>
<?php
break;
//if already liked a post
case 'already_liked':
?>
<script>
toastr.warning("Can't like again. You like it once.");
</script>
<?php
break;
case 'not_liked_yet':
?>
<script>
toastr.warning("Like first !");
</script>
<?php
break;
case 'unlike':
?>
<script>
toastr.success("Post unliked ");
</script>
<?php
break;
}
include 'unset_session.php';
}
?>