Show the organisation of each speaker, if provided

This commit is contained in:
Vencislav Atanasov 2023-10-17 00:45:48 +03:00
parent 8ad92a5fa3
commit 9f3dc1a1aa
1 changed files with 5 additions and 3 deletions

View File

@ -284,8 +284,10 @@ function parseData($config, $data) {
continue; continue;
} }
$name = $data['speakers'][$uid]['first_name'] . ' ' . $data['speakers'][$uid]['last_name']; $speaker = $data['speakers'][$uid];
$spk[] = '<a class="vt-p" href="#' . $name . '">' . $name . '</a>'; $name = $speaker['first_name'] . ' ' . $speaker['last_name'];
$organisation = empty($speaker['organisation']) ? '' : (' /' . $speaker['organisation'] . '/');
$spk[] = '<a class="vt-p" href="#' . $name . '">' . $name . '</a>' . $organisation;
} }
$speakers = implode (', ', $spk); $speakers = implode (', ', $spk);