From 2fb71c0e12c090e20591cdc6e2026bb8048723b5 Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Thu, 16 Feb 2023 20:54:12 +0100 Subject: [PATCH] #189 [Hook] add: picto getnomurl for projectoverview --- class/actions_dolimeet.class.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/class/actions_dolimeet.class.php b/class/actions_dolimeet.class.php index 1fe87f1..fa18a16 100644 --- a/class/actions_dolimeet.class.php +++ b/class/actions_dolimeet.class.php @@ -135,10 +135,25 @@ public function printCommonFooter(array $parameters): int if (is_array($linkedSessions) && !empty($linkedSessions)) { foreach($linkedSessions as $linkedSession) { + switch ($linkedSession->type) { + case 'trainingsession': + $linkedSession->picto = 'fontawesome_fa-people-arrows_fas_#d35968'; + break; + case 'meeting': + $linkedSession->picto = 'fontawesome_fa-comments_fas_#d35968'; + break; + case 'audit': + $linkedSession->picto = 'fontawesome_fa-tasks_fas_#d35968'; + break; + default : + $linkedSession->picto = 'dolimeet_color@dolimeet'; + break; + } + $outputline .= ''; $outputline .= $langs->trans(ucfirst($linkedSession->type)); $outputline .= ''; - $outputline .= $linkedSession->getNomUrl(); + $outputline .= $linkedSession->getNomUrl(1); $outputline .= ''; $outputline .= dol_print_date($linkedSession->date_start, 'dayhour') . ' - ' . dol_print_date($linkedSession->date_end, 'dayhour'); $outputline .= '';