39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
/**
|
|
* This file is part of DeltaCMS.
|
|
* Album Photo /view/gallery
|
|
*/
|
|
|
|
$(".galleryGalleryPicture").simpleLightbox({
|
|
captionSelector: "self",
|
|
captionType: "data",
|
|
captionsData: "caption",
|
|
closeText: "×"
|
|
});
|
|
|
|
$(function () {
|
|
|
|
var taille = "<?php echo $this->getData(['theme','site', 'width']); ?>";
|
|
|
|
switch(taille)
|
|
{
|
|
case '75vw':
|
|
$('a.galleryGalleryPicture').css('height', '125px');
|
|
$('div.galleryGalleryName').css('font-size', '0.8em');
|
|
$('div.galleryGalleryName').css('line-height', '1em');
|
|
break;
|
|
case '85vw':
|
|
$('a.galleryGalleryPicture').css('height', '135px');
|
|
$('div.galleryGalleryName').css('font-size', '0.85em');
|
|
$('div.galleryGalleryName').css('line-height', '1em');
|
|
break;
|
|
case '95vw':
|
|
$('a.galleryGalleryPicture').css('height', '160px');
|
|
$('div.galleryGalleryName').css('font-size', '0.9em');
|
|
break;
|
|
default:
|
|
$('a.galleryGalleryPicture').css('height', '185px');
|
|
$('div.galleryGalleryName').css('font-size', '1em');
|
|
break;
|
|
}
|
|
});
|