Hello, I’m starting to discern some logic in Php, but…
I still don’t master the order of arguments for example:
I’ve got a builder snippet call quote and I want to output the quote div only if it has content. Can you help me to resolve this code, thanks
<?php foreach($page->builder()->toBuilderBlocks() as $block): ?>
<?php if($block->quote()->isNotEmpty()): ?>
<div id="citation" class="col-6">
<div class="citation">
<?= $block->citation(); ?>
<?= $block->auteur(); ?>
</div>
<?php endif ?></div>
<?php endforeach ?>