DK2/templates/components/char_select_box.php

9 lines
365 B
PHP

<div class="radio-block <?= $id === user()->char_id ? 'active' : '' ?>">
<input type="radio" name="char_id" value="<?= $id ?>" id="char_<?= $id ?>"<?= $id === user()->char_id ? 'disabled' : '' ?>>
<label for="char_<?= $id ?>">
<?= $c['name'] ?>
<span class="badge"><?= $c['level'] ?></span>
<span class="badge green selected">Active</span>
</label>
</div>