This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathindex.php
63 lines (43 loc) · 2.5 KB
/
index.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php include_once('resources/UberGallery.php'); ?>
<head>
<title>XHTML Transitional Template</title>
<link rel="shortcut icon" href="images/favicon.png" />
<link rel="stylesheet" type="text/css" href="css/rebase-min.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="resources/UberGallery.css" />
<link rel="stylesheet" type="text/css" href="resources/colorbox/1/colorbox.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
<script type="text/javascript" src="resources/colorbox/jquery.colorbox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("a[rel='cats']").colorbox({maxWidth: "90%", maxHeight: "90%", opacity: ".5"});
$("a[rel='dogs']").colorbox({maxWidth: "90%", maxHeight: "90%", opacity: ".5"});
$("a[rel='misc']").colorbox({maxWidth: "90%", maxHeight: "90%", opacity: ".5"});
});
</script>
<?php if(file_exists('googleAnalytics.inc')) { include('googleAnalytics.inc'); } ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<div class="pageWrap">
<h1 id="pageTitle">Multi-directory Gallery Demo</h1>
<p>
This is a demonstration of a multi-directory <a href="http://www.ubergallery.net">UberGallery</a>
installation. Each section below is pulling from a seperate directory of images and will only
cycle images within their sections. You can view the underlying code for this page
<a href="https://github.com/UberGallery/multi-gallery-example">on the UberGallery Github page</a>.
</p>
<?php $files = scandir('galleries'); ?>
<?php foreach ($files as $file): ?>
<?php $dir = 'galleries/' . $file; ?>
<?php if (is_dir($dir) && $file != '.' && $file != '..'): ?>
<h2><?php echo ucwords($file); ?></h2>
<?php $gallery = UberGallery::init()->createGallery($dir, $file); ?>
<?php endif; ?>
<?php endforeach; ?>
</div>
</body>
<!-- Page template by, Chris Kankiewicz <http://www.chriskankiewicz.com> -->
</html>