October 1, 2024

Accounts Compare Page 19

“>

‘;
} else {
$account_icon = ‘‘;
}
?>


$account_icon,
‘name’ => $account_name,
‘description’ => $account_description,
‘button’ => $open_account_button,
‘url’ => $open_account_url,
];

endwhile;
}
//Loop through the 3 types of compares (on the left)
if (have_rows(‘account_compare_field’, $post_id)) {
$a = 1;
while (have_rows(‘account_compare_field’, $post_id)): the_row();
$title = get_sub_field(‘compare_field_title’);
$compare_fields[] = $title;
$field_data = [];
if (have_rows(‘accounts’, $post_id)) {
while (have_rows(‘accounts’, $post_id)): the_row();
if (have_rows(‘account_compare_fields’)) {
while (have_rows(‘account_compare_fields’)): the_row();
if($a == get_sub_field(‘compare_title_select’)) {
$compare_value = get_sub_field(‘compare_type’) === ‘true’ ? ‘‘ : get_sub_field(‘compare_text’);
$field_data[] = $compare_value;
}

endwhile;
}
endwhile;
}
$compare_values[] = $field_data;
$a++;
endwhile;
}
?>


$compare_field): ?>



$account): ?>

Close Form

Online Banking Login