<?php

/**
 * @var stdClass[] $tabs
 */

?>
<?php if (!empty($tabs)): ?>
    <ul class="tabs nojs">
        <?php foreach ($tabs as $tab): ?>
            <li<?php echo $tab->is_active ? ' class="active"' : ''; ?>>
                <a href="<?php echo $tab->link; ?>"><?php echo $tab->name; ?></a>
            </li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>
