call-out-block.php 676 Bytes
<?php

// Create id attribute allowing for custom "anchor" value.
$id = 'call-out-block-' . $block['id'] . rand(0,100);
if( !empty($block['anchor']) ) {
    $id = $block['anchor'];
}

// Create class attribute allowing for custom "className" and "align" values.
$className = 'call-out-block';
$className .= ' ' .get_field('style');
if( !empty($block['className']) ) {
    $className .= ' ' . $block['className'];
}
$count = get_field('count');
?>

<div class="<?= $className ?>" id='<?= $id ?>'>
    <div class='content'>
         <?= the_field('text_content'); ?>
         <a href=" <?= the_field('button_url'); ?>" >  <?= the_field('button_text'); ?> </a>
    </div>
</div>