Skip to content

Commit

Permalink
fix: stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
wwerk committed Jul 21, 2024
1 parent 03c47e5 commit 4c5186b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blueprints/blocks/link-button.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ fields:
- "Download"
target:
label: Target URL
type: url
type: link
options:
- url
- page
- email
required: true
when:
targetIsDownload: false
Expand Down
2 changes: 1 addition & 1 deletion snippets/blocks/link-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<div class="k-block-type-link-button">
<div class="button-container <?= $alignmentClass ?>">
<a class="button-link<?= $block->fullWidth()->toBool() ? ' full-width' : '' ?><?= $block->iconAlignment() == "right" ? ' reverse' : '' ?>" href="<?= $block->targetIsDownload()->toBool() ? $block->downloadTarget()->toFile()->url() : $block->target()->toUrl() ?>" <?= $block->targetIsDownload()->toBool() ? ' download' : '' ?>>
<a class="button-link<?= $block->fullWidth()->toBool() ? ' full-width' : '' ?><?= $block->iconAlignment() == "right" ? ' reverse' : '' ?>" href="<?= $block->targetIsDownload()->toBool() ? $block->downloadTarget()->toFile()->url() : $block->target() ?>" <?= $block->targetIsDownload()->toBool() ? ' download' : '' ?>>
<?php if ($block->icon()->isNotEmpty()) : ?>
<div class="button-icon">
<?= $block->icon() ?>
Expand Down

0 comments on commit 4c5186b

Please sign in to comment.