<div id="photoalbum_<?php echo $D->codephoto?>" class="onephotoalbum">
	<a href="<?php echo $C->SITE_URL.$C->FOLDER_ALBUMS.$D->codalbum.'/'.$D->photofile ?>"><div class="photo"><img src="<?php echo $C->SITE_URL.$C->FOLDER_ALBUMS.$D->codalbum.'/min1/'.$D->photofile ?>"></div></a>
    <?php if ($D->isMyPhoto) { ?>
    <div class="info">
        <div class="linksactions"><span id="linkdelete_<?php echo $D->codephoto?>" class="onlyblue mrg10L hand">Delete</span></div>
	</div>
    <?php } ?>
</div>
<?php if ($D->isMyPhoto) { ?>
<script>
$('#linkdelete_<?php echo $D->codephoto?>').click(function(){
	deletePhotoAlbum('#photoalbum_<?php echo $D->codephoto?>', '<?php echo $D->codalbum?>', '<?php echo $D->codephoto?>');
});
</script>
<?php } ?>