<?php

$vac_content = VACTemplate::ACF_content($wp_query);
$title = $vac_content['vac_schools_title'];
$schools = $vac_content['vac_block_schools'];
$taxonomies = VACTemplate::terms_from_post_type('vac-school');
?>

<div class="component component--full">
    <div class="schools" data-filters="true">
        <header class="schools__header">
            <h2 class="schools__title">
                <?php 
echo $title;
?>
            </h2>
        </header>

        <aside class="schools__filters">
            <form>
                <ul>
                    <?php 
foreach ($taxonomies as $tax => $terms) {
    ?>
                    <?php 
    foreach ($terms as $term) {
        ?>
                        <?php 
        $filter_id = rand(0, 100) . "_{$tax}:{$term[1]}";
        ?>
                        <?php 
<?php

$vac_content = VACTemplate::ACF_content($wp_query);
$post_type = VACTemplate::post_type_from_wp_query($wp_query);
$taxonomies = VACTemplate::terms_from_post_type($post_type);
$filters = implode(', ', array_keys($taxonomies));
?>

<div class="component">
    <div class="archive" data-filters="true">
        <div class="archive__header">
            <h3 class="archive__title"><?php 
echo $vac_content;
?>
</h3>
            <form class="archive__filters">
                <ul>
                    <li class="archive-filter">
                        <button class="archive-filter__button"
                                disabled type="reset">
                            All
                        </button>
                    </li>
                    <?php 
foreach ($taxonomies as $tax => $terms) {
    ?>
                    <?php 
    foreach ($terms as $term) {
        ?>
                        <?php 
        $filter_id = "{$tax}:{$term[1]}";
<?php

$vac_content = VACTemplate::ACF_content($wp_query);
$taxonomies = VACTemplate::terms_from_post_type('vac-event');
$title = $vac_content['vac_talks_title'];
$talks = $vac_content['vac_block_talks'];
?>

<div class="component">
    <div class="talks" data-filters="true">
        <div class="talks__header">
            <h3 class="talks__title"><?php 
echo $title;
?>
</h3>
            <form class="talks__filters">
                <ul>
                    <li class="archive-filter">
                        <button class="archive-filter__button" type="reset">
                            All
                        </button>
                    </li>
                    <?php 
foreach ($taxonomies as $tax => $terms) {
    ?>
                    <?php 
    foreach ($terms as $term) {
        ?>
                        <?php 
        $filter_id = rand(0, 100) . "_{$tax}:{$term[1]}";
        ?>