February 16, 2024

CTA Secondary with Rounded Table Option



';
while( have_rows('table_rows') ) : the_row();
$a++;
if ( $a == 1 ) { $bg = ' bg-primary'; } elseif ( $a % 2 ) { $bg = ' text-primary bg-warning'; } else { $bg = ' text-primary bg-secondary'; }
if ( $a == 1 ) { $rounded = ' rounded-top-20'; $header = ' fw-bold'; } elseif ( $a == $t ) { $rounded = ' rounded-bottom-20'; $header = ''; } else { $rounded = ''; $header = ''; }
if( have_rows('table_columns') ):
$c = 0;
echo '

';
while( have_rows('table_columns') ) : the_row();
$c++;
$col_1 = 'col-4';
if ( $num_columns == 2 ) { $col_2 = 'col-8'; } else { $col_2 = 'col-4'; }
if ( $num_columns == 3 ) { $col_3 = 'col-4'; }
if ( $c == 1 ) { $bold = ' fw-bold'; } else { $bold = ''; }
if ( $c == $num_columns ) { $style = ''; $class = ''; } else { $style = ' style="border-color:#656E8D !important;"'; $class = ' border-end border-2'; }
if ( $c == 1 ) { $cols = $col_1; }
if ( $c == 2 ) { $cols = $col_2; }
if ( $c == 3 ) { $cols = $col_3; }
?>

>

';
endif;
endwhile;
echo '

';
endif;
?>


Categories