January 19, 2024
Accordion CTA with Tables
–” class=”accordion-collapse collapse” data-bs-parent=”#accordion-“>
0 ) { $numrows = count( $aa ); }
if( have_rows(‘paragraphs’) ):
$p = 0;
while( have_rows(‘paragraphs’) ) : the_row();
$p++;
if ( $p == $aa ) { $mb = ‘ mb-0’; } else { $mb = ”; }
?>
ps-3″>
‘;
foreach ( $table[‘body’] as $tr ) {
$a = 0;
foreach ( $tr as $td ) {
$a++;
}
}
if ( $a == 2 ) {
echo ‘
‘;
}
if ( $a == 3 ) {
echo ‘
‘;
}
if ( ! empty( $table[‘header’] ) ) {
echo ‘
‘;
echo ‘
‘;
$col = 0;
foreach ( $table[‘header’] as $th ) {
$col++;
echo ‘
‘;
echo $th[‘c’];
echo ‘
‘;
}
echo ‘
‘;
echo ‘
‘;
}
echo ‘
‘;
$t = 0;
foreach ( $table[‘body’] as $tr ) {
$t++;
if ( $t % 2 == 0 ) {
$bg = ‘ bg-white’;
} else {
$bg = ‘ bg-transparent’;
}
echo ‘
‘;
$c = 0;
foreach ( $tr as $td ) {
$c++;
echo ‘
‘;
echo $td[‘c’];
echo ‘
‘;
}
echo ‘
‘;
}
echo ‘
‘;
echo ‘
‘;
}
?>
‘ . $caption . ‘
‘;
}
echo ‘
‘;
foreach ( $table[‘body’] as $tr ) {
$ac = 0;
foreach ( $tr as $td ) {
$ac++;
}
}
if ( $ac == 6 ) {
echo ‘
‘;
}
if ( $ac == 5 ) {
echo ‘
‘;
}
if ( $ac == 4 ) {
echo ‘
‘;
}
if ( $ac == 3 ) {
echo ‘
‘;
}
if ( ! empty( $table[‘header’] ) ) {
echo ‘
‘;
echo ‘
‘;
$col = 0;
foreach ( $table[‘header’] as $th ) {
$col++;
echo ‘
‘;
echo $th[‘c’];
echo ‘
‘;
}
echo ‘
‘;
echo ‘
‘;
}
echo ‘
‘;
$t = 0;
foreach ( $table[‘body’] as $tr ) {
$t++;
if ( $t == 1 ) {
echo ‘
‘;
} else {
echo ‘
‘;
}
$c = 0;
foreach ( $tr as $td ) {
$c++;
if ( $c == $ac && $t == 1 ) {
//echo ‘
‘;
//echo ‘‘;
//echo ‘
‘;
//echo ‘
‘;
//echo ‘
‘;
} else {
echo ‘
‘;
echo $td[‘c’];
echo ‘
‘;
}
}
echo ‘
‘;
}
echo ‘
‘;
echo ‘
‘;
}
?>
‘.get_sub_field($rate_name.’_legal’).’
‘; }
?>
if( have_rows(‘paragraphs’) ):
$p = 0;
while( have_rows(‘paragraphs’) ) : the_row();
$p++;
if ( $p == $aa ) { $mb = ‘ mb-0’; } else { $mb = ”; }
?>
ps-3″>
foreach ( $table[‘body’] as $tr ) {
$a = 0;
foreach ( $tr as $td ) {
$a++;
}
}
if ( $a == 2 ) {
echo ‘
‘;
}
if ( $a == 3 ) {
echo ‘
‘;
}
if ( ! empty( $table[‘header’] ) ) {
echo ‘
echo ‘
$col = 0;
foreach ( $table[‘header’] as $th ) {
$col++;
echo ‘
echo $th[‘c’];
echo ‘
‘;
}
echo ‘
‘;
echo ‘
‘;
}
echo ‘
$t = 0;
foreach ( $table[‘body’] as $tr ) {
$t++;
if ( $t % 2 == 0 ) {
$bg = ‘ bg-white’;
} else {
$bg = ‘ bg-transparent’;
}
echo ‘
$c = 0;
foreach ( $tr as $td ) {
$c++;
echo ‘
echo $td[‘c’];
echo ‘
‘;
}
echo ‘
‘;
}
echo ‘
‘;
echo ‘
‘;
}
?>
‘ . $caption . ‘
‘;
}
echo ‘
‘; echo $th[‘c’]; echo ‘ |
|
---|---|
‘; //echo ‘ //echo ‘ ‘; //echo ‘ |
‘; echo $td[‘c’]; echo ‘ |
‘;
}
?>
‘.get_sub_field($rate_name.’_legal’).’
‘; }
?>