%PDF- %PDF-
Direktori : /var/www/cwg/wp-content/themes/cwg/ |
Current File : //var/www/cwg/wp-content/themes/cwg/single-exhibitions.php |
<?php get_header(); ?> <!----Should be placed when there is no carousel--> <div class="js-headerGap h-[51px]"></div> <?php while (have_posts()) : the_post(); $artists = get_field('artist'); $title = get_field('multiple_artist_title') ? get_field('multiple_artist_title') : ($artists && $artists[0] ? $artists[0]->post_title : ''); $subtitle = get_the_title(); $city = get_city_from_label(get_field('location')); $mapsLink = get_field('maps_link'); $fair = get_field('fair_linked') && get_field('fair_linked')[0] ? get_field('fair_linked')[0] : false; $textAdress = get_field('location_override') ? get_field('location_override') : 'Carpenters Workshop Gallery<br>' . (isset($city['adress']) ? $city['adress'] : '') . ' ' . (isset($city['name_of_city']) ? $city['name_of_city'] : ''); $catalogue = get_field('pdf') && get_field('pdf')['link'] ? get_field('pdf')['link'] : false; $selectionsOfWorks = get_field('featured_works'); $selectionsOfJewellery = get_field('featured_jewellery'); $moreEvents = get_field('more_events'); $start_date = DateTime::createFromFormat('d/m/Y', get_field('start_date')); $end_date = DateTime::createFromFormat('d/m/Y', get_field('end_date')); $date = $start_date && $end_date ? $start_date->format('d F') . ' - ' . $end_date->format('d F Y') : ''; $images_gallery = get_field('exhibition_desktop_gallery'); include(locate_template('/template-parts/events/focus-event.php')); endwhile; get_footer(); ?>