<?php

use Tangibledesign\MyHome\Widgets\General\LinksSidebarWidget;

/* @var LinksSidebarWidget $mhCurrentWidget */
global $mhCurrentWidget;
?>
<div class="myhome-sidebar-widget">
    <h3 class="myhome-sidebar-widget__label">
        <?php echo esc_html($mhCurrentWidget->getLabel()); ?>
    </h3>

    <div class="myhome-sidebar-widget__content">
        <div class="myhome-sidebar-list">
            <?php foreach ($mhCurrentWidget->getLinks() as $mhLink) : ?>
                <a
                        class="myhome-sidebar-list__item"
                        href="<?php echo esc_url($mhLink['url']); ?>"
                >
                    <span class="myhome-sidebar-list__label">
                        <?php echo esc_html($mhLink['label']); ?>
                    </span>
                </a>
            <?php endforeach; ?>
        </div>
    </div>
</div>
