\n\
'.__('First Name (required)' ,'booking').':
[text* name]
\n\
'.__('Last Name (required)' ,'booking').':
[text* secondname]
\n\
'.__('Email (required)' ,'booking').':
[email* email]
\n\
'.__('Phone' ,'booking').':
[text phone]
\n\
'.__('Adults' ,'booking').':
[selectbox visitors "1" "2" "3" "4"]
\n\
'.__('Children' ,'booking').':
[selectbox children "0" "1" "2" "3"]
\n\
'.__('Details' ,'booking').':
[textarea details]
\n\
[checkbox* term_and_condition use_label_element "'.__('I Accept term and conditions' ,'booking').'"]
\n\
[submit class:btn "'.__('Send' ,'booking').'"]
\n\
';
break;
case 'calendar_next_to_form':
$booking_form =' \n\
\n\
[calendar] \n\
width:40px; \n\
\n\
' . esc_html__( 'First Name (required)', 'booking' ) . ':
[text* name] \n\
' . esc_html__( 'Last Name (required)', 'booking' ) . '):
[text* secondname] \n\
' . esc_html__( 'Email (required)', 'booking' ) . ':
[email* email] \n\
' . esc_html__( 'Phone', 'booking' ) . ':
[text phone] \n\
' . esc_html__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"] \n\
' . esc_html__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"] \n\
' . esc_html__( 'Details', 'booking' ) . ':
[textarea details] \n\
\n\
[checkbox* term_and_condition use_label_element "' . __( 'I Accept term and conditions', 'booking' ) . '"] \n\
\n\
\n\
[submit class:btn "' . __( 'Send', 'booking' ) . '"] \n\
\n\
';
break;
case '2_columns':
$booking_form =' \n\
[calendar]\n\
';
break;
case '2_columns_times_2_hours':
$booking_form =' \n\
';
break;
case '2_columns_times_30_minutes_wizard':
$booking_form =' \n\
\n\
';
break;
case '2_columns_hint_cost_nights':
$booking_form =' \n\
[calendar]\n\
';
break;
case '2_columns_hint_availability':
$booking_form =' \n\
[calendar]\n\
';
break;
case '2_columns_times_30_minutes_hints_coupon':
$booking_form =' \n\
[calendar] \n\
\n\
' . esc_html__( 'Select Times', 'booking' ) . '*:
\n\
[selectbox rangetime "9:00 AM - 9:30 AM@@09:00 - 09:30" "9:30 AM - 10:00 AM@@09:30 - 10:00" "10:00 AM - 10:30 AM@@10:00 - 10:30" "10:30 AM - 11:00 AM@@10:30 - 11:00" "11:00 AM - 11:30 AM@@11:00 - 11:30" "11:30 AM - 12:00 PM@@11:30 - 12:00" "12:00 PM - 12:30 PM@@12:00 - 12:30" "12:30 PM - 1:00 PM@@12:30 - 13:00" "1:00 PM - 1:30 PM@@13:00 - 13:30" "1:30 PM - 2:00 PM@@13:30 - 14:00" "2:00 PM - 2:30 PM@@14:00 - 14:30" "2:30 PM - 3:00 PM@@14:30 - 15:00" "3:00 PM - 3:30 PM@@15:00 - 15:30" "3:30 PM - 4:00 PM@@15:30 - 16:00" "4:00 PM - 4:30 PM@@16:00 - 16:30" "4:30 PM - 5:00 PM@@16:30 - 17:00" "5:00 PM - 5:30 PM@@17:00 - 17:30" "5:30 PM - 6:00 PM@@17:30 - 18:00" "6:00 PM - 6:30 PM@@18:00 - 18:30"]\n\
\n\
\n\
';
break;
case '2_columns_hints_coupon':
$booking_form =' \n\
[calendar]\n\
';
break;
}
if (empty($booking_form)){
$booking_form = wpbc_get__predefined_booking_form__template( $template_name );
}
return $booking_form;
}
/**
* Get "Content of booking fields data" - HTML content with Shortcodes
*
* @param string $template_name
*
* @return string
*/
function wpbc_get__booking_data__template( $template_name ) {
$booking_form = '';
switch ( $template_name ) {
case 'standard':
case '2_columns':
case 'calendar_next_to_form':
case 'wizard_no_times_a':
$booking_form = ' \n\
' . esc_html__('First Name' ,'booking').': [name]
\n\
' . esc_html__('Last Name' ,'booking').': [secondname]
\n\
' . esc_html__('Email' ,'booking').': [email]
\n\
' . esc_html__('Phone' ,'booking').': [phone]
\n\
' . esc_html__('Adults' ,'booking').': [visitors]
\n\
' . esc_html__('Children' ,'booking').': [children]
\n\
' . esc_html__('Details' ,'booking').': [details] \n\
';
break;
case '2_columns_times_2_hours':
case '2_columns_times_30_minutes_wizard':
$booking_form = ' \n\
' . esc_html__('Times' ,'booking').': [rangetime]
\n\
' . esc_html__('First Name' ,'booking').': [name]
\n\
' . esc_html__('Last Name' ,'booking').': [secondname]
\n\
' . esc_html__('Email' ,'booking').': [email]
\n\
' . esc_html__('Phone' ,'booking').': [phone]
\n\
' . esc_html__('Adults' ,'booking').': [visitors]
\n\
' . esc_html__('Children' ,'booking').': [children]
\n\
' . esc_html__('Details' ,'booking').': [details] \n\
';
break;
case 'appointments_service_c':
$booking_form = ' \n\
' . esc_html__('Times' ,'booking').': [rangetime]
\n\
' . esc_html__('First Name' ,'booking').': [name]
\n\
' . esc_html__('Last Name' ,'booking').': [secondname]
\n\
' . esc_html__('Email' ,'booking').': [email]
\n\
' . esc_html__('Phone' ,'booking').': [phone]
\n\
' . esc_html__('Details' ,'booking').': [details] \n\
';
break;
case '2_columns_hint_cost_nights':
$booking_form = ' \n\
' . esc_html__('First Name' ,'booking').': [name]
\n\
' . esc_html__('Last Name' ,'booking').': [secondname]
\n\
' . esc_html__('Email' ,'booking').': [email]
\n\
' . esc_html__('Phone' ,'booking').': [phone]
\n\
' . esc_html__('Adults' ,'booking').': [visitors]
\n\
' . esc_html__('Children' ,'booking').': [children]
\n\
' . esc_html__('Address' ,'booking').': [address]
\n\
' . esc_html__('City' ,'booking').': [city]
\n\
' . esc_html__('Post code' ,'booking').': [postcode]
\n\
' . esc_html__('Country' ,'booking').': [country]
\n\
' . esc_html__('Details' ,'booking').': [details] \n\
';
break;
case '2_columns_hint_availability':
case '2_columns_hints_coupon':
$booking_form = ' \n\
' . esc_html__('First Name' ,'booking').': [name]
\n\
' . esc_html__('Last Name' ,'booking').': [secondname]
\n\
' . esc_html__('Email' ,'booking').': [email]
\n\
' . esc_html__('Phone' ,'booking').': [phone]
\n\
' . esc_html__('Adults' ,'booking').': [visitors]
\n\
' . esc_html__('Children' ,'booking').': [children]
\n\
' . esc_html__('Coupon' ,'booking').': [coupon]
\n\
' . esc_html__('Details' ,'booking').': [details] \n\
';
break;
case '2_columns_times_30_minutes_hints_coupon':
$booking_form = ' \n\
' . esc_html__('Times' ,'booking').': [rangetime]
\n\
' . esc_html__('First Name' ,'booking').': [name]
\n\
' . esc_html__('Last Name' ,'booking').': [secondname]
\n\
' . esc_html__('Email' ,'booking').': [email]
\n\
' . esc_html__('Phone' ,'booking').': [phone]
\n\
' . esc_html__('Adults' ,'booking').': [visitors]
\n\
' . esc_html__('Children' ,'booking').': [children]
\n\
' . esc_html__('Coupon' ,'booking').': [coupon]
\n\
' . esc_html__('Details' ,'booking').': [details] \n\
';
break;
}
return $booking_form;
}
function wpbc_get__predefined_booking_form__template( $form_type ){
$form_content = '';
// FixIn: 10.7.1.4.
if ( in_array( $form_type, array( 'appointments30' ) ) ) {
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .='
\n';
$form_content .='
\n'; // class=wpbc_wizard__border_container.
}
if ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h', 'endtime', 'durationtime' ) ) ){
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
}
if ($form_type == 'timesweek'){
$form_content = '';
$form_content .='[calendar] \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .=' [condition name="weekday-condition" type="weekday" value="*"] \n';
$form_content .=' Select Time Slot:
[selectbox rangetime multiple "10:00 - 12:00" "12:00 - 14:00" "14:00 - 16:00" "16:00 - 18:00" "18:00 - 20:00"] \n';
$form_content .=' [/condition] \n';
$form_content .=' [condition name="weekday-condition" type="weekday" value="1,2"] \n';
$form_content .=' Select Time Slot available on Monday, Tuesday:
[selectbox rangetime multiple "10:00 - 12:00" "12:00 - 14:00"] \n';
$form_content .=' [/condition] \n';
$form_content .=' [condition name="weekday-condition" type="weekday" value="3,4"] \n';
$form_content .=' Select Time Slot available on Wednesday, Thursday:
[selectbox rangetime multiple "14:00 - 16:00" "16:00 - 18:00" "18:00 - 20:00"] \n';
$form_content .=' [/condition] \n';
$form_content .=' [condition name="weekday-condition" type="weekday" value="5,6,0"] \n';
$form_content .=' Select Time Slot available on Friday, Saturday, Sunday:
[selectbox rangetime multiple "12:00 - 14:00" "14:00 - 16:00" "16:00 - 18:00"] \n';
$form_content .=' [/condition] \n';
$form_content .='
\n';
$form_content .='
' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* name]
\n';
$form_content .='
' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* secondname]
\n';
$form_content .='
' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[email* email]
\n';
$form_content .='
' . esc_attr__( 'Phone', 'booking' ) . ':
[text phone]
\n';
$form_content .='
' . esc_attr__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"]
\n';
$form_content .='
' . esc_attr__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"]
\n';
$form_content .='
' . esc_attr__( 'Details', 'booking' ) . ':
[textarea details]
\n';
$form_content .='
[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]
\n';
$form_content .='
[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]
\n';
$form_content .='
';
}
if ($form_type == 'hints'){
$form_content = '';
$form_content .='[calendar] \n';
$form_content .=' \n';
if ( class_exists( 'wpdev_bk_biz_m' ) ){ // >= biz_m
$form_content .='
\n';
$form_content .=' ' . esc_attr__( 'Dates', 'booking' ) . ':[selected_short_timedates_hint] ([nights_number_hint] - ' . esc_attr__( 'night(s)', 'booking' ) . ')
\n';
$form_content .=' ' . esc_attr__( 'Full cost of the booking', 'booking' ) . ': [cost_hint]
\n';
$form_content .='
\n';
}
$form_content .='
' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* name]
\n';
$form_content .='
' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* secondname]
\n';
$form_content .='
' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[email* email]
\n';
$form_content .='
' . esc_attr__( 'Phone', 'booking' ) . ':
[text phone]
\n';
$form_content .='
' . esc_attr__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"]
\n';
$form_content .='
' . esc_attr__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"]
\n';
$form_content .='
' . esc_attr__( 'Details', 'booking' ) . ':
[textarea details]
\n';
$form_content .='
[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]
\n';
$form_content .='
[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]
\n';
$form_content .='
';
}
// FixIn: 8.7.3.5.
if ( 'hints-dev' == $form_type ){
$form_content = '';
$form_content .=' \n';
$form_content .='[calendar] \n';
$form_content .=' \n';
}
if ( ($form_type == 'payment') || ($form_type == 'paymentUS') ){
$form_content = '';
$form_content .=' \n';
$form_content .='[calendar] \n';
$form_content .=' \n';
$form_content .='
' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* name]
\n';
$form_content .='
' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* secondname]
\n';
$form_content .='
' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[email* email]
\n';
$form_content .='
' . esc_attr__( 'Phone', 'booking' ) . ':
[text phone]
\n';
$form_content .='
' . esc_attr__( 'Address', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* address]
\n';
$form_content .='
' . esc_attr__( 'City', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* city]
\n';
$form_content .='
' . esc_attr__( 'Post code', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* postcode]
\n';
if ( $form_type == 'paymentUS' ){ // FixIn: 8.1.1.5.
$form_content .='
' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[country "US"]
\n';
$form_content .='
' . esc_attr__( 'State', 'booking' ) . ':
[selectbox state "" "Alabama@@AL" "Alaska@@AK" "Arizona@@AZ" "Arkansas@@AR" "California@@CA" "Colorado@@CO" "Connecticut@@CT" "Delaware@@DE" "Florida@@FL" "Georgia@@GA" "Hawaii@@HI" "Idaho@@ID" "Illinois@@IL" "Indiana@@IN" "Iowa@@IA" "Kansas@@KS" "Kentucky@@KY" "Louisiana@@LA" "Maine@@ME" "Maryland@@MD" "Massachusetts@@MA" "Michigan@@MI" "Minnesota@@MN" "Mississippi@@MS" "Missouri@@MO" "Montana@@MT" "Nebraska@@NE" "Nevada@@NV" "New Hampshire@@NH" "New Jersey@@NJ" "New Mexico@@NM" "New York@@NY" "North Carolina@@NC" "North Dakota@@ND" "Ohio@@OH" "Oklahoma@@OK" "Oregon@@OR" "Pennsylvania@@PA" "Rhode Island@@RI" "South Carolina@@SC" "South Dakota@@SD" "Tennessee@@TN" "Texas@@TX" "Utah@@UT" "Vermont@@VT" "Virginia@@VA" "Washington@@WA" "West Virginia@@WV" "Wisconsin@@WI" "Wyoming@@WY"]
\n';
} else {
$form_content .='
' . esc_attr__( 'Country', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[country]
\n';
}
$form_content .='
' . esc_attr__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"]
\n';
$form_content .='
' . esc_attr__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"]
\n';
$form_content .='
' . esc_attr__( 'Details', 'booking' ) . ':
[textarea details]
\n';
$form_content .='
[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]
\n';
$form_content .='
[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]
\n';
$form_content .='
';
}
if (
($form_type == 'wizard') ||
( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) )
){
// FixIn: 8.6.1.15.
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
$form_content .=' \n';
}
if ($form_type == '2collumns') { // calendar next to form
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
$form_content .=' [calendar] \n';
$form_content .=' width:40px; \n';
$form_content .=' \n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* name] \n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* secondname] \n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[email* email] \n';
$form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ':
[text phone] \n';
$form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"] \n';
$form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"] \n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ':
[textarea details] \n';
$form_content .=' \n';
$form_content .=' [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .=' [submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
$form_content .=' \n';
$form_content .=' \n';
// $form_content .=' \n';
// $form_content .=' [calendar] \n';
// $form_content .=' \n';
// $form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* name] \n';
// $form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* secondname] \n';
// $form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[email* email] \n';
// $form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ':
[text phone] \n';
// $form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"] \n';
// $form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"] \n';
// $form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ':
[textarea details] \n';
// $form_content .=' \n';
// $form_content .=' [checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"] \n';
// $form_content .=' \n';
// $form_content .='
\n';
// $form_content .=' [submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"] \n';
// $form_content .=' \n';
// $form_content .=' \n';
// $form_content .=' \n';
// $form_content .='
\n';
// $form_content .=' [calendar] \n';
// $form_content .='
\n';
// $form_content .='
\n';
// $form_content .='
\n';
// $form_content .='
' . esc_attr__( 'First Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* name]
\n';
// $form_content .='
' . esc_attr__( 'Last Name', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[text* secondname]
\n';
// $form_content .='
' . esc_attr__( 'Email', 'booking' ) . ' (' . esc_attr__( 'required', 'booking' ) . '):
[email* email]
\n';
// $form_content .='
' . esc_attr__( 'Phone', 'booking' ) . ':
[text phone]
\n';
// $form_content .='
' . esc_attr__( 'Adults', 'booking' ) . ':
[selectbox visitors "1" "2" "3" "4"]
\n';
// $form_content .='
' . esc_attr__( 'Children', 'booking' ) . ':
[selectbox children "0" "1" "2" "3"]
\n';
// $form_content .='
\n';
// $form_content .='
\n';
// $form_content .='
' . esc_attr__( 'Details', 'booking' ) . ':
[textarea details]
\n';
// $form_content .='
[checkbox* term_and_condition use_label_element "' . esc_attr__( 'I Accept term and conditions', 'booking' ) . '"]
\n';
// $form_content .='
\n';
// $form_content .='
[submit class:btn "' . esc_attr__( 'Send', 'booking' ) . '"]
\n';
// $form_content .='
\n';
// $form_content .='
\n';
}
// FixIn: 8.7.7.15.
if ($form_type == 'fields2columns') { // 2 columns form
$form_content = '';
$form_content .=' \n';
$form_content .='[calendar]\n';
$form_content .='';
}
// FixIn: 8.8.2.6.
if ($form_type == 'fields3columns') { // 3 columns form
$form_content = '';
$form_content .=' \n';
$form_content .='\n';
$form_content .=' [calendar] \n';
$form_content .=' \n';
$form_content .=' \n';
$form_content .=' \n';
$form_content .='\n';
}
// FixIn: 8.7.11.14.
if ($form_type == 'fields2columnstimes') { // 2 columns form
$form_content = '';
$form_content .='\n';
}
if ($form_content == '') { // Default Form.
$form_content = '';
$form_content .='[calendar] \n';
$form_content .='';
}
if ( in_array( $form_type, array( 'appointments_service_a' ) ) ) {
// FixIn: 10.9.6.5.
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .='
\n';
$form_content .='
\n';
$form_content .='
';
}
if ( in_array( $form_type, array( 'appointments_service_b' ) ) ) {
// FixIn: 10.9.6.5.
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .='
\n';
$form_content .='
';
}
// FixIn: 10.12.4.8.
if ( in_array( $form_type, array( 'appointments_service_c' ) ) ) {
$form_content = '';
$form_content .=' \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .='
\n';
$form_content .='
\n';
}
// FixIn: 10.12.4.9.
if ( in_array( $form_type, array( 'wizard_no_times_a' ) ) ) {
$form_content = '';
if ( ! wpbc_is_this_demo() ) {
$form_content .= '';
}
$form_content .=' \n';
$form_content .=' \n';
$form_content .='
\n';
$form_content .='
\n';
$form_content .='
\n';
}
return $form_content;
}
function wpbc_get__predefined_booking_data__template( $form_type ){
$form_content = '';
// FixIn: 10.7.1.4.
if (
( in_array( $form_type, array( 'appointments30' ) ) )
){
$form_content = '';
$form_content .=' \n';
$form_content .=' ' . esc_attr__( 'Times', 'booking' ) . ': [rangetime]
\n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ': [phone]
\n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .='
';
}
if ( ($form_type == 'payment') || ($form_type == 'paymentUS') || ( 'fields2columns' == $form_type ) || ( 'fields3columns' == $form_type ) ) { //FixIn: 8.7.7.15 // FixIn: 8.8.2.6.
$form_content = '';
$form_content .=' \n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ': [phone]
\n';
$form_content .=' ' . esc_attr__( 'Address', 'booking' ) . ': [address]
\n';
$form_content .=' ' . esc_attr__( 'City', 'booking' ) . ': [city]
\n';
$form_content .=' ' . esc_attr__( 'Post code', 'booking' ) . ': [postcode]
\n';
$form_content .=' ' . esc_attr__( 'Country', 'booking' ) . ': [country]
\n';
if ( $form_type == 'paymentUS' ) {
$form_content .=' ' . esc_attr__( 'State', 'booking' ) . ': [state]
\n';
}
$form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ': [visitors]
\n';
$form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ': [children]
\n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .='
';
}
if (
( in_array( $form_type, array( 'timesweek', 'fields2columnstimes' ) ) )
|| ( in_array( $form_type, array( 'times', 'times30', 'times15', 'times120', 'times60', 'times60_24h', 'endtime', 'durationtime' ) ) )
|| ( in_array( $form_type, array( 'wizard_times', 'wizard_times30', 'wizard_times15', 'wizard_times120', 'wizard_times60', 'wizard_times60_24h' ) ) )
){
$form_content = '';
$form_content .=' \n';
$form_content .=' ' . esc_attr__( 'Times', 'booking' ) . ': [rangetime]
\n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ': [phone]
\n';
$form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ': [visitors]
\n';
$form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ': [children]
\n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .='
';
}
if ( 'hints-dev' == $form_type ){
$form_content = '';
$form_content .=' \n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ': [visitors]
\n';
$form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ': [children]
\n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .='
';
}
if ( ($form_type == 'wizard') || ($form_type == '2collumns') || ($form_content == 'hints') || ($form_content == '') ){
$form_content = '';
$form_content .=' \n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ': [phone]
\n';
$form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ': [visitors]
\n';
$form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ': [children]
\n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .='
';
}
// FixIn: 10.12.4.8.
if ( in_array( $form_type, array( 'appointments_service_a', 'appointments_service_b', 'appointments_service_c' ) ) ) {
$form_content = '';
$form_content .= ' \n';
$form_content .= ' ' . esc_attr__( 'Service', 'booking' ) . ': [durationtime_val]
\n';
$form_content .= ' ' . esc_attr__( 'Start Times', 'booking' ) . ':[starttime]
\n';
$form_content .= ' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .= ' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .= ' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .= ' ' . esc_attr__( 'Phone', 'booking' ) . ': [phone]
\n';
$form_content .= ' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .= '
';
}
// FixIn: 10.12.4.9.
if ( in_array( $form_type, array( 'wizard_no_times_a' ) ) ) {
$form_content = '';
$form_content .= ' \n';
$form_content .=' ' . esc_attr__( 'First Name', 'booking' ) . ': [name]
\n';
$form_content .=' ' . esc_attr__( 'Last Name', 'booking' ) . ': [secondname]
\n';
$form_content .=' ' . esc_attr__( 'Email', 'booking' ) . ': [email]
\n';
$form_content .=' ' . esc_attr__( 'Phone', 'booking' ) . ': [phone]
\n';
$form_content .=' ' . esc_attr__( 'Adults', 'booking' ) . ': [visitors]
\n';
$form_content .=' ' . esc_attr__( 'Children', 'booking' ) . ': [children]
\n';
$form_content .=' ' . esc_attr__( 'Details', 'booking' ) . ': [details]\n';
$form_content .= '
';
}
return $form_content;
}