diff --git a/CHANGES.md b/CHANGES.md index bdbe571..d4da835 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,7 +2,7 @@ ## Version 4.5.04 de Deltacms - Modifications : - - + - Agenda 6.0 : la couleur de la grille est réglable en configuration, - Corrections : - - Sur le site : diff --git a/module/agenda/agenda.php b/module/agenda/agenda.php index a7eba2f..3765ed0 100644 --- a/module/agenda/agenda.php +++ b/module/agenda/agenda.php @@ -36,7 +36,7 @@ class agenda extends common { 'index' => self::GROUP_VISITOR ]; - const VERSION = '5.9'; + const VERSION = '6.0'; const REALNAME = 'Agenda'; const DELETE = true; const UPDATE = '4.1'; @@ -116,9 +116,11 @@ class agenda extends common { copy( './module/agenda/ressource/file/source/agenda/adresses/.htaccess', './site/file/source/agenda/adresses/.htaccess'); $this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.2']); } - // Mise à jour vers la version 5.9 - if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.9', '<') ) { - $this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.9']); + // Mise à jour vers la version 6.0 + if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '6.0', '<') ) { + // Couleur de la grille + $this->setData(['module', $this->getUrl(0),'config', 'gridColor', 'rgba(146, 52, 101, 1)']); + $this->setData(['module', $this->getUrl(0), 'config', 'versionData','6.0']); } } @@ -151,6 +153,7 @@ class agenda extends common { $fichier_ics = $this->getInput('config_fichier_ics'); $largeur_maxi = $this->getInput('config_MaxiWidth'); $fichier_csv_txt = $this->getInput('config_fichier_csv_txt'); + $gridColor = $this->getInput('config_gridColor'); //Sauvegarder l'agenda if ($fichier_sauve !=''){ @@ -240,6 +243,7 @@ class agenda extends common { 'droit_creation' => intval($droit_creation), 'droit_limite' => $droit_limite, 'maxiWidth' => $largeur_maxi, + 'gridColor' => $gridColor, 'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']) ]]); $this->setData(['module', $this->getUrl(0), 'texts',[ @@ -322,6 +326,9 @@ class agenda extends common { $this->addOutput([ 'showBarEditButton' => true, 'showPageContent' => false, + 'vendor' => [ + 'tinycolorpicker' + ], 'view' => 'config' ]); } @@ -885,6 +892,7 @@ class agenda extends common { 'droit_creation' => 2, 'droit_limite' => true, 'maxiWidth' => '800', + 'gridColor' => 'rgba(146, 52, 101, 1)', 'versionData' => self::VERSION ], 'categories' => [ diff --git a/module/agenda/vendor/js/css.inc.json b/module/agenda/vendor/js/css.inc.json index 4fd99ea..626fbb1 100644 --- a/module/agenda/vendor/js/css.inc.json +++ b/module/agenda/vendor/js/css.inc.json @@ -1,4 +1,5 @@ [ "packages/core/main.min.css", - "packages/daygrid/main.min.css" + "packages/daygrid/main.min.css", + "../../view/index/index.css" ] \ No newline at end of file diff --git a/module/agenda/view/config/config.php b/module/agenda/view/config/config.php index bd89cc6..781bbd5 100644 --- a/module/agenda/view/config/config.php +++ b/module/agenda/view/config/config.php @@ -70,13 +70,21 @@ else {