forked from ZwiiCMS-Team/ZwiiCampus
v54 intégre les rows
This commit is contained in:
parent
e218d8abc7
commit
4bec714850
@ -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.53';
|
const ZWII_VERSION = '1.0.54';
|
||||||
|
|
||||||
// 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/';
|
||||||
|
@ -97,7 +97,7 @@
|
|||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::checkbox('coursesConfigTemplate', true, 'Mise en évidence', [
|
<?php echo template::checkbox('coursesConfigTemplate', true, 'Mise en évidence', [
|
||||||
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'template']),
|
'checked' => $this->getData(['module', $this->getUrl(0), 'config', 'template']),
|
||||||
'help' => 'Template identique à TinyMCE avec une bordure et le titre en évidence. Classe de la division : workshopContainer'
|
'help' => 'Template identique à TinyMCE avec une bordure et le titre en évidence. Classe de la division : workshopItemContainer'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
13
module/workshop/view/index/index.css
Normal file
13
module/workshop/view/index/index.css
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/**
|
||||||
|
* This file is part of Zwii.
|
||||||
|
*
|
||||||
|
* For full copyright and license information, please see the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*
|
||||||
|
* @author Rémi Jean <remi.jean@outlook.com>
|
||||||
|
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||||
|
* @author Frédéric Tempez <frederic.tempez@outlook.com>
|
||||||
|
* @copyright Copyright (C) 2018-2023, Frédéric Tempez
|
||||||
|
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
|
||||||
|
* @link http://zwiicms.fr/
|
||||||
|
*/
|
@ -1,26 +1,28 @@
|
|||||||
<div class="row">
|
<?php $startRow = 0; ?>
|
||||||
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
|
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
|
||||||
<!-- Layout en colonnes -->
|
<?php if ($startRow === 0): ?>
|
||||||
<div class="workshopContainer col<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'layout']); ?>">
|
<div class="row workshopRowContainer">
|
||||||
|
<?php endif; ?>
|
||||||
<!-- Affchage par bloc et bordure -->
|
<!-- Layout en colonnes -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
<div class="workshopItemContainer col<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'layout']); ?>">
|
||||||
<div class="block">
|
<!-- Affchage par bloc et bordure -->
|
||||||
<h4>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
||||||
|
<div class="block">
|
||||||
|
<h4>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<p>
|
<p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Insère le titre court dans tous les cas -->
|
<!-- Insère le titre court dans tous les cas -->
|
||||||
<span class="workshopTitle">
|
<span class="workshopTitle">
|
||||||
<?php echo $courseValue['title']; ?>
|
<?php echo $courseValue['title']; ?>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!-- Fin du bloc et bordure titre 4 -->
|
<!-- Fin du bloc et bordure titre 4 -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
||||||
</h4>
|
</h4>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<p>
|
<p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Description -->
|
<!-- Description -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'description']) === true): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'description']) === true): ?>
|
||||||
@ -29,82 +31,86 @@
|
|||||||
<?php echo $courseValue['description']; ?>
|
<?php echo $courseValue['description']; ?>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Author -->
|
<!-- Author -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'author']) === true): ?>
|
||||||
|
<p>
|
||||||
|
<span class="workshopAuthor">
|
||||||
|
<?php echo sprintf(helper::translate('Auteur : %s'), $this->signature($courseValue['author'])); ?>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<?php endif; ?>
|
||||||
|
<!-- Modalité d'ouverture -->
|
||||||
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'access']) === true): ?>
|
||||||
|
<div class="workshopAccessContainer">
|
||||||
<p>
|
<p>
|
||||||
<span class="workshopAuthor">
|
<span class="workshopAccess">
|
||||||
<?php echo sprintf(helper::translate('Auteur : %s'), $this->signature($courseValue['author'])); ?>
|
<?php echo helper::translate('Disponibilité : ') . $module::$coursesAccess[$courseValue['access']]; ?>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
<!--Les dates d'ouverture et de fermeture -->
|
||||||
<?php endif; ?>
|
<?php if ($courseValue['access'] === self::COURSE_ACCESS_DATE): ?>
|
||||||
<!-- Modalité d'ouverture -->
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'openingdate']) === true): ?>
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'access']) === true): ?>
|
<p>
|
||||||
<div class="workshopAccessContainer">
|
<span class="workshopOpeningDate">
|
||||||
<p>
|
|
||||||
<span class="workshopAccess">
|
|
||||||
<?php echo helper::translate('Disponibilité : ') . $module::$coursesAccess[$courseValue['access']]; ?>
|
|
||||||
</span>
|
|
||||||
<!--Les dates d'ouverture et de fermeture -->
|
|
||||||
<?php if ($courseValue['access'] === self::COURSE_ACCESS_DATE): ?>
|
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'openingdate']) === true): ?>
|
|
||||||
<p>
|
|
||||||
<span class="workshopOpeningDate">
|
|
||||||
<?php echo sprintf(helper::translate('%s Ouvre le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['openingDate'])); ?>
|
<?php echo sprintf(helper::translate('%s Ouvre le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['openingDate'])); ?>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'closingdate']) === true): ?>
|
|
||||||
<p>
|
|
||||||
<span class="workshopClosingDate">
|
|
||||||
<?php echo sprintf(helper::translate('%s Ferme le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['closingDate'])); ?>
|
|
||||||
</span>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</p>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'closingdate']) === true): ?>
|
||||||
</div>
|
<p>
|
||||||
<?php endif; ?>
|
<span class="workshopClosingDate">
|
||||||
|
<?php echo sprintf(helper::translate('%s Ferme le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['closingDate'])); ?>
|
||||||
<!-- Modalité d'inscription -->
|
</span>
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'enrolment']) === true): ?>
|
</p>
|
||||||
<p>
|
<?php endif; ?>
|
||||||
<span class="workshopEnrolment">
|
<?php endif; ?>
|
||||||
<?php echo sprintf(helper::translate('Inscription : %s '), $module::$coursesEnrolment[$courseValue['enrolment']]); ?>
|
|
||||||
</span>
|
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Lien accès au cours-->
|
<!-- Modalité d'inscription -->
|
||||||
<div class="row">
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'enrolment']) === true): ?>
|
||||||
<div class="col6 workshopLinkContainer">
|
<p>
|
||||||
<?php if (
|
<span class="workshopEnrolment">
|
||||||
$courseValue['access'] === self::COURSE_ACCESS_OPEN
|
<?php echo sprintf(helper::translate('Inscription : %s '), $module::$coursesEnrolment[$courseValue['enrolment']]); ?>
|
||||||
||
|
</span>
|
||||||
($courseValue['access'] === self::COURSE_ACCESS_DATE && time() >= $courseValue['openingDate'] && time() <= $courseValue['closingDate'])
|
</p>
|
||||||
): ?>
|
<?php endif; ?>
|
||||||
<span class="workshopSuscribe">
|
|
||||||
|
<!-- Lien accès au cours-->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col6 workshopLinkContainer">
|
||||||
|
<?php if (
|
||||||
|
$courseValue['access'] === self::COURSE_ACCESS_OPEN
|
||||||
|
||
|
||||||
|
($courseValue['access'] === self::COURSE_ACCESS_DATE && time() >= $courseValue['openingDate'] && time() <= $courseValue['closingDate'])
|
||||||
|
): ?>
|
||||||
|
<span class="workshopSuscribe">
|
||||||
<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), 'caption', 'url']); ?>
|
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'url']); ?>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6 textAlignRight">
|
<div class="col6 textAlignRight">
|
||||||
<!-- Lien désinscription-->
|
<!-- Lien désinscription-->
|
||||||
<?php if ($this->getData(['enrolment', $courseId, $this->getUser('id')])): ?>
|
<?php if ($this->getData(['enrolment', $courseId, $this->getUser('id')])): ?>
|
||||||
<span class="workshopUnsuscribe">
|
<span class="workshopUnsuscribe">
|
||||||
<a href="<?php echo helper::baseUrl(); ?>course/unsuscribe/<?php echo $courseId; ?>">
|
<a href="<?php echo helper::baseUrl(); ?>course/unsuscribe/<?php echo $courseId; ?>">
|
||||||
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']); ?>
|
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']); ?>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Fin du bloc et bordure -->
|
</div>
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
<!-- Fin du bloc et bordure -->
|
||||||
</div>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'template']) === true): ?>
|
||||||
<?php endif; ?>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
<?php $startRow = $startRow + $this->getData(['module', $this->getUrl(0), 'config', 'layout']); ?>
|
||||||
|
<?php if ($startRow === 12): ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php $startRow = 0; ?>
|
||||||
</div>
|
<?php endif; ?>
|
||||||
|
<?php endforeach; ?>
|
Loading…
Reference in New Issue
Block a user