course link lien dans l'id uniquement

This commit is contained in:
Fred Tempez 2024-01-13 22:22:16 +01:00
parent 71ecbb1842
commit 98ee5d4afe

View File

@ -89,7 +89,7 @@ class course extends common
$author = isset($authorId) $author = isset($authorId)
? sprintf('%s %s', $this->getData(['user', $authorId, 'firstname']), $this->getData(['user', $authorId, 'lastname'])) ? sprintf('%s %s', $this->getData(['user', $authorId, 'firstname']), $this->getData(['user', $authorId, 'lastname']))
: ''; : '';
$info = sprintf('<strong>%s<br /></strong>Auteur : %s<br />Id : %s<br />', $courseValue['title'], $author, $courseId); $info = sprintf('<strong>%s<br /></strong>Auteur : %s<br />Id : <a href="%s" target="_blank">%s<br />', $courseValue['title'], $author, $categorieUrl, $courseId);
$categorieUrl = helper::baseUrl() . 'course/swap/' . $courseId; $categorieUrl = helper::baseUrl() . 'course/swap/' . $courseId;
$access = self::$courseAccess[$courseValue['access']]; $access = self::$courseAccess[$courseValue['access']];
$enrolment = self::$courseEnrolment[$courseValue['enrolment']]; $enrolment = self::$courseEnrolment[$courseValue['enrolment']];
@ -97,7 +97,7 @@ class course extends common
self::$courses[] = [ self::$courses[] = [
$info, $info,
//$author, //$author,
'<a href="' . $categorieUrl . '" target="_blank">' . $description . '</a>', $description,
template::button('categoryUser' . $courseId, [ template::button('categoryUser' . $courseId, [
'href' => helper::baseUrl() . 'course/users/' . $courseId, 'href' => helper::baseUrl() . 'course/users/' . $courseId,
'value' => template::ico('users'), 'value' => template::ico('users'),