show al categories

This commit is contained in:
Fred Tempez 2023-11-19 17:52:02 +01:00
parent b92944e8e3
commit 42a228a689

View File

@ -1,7 +1,10 @@
<?php $startRow = 0; ?> <?php $startRow = 0; ?>
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?> <?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
<!-- Filtre de catégorie --> <!-- Filtre de catégorie -->
<?php if ($courseValue['category'] !== $this->getData(['module', $this->getUrl(0), 'config', 'category'])): ?> <?php if (
$this->getData(['module', $this->getUrl(0), 'config', 'category']) !== 'all' &&
$courseValue['category'] !== $this->getData(['module', $this->getUrl(0), 'config', 'category'])
): ?>
<?php continue; ?> <?php continue; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($startRow === 0): ?> <?php if ($startRow === 0): ?>
@ -64,8 +67,12 @@
</span> </span>
</p> </p>
<?php if ($this->getData(['course', $courseId, 'limitEnrolment']) === true): ?> <?php if ($this->getData(['course', $courseId, 'limitEnrolment']) === true): ?>
<p>
<span class="workshopEnrolmentLimit">
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'enrolmentLimit']); ?> <?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'enrolmentLimit']); ?>
<?php echo helper::dateUTF8(' %d %B %Y', $this->getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI); ?> <?php echo helper::dateUTF8(' %d %B %Y', $this->getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI) . helper::translate(' à ') . helper::dateUTF8('%H:%M', $this->getData(['course', $courseId, 'limitEnrolmentDate']), self::$i18nUI); ?>
</span>
</p>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<!-- Lien accès au contenu--> <!-- Lien accès au contenu-->