-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgallery.php
48 lines (47 loc) · 1.55 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
<?php
include 'variables/img_variables.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!-- Gallery css -->
<link rel="stylesheet" href="css/jgallery.min.css" />
<link rel="stylesheet" href="css/font-awesome.min.css" />
</head>
<body>
<?php
$url = "//{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$parts = parse_url($url);
parse_str($parts['query'], $query);
$id = $query['id'];
?>
<div id="album">
<div data-jgallery-album-title="Ray Dimension" class="album">
<?php foreach ($projects as $key => $project): ?>
<?php foreach ($project['images'] as $key => $img): ?>
<a href="<?php echo $img; ?>"><img alt="" src="<?php echo $img; ?>" class="img-hide"></a>
<?php endforeach; ?>
<?php endforeach; ?>
</div>
</div>
</body>
<script src="js/jquery-2.0.3.min.js"></script>
<script src="js/jgallery.min.js"></script>
<script src="js/tinycolor-0.9.16.min.js"></script>
<script src="js/touchswipe.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$( function() {
$('.img-hide').css({
'display':'none'
});
$( '#album' ).jGallery( {
// autostart: true,
zoomSize: '100%'
} );
} );
//]]>
</script>
</html>