forked from ZwiiCMS-Team/ZwiiCampus
Lien direct dans la liste des cours
This commit is contained in:
parent
07cb5d313f
commit
54087cec56
@ -54,10 +54,12 @@ class course extends common
|
|||||||
$courseIdShortTitle = helper::arrayColumn($this->getData(['course']), 'shortTitle');
|
$courseIdShortTitle = helper::arrayColumn($this->getData(['course']), 'shortTitle');
|
||||||
ksort($courseIdShortTitle);
|
ksort($courseIdShortTitle);
|
||||||
foreach ($courseIdShortTitle as $courseId => $courseTitle) {
|
foreach ($courseIdShortTitle as $courseId => $courseTitle) {
|
||||||
|
$categorieUrl = helper::baseUrl(!helper::checkRewrite()) . 'course/swap/' . $courseId ;
|
||||||
self::$courses[] = [
|
self::$courses[] = [
|
||||||
$courseTitle,
|
$courseTitle,
|
||||||
$this->getData(['course', $courseId, 'author']),
|
$this->getData(['course', $courseId, 'author']),
|
||||||
$this->getData(['course', $courseId, 'description']),
|
$this->getData(['course', $courseId, 'description']),
|
||||||
|
'<a href="' . $categorieUrl .'" target="_blank">' . $categorieUrl . '</a>',
|
||||||
template::button('courseEdit' . $courseId, [
|
template::button('courseEdit' . $courseId, [
|
||||||
'href' => helper::baseUrl() . 'course/edit/' . $courseId,
|
'href' => helper::baseUrl() . 'course/edit/' . $courseId,
|
||||||
'value' => template::ico('pencil'),
|
'value' => template::ico('pencil'),
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if($module::$courses): ?>
|
<?php if($module::$courses): ?>
|
||||||
<?php echo template::table([3 , 3, 4, 1, 1], $module::$courses, ['Titre court', 'Auteur', 'Description', '', '']); ?>
|
<?php echo template::table([2, 2, 2, 4, 1, 1], $module::$courses, ['Titre court', 'Auteur', 'Description', 'Lien direct', '', '']); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo template::speech('Aucun Cours'); ?>
|
<?php echo template::speech('Aucun Cours'); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user