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 10
/
Copy pathindex.php
109 lines (79 loc) · 4.17 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
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
<!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">
<head>
<title>UberGallery</title>
<link rel="shortcut icon" href="<?php echo THEMEPATH; ?>/img/favicon.png" />
<link rel="stylesheet" type="text/css" href="<?php echo THEMEPATH; ?>/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="<?php echo THEMEPATH; ?>/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo THEMEPATH; ?>/css/bootstrap-responsive.min.css" />
<?php echo $gallery->getColorboxStyles(1); ?>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="<?php echo THEMEPATH; ?>/js/bootstrap.min.js"></script>
<?php echo $gallery->getColorboxScripts(); ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php file_exists('googleAnalytics.inc') ? include('googleAnalytics.inc') : false; ?>
</head>
<body>
<div class="container">
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container">
<div class="brand">UberGallery</div>
</div>
</div>
</div>
<?php if($gallery->getSystemMessages()): ?>
<?php foreach($gallery->getSystemMessages() as $message): ?>
<div class="alert alert-<?php echo $message['type']; ?>">
<a class="close" data-dismiss="alert">×</a>
<?php echo $message['text']; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>
<!-- Start UberGallery v<?php echo UberGallery::VERSION; ?> - Copyright (c) <?php echo date('Y'); ?> Chris Kankiewicz (http://www.ChrisKankiewicz.com) -->
<?php if (!empty($galleryArray) && $galleryArray['stats']['total_images'] > 0): ?>
<ul class="gallery-wrapper thumbnails">
<?php foreach ($galleryArray['images'] as $image): ?>
<li class="">
<a href="<?php echo html_entity_decode($image['file_path']); ?>" title="<?php echo $image['file_title']; ?>" class="thumbnail" rel="colorbox">
<img src="<?php echo $image['thumb_path']; ?>" alt="<?php echo $image['file_title']; ?>" />
</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<!-- End UberGallery - Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php -->
<hr/>
<?php if ($galleryArray['stats']['total_pages'] > 1): ?>
<div class="pagination pagination-centered">
<ul>
<?php foreach ($galleryArray['paginator'] as $item): ?>
<?php
switch ($item['class']) {
case 'title':
$class = 'disabled';
break;
case 'inactive':
$class = 'disabled';
break;
case 'current':
$class = 'active';
break;
case 'active':
$class = NULL;
break;
}
?>
<li class="<?php echo $class; ?>">
<a href="<?php echo empty($item['href']) ? '#' : $item['href']; ?>"><?php echo $item['text']; ?></a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
<p class="credit">Powered by, <a href="http://www.ubergallery.net">UberGallery</a></p>
</div>
</body>
<!-- Page template by, Chris Kankiewicz <http://www.chriskankiewicz.com> -->
</html>