investigation → add insert
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
This commit is contained in:
parent
d51835a2c0
commit
65e8290edf
7 changed files with 98 additions and 3 deletions
11
site/snippets/blocks/insert.php
Normal file
11
site/snippets/blocks/insert.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
/** @var \Kirby\Cms\Block $block */
|
||||
?>
|
||||
<div class="insert">
|
||||
<div class="insert--inner">
|
||||
<?php if ($block->title()->isNotEmpty()): ?>
|
||||
<<?= $block->level()->or('h3') ?>><?= $block->title()->esc() ?></<?= $block->level()->or('h3') ?>>
|
||||
<?php endif ?>
|
||||
<?= $block->text() ?>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue