';
if ( ! empty( $eshb_accomodation_metaboxes['accomodation_info_group'] ) ) {
foreach ( $eshb_accomodation_metaboxes['accomodation_info_group'] as $group ) {
$icon = !empty($group['info_icon']) ? '' : '';
$img = !empty($group['info_icon_img']['url']) ? ' ' : '';
$title = esc_html($group['info_title']);
$output .= "
{$icon}{$img}{$title}
"; } } return $output . ''; } add_shortcode('eshb_accomodation_info', 'eshb_accomodation_info_shortcode'); // Booking Form Shortcode function eshb_booking_form_shortcode($atts) { // Create a new instance of the ESHB_View class $defaults = array( 'accomodation_id' => '', 'style' => 'style-one', ); $atts = shortcode_atts($defaults, $atts); $view = new ESHB_View(); return $view->eshb_get_booking_form_html($atts['accomodation_id'], $atts['style']); } add_shortcode('eshb_booking_form', 'eshb_booking_form_shortcode'); // Availability Calendar Shortcode function eshb_availability_calendar_shortcode($atts) { $defaults = array( 'accomodation_id' => get_the_ID(), 'style' => 'style-one', ); $atts = shortcode_atts($defaults, $atts); $view = new ESHB_View(); return $view->eshb_get_availability_calendar_html($atts['accomodation_id'], $atts['style']); } add_shortcode('eshb_availability_calendar', 'eshb_availability_calendar_shortcode'); // Related Rooms Shortcode function eshb_related_accomodations_shortcode() { if(is_singular( 'eshb_accomodation')) { ob_start(); require ESHB_PL_PATH . 'public/templates/template-parts/related-room-slider.php'; return ob_get_clean(); } } add_shortcode('eshb_related_accomodations', 'eshb_related_accomodations_shortcode'); // Daywise Pricing Table Shortcode function eshb_daywise_pricing_table_shortcode($atts) { // Create a new instance of the ESHB_View class $defaults = array( 'accomodation_id' => get_the_ID(), 'show_title' => false, ); $atts = shortcode_atts($defaults, $atts); $view = new ESHB_View(); ob_start(); $view->eshb_day_wise_pricing_table_html($atts['accomodation_id'], $atts['show_title']); $output = ob_get_clean(); return $output; } add_shortcode('eshb_daywise_pricing_table', 'eshb_daywise_pricing_table_shortcode'); // Check In/Out Times Shortcode function eshb_check_in_out_times_shortcode() { // Create a new instance of the ESHB_View class $view = new ESHB_View(); ob_start(); $view->eshb_get_eshb_check_in_out_times_html(); $output = ob_get_clean(); return $output; } add_shortcode('eshb_check_in_out_times', 'eshb_check_in_out_times_shortcode');