<?php
/** @var Blackbird\MenuManager\Block\NodeType\CustomField $block */
$url = $block->getData('filoblu_filter_provider')->getBlockFilter()->filter($block->getData('url'));
?>
<?php if ($block->getStatus()): ?>
    <li class="<?= implode(' ', $block->getClasses()) ?>" style="<?= $block->escapeQuote($block->getInlineCss() . '') ?>">
        <a href=<?= $url ?> class="<?= implode(' ', $block->getClasses()) ?>" target=<?= $block->getTarget() ?> role="menuitem">
            <span><?= $block->getTitle() ?></span>
        </a>
        <?php if ($block->getChildren()): ?>
            <ul class="level<?= $block->getLevel() ?> submenu" role="menu" aria-label="<?= strip_tags($block->getTitle()) ?>">
                <?= $block->getData('children') ?>
            </ul>
        <?php endif; ?>
    </li>
<?php endif; ?>