gammery 3.4 démarrage en mode plein écran inopérant

This commit is contained in:
fredtempez 2022-03-22 13:55:26 +01:00
parent 10c3d01597
commit ad7001eeb7
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@
class gallery extends common {
const VERSION = '3.3';
const VERSION = '3.4';
const REALNAME = 'Galerie';
const DELETE = true;
const UPDATE = '0.0';

View File

@ -25,7 +25,7 @@ var b = new SimpleLightbox('.galleryGalleryPicture', {
$( document ).ready(function() {
// Démarre en mode plein écran
var fullscreen = <?php echo json_encode($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'fullScreen'])); ?>;
var fullscreen = <?php echo json_encode($this->getData(['module',$this->getUrl(0),'content',$this->getUrl(1),'config','fullScreen'])); ?>;
if ( fullscreen === true) {
$('a#homePicture')[0].click();
}

View File

@ -11,9 +11,10 @@
<div class="row galleryRow">
<?php foreach($module::$pictures as $picture => $legend): ?>
<div class="colPicture">
<?php var_dump ( $this->getData(['module',$this->getUrl(0),'content',$this->getUrl(1),'config','fullScreen'])); ?>
<a
href="<?php echo helper::baseUrl(false) . $picture; ?>"
<?php if ( $picture === $this->getdata(['module',$this->getUrl(0),'content',$this->getUrl(1),'config','homePicture']) ) {
<?php if ( strpos($picture, $this->getData(['module',$this->getUrl(0),'content',$this->getUrl(1),'config','homePicture'])) > 0) {
echo 'id="homePicture"'; } ?>
class="galleryGalleryPicture"
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"

View File

@ -1,7 +1,6 @@
<?php if($module::$galleries): ?>
<div class="row galleryRow">
<?php foreach($module::$galleries as $galleryId => $gallery): ?>
<div class="colPicture" div="pos<?php echo $gallery['config']['position']; ?>" >
<a
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"