-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.php
138 lines (122 loc) · 4.26 KB
/
gallery.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
<?php
include 'admin/include/init.php';
$gallery = Gallery::find_all();
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Wedding Planner</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto" rel="stylesheet">
<link rel="stylesheet" type="text/css"
href="https://cdn.materialdesignicons.com/2.1.19/css/materialdesignicons.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="lightbox/css/lightbox.css">
<style>
body {
font-family: 'Open Sans', 'Roboto', sans-serif;
line-height: 1.5em;
margin-bottom: 2%;
margin-top: 2%;
width: 100%;
overflow-x: hidden;
background: #f1f1f1;
}
.navbar-light .navbar-brand {
color: #1a1a1a;
font-weight: bold;
line-height: 22px;
}
.navbar {
font-weight: 700;
padding: 12px;
font-style: normal;
font-size: 14px;
text-transform: uppercase;
color: black;
border-bottom: 1px solid #ddd;
}
li.nav-item > a.nav-link {
color: black !important;
font-weight: bold !important;
}
#review {
font-size: 16px;
font-weight: bold;
margin-right: 5px;
}
.form-inline > a.mr-2, .btn.btn-sm.my-2.my-sm-0 {
color: black;
font-size: 14px;
font-weight: 700;
margin-left: 10px;
}
.form-inline > a.mr-2:hover, .btn.btn-sm.my-2.my-sm-0:hover {
color: #17b4bc;
text-decoration: none;
}
a.btn.btn-sm.my-2.my-sm-0.mr-2.loginbtn {
background: #dc3545;
font-size: 14px;
color: white;
padding: 5px;
border: 2px solid transparent;
width: 85px;
}
a.btn.btn-sm.my-2.my-sm-0.mr-2.loginbtn:hover {
background: white;
border: 2px solid #dc3545;
color: #dc3545;
}
.navbar-expand-lg .navbar-nav .nav-link {
padding-right: .9rem;
}
.navbar-brand {
margin-left: 20px;
width: 200px;
}
.card {
-webkit-border-radius:0;
-moz-border-radius:0;
border-radius:0;
}
.card img {
-webkit-border-radius:0;
-moz-border-radius:0;
border-radius:0;
}
</style>
</head>
<body>
<?php include 'include/nav.php'; ?>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<h4 class="text-center mb-0 mt-5">Wedding Photos</h4>
<p class="text-center mt-0 text-muted">Photos That Capture Your Moment</p>
<div class="card-columns">
<?php foreach($gallery as $galleries) : ?>
<div class="card" style="position: relative;">
<a href="admin/<?= $galleries->picture_path(); ?>" data-lightbox="gallery-group-4">
<img class="card-img-top" src="admin/<?= $galleries->picture_path(); ?>" alt="Card image cap">
</a>
<div class="card-body" style="position: absolute;bottom: 0;left:0; width: 100%;background: rgba(0,0,0, 0.5);color:white;padding: 10px 10px 0 10px;">
<p class="card-title text-capitalize" style="font-size:12px;"><?= empty($galleries->title) ? 'No Title' : $galleries->title; ?></p>
</div>
</div><!-- end of body -->
<?php endforeach; ?>
</div><!-- end of card columns -->
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery-3.2.1.slim.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="lightbox/js/lightbox-2.6.min.js"></script>
</body>
</html>