add links list style

This commit is contained in:
isUnknown 2024-09-04 14:48:50 +02:00
parent 100fd301ee
commit 0d60b9289f
4 changed files with 45 additions and 6 deletions

View file

@ -1,5 +1,9 @@
<ul>
<?php foreach($block->toStructure() as $item): ?>
<li></li>
<ul class="links-list">
<?php foreach($block->items()->toStructure() as $item): ?>
<li>
<p><?= $item->firstText() ?></p>
<p><?= $item->secondText() ?></p>
<?php snippet('a', ['url' => $item->link()->toUrl()]) ?>
</li>
<?php endforeach ?>
</ul>