From 355572b9276052581d32ec09b72ca950828b37cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Sat, 21 May 2022 16:44:36 +0200 Subject: [PATCH] gallery masquer le bouton beck en mode mono galerie --- module/gallery/gallery.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index aaf5de1b..ddb3258e 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -664,7 +664,10 @@ class gallery extends common { // Définir les options self::$config['homePicture'] = $this->getData(['module',$this->getUrl(0),'content', $gallery,'config','homePicture']); self::$config['fullScreen'] = $this->getData(['module',$this->getUrl(0),'content', $gallery,'config','fullScreen']) === true ? 'fullScreen' : ''; - self::$config['backPosition'] = $this->getData(['module', $this->getUrl(0), 'config','backPosition']) ; + self::$config['backPosition'] = ( $this->getData(['module', $this->getUrl(0), 'config', 'showUniqueGallery']) === true && + count($this->getData(['module', $this->getUrl(0), 'content'])) === 1 ) + ? 'displayNone' + :$this->getData(['module', $this->getUrl(0), 'config','backPosition']) ; self::$config['backAlign'] = 'textAlign' . ucfirst($this->getData(['module', $this->getUrl(0), 'config','backAlign'])) ; if(is_dir($directory) ) { $iterator = new DirectoryIterator($directory);