v47 bug de lien

This commit is contained in:
Fred Tempez 2023-10-19 15:40:24 +02:00
parent 58e947b73f
commit 8639d1781f
4 changed files with 11 additions and 13 deletions

View File

@ -50,7 +50,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.0.46';
const ZWII_VERSION = '1.0.47';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/';

View File

@ -40,7 +40,7 @@ class course extends common
];
public static $courseEnrolment = [
self::COURSE_ENROLMENT_GUEST => 'Sans inscription',
self::COURSE_ENROLMENT_GUEST => 'Anonyme',
self::COURSE_ENROLMENT_SELF => 'Inscription libre',
self::COURSE_ENROLMENT_SELF_KEY => 'Inscription avec clé',
//self::COURSE_ENROLMENT_MANUAL => 'Manuelle'

View File

@ -48,6 +48,13 @@
</p>
<?php endif; ?>
<!-- Modalité d'inscription -->
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'enrolment']) === true): ?>
<p>
<?php echo sprintf(helper::translate('Inscription : %s '), $module::$coursesEnrolment[$courseValue['enrolment']]); ?>
</p>
<?php endif; ?>
<!-- Lien -->
<?php if (
$courseValue['access'] === self::COURSE_ACCESS_OPEN
@ -59,15 +66,6 @@
</a>
<?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; ?>
<!-- Lien d'accès -->
<!-- Fin du bloc et bordure -->
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
</div>

View File

@ -44,7 +44,7 @@ class workshop extends common
];
public static $coursesEnrolment = [
self::COURSE_ENROLMENT_GUEST => 'sans inscription',
self::COURSE_ENROLMENT_GUEST => 'anonyme, sans inscription',
self::COURSE_ENROLMENT_SELF => 'inscription libre',
self::COURSE_ENROLMENT_SELF_KEY => 'inscription avec clé',
//self::COURSE_ENROLMENT_MANUAL => 'Manuelle'