-
Notifications
You must be signed in to change notification settings - Fork 0
/
anime-details.php
302 lines (284 loc) · 15.3 KB
/
anime-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
<?php
ob_start();
session_set_cookie_params(2592000);
session_start();
// Leer el contenido del archivo detailsDB.json y decodificarlo como un objeto PHP
$details = json_decode(file_get_contents('db/detailsDB.json'));
// Buscar la serie correspondiente en el objeto utilizando el valor de $_GET['anime'] como clave
$anime = $details->{$_GET['anime']};
// Verificar si la serie se encontr� en la base de datos
if (empty($anime)) { header("Location: 404.php"); exit(); }
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="keywords" content="Anime, unica, creative, html">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="<?php echo $_GET['anime'] ?> info">
<title>CloudFlix - <?php echo $_GET['anime'] ?> Details</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/x-icon" href="assets/media/favicon-light.png">
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- Css Styles -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/elegant-icons.css" type="text/css">
<link rel="stylesheet" href="assets/css/plyr.css" type="text/css">
<link rel="stylesheet" href="assets/css/nice-select.css" type="text/css">
<link rel="stylesheet" href="assets/css/owl.carousel.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/slicknav.min.css" type="text/css">
<link rel="stylesheet" href="assets/css/style.css" type="text/css">
</head>
<body>
<!-- Page Preloder -->
<div id="preloder">
<div class="loader"></div>
</div>
<?php include './assets/includes/header.php'; ?>
<!-- Breadcrumb Begin -->
<div class="breadcrumb-option">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcrumb__links">
<a href="./index.php"><i class="fa fa-home"></i> Home</a>
<a href="./categories.php">Categories</a>
<span>Romance</span>
</div>
</div>
</div>
</div>
</div>
<!-- Breadcrumb End -->
<!-- Anime Section Begin -->
<section class="anime-details spad">
<div class="container">
<div class="anime__details__content">
<div class="row">
<div class="col-lg-3">
<div class="anime__details__pic set-bg" data-setbg="<?php echo $anime-> { 'Cover Link' } ?>">
<div class="comment"><i class="fa fa-comments"></i> 11</div>
<div class="view"><i class="fa fa-eye"></i> 9141</div>
</div>
</div>
<div class="col-lg-9">
<div class="anime__details__text">
<div class="anime__details__title">
<h3><?php echo $_GET['anime'] ?></h3>
<span>フェイト/ステイナイト, Feito/sutei naito</span>
</div>
<div class="anime__details__rating">
<div class="rating">
<?php
$rating = $anime->Rating; // replace with actual rating
$full_stars = floor($rating);
$half_star = ($rating - $full_stars) >= 0.5;
$empty_stars = 5 - $full_stars - $half_star;
for ($i = 0; $i < $full_stars; $i++) {
echo '<a href="#"><i class="fa fa-star"></i></a>';
}
if ($half_star) {
echo '<a href="#"><i class="fa fa-star-half-o"></i></a>';
}
for ($i = 0; $i < $empty_stars; $i++) {
echo '<a href="#"><i class="fa fa-star-o"></i></a>';
}
?>
</div>
</div>
<span>1.029 Votes</span>
</div>
<p><?php echo $anime->Sinopsis ?></p>
<div class="anime__details__widget">
<div class="row">
<div class="col-lg-6 col-md-6">
<ul>
<li><span>Type:</span><?php echo $anime->Type ?></li>
<li><span>Studios:</span><?php echo $anime->Studio ?></li>
<li><span>Date aired:</span><?php echo $anime-> {
'Date aired'
} ?></li>
<li><span>Status:</span><?php echo $anime->Status ?></li>
<li><span>Genre:</span><?php echo $anime->Genre ?></li>
</ul>
</div>
<div class="col-lg-6 col-md-6">
<ul>
<li><span>Scores:</span> 7.31 / 1,515</li>
<li><span>Rating:</span> <?php echo $anime->Rating ?></li>
<li><span>Duration:</span> <?php echo $anime->Duration ?></li>
<li><span>Quality:</span> HD</li>
<li><span>Views:</span> 131,541</li>
</ul>
</div>
</div>
</div>
<div class="anime__details__btn">
<a href="#" class="follow-btn"><i class="fa fa-heart-o"></i> Follow</a>
<a href="#" class="watch-btn"><span>Watch Now</span> <i
class="fa fa-angle-right"></i></a>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-8 col-md-8">
<div class="anime__details__review">
<div class="section-title">
<h5>Reviews</h5>
</div>
<div class="anime__review__item">
<div class="anime__review__item__pic">
<img src="img/anime/review-1.jpg" alt="">
</div>
<div class="anime__review__item__text">
<h6>Chris Curry - <span>1 Hour ago</span></h6>
<p>whachikan Just noticed that someone categorized this as belonging to the genre
"demons" LOL</p>
</div>
</div>
<div class="anime__review__item">
<div class="anime__review__item__pic">
<img src="img/anime/review-2.jpg" alt="">
</div>
<div class="anime__review__item__text">
<h6>Lewis Mann - <span>5 Hour ago</span></h6>
<p>Finally it came out ages ago</p>
</div>
</div>
<div class="anime__review__item">
<div class="anime__review__item__pic">
<img src="img/anime/review-3.jpg" alt="">
</div>
<div class="anime__review__item__text">
<h6>Louis Tyler - <span>20 Hour ago</span></h6>
<p>Where is the episode 15 ? Slow update! Tch</p>
</div>
</div>
<div class="anime__review__item">
<div class="anime__review__item__pic">
<img src="img/anime/review-4.jpg" alt="">
</div>
<div class="anime__review__item__text">
<h6>Chris Curry - <span>1 Hour ago</span></h6>
<p>whachikan Just noticed that someone categorized this as belonging to the genre
"demons" LOL</p>
</div>
</div>
<div class="anime__review__item">
<div class="anime__review__item__pic">
<img src="img/anime/review-5.jpg" alt="">
</div>
<div class="anime__review__item__text">
<h6>Lewis Mann - <span>5 Hour ago</span></h6>
<p>Finally it came out ages ago</p>
</div>
</div>
<div class="anime__review__item">
<div class="anime__review__item__pic">
<img src="img/anime/review-6.jpg" alt="">
</div>
<div class="anime__review__item__text">
<h6>Louis Tyler - <span>20 Hour ago</span></h6>
<p>Where is the episode 15 ? Slow update! Tch</p>
</div>
</div>
</div>
<div class="anime__details__form">
<div class="section-title">
<h5>Your Comment</h5>
</div>
<form action="#">
<textarea placeholder="Your Comment"></textarea>
<button type="submit"><i class="fa fa-location-arrow"></i> Review</button>
</form>
</div>
</div>
<div class="col-lg-4 col-md-4">
<div class="anime__details__sidebar">
<div class="section-title">
<h5>you might like...</h5>
</div>
<div class="product__sidebar__view__item set-bg" data-setbg="img/sidebar/tv-1.jpg">
<div class="ep">18 / ?</div>
<div class="view"><i class="fa fa-eye"></i> 9141</div>
<h5><a href="#">Boruto: Naruto next generations</a></h5>
</div>
<div class="product__sidebar__view__item set-bg" data-setbg="img/sidebar/tv-2.jpg">
<div class="ep">18 / ?</div>
<div class="view"><i class="fa fa-eye"></i> 9141</div>
<h5><a href="#">The Seven Deadly Sins: Wrath of the Gods</a></h5>
</div>
<div class="product__sidebar__view__item set-bg" data-setbg="img/sidebar/tv-3.jpg">
<div class="ep">18 / ?</div>
<div class="view"><i class="fa fa-eye"></i> 9141</div>
<h5><a href="#">Sword art online alicization war of underworld</a></h5>
</div>
<div class="product__sidebar__view__item set-bg" data-setbg="img/sidebar/tv-4.jpg">
<div class="ep">18 / ?</div>
<div class="view"><i class="fa fa-eye"></i> 9141</div>
<h5><a href="#">Fate/stay night: Heaven's Feel I. presage flower</a></h5>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Anime Section End -->
<!-- Footer Section Begin -->
<footer class="footer">
<div class="page-up">
<a href="#" id="scrollToTopButton"><span class="arrow_carrot-up"></span></a>
</div>
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="footer__logo">
<a href="./index.html"><img src="img/logo.png" alt=""></a>
</div>
</div>
<div class="col-lg-6">
<div class="footer__nav">
<ul>
<li class="active"><a href="./index.html">Homepage</a></li>
<li><a href="./categories.html">Categories</a></li>
<li><a href="./blog.html">Our Blog</a></li>
<li><a href="#">Contacts</a></li>
</ul>
</div>
</div>
<div class="col-lg-3">
<p><!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. --></p>
</div>
</div>
</div>
</footer>
<!-- Footer Section End -->
<!-- Search model Begin -->
<div class="search-model">
<div class="h-100 d-flex align-items-center justify-content-center">
<div class="search-close-switch"><i class="icon_close"></i></div>
<form class="search-model-form">
<input type="text" id="search-input" placeholder="Search here.....">
</form>
</div>
</div>
<!-- Search model end -->
<!-- Js Plugins -->
<script src="assets/js/jquery-3.3.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/player.js"></script>
<script src="assets/js/jquery.nice-select.min.js"></script>
<script src="assets/js/mixitup.min.js"></script>
<script src="assets/js/jquery.slicknav.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>