indax add CSS span and div
This commit is contained in:
parent
052280f728
commit
78dbc4b3b2
@ -1,81 +1,105 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
|
<?php foreach ($this->getData(['course']) as $courseId => $courseValue): ?>
|
||||||
<!-- Layout en colonnes -->
|
<!-- Layout en colonnes -->
|
||||||
<div class="col<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'layout']); ?>">
|
<div class="workshopContainer col<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'layout']); ?>">
|
||||||
|
|
||||||
<!-- Affchage par bloc et bordure -->
|
<!-- Affchage par 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 class="block">
|
<div class="block">
|
||||||
<h4>
|
<h4>
|
||||||
<?php endif; ?>
|
<?php else: ?>
|
||||||
|
<p>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Insère le titre court dans tous les cas -->
|
<!-- Insère le titre court dans tous les cas -->
|
||||||
<?php echo $courseValue['title']; ?>
|
<span class="workshopTitle">
|
||||||
|
<?php echo $courseValue['title']; ?>
|
||||||
|
</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: ?>
|
||||||
|
<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): ?>
|
||||||
<p>
|
<p>
|
||||||
|
<span class="workshopDescription">
|
||||||
<?php echo $courseValue['description']; ?>
|
<?php echo $courseValue['description']; ?>
|
||||||
</p>
|
</span>
|
||||||
|
</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>
|
<p>
|
||||||
<?php echo sprintf(helper::translate('Auteur : %s'), $this->signature($courseValue['author'])); ?>
|
<span class="workshopAuthor">
|
||||||
|
<?php echo sprintf(helper::translate('Auteur : %s'), $this->signature($courseValue['author'])); ?>
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Modalité d'ouverture -->
|
<!-- Modalité d'ouverture -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'access']) === true): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'access']) === true): ?>
|
||||||
<p>
|
<div class="workshopAccessContainer">
|
||||||
<?php echo helper::translate('Disponibilité : ') . $module::$coursesAccess[$courseValue['access']]; ?>
|
<p>
|
||||||
<!--Les dates d'ouverture et de fermeture -->
|
<span class="workshopAccess">
|
||||||
<?php if ($courseValue['access'] === self::COURSE_ACCESS_DATE): ?>
|
<?php echo helper::translate('Disponibilité : ') . $module::$coursesAccess[$courseValue['access']]; ?>
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'openingdate']) === true): ?>
|
</span>
|
||||||
<p>
|
<!--Les dates d'ouverture et de fermeture -->
|
||||||
<?php echo sprintf(helper::translate('%s Ouvre le %s'), template::ico('calendar-empty'), helper::dateUTF8('%d %B %Y', $courseValue['openingDate'])); ?>
|
<?php if ($courseValue['access'] === self::COURSE_ACCESS_DATE): ?>
|
||||||
</p>
|
<?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'])); ?>
|
||||||
|
</span>
|
||||||
|
</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; ?>
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'closingdate']) === true): ?>
|
</p>
|
||||||
<p>
|
</div>
|
||||||
<?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; ?>
|
|
||||||
</p>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Modalité d'inscription -->
|
<!-- Modalité d'inscription -->
|
||||||
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'enrolment']) === true ): ?>
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'enrolment']) === true): ?>
|
||||||
<p>
|
<p>
|
||||||
<?php echo sprintf(helper::translate('Inscription : %s '), $module::$coursesEnrolment[$courseValue['enrolment']]); ?>
|
<span class="workshopEnrolment">
|
||||||
|
<?php echo sprintf(helper::translate('Inscription : %s '), $module::$coursesEnrolment[$courseValue['enrolment']]); ?>
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Lien accès au cours-->
|
<!-- Lien accès au cours-->
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col6 workshopLinkContainer">
|
||||||
<?php if (
|
<?php if (
|
||||||
$courseValue['access'] === self::COURSE_ACCESS_OPEN
|
$courseValue['access'] === self::COURSE_ACCESS_OPEN
|
||||||
||
|
||
|
||||||
($courseValue['access'] === self::COURSE_ACCESS_DATE && time() >= $courseValue['openingDate'] && time() <= $courseValue['closingDate'])
|
($courseValue['access'] === self::COURSE_ACCESS_DATE && time() >= $courseValue['openingDate'] && time() <= $courseValue['closingDate'])
|
||||||
): ?>
|
): ?>
|
||||||
<a href="<?php echo helper::baseUrl(); ?>course/swap/<?php echo $courseId; ?>">
|
<span class="workshopSuscribe">
|
||||||
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'url']); ?>
|
<a href="<?php echo helper::baseUrl(); ?>course/swap/<?php echo $courseId; ?>">
|
||||||
</a>
|
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'url']); ?>
|
||||||
<?php endif; ?>
|
</a>
|
||||||
</div>
|
</span>
|
||||||
<div class="col6 textAlignRight">
|
<?php endif; ?>
|
||||||
<!-- Lien désinscription-->
|
</div>
|
||||||
<?php if ($this->getData(['enrolment', $courseId, $this->getUser('id')])): ?>
|
<div class="col6 textAlignRight">
|
||||||
<a href="<?php echo helper::baseUrl(); ?>course/unsuscribe/<?php echo $courseId; ?>">
|
<!-- Lien désinscription-->
|
||||||
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']); ?>
|
<?php if ($this->getData(['enrolment', $courseId, $this->getUser('id')])): ?>
|
||||||
</a>
|
<span class="workshopUnsuscribe">
|
||||||
<?php endif; ?>
|
<a href="<?php echo helper::baseUrl(); ?>course/unsuscribe/<?php echo $courseId; ?>">
|
||||||
</div>
|
<?php echo $this->getData(['module', $this->getUrl(0), 'caption', 'unsuscribe']); ?>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 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): ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user