<?php cfb_template('blocks/parts/block-media', get_row_layout()); cfb_template('blocks/parts/block-cta', get_row_layout());
<figure class="block-addon block-figure"> <?php cfb_template('blocks/parts/media/media-gallery', get_row_layout()); ?> </figure>
?> <div class="item <?php echo $active; ?> " style="<?php fcb_block_wrapper_styles(); ?> "> <div class="carousel-content"> <div class="carousel-content-inner"> <?php cfb_template('blocks/parts/block-media', get_row_layout()); ?> <?php cfb_template('blocks/parts/block-content', get_row_layout()); ?> <div class="carousel-caption"> <?php the_sub_field('title'); ?> </div> </div> </div> </div> <?php $i++; ?> <?php
<?php $layout = get_row_layout(); $columns = count(get_sub_field('media')); $column = floor(12 / $columns); if (have_rows('media')) { while (have_rows('media')) { the_row(); ?> <div class="block-strap-column block-strap-column-<?php echo get_row_layout(); ?> col-sm-<?php echo $column; ?> "> <?php cfb_template('blocks/parts/media/media-' . get_row_layout(), $layout); ?> </div> <?php } }
<?php cfb_template('blocks/parts/block-content', get_row_layout()); cfb_template('blocks/parts/block-post_list', get_row_layout());
<?php cfb_template('blocks/parts/block-content', get_row_layout()); cfb_template('blocks/parts/collapsibles/collapsibles-panels', get_row_layout());
<?php cfb_template('blocks/parts/block-content', get_row_layout()); cfb_template('blocks/parts/block-slider', get_row_layout());
<?php cfb_template('blocks/parts/block-content', get_row_layout()); cfb_template('blocks/parts/tabs/tabs-tabs', get_row_layout()); cfb_template('blocks/parts/tabs/tabs-panes', get_row_layout());
<?php // check if the flexible content field has rows of data if (have_rows('blocks')) { ?> <?php if (!isset($GLOBALS['fcb_rows_count'])) { $GLOBALS['fcb_rows_count'] = 0; } ?> <?php // loop through the rows of data while (have_rows('blocks')) { the_row(); ?> <?php do_action('fcb_before_block'); cfb_template('blocks/layout-base', get_row_layout()); do_action('fcb_after_block'); $GLOBALS['fcb_rows_count']++; } }
echo $i; ?> " class="panel-collapse collapse <?php fcb_is_active($i, 'in'); ?> " role="tabpanel" aria-labelledby="heading<?php echo $i; ?> " style="<?php fcb_block_wrapper_styles(); ?> "> <div class="<?php fcb_panel_classes(); ?> "> <div class="panel-inner"> <?php cfb_template('blocks/parts/collapsibles/collapsibles-content', get_row_layout()); ?> </div> </div> </div> </div> <?php $i++; } ?> </div>
/** * Build the shortcode, call templates */ function acffcb_blocks() { ob_start(); do_action('before_blocks'); cfb_template('content', 'blocks'); do_action('after_blocks'); return ob_get_clean(); }