1<?php
2/**
3 * Public staff directory.
4 *
5 * Prepared by team.php: $staffGroups (group_id => ['label', 'members']),
6 * highest group first; $loadOutfits.
7 */
8?>
9<h1><?= t('team.title') ?></h1>
10
11<?php if ($staffGroups): ?>
12 <?php foreach ($staffGroups as $group): ?>
13 <h2><?= h($group['label']) ?></h2>
14 <table>
15 <tr class="yellow">
16 <?php if ($loadOutfits): ?><td><?= t('common.image') ?></td><?php endif; ?>
17 <td><?= t('team.col_name') ?></td>
18 </tr>
19 <?php foreach ($group['members'] as $member): ?>
20 <tr>
21 <?php if ($loadOutfits): ?>
22 <td>
23 <img src="<?= h($config['show_outfits']['imageServer']) ?>?id=<?= (int)$member['looktype'] ?>&addons=<?= (int)$member['lookaddons'] ?>&head=<?= (int)$member['lookhead'] ?>&body=<?= (int)$member['lookbody'] ?>&legs=<?= (int)$member['looklegs'] ?>&feet=<?= (int)$member['lookfeet'] ?>" alt="">
24 </td>
25 <?php endif; ?>
26 <td><a href="characterprofile.php?name=<?= urlencode($member['name']) ?>"><?= h($member['name']) ?></a></td>
27 </tr>
28 <?php endforeach; ?>
29 </table>
30 <?php endforeach; ?>
31<?php else: ?>
32 <h2><?= t('team.none') ?></h2>
33<?php endif; ?>
34