Browse Source

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

master
fredtempez 3 months ago
parent
commit
ad7001eeb7
  1. 2
      module/gallery/gallery.php
  2. 2
      module/gallery/view/gallery/gallery.js.php
  3. 3
      module/gallery/view/gallery/gallery.php
  4. 1
      module/gallery/view/index/index.php

2
module/gallery/gallery.php

@ -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';

2
module/gallery/view/gallery/gallery.js.php

@ -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();
}

3
module/gallery/view/gallery/gallery.php

@ -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]; ?>')"

1
module/gallery/view/index/index.php

@ -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; ?>"

Loading…
Cancel
Save