mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Image grouping for fancybox galleries.
This commit is contained in:
parent
23d52c8bed
commit
f5af75cdc6
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue