Skip to content

Commit

Permalink
#189 [Hook] add: picto getnomurl for projectoverview
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Feb 16, 2023
1 parent 81fb0d2 commit 2fb71c0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion class/actions_dolimeet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<tr><td>';
$outputline .= $langs->trans(ucfirst($linkedSession->type));
$outputline .= '</td><td>';
$outputline .= $linkedSession->getNomUrl();
$outputline .= $linkedSession->getNomUrl(1);
$outputline .= '</td><td>';
$outputline .= dol_print_date($linkedSession->date_start, 'dayhour') . ' - ' . dol_print_date($linkedSession->date_end, 'dayhour');
$outputline .= '</td><td>';
Expand Down

0 comments on commit 2fb71c0

Please sign in to comment.