<?php if ($item['accordion_item_type'] == 'text') { ?> <?php echo $item['accordion_item_text']; ?> <?php } else { ?> <ul class="accordion-item__image-list"> <?php foreach ($item['accordion_item_image'] as $img) { ?> <li class="accordion-item__image"> <?php echo VACTemplate::image($img['id']); ?> </li> <?php } ?> </ul> <?php } ?> </div> </li> <?php } ?> </ol>
$image = VACTemplate::featured_image($post->ID); $year = get_the_terms($post->ID, 'vac-year'); $year = isset($year[0]->name) ? $year[0]->name : ''; $item_terms = VACTemplate::post_terms($post->ID); ?> <li class="archive-item" data-categories="<?php echo $item_terms; ?> "> <a class="archive-item__link" href="<?php echo $content['permalink']; ?> "> <figure class="archive-item__figure"> <?php echo VACTemplate::image($image); ?> <figcaption class="archive-item__caption"> <?php echo VACTemplate::image_caption($image); ?> </figcaption> </figure> <div class="archive-item__header"> <div class="archive-item__header-spacing"> <h3 class="archive-item__title"> <?php echo $content['title']; ?> </h3>
?> <?php $event_image = $event['vac_school_featured_event_image']; $event_link = $event['vac_school_featured_event_link']; $event_text = $event['vac_school_featured_event_text']; ?> <li class="featured-post"> <a href="<?php echo get_the_permalink($event_link); ?> "> <div class="element element--narrow"> <div class="featured-post__content"> <figure class="featured-post__figure"> <?php echo VACTemplate::image($event_image); ?> <figcaption class="featured-post__caption"> <?php echo VACTemplate::image_caption($event_image); ?> </figcaption> </figure> </div> </div> <div class="element element--wide element--last"> <div class="featured-post__header"> <?php echo $event_text; ?>