diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 07f61521..69381a3c 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -226,6 +226,7 @@ class gallery extends common { if ( $this->getData(['module', $this->getUrl(0), 'theme']) === null ) { require_once('module/gallery/ressource/defaultdata.php'); $this->setData(['module', $this->getUrl(0), 'theme', theme::$defaultTheme]); + $this->setData(['module', $this->getUrl(0), 'config', theme::$defaultConfig]); // Nom de la feuille de style $this->setData(['module', $this->getUrl(0), 'theme', 'style', $fileCSS]); } diff --git a/module/gallery/ressource/defaultdata.php b/module/gallery/ressource/defaultdata.php index 737999c3..e8745929 100644 --- a/module/gallery/ressource/defaultdata.php +++ b/module/gallery/ressource/defaultdata.php @@ -1,20 +1,25 @@ 'center', - 'thumbWidth' => '18em', - 'thumbHeight' => '15em', - 'thumbMargin' => '.5em', - 'thumbBorder' => '.1em', - 'thumbOpacity' => '.7', - 'thumbBorderColor' => 'rgba(221, 221, 221, 1)', - 'thumbRadius' => '.3em', - 'thumbShadows' => '1px 1px 10px', - 'thumbShadowsColor'=> 'rgba(125, 125, 125, 1)', - 'legendHeight' => '.375em', - 'legendAlign' => 'center', - 'legendTextColor' => 'rgba(255, 255, 255, 1)', - 'legendBgColor' => 'rgba(0, 0, 0, .6)' + 'thumbAlign' => 'center', + 'thumbWidth' => '18em', + 'thumbHeight' => '15em', + 'thumbMargin' => '.5em', + 'thumbBorder' => '.1em', + 'thumbOpacity' => '.7', + 'thumbBorderColor' => 'rgba(221, 221, 221, 1)', + 'thumbRadius' => '.3em', + 'thumbShadows' => '1px 1px 10px', + 'thumbShadowsColor' => 'rgba(125, 125, 125, 1)', + 'legendHeight' => '.375em', + 'legendAlign' => 'center', + 'legendTextColor' => 'rgba(255, 255, 255, 1)', + 'legendBgColor' => 'rgba(0, 0, 0, .6)' + ]; + public static $defaultConfig = [ + "showUniqueGallery" => false, + "backPosition" => "top", + "backAlign" => "center" ]; public static $defaultData = [ 'versionData' => '3.0'