Image grouping for fancybox galleries.

This commit is contained in:
skobkin 2014-03-19 18:49:09 -07:00
parent 23d52c8bed
commit f5af75cdc6
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,11 @@ $(document).ready(function() {
// Fancybox
// Images
if (options.option_fancybox_images == true) {
// TODO: group images to the galeries
// Linking images in posts to the galleries
$('.post-content .text').each(function(idxPost){
$(this).find('a.postimg:not(.youtube)').attr('rel', 'post' + idxPost);
});
// Init fancybox
$('.postimg:not(.youtube)').fancybox();
}
// Videos