1<?php
2// force UTF-8 Ø
3
4if (!defined('WEBPATH'))
5	die();
6if (class_exists('favorites')) {
7	?>
8	<!DOCTYPE html>
9	<htm<?php printLangAttribute(); ?>>
10		<head>
11			<meta charset="<?php echo LOCAL_CHARSET; ?>">
12			<?php zp_apply_filter('theme_head'); ?>
13			<?php printHeadTitle(); ?>
14			<link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/style.css" type="text/css" />
15		</head>
16		<body>
17			<?php zp_apply_filter('theme_body_open'); ?>
18
19			<div id="main">
20
21				<div id="header">
22					<h1><?php printGalleryTitle(); ?></h1>
23					<?php
24					if (getOption('Allow_search')) {
25						printSearchForm(NULL, 'search', NULL, gettext('Search'));
26					}
27					?>
28				</div>
29
30				<div id="content">
31
32					<div id="breadcrumb">
33						<h2><?php printGalleryIndexURL(' » '); printAlbumTitle(); ?></strong></h2>
34					</div>
35
36					<div id="content-left">
37						<div><?php printAlbumDesc(); ?></div>
38
39
40						<?php printPageListWithNav("« " . gettext("prev"), gettext("next") . " »"); ?>
41						<div id="albums">
42							<?php while (next_album()): ?>
43								<div class="album">
44									<div class="thumb">
45										<a href="<?php echo html_encode(getAlbumURL()); ?>" title="<?php echo gettext('View album:'); ?> <?php getBareAlbumTitle(); ?>"><?php printCustomAlbumThumbImage(getBareAlbumTitle(), NULL, 95, 95, 95, 95); ?></a>
46									</div>
47									<div class="albumdesc">
48										<h3><a href="<?php echo html_encode(getAlbumURL()); ?>" title="<?php echo gettext('View album:'); ?> <?php printBareAlbumTitle(); ?>"><?php printAlbumTitle(); ?></a></h3>
49										<?php printAlbumDate(""); ?>
50										<div><?php echo shortenContent(getAlbumDesc(), 45, '...'); ?></div>
51										<br />
52										<?php printAddToFavorites($_zp_current_album, '', gettext('Remove')); ?>
53									</div>
54									<p style="clear: both; "></p>
55								</div>
56							<?php endwhile; ?>
57						</div>
58
59						<div id="images">
60							<?php while (next_image()): ?>
61								<div class="image">
62									<div class="imagethumb"><a href="<?php echo html_encode(getImageURL()); ?>" title="<?php printBareImageTitle(); ?>"><?php printImageThumb(getBareImageTitle()); ?></a>
63										<?php printAddToFavorites($_zp_current_image, '', gettext('Remove')); ?>
64									</div>
65								</div>
66							<?php endwhile; ?>
67
68						</div>
69						<p style="clear: both; "></p>
70						<?php
71      @call_user_func('printSlideShowLink');
72      printPageListWithNav("« " . gettext("prev"), gettext("next") . " »");
73      printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', ', ');
74      ?>
75						<br style="clear:both;" /><br />
76						<?php
77      @call_user_func('printRating');
78      @call_user_func('printCommentForm');
79      ?>
80					</div><!-- content left-->
81
82
83
84					<div id="sidebar">
85						<?php include("sidebar.php"); ?>
86					</div><!-- sidebar -->
87
88
89
90					<div id="footer">
91						<?php include("footer.php"); ?>
92					</div>
93
94				</div><!-- content -->
95
96			</div><!-- main -->
97			<?php
98			zp_apply_filter('theme_body_close');
99			?>
100		</body>
101	</html>
102	<?php
103} else {
104	include(SERVERPATH . '/' . ZENFOLDER . '/404.php');
105}
106?>