From 42a228a6895c810fee1a59694bcc803c8721fa39 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 19 Nov 2023 17:52:02 +0100 Subject: [PATCH] show al categories --- module/workshop/view/index/index.php | 69 +++++++++++++++------------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/module/workshop/view/index/index.php b/module/workshop/view/index/index.php index e941e6b..271151f 100644 --- a/module/workshop/view/index/index.php +++ b/module/workshop/view/index/index.php @@ -1,7 +1,10 @@ getData(['course']) as $courseId => $courseValue): ?> - getData(['module', $this->getUrl(0), 'config', 'category'])): ?> + getData(['module', $this->getUrl(0), 'config', 'category']) !== 'all' && + $courseValue['category'] !== $this->getData(['module', $this->getUrl(0), 'config', 'category']) + ): ?> @@ -63,39 +66,43 @@

- getData(['course', $courseId, 'limitEnrolment']) === true ):?> - getData(['module', $this->getUrl(0), 'caption', 'enrolmentLimit']); ?> - getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI); ?> + getData(['course', $courseId, 'limitEnrolment']) === true): ?> +

+ + getData(['module', $this->getUrl(0), 'caption', 'enrolmentLimit']); ?> + getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI); ?> + +

- -
- -
- - getData(['enrolment', $courseId, $this->getUser('id')])): ?> - - - getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']); ?> - - - -
+ +
+ - - getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?> +
+ + getData(['enrolment', $courseId, $this->getUser('id')])): ?> + + + getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']); ?> + + + +
+
+ + getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>