mirror of https://github.com/vtrois/kratos
Update kratos.js
parent
f170b64688
commit
abd12a3f1d
|
@ -149,7 +149,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var lightGalleryConfig = function () {
|
var lightGalleryConfig = function () {
|
||||||
if(kratos.lightgallery){
|
if (kratos.lightgallery === '1' && window.lightGallery !== undefined) {
|
||||||
lightGallery(document.getElementById('lightgallery'), {
|
lightGallery(document.getElementById('lightgallery'), {
|
||||||
selector: 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"], a[href$=".bmp"], a[href$=".webp"]'
|
selector: 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"], a[href$=".bmp"], a[href$=".webp"]'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue