<?php declare(strict_types=1); ?>

<?php if (isset($title) && isset($items)): ?>
<h3><?php echo $tfValidator->escapeForXss($title);?></h3>
<?php if ($items): ?>
<ul>
    <?php foreach ($items as $item): ?>
    <li><a href="<?php echo $item->getUrl($targetFileName); ?>"><?php echo $tfValidator->escapeForXss($item->title); ?></a></li>
    <?php endforeach; ?>
</ul>
<?php endif; ?>
<?php endif; ?>