Initial commit

This commit is contained in:
KirbyCMS Deploy
2026-04-15 11:50:31 +00:00
commit 0a8c107828
1114 changed files with 203788 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
/**
* @var Kirby\Cms\StructureObject|Kirby\Content\Content $link
*/ ?>
<?php if ($link->link()->isNotEmpty()) : ?>
<a <?= attr([
'class' => $class ?? '',
'href' => $link->link()->toUrl(),
'target' => $link->newTab()->toBool() ? '_blank' : null,
'rel' => $link->newTab()->toBool() ? 'noopener' : null,
'aria-current' => $link->link()->linkType() === 'page' && $link->link()->toPage()?->isActive() ? 'page' : null,
...($attr ?? [])
]) ?>>
<?= $slot ?? $link->label()->or($link->link()->linkTitle()) ?>
</a>
<?php endif ?>