Skip to content

Commit

Permalink
Add a group on the cover fancybox (left and right navigation)
Browse files Browse the repository at this point in the history
  • Loading branch information
seblucas committed Jul 21, 2012
1 parent e54e365 commit 8f2eaa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@

$(".fancycover").fancybox({
'type' : 'image',
prevEffect : 'none',
nextEffect : 'none',
<?php if ($isEink) echo "openEffect : 'none', closeEffect : 'none', helpers : {overlay : null}"; ?>
});

Expand Down Expand Up @@ -152,7 +154,7 @@
<?php
if ($entry->book->hasCover) {
?>
<a class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="cover" /></a>
<a rel="group" class="fancycover" href="<?php echo $entry->getCover () ?>"><img src="<?php echo $entry->getCoverThumbnail () ?>" alt="cover" /></a>
<?php
}
?>
Expand Down

0 comments on commit 8f2eaa1

Please sign in to comment.