Single v1

-commentaires cachés
-settings
-3 lightbox
-enqueue js et css
This commit is contained in:
2017-01-16 06:32:13 +01:00
parent 1fa1f61d0e
commit 6df0f90b09
68 changed files with 3312 additions and 402 deletions

27
js/featherlight.js Normal file
View File

@@ -0,0 +1,27 @@
$(document).ready(function(){
$('.gallery').featherlightGallery({
gallery: {
fadeIn: 300,
fadeOut: 300
},
openSpeed: 300,
closeSpeed: 300
});
$('.gallery2').featherlightGallery({
gallery: {
next: 'next »',
previous: '« previous'
},
variant: 'featherlight-gallery2'
});
// Ajoute le alt de <img src"" alt"" /> sous l'image
$.featherlightGallery.prototype.afterContent = function() {
var caption = this.$currentTarget.find('img').attr('alt');
this.$instance.find('.featherlight-caption').remove();
$('<div class="featherlight-caption">').text(caption).appendTo(this.$instance.find('.featherlight-content'));
};
});