Files
zp_photoblog2/favorites.php
Bruno Pesenti 5cbd6357ed 1er commit
Theme zenphoto
2016-10-20 20:07:26 +02:00

96 lines
3.4 KiB
PHP

<?php include ("header.php"); ?>
<div id="main">
<div class="center_albums">
<div id="headline">
<h3>
<!-- ZP 1.4.6: html_encode(getGalleryIndexURL()) remplace htmlspecialchars(getGalleryIndexURL(false)) -->
<a href="<?php echo html_encode(getGalleryIndexURL()); ?>" title="<?php echo gettext('Albums Index'); ?>"><?php echo getGalleryTitle(); ?></a>
<?php printParentBreadcrumb(" » ", " » ", " » "); ?><?php printAlbumTitle(true); ?>
</h3>
<div class="headline-text"><?php printAlbumDesc(true); ?></div>
</div>
<?php if (getNumImages() > 0) { ?>
<div id="slideshowlink">
<?php $x=0; while (next_image(true)):
if ($x>=1) { $show=' style="display:none;"'; } else { $show='';} ?>
<?php if (!isImageVideo()) { ?>
<a class="slideshowlink"<?php echo $show; ?> rel="slideshow" href="<?php echo htmlspecialchars(getFullImageURL());?>" title="<?php echo getBareImageTitle();?>"><?php echo gettext('Play Slideshow'); ?></a>
<?php $x=$x+1; $imagepresent=true; } else { $x=$x; $videopresent=true;} ?>
<?php endwhile; ?>
</div>
<?php }
?>
<p class="clear"></p>
<div id="albums">
<?php while (next_album()): ?>
<div class="album">
<div class="thumb">
<!-- ZP 1.4.6 getAlbumURL() remplace getAlbumLinkURL() -->
<a class="wraptocenter" href="<?php echo html_encode(getAlbumURL());?>" title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>">
<?php //printAlbumThumbImage(getAnnotatedAlbumTitle());
printHDAlbumThumbImage(true, NULL, NULL, NULL, NULL);
?>
</a>
</div>
<div class="albumdesc">
<span class="nom_albumdesc"><a href="<?php echo html_encode(getAlbumURL());?>" title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>"><?php printAlbumTitle(); ?></a></span>
</div>
<?php printAddToFavorites($_zp_current_album, '', gettext('Remove')); ?>
<p style="clear: both; "></p>
</div>
<?php endwhile; ?>
</div>
<p style="clear: both; "></p>
<br />
<div id="albums">
<?php while (next_image()): ?>
<div class="album">
<div class="thumb">
<!-- ZP 1.4.6 getImageURL() remplace getImageLinkURL() -->
<a class="wraptocenter" href="<?php echo htmlspecialchars(getImageURL()); ?>" title="<?php echo getBareImageTitle(); ?>">
<?php
//printImageThumb(getAnnotatedImageTitle());
//printHDImageThumb(NULL,true,NULL,NULL,NULL,NULL);
printHDImageThumb(true,NULL,NULL,NULL,NULL);
?>
</a>
</div>
<div class="albumdesc">
<span class="nom_albumdesc"><!--a href="<?php echo htmlspecialchars(getImageURL());?>" title="<?php echo gettext('View image:'); ?> <?php echo getBareImageTitle(); ?>"><?php printImageTitle(); ?></a--></span>
</div>
<?php printAddToFavorites($_zp_current_image, '', gettext('Remove')); ?>
<p style="clear: both; "></p>
</div>
<?php endwhile; ?>
</div>
</div> <!-- /center_albums -->
<div class="paging">
<?php if ( (getPrevPageURL()) || (getNextPageURL()) ) { ?>
<?php printPageListWithNav("« " . gettext("prev"), gettext("next") . " »",false,'true','pagelist','',true,'5' ); ?>
<?php } ?>
<?php if (function_exists('printAlbumMenu')) { ?>
<div id="albumjump">
<?php printAlbumMenu('jump',true); ?>
</div>
<?php } ?>
</div>
</div>
<?php include("footer.php");
//echo $_zp_current_album; ?>