Image grouping for fancybox galleries.

This commit is contained in:
skobkin 2014-03-19 18:49:09 -07:00
parent 23d52c8bed
commit f5af75cdc6

View file

@ -4,7 +4,11 @@ $(document).ready(function() {
// Fancybox // Fancybox
// Images // Images
if (options.option_fancybox_images == true) { 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(); $('.postimg:not(.youtube)').fancybox();
} }
// Videos // Videos