Deltacms/module/album/view/gallery/gallery.js.php

26 lines
890 B
PHP
Raw Normal View History

2023-10-06 08:34:35 +02:00
/**
* This file is part of DeltaCMS.
2023-10-09 12:55:55 +02:00
* Album Photo /view/gallery
2023-10-06 08:34:35 +02:00
*/
2023-10-09 12:55:55 +02:00
$(".galleryGalleryPicture").simpleLightbox({
2023-10-06 08:34:35 +02:00
captionSelector: "self",
captionType: "data",
captionsData: "caption",
closeText: "×"
});
2023-10-30 11:21:36 +01:00
/* Affecte la bordure des blocs à la class galleryGalleryPicture */
$(document).ready(function(){
borderColor = "<?=$this->getData(['theme', 'block', 'borderColor'])?>";
borderRadius = "<?=$this->getdata(['theme', 'block', 'blockBorderRadius'])?>";
textColor = "<?=$this->getData(['theme', 'text', 'textColor'])?>";
linkColor = "<?=$this->getData(['theme', 'text', 'linkColor'])?>";
$(".galleryGalleryPicture").css("border","solid 1px");
$(".galleryGalleryPicture").css("border-color", borderColor);
$(".galleryGalleryPicture").css("border-radius", borderRadius);
$(".galleryGalleryName").css("color", textColor);
$(".picResized").css("color", linkColor);
});