forked from ZwiiCMS-Team/ZwiiCampus
v46 workshop lien manquant
This commit is contained in:
parent
b231450ff5
commit
58e947b73f
@ -50,7 +50,7 @@ class common
|
|||||||
const ACCESS_TIMER = 1800;
|
const ACCESS_TIMER = 1800;
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '1.0.45';
|
const ZWII_VERSION = '1.0.46';
|
||||||
|
|
||||||
// URL autoupdate
|
// URL autoupdate
|
||||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/';
|
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/';
|
||||||
|
@ -66,9 +66,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::text('coursesConfigUrlText', [
|
<?php echo template::text('coursesConfigCaption', [
|
||||||
'label' => 'Texte du lien vers le cours',
|
'label' => 'Texte du lien vers le cours',
|
||||||
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'urlText'])
|
'value' => $this->getData(['module', $this->getUrl(0), 'config', 'caption'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,12 +48,26 @@
|
|||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?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; ?>">
|
||||||
|
<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'caption']); ?>
|
||||||
|
</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Modalité d'inscription -->
|
<!-- Modalité d'inscription -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>
|
||||||
<p>
|
<p>
|
||||||
<?php echo helper::translate('Inscription : ') . $module::$coursesEnrolment[$courseValue['enrolment']]; ?>
|
<?php echo helper::translate('Inscription : ') . $module::$coursesEnrolment[$courseValue['enrolment']]; ?>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<!-- Lien d'accès -->
|
||||||
|
|
||||||
<!-- Fin du bloc et bordure -->
|
<!-- Fin du bloc et bordure -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -74,7 +74,7 @@ class workshop extends common
|
|||||||
'openingdate' => $this->getInput('coursesConfigShowOpeningDate', helper::FILTER_BOOLEAN),
|
'openingdate' => $this->getInput('coursesConfigShowOpeningDate', helper::FILTER_BOOLEAN),
|
||||||
'closingdate' => $this->getInput('coursesConfigShowClosingDate', helper::FILTER_BOOLEAN),
|
'closingdate' => $this->getInput('coursesConfigShowClosingDate', helper::FILTER_BOOLEAN),
|
||||||
'enrolment' => $this->getInput('coursesConfigShowEnrolment', helper::FILTER_BOOLEAN),
|
'enrolment' => $this->getInput('coursesConfigShowEnrolment', helper::FILTER_BOOLEAN),
|
||||||
'urlText' => $this->getInput('coursesConfigUrlText', helper::FILTER_STRING_SHORT),
|
'caption' => $this->getInput('coursesConfigCaption', helper::FILTER_STRING_SHORT),
|
||||||
'layout' => $this->getInput('coursesConfigLayout', helper::FILTER_INT),
|
'layout' => $this->getInput('coursesConfigLayout', helper::FILTER_INT),
|
||||||
'template' => $this->getInput('coursesConfigTemplate', helper::FILTER_BOOLEAN),
|
'template' => $this->getInput('coursesConfigTemplate', helper::FILTER_BOOLEAN),
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user