<?php
$pre_class = $block->pre_class()->isNotEmpty() ? $block->pre_class()->value() : '';
$responsive_hide = $block->responsive_hide()->isNotEmpty() ? $block->responsive_hide()->value() : '';
$cssclass = $block->cssclass()->or('');

?>
<?php /** @var \Kirby\Cms\Block $block */ ?>
<?php if ($block->pre_class()->isNotEmpty() || $block->cssclass()->isNotEmpty() || $block->responsive_hide()->isNotEmpty()): ?>
    <span class="<?= $cssclass . ' ' . $pre_class . ' ' . $responsive_hide ?>">
    <?php endif ?>
    <?= $block->text()->permalinksToUrls() ?>

    <?php if ($block->pre_class()->isNotEmpty() || $block->cssclass()->isNotEmpty() || $block->responsive_hide()->isNotEmpty()): ?>
    </span>
<?php endif ?>