From 587d8d0be1951068f1f388ad26f34890358307d0 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 22 Oct 2023 21:21:06 +0200 Subject: [PATCH] =?UTF-8?q?v56=20simplification=20libell=C3=A9=20workshop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- module/workshop/view/config/config.php | 16 +++------------- module/workshop/view/index/index.php | 21 ++------------------- module/workshop/workshop.php | 14 ++++++-------- 4 files changed, 12 insertions(+), 41 deletions(-) diff --git a/core/core.php b/core/core.php index 53e8f98..11ab63d 100644 --- a/core/core.php +++ b/core/core.php @@ -50,7 +50,7 @@ class common const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '1.0.55'; + const ZWII_VERSION = '1.0.56'; // URL autoupdate const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/'; diff --git a/module/workshop/view/config/config.php b/module/workshop/view/config/config.php index 8a9c9f7..1c774a5 100644 --- a/module/workshop/view/config/config.php +++ b/module/workshop/view/config/config.php @@ -56,18 +56,6 @@ 'help' => 'Classes CSS de la division workshopAccessContainer, élément en ligne workshopAccess' ]); ?> -
- $this->getData(['module', $this->getUrl(0), 'config', 'openingdate']), - 'help' => 'Affiché seulement si l\'accès est limité dans le temps. Classe CSS de l\'élément en ligne : workshopOpeningDate', - ]); ?> -
-
- $this->getData(['module', $this->getUrl(0), 'config', 'closingdate']), - 'help' => 'Affiché seulement si l\'accès est limité dans le temps. Classe CSS de l\'élément en ligne : workshopClosingDate', - ]); ?> -
@@ -120,7 +108,9 @@
'Période', - 'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'accessdate']) + 'value' => $this->getData(['module', $this->getUrl(0), 'caption', 'accessdate']), + 'help' => 'Insérer deux symboles %s pour placer les dates d\'ouverture et de fermeture', + 'placeholder' => 'Ouvre le %s et ferme le %s' ]); ?>
diff --git a/module/workshop/view/index/index.php b/module/workshop/view/index/index.php index 879d692..4878f5e 100644 --- a/module/workshop/view/index/index.php +++ b/module/workshop/view/index/index.php @@ -36,7 +36,7 @@ getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>

- signature($courseValue['author'])); ?> + signature($courseValue['author']); ?>

@@ -45,25 +45,8 @@

- + - - - getData(['module', $this->getUrl(0), 'config', 'openingdate']) === true): ?> -

- - - -

- - getData(['module', $this->getUrl(0), 'config', 'closingdate']) === true): ?> -

- - - -

- -

diff --git a/module/workshop/workshop.php b/module/workshop/workshop.php index 8830b00..5bc3211 100644 --- a/module/workshop/workshop.php +++ b/module/workshop/workshop.php @@ -47,19 +47,17 @@ class workshop extends common "author" => true, "description" => true, "access" => true, - "openingdate" => true, - "closingdate" => true, "enrolment" => true, "layout" => 6, "template" => true ), "caption" => array( - "accessopen" => "ouvert", - "accessdate" => "période d'ouverture", - "accessclose" => "fermé", - "enrolguest" => "anonyme", - "enrolself" => "membres", - "enrolselfkey" => "membres avec clé", + "accessopen" => "Ouvert", + "accessdate" => "Période d'ouverture du %s au %s", + "accessclose" => "Fermé", + "enrolguest" => "Anonyme", + "enrolself" => "Membres", + "enrolselfkey" => "Membres avec clé", "url" => "Accéder au cours", "unsuscribe" => "Me désinscrire" )