2023-10-19 13:47:36 +02:00
|
|
|
<div class="row">
|
|
|
|
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
|
|
|
|
<!-- Layout en colonnes -->
|
|
|
|
<div class="col<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'layout']); ?>">
|
2023-10-19 11:41:54 +02:00
|
|
|
|
2023-10-19 13:47:36 +02:00
|
|
|
<!-- Affchage par bloc et bordure -->
|
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
|
|
|
<?php endif; ?>
|
2023-10-19 11:41:54 +02:00
|
|
|
|
2023-10-19 14:35:12 +02:00
|
|
|
<!-- Insère le titre court dans tous les cas -->
|
|
|
|
<?php echo $courseValue['title']; ?>
|
2023-10-19 11:41:54 +02:00
|
|
|
|
2023-10-19 13:47:36 +02:00
|
|
|
<!-- Fin du bloc et bordure titre 4 -->
|
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
|
|
|
</h4>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Description -->
|
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'description']) === true): ?>
|
|
|
|
<p>
|
|
|
|
<?php echo $courseValue['description']; ?>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Author -->
|
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>
|
|
|
|
<p>
|
2023-10-19 14:35:12 +02:00
|
|
|
<?php echo sprintf(helper::translate('Auteur : %s'), $this->signature($courseValue['author'])); ?>
|
2023-10-19 13:47:36 +02:00
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Modalité d'ouverture -->
|
2023-10-19 14:35:12 +02:00
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'access']) === true): ?>
|
2023-10-19 13:47:36 +02:00
|
|
|
<p>
|
|
|
|
<?php echo helper::translate('Disponibilité : ') . $module::$coursesAccess[$courseValue['access']]; ?>
|
|
|
|
<!--Les dates d'ouverture et de fermeture -->
|
|
|
|
<?php if ($courseValue['access'] === self::COURSE_ACCESS_DATE): ?>
|
2023-10-19 14:35:12 +02:00
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'openingdate']) === true): ?>
|
|
|
|
<p>
|
|
|
|
<?php echo sprintf(helper::translate('%s Ouvre le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['openingDate'])); ?>
|
|
|
|
</p>
|
2023-10-19 13:47:36 +02:00
|
|
|
<?php endif; ?>
|
2023-10-19 14:35:12 +02:00
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'closingdate']) === true): ?>
|
|
|
|
<p>
|
|
|
|
<?php echo sprintf(helper::translate('%s Ferme le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['closingDate'])); ?>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endif; ?>
|
2023-10-19 13:47:36 +02:00
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<!-- Modalité d'inscription -->
|
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>
|
|
|
|
<p>
|
|
|
|
<?php echo helper::translate('Inscription : ') . $module::$coursesEnrolment[$courseValue['enrolment']]; ?>
|
|
|
|
</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Fin du bloc et bordure -->
|
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|