public static function em_bookings_table_cols_template($template, $EM_Bookings_Table) { $EM_Form = EM_Booking_Form::get_form(false, get_option('dbem_multiple_bookings_form')); foreach ($EM_Form->form_fields as $field_id => $field) { if ($EM_Form->is_normal_field($field)) { //user fields already handled, htmls shouldn't show //prefix MB fields with mb_ to avoid clashes with normal booking forms $template['mb_' . $field_id] = $field['label']; } } return $template; }
do_action('em_checkout_form_after_summary', $EM_Multiple_Booking); //do not delete ?> <form id='em-booking-form' class="em-booking-form" name='booking-form' method='post' action='<?php echo apply_filters('em_checkout_form_action_url', ''); ?> #em-booking'> <input type='hidden' name='action' value='emp_checkout'/> <input type='hidden' name='_wpnonce' value='<?php echo wp_create_nonce('emp_checkout'); ?> '/> <div class='em-booking-form-details'> <?php echo EM_Booking_Form::get_form(false, $EM_Multiple_Booking); ?> <?php do_action('em_checkout_form_footer', $EM_Multiple_Booking); //do not delete ?> <div class="em-booking-buttons"> <?php if (preg_match('/https?:\\/\\//', get_option('dbem_multiple_bookings_submit_button'))) { //Settings have an image url (we assume). Use it here as the button. ?> <input type="image" src="<?php echo get_option('dbem_multiple_bookings_submit_button'); ?> " class="em-booking-submit" id="em-booking-submit" /> <?php