-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcatalog.php
166 lines (135 loc) · 5.27 KB
/
catalog.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS -->
<link rel="stylesheet" href="/assets/css/bootstrap-reboot.min.css">
<link rel="stylesheet" href="/assets/css/bootstrap-grid.min.css">
<link rel="stylesheet" href="/assets/css/owl.carousel.min.css">
<link rel="stylesheet" href="/assets/css/jquery.mCustomScrollbar.min.css">
<link rel="stylesheet" href="/assets/css/nouislider.min.css">
<link rel="stylesheet" href="/assets/css/ionicons.min.css">
<link rel="stylesheet" href="/assets/css/magnific-popup.css">
<link rel="stylesheet" href="/assets/css/plyr.css">
<link rel="stylesheet" href="/assets/css/photoswipe.css">
<link rel="stylesheet" href="/assets/css/default-skin.css">
<link rel="stylesheet" href="/assets/css/main.css">
<!-- Favicons -->
<link rel="icon" type="image/png" href="/assets/icon/favicon-32x32.png" sizes="32x32">
<link rel="apple-touch-icon" href="/assets/icon/favicon-32x32.png">
<meta name="description" content="">
<meta name="keywords" content="">
<title>Catalog</title>
</head>
<body class="body">
<!-- header -->
<?php include 'header.php'; ?>
<!-- end header -->
<!-- page title -->
<section class="section section--first section--bg" data-bg="/assets/img/section/section.jpg">
<div class="container">
<div class="row">
<div class="col-12">
<div class="section__wrap">
<!-- section title -->
<h1 class="section__title"><?= $language->catalog->catalog ?></h1>
<!-- end section title -->
<!-- breadcrumb -->
<!-- end breadcrumb -->
</div>
</div>
</div>
</div>
</section>
<!-- end page title -->
<!-- filter -->
<div class="filter">
<div class="container">
<div class="row">
<div class="col-12">
<div class="filter__content">
<div class="filter__items">
<!-- filter item -->
<div class="filter__item" id="filter__genre">
<span class="filter__item-label"><?= strtoupper($language->catalog->category) ?>:</span>
<div class="filter__item-btn dropdown-toggle" role="navigation" id="filter-genre" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<input type="button" value="<?= $args[0] == 'movies' ? strtoupper($language->catalog->films) : strtoupper($language->catalog->series) ?>">
<span></span>
</div>
<ul id="list_type" class="filter__item-menu dropdown-menu scrollbar-dropdown" aria-labelledby="filter-genre">
<li data-url="/catalog/movies/0/1" ><?= $language->catalog->films ?></li>
<li data-url="/catalog/series/0/1"><?= $language->catalog->series ?></li>
</ul>
</div>
<!-- end filter item -->
<!-- filter item -->
<div class="filter__item" id="filter__quality">
<span class="filter__item-label"><?= strtoupper($language->catalog->genre) ?>:</span>
<div class="filter__item-btn dropdown-toggle" role="navigation" id="filter-quality" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<input type="button" value="<?= strtoupper($results->genre) ?>">
<span></span>
</div>
<ul id="list_category" class="filter__item-menu dropdown-menu scrollbar-dropdown" aria-labelledby="filter-quality">
<?php foreach ($category[$args[2]] as $row) { ?>
<li data-url="/catalog/<?=$args[0]?>/<?=$row->category_id?>/1"><?= $row->category_name ?></li>
<?php } ?>
</ul>
</div>
<!-- end filter item -->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end filter -->
<!-- catalog -->
<div class="catalog">
<div class="container">
<div class="row row--grid">
<?php foreach ($results->data as $row) { ?>
<div class="col-6 col-sm-4 col-md-3 col-xl-2">
<div class="card">
<div class="card__cover">
<img src="<?= $row->img ?>" alt="">
<a href="/<?= $row->type . '/' . $row->id ?>" class="card__play">
<i class="icon ion-ios-play"></i>
</a>
<span class="card__rate card__rate--green"><?= $row->rating ?></span>
</div>
<div class="card__content">
<h3 class="card__title"><a href="/<?= $row->type . '/' . $row->id ?>"><?= $row->name ?></a></h3>
<span class="card__category">
<a href="#"><?= $row->category_name ?></a>
</span>
</div>
</div>
</div>
<?php } ?>
</div>
<div class="row">
<!-- paginator -->
<div class="col-12">
<ul class="paginator">
<li class="paginator__item paginator__item--prev">
<a href="/catalog/<?=$args[0]?>/<?=$args[1]?>/1">1</i></a>
</li>
<?php foreach($results->pages as $row) {?>
<li class="paginator__item <?=$row == $results->page ? 'paginator__item--active' : '' ?>"><a href="/catalog/<?=$args[0]?>/<?=$args[1]?>/<?=$row?>"><?=$row?></a></li>
<?php } ?>
<li class="paginator__item paginator__item--next">
<a href="/catalog/<?=$args[0]?>/<?=$args[1]?>/<?=$results->max_pages?>"><?=$results->max_pages?></i></a>
</li>
</ul>
</div>
<!-- end paginator -->
</div>
</div>
</div>
<!-- end catalog -->
<?php include 'public/footer.php' ?>
</body>
</html>