30 lines
744 B
PHP
30 lines
744 B
PHP
/**
|
|
* This file is part of DeltaCMS.
|
|
* Album Photo /view/index
|
|
*/
|
|
|
|
$(function () {
|
|
|
|
var taille = "<?php echo $this->getData(['theme','site', 'width']); ?>";
|
|
|
|
switch(taille)
|
|
{
|
|
case '75vw':
|
|
$('a.galleryPicture').css('height', '170px');
|
|
$('div.galleryName').css('font-size', '0.8em');
|
|
break;
|
|
case '85vw':
|
|
$('a.galleryPicture').css('height', '200px');
|
|
$('div.galleryName').css('font-size', '0.85em');
|
|
break;
|
|
case '95vw':
|
|
$('a.galleryPicture').css('height', '235px');
|
|
$('div.galleryName').css('font-size', '0.9em');
|
|
break;
|
|
default:
|
|
$('a.galleryPicture').css('height', '250px');
|
|
$('div.galleryName').css('font-size', '1em');
|
|
break;
|
|
}
|
|
});
|