Tropiclook being the partner of Marriott International proudly represents 80 vacation villas and apartments with 5-star hotel service across the best real estate projects on the island.
Boom Booking Configuration Required: Please set the widget URL in the WordPress admin under Settings → General.
';
} else {
return '';
}
}
// Format URL properly
$base_url = rtrim($base_url, '/');
$widget_url = $base_url . '/search-widget';
// Build the iframe with responsive design
return '
';
}
add_shortcode('boom_search', 'boom_booking_search_shortcode');
// Add settings page for Boom Booking
if (!function_exists('boom_booking_register_settings')) {
/**
* Add settings page for Boom Booking
*/
function boom_booking_register_settings() {
// Register a new setting for the widget URL
register_setting('general', 'boom_booking_widget_url', array(
'type' => 'string',
'description' => 'The base URL for the Boom Booking search widget',
'sanitize_callback' => 'sanitize_text_field',
'default' => '',
));
// Add a settings field to the General Settings page
add_settings_field(
'boom_booking_widget_url',
'Boom Booking Widget URL',
'boom_booking_widget_url_callback',
'general',
'default',
array('label_for' => 'boom_booking_widget_url')
);
}
add_action('admin_init', 'boom_booking_register_settings');
/**
* Callback function to display the settings field
*/
function boom_booking_widget_url_callback($args) {
// Get the current value
$value = get_option('boom_booking_widget_url', '');
// Output the field
echo '';
echo '
Enter the base URL for your Boom Booking widget (e.g., https://example.com). The shortcode will append "/search-widget" to this URL.
';
}
}
TropicLook is a partner of Homes & Villas by Marriott International
TropicLook is a partner of Homes & Villas by Marriott International
Find the perfect vacation home, and then book it online instantly & securely
Easy booking
Make the most of your trip with care-free check-in and first-rate guest services
24/7 guest support
We provide fully serviced vacation villas for the best rates in the certain period
Best rates & options
We take care of transfers, groceries, excursions and much more