Timothy J. Warren
1b74df5269
All checks were successful
timw4mail/HummingBirdAnimeClient/pipeline/pr-master This commit looks good
25 lines
567 B
PHP
25 lines
567 B
PHP
<div class="vertical-tabs">
|
|
<?php $i = 0; ?>
|
|
<?php foreach ($data as $tabName => $tabData): ?>
|
|
<?php $id = "{$name}-{$i}" ?>
|
|
<div class="tab">
|
|
<input
|
|
type="radio"
|
|
role='tab'
|
|
aria-controls="_<?= $id ?>"
|
|
name="<?= $name ?>"
|
|
id="<?= $id ?>"
|
|
<?= $i === 0 ? 'checked="checked"' : '' ?>
|
|
/>
|
|
<label for="<?= $id ?>"><?= $tabName ?></label>
|
|
<section
|
|
id='_<?= $id ?>'
|
|
role="tabpanel"
|
|
class="<?= $className ?>"
|
|
>
|
|
<?= $callback($tabData, $tabName) ?>
|
|
</section>
|
|
</div>
|
|
<?php $i++; ?>
|
|
<?php endforeach ?>
|
|
</div>
|