echo is_archive() ? post_type_archive_title() : the_title() ?>
// check if the flexible content field has rows of data
if( have_rows('page_builder') ):
// loop through the rows of data
while ( have_rows('page_builder') ) : the_row(); ?>
get_footer();
get_template_part( 'partials/blocks/'.get_row_layout() );?>
/*
switch (get_row_layout()) {
case "wysiwyg":
get_template_part('partials/blocks/wysiwyg');
break;
case "icon_list":
get_template_part('partials/blocks/icon_list');
break;
case "dynamic_content":
get_template_part('partials/blocks/dynamic_content');
break;
case "downloads":
get_template_part('partials/blocks/downloads');
break;
case "video":
get_template_part('partials/blocks/video');
break;
case "image":
get_template_part('partials/blocks/image');
break;
case "table":
get_template_part('partials/blocks/table');
break;
}
*/
endwhile;
endif;
?>