forked from ZwiiCMS-Team/ZwiiCampus
v47 bug de lien
This commit is contained in:
parent
58e947b73f
commit
8639d1781f
@ -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/';
|
||||
|
@ -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'
|
||||
|
@ -48,26 +48,24 @@
|
||||
</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
|
||||
||
|
||||
($courseValue['access'] === self::COURSE_ACCESS_DATE && time() >= $courseValue['openingDate'] && time() <= $courseValue['closingDate'])
|
||||
): ?>
|
||||
<a href="<?php echo helper::baseUrl();?>course/swap/<?php echo $courseId; ?>">
|
||||
<a href="<?php echo helper::baseUrl(); ?>course/swap/<?php echo $courseId; ?>">
|
||||
<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'caption']); ?>
|
||||
</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>
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user