<?php 

/**
 * @package    DirectoryPress
 * @subpackage DirectoryPress/public/single-listing
 * @author     Designinvento <developers@designinvento.net>
*/

global $DIRECTORYPRESS_ADIMN_SETTINGS;
$post_id = $listing->post->ID;

$text_string = ($button_text)? esc_html__('Book Now', 'DIRECTORYPRESS'): '';

?>
<?php if($DIRECTORYPRESS_ADIMN_SETTINGS['directorypress_listing_resurva_booking']): ?>
	<a class="directorypress-booking-link button-style-<?php echo esc_attr($button_style); ?>" data-popup-open="single_reserva_booking_form" href="#"><?php echo esc_html($text_string); ?></a>
	<?php echo do_action('single-listing-resurva-booking-form', $listing); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- already escaped ?>
<?php endif; ?>	



 