Advocate
We use our experience to educate the public and advocate for change.
// loop through the rows of data
while ( have_rows('page_builder') ) : the_row();
// If layout type is "One Column Layout"
if( get_row_layout() == 'one_column' ):
include("page-builder/one-column-module.php");
$count = $count +1;
// If layout type is "Two Column Layout"
elseif( get_row_layout() == 'two_column' ):
include("page-builder/two-column-module.php");
$count = $count +1;
// If layout type is "Three Column Layout"
elseif( get_row_layout() == 'three_column'):
include("page-builder/three-column-module.php");
$count = $count +1;
// If layout type is "Full Width Image/Slider"
elseif( get_row_layout() == 'full_width_image' ):
include("page-builder/full-width-image-module.php");
$count = $count +1;
// If layout type is "Three Column Slider"
elseif( get_row_layout() == 'full_width_slider' ):
include("page-builder/full-width-slider-module.php");
$count = $count +1;
endif;
endwhile;
?>