-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGallery-details.php
71 lines (64 loc) · 1.73 KB
/
Gallery-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
<?php
if(!isset($_GET['p']))
header("location:404.php");
$menu = "gallery";
$page_title = "Gallery";
include("header.php");
$gallery = new Gallery($_GET['p']);
$recentItems = $gallery->Get(null,8);
?>
<section class="banner-w3layouts-bottom py-lg-5 py-3">
<div class="container py-lg-4 py-3">
<div class="row">
<!--left-->
<div class="col-lg-8 left-blog-info text-left">
<div class="blog-grid-top">
<div class="b-grid-top">
<div class="blog_info_left_grid">
<a href="">
<img src="<?php echo $gallery->thumbnail; ?>" class="img-fluid" alt="">
</a>
</div>
</div>
<h3>
<a href=""><?php echo $gallery->name; ?></a>
</h3>
<div class="gallery_contents">
<p><?php echo $gallery->content; ?></p>
</div>
</div>
</div>
<!--//left-->
<!--right-->
<aside class="col-lg-4 right-blog-con text-right">
<div class="right-blog-info text-left">
<div class="tech-btm">
<h4>Recent Images</h4>
<?php
while ($item = $recentItems->fetch_assoc()) {
?>
<div class="blog-grids row mb-3">
<div class="col-md-5 blog-grid-left">
<a href="Gallery-details.php?p=<?php echo $item['id']; ?>">
<img src="<?php echo $item['thumbnail']; ?>" class="img-fluid rounded" alt="">
</a>
</div>
<div class="col-md-7 blog-grid-right">
<h5>
<a href="Gallery-details.php?p=<?php echo $item['id']; ?>"><?php echo $item['name']; ?></a>
</h5>
</div>
</div>
<?php
}
?>
</div>
</div>
</aside>
<!--//right-->
</div>
</div>
</section>
<?php
include("footer.php");
?>