gammery 3.4 démarrage en mode plein écran inopérant
This commit is contained in:
parent
10c3d01597
commit
ad7001eeb7
|
@ -17,7 +17,7 @@
|
||||||
class gallery extends common {
|
class gallery extends common {
|
||||||
|
|
||||||
|
|
||||||
const VERSION = '3.3';
|
const VERSION = '3.4';
|
||||||
const REALNAME = 'Galerie';
|
const REALNAME = 'Galerie';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
|
|
|
@ -25,7 +25,7 @@ var b = new SimpleLightbox('.galleryGalleryPicture', {
|
||||||
|
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
// Démarre en mode plein écran
|
// 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) {
|
if ( fullscreen === true) {
|
||||||
$('a#homePicture')[0].click();
|
$('a#homePicture')[0].click();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,10 @@
|
||||||
<div class="row galleryRow">
|
<div class="row galleryRow">
|
||||||
<?php foreach($module::$pictures as $picture => $legend): ?>
|
<?php foreach($module::$pictures as $picture => $legend): ?>
|
||||||
<div class="colPicture">
|
<div class="colPicture">
|
||||||
|
<?php var_dump ( $this->getData(['module',$this->getUrl(0),'content',$this->getUrl(1),'config','fullScreen'])); ?>
|
||||||
<a
|
<a
|
||||||
href="<?php echo helper::baseUrl(false) . $picture; ?>"
|
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"'; } ?>
|
echo 'id="homePicture"'; } ?>
|
||||||
class="galleryGalleryPicture"
|
class="galleryGalleryPicture"
|
||||||
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"
|
style="background-image:url('<?php echo helper::baseUrl(false) . $module::$thumbs[$picture]; ?>')"
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php if($module::$galleries): ?>
|
<?php if($module::$galleries): ?>
|
||||||
<div class="row galleryRow">
|
<div class="row galleryRow">
|
||||||
<?php foreach($module::$galleries as $galleryId => $gallery): ?>
|
<?php foreach($module::$galleries as $galleryId => $gallery): ?>
|
||||||
|
|
||||||
<div class="colPicture" div="pos<?php echo $gallery['config']['position']; ?>" >
|
<div class="colPicture" div="pos<?php echo $gallery['config']['position']; ?>" >
|
||||||
<a
|
<a
|
||||||
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"
|
href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>/<?php echo $galleryId; ?>"
|
||||||
|
|
Loading…
Reference in New Issue