mirror of
https://github.com/Huber1/skigemeinschaft.git
synced 2026-11-12 08:35:38 +01:00
10 lines
260 B
PHP
10 lines
260 B
PHP
<?php
|
|
/** @var \Kirby\Cms\Block $block */
|
|
$level = $block->level()->value();
|
|
|
|
// ensure a valid heading tag
|
|
if (in_array($level, ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'], true) === false) {
|
|
$level = 'h2';
|
|
}
|
|
?>
|
|
<<?= $level ?>><?= $block->text() ?></<?= $level ?>>
|