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 5
/
Copy pathindex.php
70 lines (54 loc) · 2.76 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
64
65
66
67
68
69
70
<!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">
<head>
<title>UberGallery</title>
<link rel="shortcut icon" href="<?php echo THEMEPATH; ?>/images/favicon.png" />
<link rel="stylesheet" type="text/css" href="<?php echo THEMEPATH; ?>/rebase-min.css" />
<link rel="stylesheet" type="text/css" href="<?php echo THEMEPATH; ?>/style.css" />
<?php echo $gallery->getColorboxStyles(5); ?>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<?php echo $gallery->getColorboxScripts(); ?>
<?php file_exists('googleAnalytics.inc') ? include('googleAnalytics.inc') : false; ?>
</head>
<body>
<!-- Start UberGallery v<?php echo UberGallery::VERSION; ?> - Copyright (c) <?php echo date('Y'); ?> Chris Kankiewicz (http://www.ChrisKankiewicz.com) -->
<div id="galleryWrapper">
<h1>UberGallery</h1>
<div class="line"></div>
<?php if($gallery->getSystemMessages()): ?>
<ul id="systemMessages">
<?php foreach($gallery->getSystemMessages() as $message): ?>
<li class="<?php echo $message['type']; ?>">
<?php echo $message['text']; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<div id="galleryListWrapper">
<?php if (!empty($galleryArray) && $galleryArray['stats']['total_images'] > 0): ?>
<ul id="galleryList" class="clearfix">
<?php foreach ($galleryArray['images'] as $image): ?>
<li><a href="<?php echo html_entity_decode($image['file_path']); ?>" title="<?php echo $image['file_title']; ?>" rel="colorbox"><img src="<?php echo $image['thumb_path']; ?>" alt="<?php echo $image['file_title']; ?>"/></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
<div class="line"></div>
<div id="galleryFooter" class="clearfix">
<?php if ($galleryArray['stats']['total_pages'] > 1): ?>
<ul id="galleryPagination">
<?php foreach ($galleryArray['paginator'] as $item): ?>
<li class="<?php echo $item['class']; ?>">
<?php if (!empty($item['href'])): ?>
<a href="<?php echo $item['href']; ?>"><?php echo $item['text']; ?></a>
<?php else: ?><?php echo $item['text']; ?><?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<div id="credit">Powered by, <a href="http://www.ubergallery.net">UberGallery</a></div>
</div>
</div>
<!-- End UberGallery - Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php -->
</body>
</html>