<?php
/**
 * Maho
 *
 * @category    design
 * @package     default_default
 * @copyright   Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)
 * @copyright   Copyright (c) 2022 The OpenMage Contributors (https://openmage.org)
 * @copyright   Copyright (c) 2024 Maho (https://mahocommerce.com)
 * @license     https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<dl id="dl-<?= $id ?>" class="accordion">
<?php foreach ($sections as $sectionId=>$section): ?>
    <dt id="dt-<?= $id ?>-<?= $sectionId ?>">
        <strong><?= $section['title'] ?></strong>
    </dt>
    <dd id="dd-<?= $id ?>-<?= $section['id'] ?>" class="section-menu <?= !empty($section['active'])?'open':'' ?>">
        <ul>
        <?php foreach ($section['children'] as $menuId=>$menuItem): ?>
            <li id="li-<?= $id ?>-<?= $sectionId ?>-<?= $menuId ?>">
                <a href="#" title="<?= $menuItem['title'] ?>">
                    <span><?= $menuItem['label'] ?></span>
                </a>
            </li>
        <?php endforeach ?>
        </ul>
    </dd>
<?php endforeach ?>
</dl>
