1er commit

Theme zenphoto
This commit is contained in:
2016-10-20 20:07:26 +02:00
commit 5cbd6357ed
81 changed files with 8984 additions and 0 deletions

111
album.php Normal file
View File

@@ -0,0 +1,111 @@
<?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>
<script type="text/javascript">
//alert(window.devicePixelRatio);
/*
(function($){
alert(window.devicePixelRatio);
if(window.devicePixelRatio > 1){
$('img').each(function(){
var img = $(this);
img.attr('src', img.attr('src').replace('.jpg','@2x.jpg'));
})
}
})(jQuery);
*/
</script>
<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>
<p style="clear: both; "></p>
</div>
<?php endwhile; ?>
</div>
<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>
<p style="clear: both; "></p>
</div>
<?php endwhile; ?>
</div>
<p style="clear: both; "></p>
<?php
if (function_exists('printAddToFavorites')) printAddToFavorites($_zp_current_album);
?>
</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; ?>