<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

get_header(); ?>

<div class="content-wrapper">
	<?php while ( have_posts() ) : the_post(); ?>
		<?php get_template_part( 'template-parts/content', 'page-single' ); ?>

		<?php if ( comments_open() || get_comments_number() ) : ?>
			<?php comments_template(); ?>
		<?php endif; ?>
	<?php endwhile; ?>

    <?php if ( function_exists( 'do_shortcode' ) ) : ?>
        <?php $map = do_shortcode( '[set_location_map]' ); ?>
        <?php if ( ! empty( $map ) ) : ?>
        <div class="partner-location">
            <h4>Localização</h4>
            <div class="location-map">
                <?php echo $map; ?>
            </div>
        </div>
        <?php endif; ?>
    <?php endif; ?>

    <?php the_next_events(["none" => ""]); ?>
    
    <?php the_partner_contacts(); ?>
</div>

<?php get_footer(); ?>