1<?php
2if (!defined('WEBPATH'))
3	die();
4$map = function_exists('printGoogleMap');
5?>
6<!DOCTYPE html>
7<html<?php printLangAttribute(); ?>>
8	<head>
9		<meta charset="<?php echo LOCAL_CHARSET; ?>">
10		<?php
11		zp_apply_filter('theme_head');
12		?>
13		<?php printHeadTitle(); ?>
14		<?php $handler->theme_head($_zp_themeroot); ?>
15		<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
16		<?php if (class_exists('RSS')) printRSSHeaderLink('Album', getAlbumTitle()); ?>
17	</head>
18	<body class="sidebars">
19		<?php zp_apply_filter('theme_body_open'); ?>
20		<?php $handler->theme_bodyopen($_zp_themeroot); ?>
21		<div id="navigation"></div>
22		<div id="wrapper">
23			<div id="container">
24				<div id="header">
25					<div id="logo-floater">
26						<div>
27							<h1 class="title">
28								<a href="<?php echo html_encode(getSiteHomeURL()); ?>" title="<?php echo gettext('Gallery Index'); ?>"><?php echo html_encode(getGalleryTitle()); ?></a>
29							</h1>
30							<span id="galleryDescription"><?php printGalleryDesc(); ?></span>
31						</div>
32					</div>
33				</div><!-- header -->
34				<div class="sidebar">
35					<div id="leftsidebar">
36						<?php include("sidebar.php"); ?>
37					</div>
38				</div>
39				<div id="center">
40					<div id="squeeze">
41						<div class="right-corner">
42							<div class="left-corner"><!-- begin content -->
43								<div class="main section" id="main">
44									<h2 id="gallerytitle">
45										<?php printHomeLink('', ' » '); printGalleryIndexURL(' » '); printParentBreadcrumb("", " » ", " » "); echo html_encode(getAlbumTitle()); ?>
46									</h2>
47									<?php printAlbumDesc(); ?>
48									<?php printCodeblock(1); ?>
49									<div id="albums">
50										<?php
51										while (next_album()) {
52											?>
53											<div class="album">
54												<a class="albumthumb" href="<?php echo getAlbumURL(); ?>" title="<?php printf(gettext('View album: %s'), getBareAlbumTitle()); ?>">
55													<?php printCustomAlbumThumbImage(getAlbumTitle(), null, 85, 85, 85, 85); ?>
56												</a>
57												<div class="albumdesc">
58													<h3>
59														<a href="<?php echo getAlbumURL(); ?>" title="<?php printf(gettext('View album: %s'), getBareAlbumTitle()); ?>">
60															<?php printAlbumTitle(); ?>
61														</a>
62													</h3>
63													<br />
64													<small><?php printAlbumDate(); ?></small>
65													</li>
66												</div>
67												<p style="clear: both;"></p>
68											</div>
69											<?php
70										}
71										?>
72									</div>
73									<p style="clear: both; "></p>
74									<?php $handler->theme_content($map); ?>
75									<?php
76									if ((getNumAlbums() != 0) || !$_oneImagePage) {
77										printPageListWithNav(gettext("« prev"), gettext("next »"), $_oneImagePage);
78									}
79									@call_user_func('printOpenStreetMap');
80									if (function_exists('printAddToFavorites'))
81										printAddToFavorites($_zp_current_album);
82									@call_user_func('printRating');
83									@call_user_func('printCommentForm');
84									printCodeblock(2);
85									footer();
86									?>
87								</div>
88								<p style="clear: both;"></p>
89							</div>	<!-- end content -->
90							<span class="clear"></span>
91						</div>
92					</div>
93				</div>
94				<div class="sidebar">
95					<div id="rightsidebar">
96						<?php
97						$nextalbum = getNextAlbum();
98						$prevalbum = getPrevAlbum();
99						if ($nextalbum || $prevalbum) {
100							?>
101							<h2><?php echo gettext('Album Navigation'); ?></h2>
102							<?php
103							if ($nextalbum) {
104								?>
105								<div id="nextalbum" class="slides">
106									<a href="<?php echo html_encode(getNextAlbumURL()); ?>" title="<?php echo gettext('Next album'); ?>"><?php echo gettext('Next album »'); ?><br /><img src="<?php echo html_encode(pathurlencode($nextalbum->getThumb())); ?>" loading="lazy" /></a>
107								</div>
108								<br />
109								<?php
110							}
111							if ($prevalbum) {
112								?>
113								<div id="prevalbum" class="slides">
114									<a href="<?php echo html_encode(getPrevAlbumURL()); ?>" title="<?php echo gettext('Prev Album'); ?>"><?php echo gettext('« Prev Album'); ?><br /><img src="<?php echo html_encode(pathurlencode($prevalbum->getThumb())); ?>" loading="lazy" /></a>
115								</div>
116								<?php
117							}
118						}
119						?>
120						<?php printTags('links', gettext('Tags: '), NULL, ''); ?>
121						<?php
122						if (!empty($points) && $map) {
123							setOption('gmap_display', 'colorbox', false);
124							?>
125							<div id="map_link">
126								<?php
127								printGoogleMap(NULL, NULL, NULL, 'album_page', 'gMapOptionsAlbum');
128								?>
129							</div>
130							<br class="clearall" />
131							<?php
132						}
133						?>
134						<?php
135						if (function_exists('printLatestImages')) {
136							?>
137							<h2><?php printf(gettext('Latest Images for %s'), $_zp_current_album->getTitle()); ?></h2>
138							<?php
139							printImageStatistic(5, "latest",  $_zp_current_album->name);
140						}
141						?>
142					</div><!-- right sidebar -->
143				</div><!-- sidebar -->
144			</div><!-- container -->
145			<span class="clear"></span>
146		</div><!-- wrapper -->
147		<?php
148		zp_apply_filter('theme_body_close');
149		?>
150	</body>
151</html>
152