init
This commit is contained in:
10
site/snippets/blocks/texts.php
Normal file
10
site/snippets/blocks/texts.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php /** @var \Kirby\Cms\Block $block */ ?>
|
||||
|
||||
<?php
|
||||
$centerHorizontal = $block->center_horizontal()->toBool();
|
||||
$centerVertical = $block->center_vertical()->toBool();
|
||||
?>
|
||||
|
||||
<div class="<?= $centerHorizontal ? "text-center" : "" ?> <?= $centerVertical ? "align-self-center" : "" ?>">
|
||||
<?= $block->text() ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user