forked from vincent3569/zpArdoise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
album.php
107 lines (94 loc) · 4.05 KB
/
album.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
<?php include ('inc_header.php'); ?>
<div id="headline" class="clearfix">
<h3><?php printGalleryIndexURL(' » ', getGalleryTitle(), false); ?><?php printParentBreadcrumb('', ' » ', ' » '); ?><?php printAlbumTitle(); ?></h3>
<div class="headline-text"><?php printAlbumDesc(); ?></div>
</div>
<?php if ((function_exists('printSlideShowLink')) && (!getOption('use_galleriffic'))) { ?>
<div class="control-nav">
<div class="control-slide">
<?php printSlideShowLink(gettext('Slideshow')); ?>
</div>
</div>
<?php } ?>
<?php if (!((getNumImages() > 0) && (getOption('use_galleriffic')))) { ?>
<div class="pagination-nogal">
<?php printPageListWithNav(' « ', ' » ', false, true, 'clearfix', NULL, true, 7); ?>
</div>
<?php } ?>
<?php if (isAlbumPage()) { ?>
<?php include('inc_print_album_thumb.php'); ?>
<?php } ?>
<?php if (getNumImages() > 0) { ?>
<?php if (getOption('use_galleriffic')) { ?>
<div id="galleriffic-wrap" class="clearfix">
<div id="gallery" class="content">
<div id="zpArdoise_controls" class="controls"></div>
<div class="slideshow-container">
<div id="loading" class="loader"></div>
<div id="zpArdoise_slideshow" class="slideshow"></div>
</div>
<div id="caption" class="caption-container"></div>
</div>
<div id="thumbs" class="navigation">
<ul class="thumbs">
<?php while (next_image(true)) { ?>
<li>
<?php if ($_zp_current_image->isVideo()) { ?>
<a class="thumb" href="<?php echo $_zp_themeroot; ?>/images/video-placeholder.jpg" title="<?php echo html_encode(getBareImageTitle()); ?>">
<?php } else { ?>
<a class="thumb" href="<?php echo html_encode(getDefaultSizedImage()); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>">
<?php } ?>
<?php printImageThumb(getAnnotatedImageTitle()); ?></a>
<?php $fullimage = getFullImageURL(); ?>
<a <?php if ((getOption('use_colorbox_album')) && (!empty($fullimage))) { ?>class="colorbox"<?php } ?> href="<?php echo html_encode(pathurlencode($fullimage)); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>"></a>
<div class="caption">
<?php if (getOption('show_exif')) { ?>
<div class="exif-infos-gal">
<?php zpardoise_printEXIF() ?>
</div>
<?php } ?>
<div class="image-title">
<a href="<?php echo html_encode(getImageURL()); ?>" title="<?php echo html_encode(getBareImageTitle()); ?>"><?php printBareImageTitle(); ?></a>
</div>
<div class="image-desc">
<?php printImageDesc(); ?>
</div>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
<?php } else { ?>
<?php include('inc_print_image_thumb.php'); ?>
<?php } ?>
<?php } ?>
<?php if (!((getNumImages() > 0) && (getOption('use_galleriffic')))) { ?>
<div class="pagination-nogal">
<?php printPageListWithNav(' « ', ' » ', false, true, 'clearfix', NULL, true, 7); ?>
</div>
<?php } ?>
<?php if (getOption('show_tag')) { ?>
<div class="headline-tags"><?php printTags('links', '', 'hor-list'); ?></div>
<?php } ?>
<?php if ((zp_loggedin()) && (extensionEnabled('favoritesHandler'))) { ?>
<div class="favorites"><?php printAddToFavorites($_zp_current_album); ?></div>
<?php } ?>
<?php if (extensionEnabled('GoogleMap')) { ?>
<div class="googlemap"><?php printGoogleMap(NULL, 'googlemap'); ?></div>
<script type="text/javascript">
//<![CDATA[
<?php if (getOption('gmap_display') == 'colorbox') { ?>
$('.google_map').addClass('fadetoggler');
$('.google_map').prepend('<img id="icon-map" alt="icon-map" src="<?php echo $_zp_themeroot; ?>/images/map.png" />');
<?php } else { ?>
$('#googlemap_toggle').addClass('fadetoggler');
$('#googlemap_toggle').prepend('<img id="icon-map" alt="icon-map" src="<?php echo $_zp_themeroot; ?>/images/map.png" />');
<?php } ?>
//]]>
</script>
<?php } ?>
<?php if (extensionEnabled('comment_form')) { ?>
<?php include('inc_print_comment.php'); ?>
<?php } ?>
<?php include('inc_footer.php'); ?>