<?php
// Template name: FAQ
get_header();
?>
<main>
<?php
get_template_part('templates/inner-page-main');
$srcset = get_template_directory_uri() . "/assets/images/lazyload.png";
$faq_sections_list = get_field('faq-sections-list');
?>
<section class="faq-section">
<div class="container -smaller">
<?php
foreach($faq_sections_list as $list) :
if ($list['title']) :
?>
<div class="faq-theme-item">
<h3 class="title title-3 mob-title-3"><?php echo $list['title']; ?></h3>
<?php
$args = [];
$args['attr'] = "";
if ($list['section_name']) {
$args['attr'] = "data-accordion-group='{$list['section_name']}'";
}
foreach($list['question_list'] as $item) {
$args['item'] = $item;
get_template_part('templates/components/faq-item', null, $args);
}
?>
</div>
<?php
endif;
endforeach;
?>
</div>
</section>
<?php
$args = [];
$args['obj'] = get_field('call_to_action')['call_to_action'];
get_template_part('templates/small-info-section', null, $args);
?>
</main>
<?php
get_footer();
?>