Show the organisation of each speaker, if provided
This commit is contained in:
parent
8ad92a5fa3
commit
9f3dc1a1aa
|
@ -280,12 +280,14 @@ function parseData($config, $data) {
|
||||||
$spk = [];
|
$spk = [];
|
||||||
|
|
||||||
foreach ($event['participant_user_ids'] as $uid) {
|
foreach ($event['participant_user_ids'] as $uid) {
|
||||||
if (in_array($uid, $config['hidden_speakers']) || empty($data['speakers'][$uid])) {
|
if (in_array($uid, $config['hidden_speakers']) || empty($data['speakers'][$uid])) {
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue