0): ?>

Characters

tabs('character-types', $data['characters'], static function ($characterList, $role) use ($component, $url, $helper) { $rendered = []; foreach ($characterList as $id => $character): if (empty($character['image']['original'])) { continue; } $rendered[] = $component->character( $character['name'], $url->generate('character', ['slug' => $character['slug']]), $helper->picture("images/characters/{$id}.webp"), (strtolower($role) !== 'main') ? 'small-character' : 'character' ); endforeach; return implode('', array_map('mb_trim', $rendered)); }) ?>
0): ?>

Staff

verticalTabs('staff-role', $data['staff'], static function ($staffList) use ($component, $url, $helper) { $rendered = []; foreach ($staffList as $id => $person): if (empty($person['image']['original'])) { continue; } $rendered[] = $component->character( $person['name'], $url->generate('person', ['slug' => $person['slug']]), $helper->picture(getLocalImg($person['image']['original'] ?? NULL)), 'character small-person', ); endforeach; return implode('', array_map('mb_trim', $rendered)); }) ?>